using SqlSugar; namespace NewPdaSqlServer.entity; /// /// 物料入库主表 /// [SugarTable("MES_INV_ITEM_INS")] public class MesInvItemIns { /// /// ID(SEQ_INV_ID) /// 默认值: (newid()) /// [SugarColumn(ColumnName = "GUID", IsPrimaryKey = true)] public Guid Guid { get; set; } /// /// 入库单号 /// [SugarColumn(ColumnName = "BILL_NO")] public string? BillNo { get; set; } /// /// 状态|0-未审核1-审核入库\\结案 /// 默认值: ((0)) /// [SugarColumn(ColumnName = "STATUS")] public byte? Status { get; set; } /// /// 仓库 /// [SugarColumn(ColumnName = "DEPOTS_ID")] public long? DepotsId { get; set; } /// /// 原因 /// [SugarColumn(ColumnName = "REASON")] public string? Reason { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "CREATE_BY")] public string? CreateBy { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "CREATE_DATE")] public DateTime? CreateDate { get; set; } /// /// 最后更新人 /// [SugarColumn(ColumnName = "LASTUPDATE_BY")] public string? LastupdateBy { get; set; } /// /// 最后更新时间 /// [SugarColumn(ColumnName = "LASTUPDATE_DATE")] public DateTime? LastupdateDate { get; set; } /// /// 单据类型ID /// [SugarColumn(ColumnName = "BILL_TYPE_ID")] public long? BillTypeId { get; set; } /// /// 事务类型ID /// [SugarColumn(ColumnName = "TRANSACTION_ID")] public long? TransactionId { get; set; } /// /// 备注 /// [SugarColumn(ColumnName = "REMARK")] public string? Remark { get; set; } /// /// 送货单号 /// [SugarColumn(ColumnName = "PAPER_BILL_NO")] public string? PaperBillNo { get; set; } /// /// 退料人工号 /// [SugarColumn(ColumnName = "USER_NO_BACK")] public string? UserNoBack { get; set; } /// /// 审核人 /// [SugarColumn(ColumnName = "CHECK_USER")] public string? CheckUser { get; set; } /// /// [SugarColumn(ColumnName = "CHECK_DATE")] public DateTime? CheckDate { get; set; } /// /// 入库单对应的申请单号(没有申请流程的就为空) /// [SugarColumn(ColumnName = "TASK_NO")] public string? TaskNo { get; set; } /// /// [SugarColumn(ColumnName = "INS_DATE")] public DateTime? InsDate { get; set; } /// /// [SugarColumn(ColumnName = "CHECK_RES")] public string? CheckRes { get; set; } /// /// [SugarColumn(ColumnName = "CHECK_QTY")] public long? CheckQty { get; set; } /// /// [SugarColumn(ColumnName = "MMLIST")] public string? Mmlist { get; set; } /// /// [SugarColumn(ColumnName = "EBELN")] public string? Ebeln { get; set; } /// /// [SugarColumn(ColumnName = "DEPOTS_CODE")] public string? DepotsCode { get; set; } /// /// [SugarColumn(ColumnName = "TRANSCTION_NO")] public string? TransctionNo { get; set; } /// /// [SugarColumn(ColumnName = "SUPP_NO")] public string? SuppNo { get; set; } /// /// 状态 | 0-未审核 1-审核入库/结案 /// 默认值: ((0)) /// [SugarColumn(ColumnName = "FSTATUS")] public byte? Fstatus { get; set; } /// /// [SugarColumn(ColumnName = "FACTORY")] public string? Factory { get; set; } /// /// 默认值: ((0)) /// [SugarColumn(ColumnName = "SAPSTATUS")] public byte? Sapstatus { get; set; } /// /// [SugarColumn(ColumnName = "SAPNO")] public string? Sapno { get; set; } /// /// [SugarColumn(ColumnName = "SAPYEAR")] public short? Sapyear { get; set; } /// /// [SugarColumn(ColumnName = "SAPTEXT")] public string? Saptext { get; set; } /// /// [SugarColumn(ColumnName = "ISCHECK")] public byte? Ischeck { get; set; } /// /// [SugarColumn(ColumnName = "INSBY")] public string? Insby { get; set; } /// /// 默认值: ((0)) /// [SugarColumn(ColumnName = "IS_VISUAL")] public byte? IsVisual { get; set; } /// /// [SugarColumn(ColumnName = "COMPANY")] public string? Company { get; set; } /// /// 默认值: ((0)) /// [SugarColumn(ColumnName = "URGENT_FLAG")] public string? UrgentFlag { get; set; } /// /// [SugarColumn(ColumnName = "LINE_NO")] public string? LineNo { get; set; } /// /// 冲销事务类型编码 /// [SugarColumn(ColumnName = "MTTRANSCTION_NO")] public long? MttransctionNo { get; set; } /// /// 工单行号 /// [SugarColumn(ColumnName = "TASK_LINO")] public string? TaskLino { get; set; } /// /// 投料通知单单号 /// [SugarColumn(ColumnName = "FBILLNO")] public string? Fbillno { get; set; } /// /// 投料单行号 /// [SugarColumn(ColumnName = "FBILL_LINO")] public string? FbillLino { get; set; } /// /// 客户编号 /// [SugarColumn(ColumnName = "CUST_NO")] public string? CustNo { get; set; } /// /// 客户名称 /// [SugarColumn(ColumnName = "CUST_NAME")] public string? CustName { get; set; } /// /// IQC检验单号 /// [SugarColumn(ColumnName = "IQC_RELEASE_NO")] public string? IqcReleaseNo { get; set; } /// /// 入库单的相关单号(生产相关存 指令单号 -1,采购相关的存到货单号) /// [SugarColumn(ColumnName = "CBILL_NO")] public string? CbillNo { get; set; } /// /// 0 申请单,1入库单标识 /// 默认值: ((0)) /// [SugarColumn(ColumnName = "PICK_INS")] public byte? PickIns { get; set; } /// /// 入库审核人 /// [SugarColumn(ColumnName = "FCHECK_USER")] public string? FcheckUser { get; set; } /// /// 入库审核日期 /// [SugarColumn(ColumnName = "FCHECK_DATE")] public DateTime? FcheckDate { get; set; } /// /// 任务汇报单/工单号(成品入库、退料) /// [SugarColumn(ColumnName = "RBILL_NO")] public string? RbillNo { get; set; } /// /// 报工人 /// [SugarColumn(ColumnName = "BGR")] public string? Bgr { get; set; } /// /// [SugarColumn(ColumnName = "SUPP_ID")] public string? SuppId { get; set; } /// /// 收料组织 /// [SugarColumn(ColumnName = "ReceiveOrgId")] public string? ReceiveOrgId { get; set; } /// /// 入库单的相关单号(生产相关存 指令单号 -1,采购相关的存到货单号) /// [SugarColumn(ColumnName = "work_no")] public string? WorkNo { get; set; } /// /// 入库类别(事务类型名称) /// [SugarColumn(ColumnName = "in_type")] public string? InType { get; set; } //在数据库查询时忽略这个字段 [SugarColumn(IsIgnore = true)] public string? DepotName { get; set; } [SugarColumn(IsIgnore = true)] public string? SuppName { get; set; } }