namespace APT.BaseData.Domain.Msg
{
	public static class ErrMsg
    {
        #region common
        public const string CM_CONFIG_ERR = "当前企业不存在配置信息";

        public const string CM_NO_DEV = "功能尚未开发，不允许此操作";

        public const string CM_NO_SELECTED = "未选择记录";

        public const string CM_NO_RECORD = "不存在可操作记录";

        public const string CM_NO_QTY = "数量不能为空";

        public const string CM_NO_ORG = "组织参数不能为空";

        public const string CM_NO_USER = "用户不能为空";

        public const string CM_NOEXIT_USER = "用户不存在";

        public const string PF_CODE_COUNT = "流水码不足，请联系系统管理员";

        public const string PF_ERR_CODE_RULE_TYPE = "编码类型不存在或未启用";


        #endregion

        #region PM
        public const string PM_PLAN_REVERT_01 = "存在已发布的计划，不允许撤销";

        public const string PM_PLAN_REVERT_02 = "存在已开始且未挂起的派工单，不允许撤销";

        public const string PM_PLAN_REVERT_03 = "存在已分配的计划任务单，不允许撤销";

        public const string PM_PLAN_REVERT_04 = "存在相关记录已生成计划单，不允许撤销";

        public const string PM_PLAN_REVERT_05 = "对应的计划任务单不存在，撤销失败";

        public const string PM_NO_PLAN = "生成的计划单数据为空";

        public const string PM_NO_PLAN_TASK = "计划任务单不存在";

        public const string PM_NO_CHANGE_TYPE = "修改方式参数不能为空";

        public const string PM_NO_CHANGE_VALUE = "修改的值不能为空";

        public const string PM_START_OVER_END= "开始时间大于结束时间";

        public const string PM_NO_STAND_TIME = "未配置标准工时";

        public const string PM_CALENDAR_OCC = "中心日历已占用，请先撤销占用";

        public const string PM_SCHEDUL_IN = "排程输入参数不能为空";

        public const string PM_NOEXIT_MOULD = "没有匹配的模具";

        public const string PM_NOCAP_MOULD = "对应模具没有剩余产能";

        public const string PM_NOAPSCAP_MOULD = "对应模具剩余产能不能排产";

        public const string PM_NOENOUGHCAP_MOULD = "期间内对应模具产能不足";

        public const string PM_NO_PLANTASK = "对应的计划任务单不存在";
        #endregion

        #region FM
        public const string FM_NO_USER = "用户名不能为空";
        public const string FM_NO_USER_PHONE = "手机号不能为空";

        public const string FM_NO_PWD = "密码不能为空";

        public const string FM_NO_ORG = "组织不能为空";

        public const string PM_NO_USER_ID = "用户不存在";
		public const string PM_PSD_ERROR = "用户不存在或密码错误";
		public const string FM_USER_UNABLE = "用户已失效";

		public const string FM_NO_USER_ID = "用户ID不允许为空";
		public const string FM_NO_PAGE_TABLE_ID = "表ID不允许为空";
		public const string FM_USER_GROUP_CYCLE = "用户组出现循环，请确认";
		//public const string PM_PLAN_REVERT_05 = "对应的计划任务单不存在，撤销失败";
		#endregion

		#region MM
		public const string MM_NO_WORKSTAGE_ROLE = "没有任何工作中心权限";

        public const string MM_NO_WORK_NO = "派工单编号不能为空";

        public const string MM_NO_STAGE_CODE = "工序编码不能为空";

        public const string MM_RC_NO_WORK_NO = "接收的派工单编号不能为空";

        public const string MM_NO_WORK = "不存在此派工单";

        public const string MM_NO_JOB_USER = "作业者不能为空";

        //public const string FM_NO_QTY = "组织不能为空";

        public const string MM_NO_STAGE = "作业中心不能为空";

        public const string MM_NO_BATCH_QTY = "无批次数量";

        public const string MM_NO_BAD = "不良单号不能为空";

        public const string MM_NO_REPAIR_QTY = "维修数量不能为空";

        public const string MM_NO_REPAIR_OK = "OK数量不能为空";

        public const string MM_NO_REPAIR_REWORK = "返工数量不能为空";

        public const string MM_NO_REPAIR_SCRAP = "报废数量不能为空";

        public const string MM_ERR_REPAIR_DATA = "维修数据异常";

        public const string MM_REPAIR_OVER_QTY = "维修数量不能大于待维修数";

        public const string MM_REPAIR_REWORK_PROCESS = "有返工数量时需指定返工工序";


        public const string MM_EXIT_STAGE_JOB_START = "当前中心已存在此派工单的开工且未完工的记录";

        public const string MM_WORK_QTY_OVER = "派工单报工总数不能超过接收数量";


        public const string MM_OUT_QTY_OVER = "转出数量大于可转数量";

        public const string MM_PROCESS_QTY_OVER = "报工总数不能超过生产订单可报数";

        public const string MM_STAGE_WORK = "当前中心和当前派工单的工序不匹配";

        public const string MM_WORK_NO_PLAN = "派工单的计划单不存在";

        public const string MM_WORK_NO_PLAN_TASK = "派工单的计划任务单不存在";

        public const string MM_ERR_BAD_DATA = "异常数据格式不正确";

        public const string MM_ERR_WORK_STATUS = "派工单状态不正确";

        public const string MM_WORK_NO_PDT = "派工单的生产订单不存在";

        public const string MM_WORK_NO_PROCESS = "派工单的生产工艺不存在";

        public const string MM_PDT_NO_PROCESS = "生产订单的工艺路线不存在";

        public const string MM_PDT_NO_PROCESS_DETAIL = "生产订单的工艺路线明细不存在";

        public const string MM_ERR_STAGE = "作业中心不正确";

        public const string MM_ERR_OP_STAGE = "操作中心不能为空";

        public const string MM_NOEXIT_STAGE = "作业中心不存在";

        public const string MM_NO_IN_WORK = "必须指定接收派工单";

        public const string MM_NO_IN_STAGE = "必须指定接收的中心";

        public const string MM_NOEXIT_IN_WORK = "接收派工单不存在";

        public const string MM_NOEXIT_CAN_REV = "没有可接收的派工单";

        public const string MM_IN_WORK_QYT_OVER = "接收数量超过计划数量";
 
		public const string MM_WORK_BOOK_NO_COMPLETE = "派工单非指定完工，不能手动撤回";
		public const string MM_WORK_FIRST_CHECK = "未完成派工单首检，不允许报工";
		public const string MM_JOB_FIRST_CHECK = "未完成工单首检，不允许报工";

		public const string MM_JOB_FEED = "未完成工单投产，不允许报工";
		public const string MM_NO_JOB_FEED_QTY = "工单投产数量不足，不允许报工";
		public const string MM_JOB_FROZEN = "工单已冻结，不允许报工";

		public const string MM_NO_SN = "SN的参数为空";

        public const string MM_NO_MATCH_SN = "两个SN的信息不匹配";

        public const string MM_NO_PDT = "生产订单参数为空";

        public const string MM_NO_EXIT_PDT = "不存在此生产订单";

        public const string MM_NOMATCH_SN = "SN规则不匹配";

        public const string MM_EXIT_SN = "SN已存在,且已绑定其他订单";

        public const string MM_NOT_EXIT_SN = "SN不存在";

        public const string MM_SN_ERR_STATE = "SN状态不可用";

        public const string MM_SN_ERR_BADING = "SN已存在相关绑定";

        public const string MM_SN_NO_BADING = "无需绑定此物料";

        public const string MM_STAGE_NO_LINE = "中心未配置归属产线";

        public const string MM_USER_NO_TEAM = "人员未配置归属班组";

        public const string MM_MATERIAL_NOT_ENOUGH = "料池物料不足";

        public const string MM_CANT_REMOVE = "已存在扫码纪录，不允许移除";

        public const string MM_CANT_OPER = "已存在过站纪录，不允许此操作";

        public const string MM_ERR_SN_PROCESS = "SN的工艺路线信息不正确";

        public const string MM_ERR_SN_BOOKING = "SN[{0}]当前工序不可过站，请确认前工序是否已完成";

        public const string MM_ERR_SN_REBOOKING = "SN[{0}]当前工序已存在过站记录，无需重复过站";

        public const string MM_ERR_SN_STATE = "SN状态不匹配";

        public const string MM_ERR_SN_PARAMS = "SN参数不正确";
		public const string MM_EXIT_POOL_BATCH = "料池中已存在此批次";
		public const string MM_ERR_SN_PROCESS_DETIAL = "SN工艺明细不存在";

		public const string MM_EXIT_SN_NO_FEED = "存在SN组件未投料";

		#endregion

		#region WO
		public const string WO_NO_PDT_NO = "生产订单不能为空";

        public const string WO_NOEXIT_PDT_NO = "生产订单不存在";

		public const string WO_EMPTY_DUE_TIME = "请填写生产交期，再执行此操作";

		public const string WO_NO_WORK_ID = "派工单不能为空";
        
		public const string WO_NO_WORK_WORKSTAGE_ID = "派工单工作中心不能为空";
		public const string WO_NO_WORK_MANU_RESOURCE_ID = "派工单模具不能为空";
		public const string WO_WORK_DEBUG_START = "派工单已开始调试，不允许执行此操作";

		public const string WO_WORK_DEBUG_FIRST_CHECK = "派工单在首检中，不允许执行此操作";

		public const string WO_NO_JOB_ID = "工单不能为空";
		#endregion

		#region QC
		public const string QC_NO_QCBATCH = "检验批号不能为空";

        public const string QC_NO_EXIT_QCBATCH = "不存在此检验批";

        public const string QC_NO_EXIT_QCBAD = "不存在相关的不良单";

        public const string QC_NO_QCBATCH_QTY = "撤销数量不能为空";

        public const string QC_NO_QCBATCH_BADQTY = "撤销不良数量不能为空";

        public const string QC_OVER_BOXING = "撤销数量大于待包装数量";

        public const string QC_OVER_STORAGE = "撤销数量大于待入库数量";

        public const string QC_OVER_BADQTY = "撤销不良数量大于可撤销的总不良数";

        public const string QC_OVER_BATCH_QTY = "撤销数量大于检验批总数量";

        public const string QC_OVER_BATCH_BADQTY = "撤销不良数量大于检验批不良数量";

        public const string QC_OVER_BAD_REPAIRING = "撤销不良数量大于不良单的待维修数";
 

        public const string QC_NO_ORDER = "检验单号不能为空";

        public const string QC_ORDER_ERR_STATUS = "检验单已完成或已取消";

        public const string QC_ORDER_ERR_DATA = "检验单数据异常";

        public const string QC_NOEXIT_ORDER = "检验单号不存在";

        public const string QC_NO_TOTAL_QTY = "检验总数不能为空";

        public const string QC_NO_RAN_QTY = "抽检数量不能为空";

        public const string QC_ERR_STAGE = "检验中心必须为指定的检验中心";

        public const string QC_NO_JUDGE_RESULT = "判定结果不能为空";

		public const string QC_NO_HANDLE_JUDGE = "不良处理方式不能为空";

		public const string QC_OVER_QTY = "检验数量大于可检数量";

        public const string QC_OVER_PROCESS_QTY = "检验数量大于制程待检数量";

        public const string QC_RAN_OVER_QTY = "抽检数量不允许大于检验总数";

        public const string QC_RAN_OVER_ZERO = "抽检数量必须大于0";

        public const string QC_BAD_OVER_QTY = "不良数量不允许大于检验总数";

        public const string QC_NO_PDT_PROCESS = "检验工序不能为空";

        public const string QC_IQC_OVER_COL = "检验数量不能大于点收数量";

        public const string QC_SN_ORDER = "SN不属于此检验单或SN状态不正确";
		public const string QC_NO_LINE_WORKSTAGE = "生产线不存在对应工序的生产中心";

        public const string QC_OQC_NOBOX = "无关联的箱号";

        public const string QC_BOX_HAS_SENDED = "该箱已送检";

        public const string QC_LCP_CONNECT_URL_NOFIND = "未配置接口信息,请联系联系管理员处理";

        public const string QC_NO_FIND_BASEDATA = "数据缺失/不全,提交异常流程单失败";
        #endregion

        #region WH
        public const string WH_NOEXIT_BATCH_SERIAL = "物料批次不存在";

        public const string WH_NO_INMATERIAL = "来料明细数据不能为空";

        public const string WH_NOEXIT_INMATERIAL = "来料明细数据不存在";

		public const string WH_NOEXIT_BOX_ID = "箱码ID不存在";

		public const string WH_NOEXIT_PDT_ORDER_ID = "生产订单不存在";

		public const string WH_NOEXIT_BOX_DETAIL = "不存在相关联产品或者子箱信息";


		public const string WH_NOEXIT_PRODUCT = "产品不允许为空";


		public const string WH_NOEXIT_PERQTY = "请填写每箱数量";

		public const string WH_NOEXIT_LOCATION = "不存在库位";


		public const string WH_NOT_ENOUGH_PDT_ORDER_BOX_QTY = "生成订单可包装数量不足";


		public const string WH_NOEXIT_BOX_CODE = "箱码不存在";

		public const string WH_NOEXIT_SALE_ORDER_DETAIL= "不存在销售订单明细";

		public const string WH_SALE_ORDER_DETAIL_EXC_QTY = "销售订单{0}行项{1}数量已超发";

		public const string WH_PDT_WAITING_STAGE_EXC_QTY = "生产订单待入库数量不足";

        public const string WH_MOVE_QTY_ERR = "移库数量不正确";

        //public const string QC_ORDER_ERR_STATUS = "检验单已完成或已取消";

        //public const string QC_ORDER_ERR_DATA = "检验单数据异常";

        //public const string QC_NOEXIT_ORDER = "检验单号不存在";

        //public const string QC_NO_TOTAL_QTY = "检验总数不能为空";

        //public const string QC_NO_RAN_QTY = "抽检数量不能为空";

        //public const string QC_ERR_STAGE = "检验中心必须为指定的检验中心";

        //public const string QC_NO_JUDGE_RESULT = "判定结果不能为空";

        //public const string QC_OVER_QTY = "检验数量大于可检数量";

        //public const string QC_OVER_PROCESS_QTY = "检验数量大于制程待检数量";

        //public const string QC_RAN_OVER_QTY = "抽检数量不允许大于检验总数";

        //public const string QC_RAN_OVER_ZERO = "抽检数量必须大于0";

        //public const string QC_BAD_OVER_QTY = "不良数量不允许大于检验总数";

        //public const string QC_NO_PDT_PROCESS = "检验工序不能为空";
        #endregion

        #region BR
        public const string BR_REQUIE_TWO_DATE = "必须指定开始和结束日期";
        #endregion

        #region SO
        public const string SO_CANT_REVERT = "已开始的销售订单，不允许撤销";
        #endregion

        #region DT
        public const string DT_NO_CONFIG = "配置信息不存在";
        public const string DT_NO_PRODUCT = "物料数据不存在";
        public const string DT_NO_CONN = "数据库连接不正确";
        #endregion

    }
}
