using SqlSugar; using System; using System.Collections.Generic; using System.Security.Principal; using System.Text; namespace SlnMesnac.Model.domain { [SugarTable("wms_product_instock"), TenantAttribute("mes")] public class WmsProductInstock { [SugarColumn(ColumnName = "product_instock_id", IsPrimaryKey = true, IsIdentity = true)] public long productInstockId { get; set; } /// /// 任务编号 /// [SugarColumn(ColumnName = "task_code")] public string taskCode { get; set; } /// /// 仓库ID /// [SugarColumn(ColumnName = "warehouse_id")] public long warehouseId { get; set; } /// /// 仓库楼层 /// [SugarColumn(ColumnName = "warehouse_floor")] public int? warehouseFloor { get; set; } /// /// 库位编码 /// [SugarColumn(ColumnName = "location_code")] public string locationCode { get; set; } /// /// 成品类型(2半成品,3成品) /// [SugarColumn(ColumnName = "product_type")] public char productType { get; set; } /// /// 操作类型(0自动,1人工,2强制,3调度) /// [SugarColumn(ColumnName = "operation_type")] public char operationType { get; set; } /// /// 计划编号,关联pd_base_plan_info的plan_code /// [SugarColumn(ColumnName = "plan_code")] public string planCode { get; set; } /// /// 计划明细编号,关联pd_base_plan_detail的plan_detail_code /// [SugarColumn(ColumnName = "plan_detail_code")] public string planDetailCode { get; set; } /// /// 销售订单ID,关联销售订单主键 /// [SugarColumn(ColumnName = "sale_order_id")] public long? saleOrderId { get; set; } /// /// 销售订单编号 /// [SugarColumn(ColumnName = "saleorder_code")] public string saleorderCode { get; set; } /// /// 入库类型(1生产入库,2出半成品库,9其他入库) /// [SugarColumn(ColumnName = "instock_type")] public char instockType { get; set; } /// /// 成品ID /// [SugarColumn(ColumnName = "product_id")] public long? productId { get; set; } /// /// 存成品条码 /// [SugarColumn(ColumnName = "product_batch")] public string productBatch { get; set; } /// /// 入库数量 /// [SugarColumn(ColumnName = "instock_amount")] public decimal? instockAmount { get; set; } /// /// 托盘RFID代码 /// [SugarColumn(ColumnName = "pallet_info_code")] public string palletInfoCode { get; set; } /// /// 申请原因 /// [SugarColumn(ColumnName = "apply_reason")] public string applyReason { get; set; } /// /// 审核原因 /// [SugarColumn(ColumnName = "audit_reason")] public string auditReason { get; set; } /// /// 审核状态(0待审核,1审核通过,2审核未通过) /// [SugarColumn(ColumnName = "audit_status")] public char auditStatus { get; set; } /// /// 执行状态(0待执行,1执行中,2执行完成) /// [SugarColumn(ColumnName = "execute_status")] public char executeStatus { get; set; } /// /// 申请人 /// [SugarColumn(ColumnName = "apply_by")] public string applyBy { get; set; } /// /// 申请时间 /// [SugarColumn(ColumnName = "apply_date")] public DateTime? applyDate { get; set; } /// /// 审核人 /// [SugarColumn(ColumnName = "audit_by")] public string auditBy { get; set; } /// /// 审核时间 /// [SugarColumn(ColumnName = "audit_date")] public DateTime? auditDate { get; set; } /// /// 同步ERP状态(0:失败,1成功) /// [SugarColumn(ColumnName = "erp_status")] public char? erpStatus { get; set; } /// /// 同步给ERP的数量 /// [SugarColumn(ColumnName = "erp_amount")] public decimal? erpAmount { get; set; } /// /// 最后更新人 /// [SugarColumn(ColumnName = "update_by")] public string updateBy { get; set; } /// /// 最后更新时间 /// [SugarColumn(ColumnName = "update_date")] public DateTime? updateDate { get; set; } /// /// 开始时间;AGV处理开始时间 /// [SugarColumn(ColumnName = "begin_time")] public DateTime? beginTime { get; set; } /// /// 结束时间;AGV处理结束时间 /// [SugarColumn(ColumnName = "end_time")] public DateTime? endTime { get; set; } } }