using System.ComponentModel.DataAnnotations; namespace RB_MES_API.Models.Cloud { /// /// 退料申请单 /// public class PUR_MRAPP { /// /// 实体主键(无需填写,保存时自动添加) /// public int FID { get; set; } /// /// 单据类型 (必填项) /// public Dictionary FBillTypeID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 单据编号 /// [StringLength(36)] public string FBillNo { get; set; } /// /// 申请日期 (必填项) /// public DateTime FDate { get; set; } /// /// 申请组织 /// public Dictionary FAPPORGID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 申请部门 /// public Dictionary FAPPDEPTID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 需求组织 (必填项) /// public Dictionary FRequireOrgId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 退料类型 (必填项) /// [StringLength(36)] public string FRMTYPE { get; set; } /// /// 退料方式 (必填项) /// [StringLength(36)] public string FRMMODE { get; set; } /// /// 对应组织 /// public Dictionary FCorrespondOrgId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 退料地点 /// [StringLength(36)] public string FRMLOC { get; set; } /// /// 退料原因 /// public Dictionary FRMREASON { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 采购组织 (必填项) /// public Dictionary FPURCHASEORGID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 供应商 (必填项) /// public Dictionary FSUPPLIERID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 备注 /// [StringLength(36)] public string FRemarks { get; set; } /// /// 确认人 /// public Dictionary FConfirmerId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 确认日期 /// public DateTime FConfirmDate { get; set; } /// /// 申请人 /// public Dictionary FApplicantId { get; set; } = new Dictionary() { { "",""} }; /// /// 财务(表头财务) /// public class F_SubEntity_FIN { /// /// 实体主键(无需填写,保存时自动添加) /// public int FENTRYID { get; set; } /// /// 结算组织 (必填项) /// public Dictionary FSettleTypeId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 币别 (必填项) /// public Dictionary FLOCALCURRID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 汇率类型 /// public Dictionary FExchangeTypeId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 价目表 /// public Dictionary FPriceListId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 价外税 /// public bool FISPRICEEXCLUDETAX { get; set; } = false; } public List Entity { get; set; } = new List(); /// /// 明细 /// public class FEntity { /// /// 实体主键 /// public int FEntryID { get; set; } /// /// 计划跟踪号 /// [StringLength(36)] public string FMtoNo { get; set; } /// /// 物料编码 (必填项) /// public Dictionary FMATERIALID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 库存单位 (必填项) /// public Dictionary FUNITID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 申请退料数量 /// public decimal FMRAPPQTY { get; set; } /// /// 计价单位 (必填项) /// public Dictionary FPRICEUNITID_F { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 补料数量 /// public decimal FREPLENISHQTY { get; set; } /// /// 扣款数量 /// public decimal FKEAPAMTQTY { get; set; } /// /// 退料原因 /// public Dictionary FRMREASON_M { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 是否赠品 /// public bool FGiveAway { get; set; } = false; /// /// 备注 /// [StringLength(36)] public string FNOTE_M { get; set; } /// /// BOM版本 /// public Dictionary FBOMID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 批号 /// public Dictionary FLot { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 价格系数 /// public decimal FPRICECOEFFICIENT_F { get; set; } /// /// 单价 /// public decimal FPRICE_F { get; set; } /// /// 税率% /// public decimal FEntryTaxRate { get; set; } /// /// 折扣率 /// public decimal FDISCOUNTRATE_F { get; set; } /// /// 净价 /// public decimal FTAXNETPRICE_F { get; set; } /// /// 业务流程 /// public Dictionary FBFLowId { get; set; } = new Dictionary() { { "FName",""} }; /// /// 计价基本数量 /// public int FPriceBaseQty { get; set; } /// /// 采购单位 (必填项) /// public Dictionary FPURUNITID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 采购数量 /// public decimal FPurQty { get; set; } /// /// 采购基本数量 /// public decimal FPurBaseQty { get; set; } /// /// 分录价目表 /// public Dictionary FENTRYPRICELISTID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 辅助属性 /// public class FAUXPROPID { public Dictionary FAUXPROPID__FF100002 { get; set; } = new Dictionary() { { "FNumber",""} }; } /// /// 仓库 /// public Dictionary FStockId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 单价折扣 /// public decimal FPriceDiscount { get; set; } /// /// 仓位 /// public class FSTOCKLOCID { public Dictionary FSTOCKLOCID__FF100001 { get; set; } = new Dictionary() { { "FNumber",""} }; public Dictionary FSTOCKLOCID__FF100002 { get; set; } = new Dictionary() { { "FNumber",""} }; } } } }