using RB_MES_API.Context; using System.ComponentModel.DataAnnotations; namespace RB_MES_API.Models.Cloud { /// /// 盘盈单 /// public class STK_StockCountGain { /// /// 实体主键(无需填写,保存时自动添加) /// public int FID { get; set; } /// /// 物料盘点作业编码 /// [StringLength(36)] public string FStockCountInputNo { get; set; } /// /// 单据编号 /// [StringLength(36)] public string FBillNo { get; set; } /// /// 单据类型 (必填项) /// public Dictionary FBillTypeID { get; set; } = new Dictionary() { { "FNUMBER","PY01_SYS"} }; /// /// 库存组织 (必填项) /// public Dictionary FStockOrgId { get; set; } = new Dictionary() { { "FNUMBER",LocalStaticRequest.DefaultOrg} }; /// /// 货主类型 (必填项) /// [StringLength(36)] public string FOwnerTypeIdHead { get; set; } = "BD_OwnerOrg"; /// /// 货主 /// public Dictionary FOwnerIdHead { get; set; } = new Dictionary() { { "FNUMBER",LocalStaticRequest.DefaultOrg} }; /// /// 日期 (必填项) /// [DataType(DataType.DateTime)] public string FDate { get; set; } = DateTime.Now.ToShortDateString(); /// /// 部门 /// public Dictionary FDeptId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 库存组 /// public Dictionary FStockerGroupId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 仓管员 /// public Dictionary FStockerId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 备注 /// [StringLength(36)] public string FNoteHead { get; set; } /// /// 序列号上传 /// //[StringLength(36)] //public string FScanBox { get; set; } = ""; /// /// 第三方系统 /// [StringLength(36)] public string FThirdSystem { get; set; } /// /// 第三方源单内码 /// [StringLength(36)] public string FThirdSrcId { get; set; } /// /// 第三方源单编码 /// [StringLength(36)] public string FThirdSrcBillNo { get; set; } /// /// MES唯一标识 /// [StringLength(36)] public string F_SBMI_QUEUE_ID { get; set; } ///// ///// 作废人 ///// ////public Dictionary FCANCELLERID { get; set; } = new Dictionary() { //// { "FUserID",""} ////}; ///// ///// 作废日期 ///// ////public DateTime FCANCELDATE { get; set; } public List FBillEntry { get; set; } = new List(); /// /// 明细信息 /// public class BillEntry { /// /// 实体主键(无需填写,保存时自动添加) /// public int FEntryID { get; set; } /// /// 物料编码 (必填项) /// public Dictionary FMaterialId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 辅助属性 /// public AuxpropId FAuxPropId { get; set; } public class AuxpropId { public Dictionary FAUXPROPID__FF100001 { get; set; } = new Dictionary() { { "FNumber",""} }; } /// /// 单位 (必填项) /// public Dictionary FUnitID { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 盘点数量 /// public decimal FCountQty { get; set; } /// /// 仓库 (必填项) /// public Dictionary FStockId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 仓位 /// public StockLocId FStockLocId { get; set; } = new StockLocId(); public class StockLocId { public Dictionary FSTOCKLOCID__FF100001 { get; set; } = new Dictionary() { { "FNUMBER",""} }; public Dictionary FSTOCKLOCID__FF100002 { get; set; } = new Dictionary() { { "FNUMBER",""} }; } /// /// 批号 /// public Dictionary FLOT { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 入库日期 /// [DataType(DataType.DateTime)] public string FBusinessDate { get; set; } = DateTime.Now.ToShortDateString(); /// /// 货主类型 (必填项) /// [StringLength(36)] public string FOwnerTypeId { get; set; } = "BD_OwnerOrg"; /// /// 货主 (必填项) /// public Dictionary FOwnerid { get; set; } = new Dictionary() { { "FNUMBER",LocalStaticRequest.DefaultOrg} }; /// /// 备注 /// [StringLength(36)] public string Fnote { get; set; } /// /// 库存状态 (必填项) /// public Dictionary FStockStatusId { get; set; } = new Dictionary() { { "FNUMBER","KCZT01_SYS"} }; /// /// BOM版本 /// public Dictionary FBomId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 保管者类型 (必填项) /// [StringLength(36)] public string FKeeperTypeId { get; set; } = "BD_KeeperOrg"; /// /// 保管者 (必填项) /// public Dictionary FKeeperId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 生产日期 /// //public string FProduceDate { get; set; } /// /// 到期日 /// //public string FExpiryDate { get; set; } /// /// 辅单位 /// public Dictionary FExtAuxUnitId { get; set; } = new Dictionary() { { "FNUMBER",""} }; /// /// 计划跟踪号 /// [StringLength(36)] public string FMtoNo { get; set; } /// /// 盘盈数量(基本) /// public decimal FBaseGainQty { get; set; } /// /// 盘盈数量(库存辅单位) /// public decimal FSecGainQty { get; set; } /// /// 盘点数量(辅单位) /// public decimal FExtAuxUnitQty { get; set; } /// /// 账存数量(辅单位) /// public decimal FExtSecAcctQty { get; set; } /// /// 盘盈数量(辅单位) /// public decimal FExtSecGAINQty { get; set; } /// /// 项目编号 /// [StringLength(36)] public string FProjectNo { get; set; } /// /// 服务上下文 /// //[StringLength(36)] //public string FServiceContext { get; set; } = ""; /// /// 第三方源单分录编码 /// [StringLength(36)] public string FThirdSrcEntryId { get; set; } /// /// 源单分录行号 /// //public string FSeq { get; set; } } /// /// 序列号子单据体 /// public class FSerialSubEntity { /// /// 实体主键(无需填写,保存时自动添加) /// public int FDetailID { get; set; } /// /// 序列号 /// [StringLength(36)] public string FSerialNo { get; set; } /// /// 备注 /// [StringLength(36)] public string FSerialNote { get; set; } } } }