using RB_MES_API.Context; using System.ComponentModel.DataAnnotations; namespace RB_MES_API.Models.Cloud { /// /// 委外订单变更单 /// public class SUB_REQCHANGE { /// /// 实体主键(无需填写,保存时自动添加) /// [Required] public int FID { get; set; } /// /// 备注 /// public string FDescription { get; set; } = "MES系统推送..."; /// /// 单据类型 (必填项) /// [StringLength(36)] public Dictionary FBillType { get; set; } = new Dictionary() { { "FNumber", "WWDDBGD01_SYS" } }; /// /// 变更原因 /// public Dictionary FChangeReason { get; set; } = new Dictionary() { { "FNumber", "BGYY02_SYS" } }; /// /// 单据日期 /// [DataType(DataType.Date)] public string FDate { get; set; } = DateTime.Now.ToShortDateString(); /// /// /// 委外组织 /// /// [StringLength(36)] public Dictionary FSubOrgId { get; set; } = new Dictionary() { { "FNumber", LocalStaticRequest.DefaultOrg } }; /// /// /// 供应商 /// /// [StringLength(36)] public Dictionary FSupplierId { get; set; } = new Dictionary() { { "FNumber", "" } }; public List FEntity { get; set; } = new List(); public class Entity { public int FEntryID { get; set; } /// /// 变更类型:1新增;2变更前;3变更后 /// public string FChangeType { get; set; } /// /// 子项物料编码 (必填项) /// public Dictionary FMaterialId { get; set; } = new Dictionary() { { "FNUMBER", "" } }; /// /// 源单类型 (必填项) /// public string FSrcBillType { get; set; } = "SUB_SUBREGORDER"; /// /// 源单编号 /// public string FSrcBillNo { get; set; } = string.Empty; /// /// 源单内码 /// public int FSrcBillId { get; set; } /// /// 源单分录内码 /// public int FSrcBillEntryId { get; set; } /// /// 源单行号 /// public int FSrcBillEntrySeq { get; set; } /// /// 委外订单编号 /// public string FSubReqBillNO { get; set; } = string.Empty; /// /// 委外订单内码 /// public int FSubReqId { get; set; } /// ///委外订单分录内码 /// public int FSubReqEntryId { get; set; } /// /// 委外订单行号 /// public int FSubReqEntrySeq { get; set; } /// /// 单位 (必填项) /// public Dictionary FUnitId { get; set; } = new Dictionary() { { "FNUMBER", "" } }; /// /// 基本单位 /// public Dictionary FBaseUnitId { get; set; } = new Dictionary() { { "FNUMBER", "" } }; /// /// 数量 /// public decimal FQty { get; set; } /// /// 原始携带量 /// public decimal FBaseQty { get; set; } /// /// 计划开工时间 (必填项) /// [DataType(DataType.Date)] public string FPlanStartDate { get; set; } /// /// 计划完工时间 (必填项) /// [DataType(DataType.Date)] public string FPlanFinishDate { get; set; } /// /// BOM版本 /// public Dictionary FBomId { get; set; } = new Dictionary() { { "FNUMBER", "" } }; /// /// 需求组织 /// public Dictionary FRequestOrgId { get; set; } = new Dictionary() { { "FNUMBER", LocalStaticRequest.DefaultOrg } }; /// /// 批号 /// public Dictionary FLot { get; set; } = new Dictionary() { { "FNUMBER", "" } }; /// /// 产品类型 (必填项) /// public string FProductType { get; set; } = "1"; ///// ///// 辅助属性 ///// //public AuxPropId FAuxPropId { get; set; } = new AuxPropId(); ///// ///// 20230719打了6月补丁之后,这个字段不能再默认了 ///// //public class AuxPropId //{ // public Dictionary FAUXPROPID__FF100001; //} /// /// 入库组织 /// public Dictionary FStockInOrgId { get; set; } = new Dictionary() { { "FNUMBER", LocalStaticRequest.DefaultOrg } }; /// /// 业务状态 (必填项) /// public string FStatus { get; set; } = string.Empty; public List FEntity_Link { get; set; } public class Entity_Link { /// /// 实体主键,新建时为空,由系统自动填充 /// public string FLinkId { get; set; } public string FEntity_Link_FFlowId { get; set; } public string FEntity_Link_FFlowLineId { get; set; } public string FEntity_Link_FRuleId { get; set; } = "SUB_Req2ReqChange"; public int FEntity_Link_FSTableId { get; set; } public string FEntity_Link_FSTableName { get; set; } = "T_SUB_REQORDERENTRY"; /// /// 系统源单内码 /// public int FEntity_Link_FSBillId { get; set; } //要二次查询,或者由MES提供。一般二次查询... /// /// 系统源单分录内码 /// public int FEntity_Link_FSId { get; set; } //要二次查询,或者由MES提供。一般二次查询... public decimal FEntity_Link_FBaseStdQtyOld { get; set; } //原始携带量 public decimal FEntity_Link_FBaseStdQty { get; set; } //修改携带量 } } } }