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_PurchaseBSTOrder), "BST采购入库单"), ModelValidate]
public class Dt_PurchaseBSTOrder : BaseEntity
{
///
/// 主键
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
public int Id { get; set; }
///
/// 采购收货单来源ID
///
[SugarColumn(IsNullable = false, ColumnDescription = "采购入库单来源ID")]
public int PaperReceiptId { get; set; }
///
/// 采购收货单编号
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "采购入库单编号")]
public string PaperReceiptNo { get; set; }
///
/// 供应商编号
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "供应商编号")]
public string VendNo { get; set; }
///
/// 总采购长度
///
[SugarColumn(IsNullable = false, ColumnDescription = "总采购长度")]
public decimal TotalProcurementLength { get; set; }
///
/// 采购单状态
///
[SugarColumn(IsNullable = false, ColumnDescription = "采购单入库状态")]
public int PurchaseOrderStatus { get; set; }
///
/// 采购收货日期
///
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "采购入库日期")]
public DateTime ReceiptDate { get; set; }
///
/// 备注
///
[SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "备注")]
public string Remark { get; set; }
///
/// 采购列表
///
[Navigate(NavigateType.OneToMany, nameof(Dt_PurchaseBSTOrderDetail.PurchaseBSTOrderId), nameof(Id))]
public List Details { get; set; }
}
}