using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Attributes;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models
{
///
/// BST采购入库单明细
///
[SugarTable(nameof(Dt_PurchaseBSTOrderDetail), "BST采购入库单明细"), ModelValidate]
public class Dt_PurchaseBSTOrderDetail : BaseEntity
{
///
/// 主键
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
public int Id { get; set; }
///
/// 头表主键
///
[SugarColumn(IsNullable = false, ColumnDescription = "头表主键")]
public int PurchaseBSTOrderId { get; set; }
///
/// 采购收货单来源ID
///
[SugarColumn(IsNullable = false, ColumnDescription = "采购单来源ID")]
public int PaperReceiptId { get; set; }
///
/// 物料条码
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料条码")]
public string Barcode { get; set; }
///
/// 物料来源ID(上游)
///
[SugarColumn(IsNullable = false, ColumnDescription = "物料来源ID(上游)")]
public int MaterialId { get; set; }
///
/// 物料编号
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编号")]
public string MaterialNo { get; set; }
///
/// 批次序列号
///
[SugarColumn(IsNullable = false, ColumnDescription = "批次序列号")]
public int SeqNo { get; set; }
///
/// 幅宽
///
[SugarColumn(IsNullable = false, ColumnDescription = "幅宽")]
public decimal MaterialWide { get; set; }
///
/// 厚度
///
[SugarColumn(IsNullable = false, ColumnDescription = "厚度")]
public decimal MaterialThick { get; set; }
///
/// 采购长度
///
[SugarColumn(IsNullable = false, ColumnDescription = "采购长度")]
public decimal ProcurementLength { get; set; }
///
/// 采购交货数量
///
[SugarColumn(IsNullable = false, ColumnDescription = "采购交货数量")]
public decimal DeliveryQty { get; set; }
///
/// 采购单明细状态
///
[SugarColumn(IsNullable = false, ColumnDescription = "采购入库单明细状态")]
public int PurchaseBSTOrderDetailStatus { get; set; }
///
/// 单位
///
[SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "单位")]
public string Unit { get; set; }
///
/// 物料名称
///
[SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "物料名称")]
public string MaterielName { get; set; }
}
}