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.
132 lines
3.3 KiB
132 lines
3.3 KiB
4 years ago
|
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()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|