You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
3.4 KiB
C#

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2024 WenJY
* CLR4.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
{
/// <summary>
/// 成品入库记录ID
///</summary>
[SugarColumn(ColumnName = "product_instock_id", IsPrimaryKey = true, IsIdentity = true)]
public long ProductInstockId { get; set; }
/// <summary>
/// 仓库ID
///</summary>
[SugarColumn(ColumnName = "warehouse_id")]
public long WarehouseId { get => 1; }
/// <summary>
/// 仓库楼层
///</summary>
[SugarColumn(ColumnName = "warehouse_floor")]
public int? WarehouseFloor { get => 2; }
/// <summary>
/// 成品类型2半成品,3成品
///</summary>
[SugarColumn(ColumnName = "product_type")]
public string ProductType { get => "3"; }
/// <summary>
/// 操作类型(0自动,1人工,2强制,3调度);调度,适合双排库自动移库时
///</summary>
[SugarColumn(ColumnName = "operation_type")]
public string OperationType { get => "0"; }
/// <summary>
/// 计划编号,关联pd_base_plan_info的plan_code
///</summary>
[SugarColumn(ColumnName = "plan_code")]
public string PlanCode { get; set; }
/// <summary>
/// 销售订单ID关联销售订单主键
///</summary>
[SugarColumn(ColumnName = "sale_order_id")]
public long? SaleOrderId { get; set; }
/// <summary>
/// 销售订单编号
///</summary>
[SugarColumn(ColumnName = "saleorder_code")]
public string SaleorderCode { get; set; }
/// <summary>
/// 入库类型(1生产入库,2出半成品库,9其他入库)
///</summary>
[SugarColumn(ColumnName = "instock_type")]
public string InstockType { get => "1"; }
/// <summary>
/// 入库数量
///</summary>
[SugarColumn(ColumnName = "instock_amount")]
public decimal? InstockAmount { get => 1; }
/// <summary>
/// 托盘RFID代码
///</summary>
[SugarColumn(ColumnName = "pallet_info_code")]
public string PalletInfoCode { get; set; }
/// <summary>
/// 审核状态(0待审核,1审核通过,2审核未通过)
/// </summary>
[SugarColumn(ColumnName = "audit_status")]
public string AuditStatus { get => "0";}
/// <summary>
/// 执行状态(0待执行,1执行中,2执行完成)
///</summary>
[SugarColumn(ColumnName = "execute_status")]
public string ExecuteStatus { get => "0"; }
}
}