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#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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
{
/// <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"; }
}
}