You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

131 lines
3.3 KiB

using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
//using ChangKeTec.Utils;
using ChangKeTec.Wms.Models.Enums;
using CK.SCP.Utils;
namespace ChangKeTec.Wms.Models.Wms
{
public partial class TB_BILL
{
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
[Display(AutoGenerateField = false)]
[ScaffoldColumn(false)]
public int UID { get; set; }
[NotMapped]
public string => ((EnumBillState) State).ToString();
[Key]
[StringLength(50)]
[DisplayName("单据编号")]
public string BillNum { get; set; } = "";
[StringLength(50)]
[DisplayName("原始单据")]
public string SourceBillNum { get; set; } = "";
[StringLength(50)]
[DisplayName("原始单据2")]
public string SourceBillNum2 { get; set; } = "";
[StringLength(50)]
[DisplayName("原始单据3")]
public string SourceBillNum3 { get; set; } = "";
[DisplayName("单据类型")]
[NotMapped]
public string BillTypeName => EnumHelper.GetDesc(BillType);
[DisplayName("单据子类型")]
[NotMapped]
public string SubBillTypeName => SubBillType.ToString();
[DisplayName("单据时间")]
public DateTime BillTime { get; set; }
[StringLength(50)]
[DisplayName("开始时间")]
public string StartTime { get; set; }
[StringLength(50)]
[DisplayName("结束时间")]
public string FinishTime { get; set; }
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
[DisplayName("操作员")]
public string OperName { get; set; }
[DisplayName("明细数量")]
public int DetailQty { get; set; }
[StringLength(50)]
[DisplayName("供应商编号")]
public string VendId { get; set; }
[NotMapped]
[DisplayName("供应商名称")]
public string VendName => WmsCache.GetVenderName(VendId);
[StringLength(50)]
[DisplayName("客户编号")]
public string CustId { get; set; }
[NotMapped]
[DisplayName("客户名称")]
public string CustName => WmsCache.GetCustName(CustId);
[StringLength(50)]
[DisplayName("项目编号")]
public string ProjectId { get; set; }
[StringLength(50)]
[DisplayName("运输方式")]
public string TransportType { get; set; }
[StringLength(50)]
[DisplayName("车牌号")]
public string TruckNum { get; set; }
[StringLength(50)]
[DisplayName("到货门编号")]
public string GateCode { get; set; }
[StringLength(50)]
[DisplayName("到货门名称")]
public string GateName { get; set; }
[StringLength(50)]
[DisplayName("到货口编号")]
public string DockCode { get; set; }
[DisplayName("备注")]
public string Remark { get; set; }
public EnumBillState State { get; set; }
public EnumBillType BillType { get; set; }
public EnumSubBillType SubBillType { get; set; }
public Guid GUID { get; set; } = Guid.NewGuid();
public TB_BILL()
{
}
}
}