using Magicodes.ExporterAndImporter.Core;
|
using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEA_Core.DB.Models;
|
|
namespace WIDESEA_Model.Models
|
{
|
[SugarTable(nameof(Dt_Inventory_Batch), "库存批次信息")]
|
public class Dt_Inventory_Batch : BaseEntity
|
{
|
/// <summary>
|
/// 主键
|
/// </summary>
|
[ImporterHeader(Name = "主键")]
|
[ExporterHeader(DisplayName = "主键")]
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
|
public int Id { get; set; }
|
|
/// <summary>
|
/// 物料编号
|
/// </summary>
|
[ImporterHeader(Name = "物料编号")]
|
[ExporterHeader(DisplayName = "物料编号")]
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编号")]
|
public string MaterielCode { get; set; }
|
|
/// <summary>
|
/// 物料名称
|
/// </summary>
|
[ImporterHeader(Name = "物料名称")]
|
[ExporterHeader(DisplayName = "物料名称")]
|
[SugarColumn(IsNullable = false, Length = 200, ColumnDescription = "物料名称")]
|
public string MaterielName { get; set; }
|
|
/// <summary>
|
/// 批次号
|
/// </summary>
|
[ImporterHeader(Name = "批次号")]
|
[ExporterHeader(DisplayName = "批次号")]
|
[SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "批次号")]
|
public string BatchNo { get; set; }
|
|
/// <summary>
|
/// 产品状态
|
/// </summary>
|
[ImporterHeader(Name = "产品状态")]
|
[ExporterHeader(DisplayName = "产品状态")]
|
[SugarColumn(IsNullable = false, ColumnDescription = "产品状态", DefaultValue = "1")]
|
public int ProductStatus { get; set; }
|
|
/// <summary>
|
/// 箱数
|
/// </summary>
|
[ImporterHeader(Name = "箱数")]
|
[ExporterHeader(DisplayName = "箱数")]
|
[SugarColumn(IsNullable = false, ColumnDescription = "箱数", DefaultValue = "40")]
|
public int BoxQuantity { get; set; }
|
|
/// <summary>
|
/// 库存袋数
|
/// </summary>
|
[ImporterHeader(Name = "库存袋数")]
|
[ExporterHeader(DisplayName = "库存袋数")]
|
[SugarColumn(IsNullable = false, ColumnDescription = "库存袋数", DefaultValue = "320")]
|
public int StockQuantity { get; set; }
|
|
/// <summary>
|
/// 出库袋数
|
/// </summary>
|
[ImporterHeader(Name = "出库袋数")]
|
[ExporterHeader(DisplayName = "出库袋数")]
|
[SugarColumn(IsNullable = false, ColumnDescription = "出库袋数", DefaultValue = "0")]
|
public int OutboundQuantity { get; set; }
|
|
/// <summary>
|
/// 生产日期
|
/// </summary>
|
[ImporterHeader(Name = "生产日期")]
|
[ExporterHeader(DisplayName = "生产日期")]
|
[SugarColumn(IsNullable = true, ColumnDescription = "生产日期")]
|
public string ProductionDate { get; set; }
|
|
/// <summary>
|
/// 保质期
|
/// </summary>
|
[ImporterHeader(Name = "保质期")]
|
[ExporterHeader(DisplayName = "保质期")]
|
[SugarColumn(IsNullable = false, ColumnDescription = "保质期")]
|
public int ShelfLife { get; set; }
|
|
/// <summary>
|
/// 有效期至
|
/// </summary>
|
[ImporterHeader(Name = "有效期至")]
|
[ExporterHeader(DisplayName = "有效期至")]
|
[SugarColumn(IsNullable = true, ColumnDescription = "有效期至")]
|
public string ValidityPeriod { get; set; }
|
|
/// <summary>
|
/// 合格证号
|
/// </summary>
|
[ImporterHeader(Name = "合格证号")]
|
[ExporterHeader(DisplayName = "合格证号")]
|
[SugarColumn(IsNullable = true, ColumnDescription = "合格证号")]
|
public string CertificateNumber { get; set; }
|
|
/// <summary>
|
/// 备注
|
/// </summary>
|
[ImporterHeader(Name = "备注")]
|
[ExporterHeader(DisplayName = "备注")]
|
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
|
public string Remark { get; set; }
|
}
|
}
|