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