using SqlSugar; using System; using System.Collections.Generic; using System.Text; #region << 版 本 注 释 >> /*-------------------------------------------------------------------- * 版权所有 (c) 2024 WenJY 保留所有权利。 * CLR版本:4.0.30319.42000 * 机器名称:LAPTOP-E0N2L34V * 命名空间:SlnMesnac.Model.domain * 唯一标识:8c0a747f-0ee1-4c2a-957a-95ff8345896f * * 创建者:WenJY * 电子邮箱:wenjy@mesnac.com * 创建时间:2024-04-09 16:17:47 * 版本:V1.0.0 * 描述: * *-------------------------------------------------------------------- * 修改人: * 时间: * 修改说明: * * 版本:V1.0.0 *--------------------------------------------------------------------*/ #endregion << 版 本 注 释 >> namespace SlnMesnac.Model.domain { [SugarTable("wms_product_instock"), TenantAttribute("mes")] public class WmsInstock { /// /// 成品入库记录ID /// [SugarColumn(ColumnName = "product_instock_id", IsPrimaryKey = true, IsIdentity = true)] public long ProductInstockId { get; set; } /// /// 仓库ID /// [SugarColumn(ColumnName = "warehouse_id")] public long WarehouseId { get => 1; } /// /// 仓库楼层 /// [SugarColumn(ColumnName = "warehouse_floor")] public int? WarehouseFloor { get => 2; } /// /// 成品类型(2半成品,3成品) /// [SugarColumn(ColumnName = "product_type")] public string ProductType { get => "3"; } /// /// 操作类型(0自动,1人工,2强制,3调度);调度,适合双排库自动移库时 /// [SugarColumn(ColumnName = "operation_type")] public string OperationType { get => "0"; } /// /// 计划编号,关联pd_base_plan_info的plan_code /// [SugarColumn(ColumnName = "plan_code")] public string PlanCode { 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 string InstockType { get => "1"; } /// /// 入库数量 /// [SugarColumn(ColumnName = "instock_amount")] public decimal? InstockAmount { get => 1; } /// /// 托盘RFID代码 /// [SugarColumn(ColumnName = "pallet_info_code")] public string PalletInfoCode { get; set; } /// /// 审核状态(0待审核,1审核通过,2审核未通过) /// [SugarColumn(ColumnName = "audit_status")] public string AuditStatus { get => "0";} /// /// 执行状态(0待执行,1执行中,2执行完成) /// [SugarColumn(ColumnName = "execute_status")] public string ExecuteStatus { get => "0"; } } }