using SqlSugar; using System; using wms.util.Check; namespace wms.sqlsugar.model.fj { /// /// 库存流水数据历史表 /// [Tenant("fj")] [SugarTable(nameof(Bill_InvflowHistory) + "_{year}{month}{day}", "任务表")] [SplitTable(SplitType.Month)]//按年分表 (自带分表支持 年、季、月、周、日) public partial class Bill_InvflowHistory { /// /// ID /// [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, ColumnDescription = "ID")] public virtual long Id { get; set; } = IdFactory.NewId(); /// /// 备注 /// [SugarColumn(ColumnName = "Memo", Length = 500, IsNullable = true, ColumnDataType = "nvarchar", DefaultValue = "", ColumnDescription = "备注")] public virtual string Memo { get; set; } /// /// 创建用户 /// [SugarColumn(ColumnName = "AddWho", Length = 50, ColumnDataType = "nvarchar", DefaultValue = "", IsNullable = false, ColumnDescription = "创建用户")] public virtual string AddWho { get; set; } = ""; /// /// 更新用户 /// [SugarColumn(ColumnName = "EditWho", Length = 50, ColumnDataType = "nvarchar", DefaultValue = "", IsNullable = false, ColumnDescription = "更新用户")] public virtual string EditWho { get; set; } = ""; /// /// 创建时间 /// [SplitField] [SugarColumn(ColumnName = "AddTime", DefaultValue = "1900-1-1", IsNullable = false, ColumnDescription = "创建时间")] public virtual DateTime AddTime { get; set; } = DateTime.Now; /// /// 更新时间 /// [SugarColumn(ColumnName = "EditTime", DefaultValue = "1900-1-1", IsNullable = false, ColumnDescription = "更新时间")] public virtual DateTime EditTime { get; set; } = DateTime.Now; /// /// 仓库ID /// [SugarColumn(ColumnDataType = "bigint", IsNullable = false)] public long WarehouseId { get; set; } /// /// 容器ID /// [SugarColumn(ColumnDataType = "bigint", IsNullable = false)] public long ContGrpId { get; set; } /// /// 容器编号 /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ContGrpBarCode { get; set; } /// /// 组盘类型(1物料盘 2空盘) /// [SugarColumn(ColumnDataType = "int", IsNullable = false)] public int ContGrpType { get; set; } /// /// BoxBarCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string BoxBarCode { get; set; } /// /// BomDocsNo /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string BomDocsNo { get; set; } /// /// BomMatId /// [SugarColumn(ColumnDataType = "bigint", IsNullable = false)] public long BomMatId { get; set; } /// /// BomMatCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string BomMatCode { get; set; } /// /// BomMatName /// [SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)] public string BomMatName { get; set; } /// /// BomSetId /// [SugarColumn(ColumnDataType = "bigint", IsNullable = false)] public long BomSetId { get; set; } /// /// ExecStateCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ExecStateCode { get; set; } /// /// ExecDocsNo /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ExecDocsNo { get; set; } /// /// ExecDocsRowNo /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ExecDocsRowNo { get; set; } /// /// ExecDocsTypeCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ExecDocsTypeCode { get; set; } /// /// InvInOut /// [SugarColumn(ColumnDataType = "int", IsNullable = false)] public int InvInOut { get; set; } /// /// ExecWho /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ExecWho { get; set; } /// /// ExecTime /// [SugarColumn(ColumnDataType = "datetime", IsNullable = false)] public DateTime ExecTime { get; set; } /// /// PutRow /// [SugarColumn(ColumnDataType = "int", IsNullable = false)] public int PutRow { get; set; } /// /// PutCol /// [SugarColumn(ColumnDataType = "int", IsNullable = false)] public int PutCol { get; set; } /// /// PutLayer /// [SugarColumn(ColumnDataType = "int", IsNullable = false)] public int PutLayer { get; set; } /// /// InvBarCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string InvBarCode { get; set; } /// /// InvStateCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string InvStateCode { get; set; } /// /// InDocsNo /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string InDocsNo { get; set; } /// /// InDocsRowNo /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string InDocsRowNo { get; set; } /// /// SuppCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string SuppCode { get; set; } /// /// SuppName /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string SuppName { get; set; } /// /// CustCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string CustCode { get; set; } /// /// CustName /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string CustName { get; set; } /// /// MatId /// [SugarColumn(ColumnDataType = "bigint", IsNullable = false)] public long MatId { get; set; } /// /// MatCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string MatCode { get; set; } /// /// MatName /// [SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)] public string MatName { get; set; } /// /// TolWQty /// [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)] public decimal TolWQty { get; set; } /// /// NetWQty /// [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)] public decimal NetWQty { get; set; } /// /// TareWQty /// [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)] public decimal TareWQty { get; set; } /// /// LengthQty /// [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)] public decimal LengthQty { get; set; } /// /// CaQty /// [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)] public decimal CaQty { get; set; } /// /// SolderQty /// [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = false)] public decimal SolderQty { get; set; } /// /// ContUsageQty /// [SugarColumn(ColumnDataType = "int", IsNullable = false)] public int ContUsageQty { get; set; } /// /// BatchNo /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string BatchNo { get; set; } /// /// ProductTime /// [SugarColumn(ColumnDataType = "datetime", IsNullable = false)] public DateTime ProductTime { get; set; } /// /// OneInTime /// [SugarColumn(ColumnDataType = "datetime", IsNullable = false)] public DateTime OneInTime { get; set; } /// /// RodBarCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string RodBarCode { get; set; } /// /// HWBarCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string HWBarCode { get; set; } /// /// RFIDBarCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string RFIDBarCode { get; set; } /// /// CLBarCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string CLBarCode { get; set; } /// /// HWTypeCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string HWTypeCode { get; set; } /// /// BoilerNo /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string BoilerNo { get; set; } /// /// PackNo /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string PackNo { get; set; } /// /// BrandNo /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string BrandNo { get; set; } /// /// ExecStd /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ExecStd { get; set; } /// /// LicenceCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string LicenceCode { get; set; } /// /// IsSurplus /// [SugarColumn(ColumnDataType = "bit", IsNullable = false)] public bool IsSurplus { get; set; } /// /// IsRework /// [SugarColumn(ColumnDataType = "bit", IsNullable = false)] public bool IsRework { get; set; } /// /// IsBlack /// [SugarColumn(ColumnDataType = "bit", IsNullable = false)] public bool IsBlack { get; set; } /// /// IsCore /// [SugarColumn(ColumnDataType = "bit", IsNullable = false)] public bool IsCore { get; set; } /// /// IsFast /// [SugarColumn(ColumnDataType = "bit", IsNullable = false)] public bool IsFast { get; set; } /// /// IsFail /// [SugarColumn(ColumnDataType = "bit", IsNullable = false)] public bool IsFail { get; set; } /// /// FailReason /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string FailReason { get; set; } /// /// SilkTypeCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string SilkTypeCode { get; set; } /// /// Grade /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string Grade { get; set; } /// /// IsBack /// [SugarColumn(ColumnDataType = "bit", IsNullable = false)] public bool IsBack { get; set; } /// /// BackReason /// [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true)] public string BackReason { get; set; } /// /// IsTorsChk /// [SugarColumn(ColumnDataType = "bit", IsNullable = false)] public bool IsTorsChk { get; set; } /// /// TorsChkQty /// [SugarColumn(ColumnDataType = "int", IsNullable = false)] public int TorsChkQty { get; set; } /// /// TorsChkTime /// [SugarColumn(ColumnDataType = "datetime", IsNullable = false)] public DateTime TorsChkTime { get; set; } /// /// TorsChkValue /// [SugarColumn(ColumnDataType = "decimal", Length = 18, IsNullable = true)] public decimal? TorsChkValue { get; set; } /// /// TorsChkMachCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string TorsChkMachCode { get; set; } /// /// ProcessDocsCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ProcessDocsCode { get; set; } /// /// ProductMachCode /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ProductMachCode { get; set; } /// /// ProductLineNo /// [SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)] public string ProductLineNo { get; set; } /// /// 货物大小 /// [SugarColumn(IsNullable = false)] public int Size { get; set; } } }