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.
218 lines
6.1 KiB
218 lines
6.1 KiB
1 year ago
|
using System;
|
||
|
using System.ComponentModel;
|
||
|
using System.ComponentModel.DataAnnotations;
|
||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
using ChangKeTec.Wms.Models.Enums;
|
||
|
|
||
|
|
||
|
namespace ChangKeTec.Wms.Models.Wms
|
||
|
{
|
||
|
public partial class TS_BARCODE
|
||
|
{
|
||
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||
|
public long UID { get; set; }
|
||
|
|
||
|
[Key]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("����")]
|
||
|
public string BarCode { get; set; }
|
||
|
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "���Ϻ�")]
|
||
|
public string PartCode { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
|
||
|
[DisplayName( "��������")]
|
||
|
public string PartDesc => WmsCache.GetPartDesc(PartCode);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "����һ")]
|
||
|
public string PartDesc1 => WmsCache.GetPartDesc1(PartCode);
|
||
|
[NotMapped]
|
||
|
[DisplayName( "������")]
|
||
|
public string PartDesc2 => WmsCache.GetPartDesc2(PartCode);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "ERP���Ϻ�")]
|
||
|
public string ErpPartCode => WmsCache.GetErpPartCode(PartCode);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "��Ŀ����")]
|
||
|
public string ProjectId => WmsCache.GetProjectId(PartCode);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "��λ")]
|
||
|
public string Unit => WmsCache.GetUnit(PartCode);
|
||
|
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "��Ӧ�����Ϻ�")]
|
||
|
public string VendPartCode { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "�ͻ����Ϻ�")]
|
||
|
public string CustPartCode { get; set; }
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "����")]
|
||
|
public string Batch { get; set; }
|
||
|
|
||
|
[DisplayName( "��������")]
|
||
|
public EnumManageType ManageType { get; set; }
|
||
|
|
||
|
[DisplayName( "��������")]
|
||
|
public DateTime ProduceDate { get; set; } = DateTime.Now.Date;
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("��ˮ��")]
|
||
|
public string SerialNum { get; set; } = "";
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName( "����")]
|
||
|
public decimal Qty { get; set; }
|
||
|
|
||
|
[DisplayName( "��������")]
|
||
|
public int BarCodeType { get; set; }
|
||
|
|
||
|
[DisplayName( "��������")]
|
||
|
public string PartType => WmsCache.GetPartType(PartCode);
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "��������")]
|
||
|
public string PartKind => WmsCache.GetPartKind(PartCode);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "������")]
|
||
|
public string PartGroup => WmsCache.GetPartGroup(PartCode);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "������Ϣ")]
|
||
|
public string Configuration => WmsCache.GetConfigration(PartCode);
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(500)]
|
||
|
[DisplayName( "����������Ϣ")]
|
||
|
public string FullBarCode { get; set; }
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("���ݺ�")]
|
||
|
public string BillNum { get; set; } = "";
|
||
|
|
||
|
[DisplayName("������")]
|
||
|
public int BillLine { get; set; } = 1;
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("��Ӧ�̱���")]
|
||
|
public string VendId { get; set; } = "";
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "��Ӧ������")]
|
||
|
public string VendName => WmsCache.GetVenderName(VendId);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "������")]
|
||
|
public string LineName => WmsCache.GetWorkLineName(VendId);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "�ͻ�����")]
|
||
|
public string CustName => WmsCache.GetCustName(VendId);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "�ҷ�����")]
|
||
|
public string SelfCode => WmsCache.GetSelfCode(VendId);
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "��Ӧ������")]
|
||
|
public string VendBatch { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "�����")]
|
||
|
public string ShiftId { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "����")]
|
||
|
public string ShiftName => WmsCache.GetShiftName(ShiftId);
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "��������")]
|
||
|
public string TeamId { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName( "����")]
|
||
|
public string TeamName => WmsCache.GetTeamName(TeamId);
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "���߱���")]
|
||
|
public string EqptCode { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "��������")]
|
||
|
public string EqptType { get; set; }
|
||
|
|
||
|
[DisplayName( "������")]
|
||
|
public decimal PackQty { get; set; }
|
||
|
|
||
|
[DisplayName( "����ʱ��")]
|
||
|
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||
|
|
||
|
[Required(AllowEmptyStrings = true)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName( "������")]
|
||
|
public string CreateOper { get; set; }
|
||
|
|
||
|
[DisplayName( "����ʱ��")]
|
||
|
public DateTime UpdateTime { get; set; } = DateTime.Now;
|
||
|
|
||
|
[Column(TypeName = "money")]
|
||
|
[DisplayName( "��������")]
|
||
|
public decimal UpdateQty { get; set; }
|
||
|
|
||
|
[DisplayName( "��ӡ����")]
|
||
|
public int PrintCount { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
public string QLevel { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
public string Process { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
public string CertificateOfQuality { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
public string DeliverDest { get; set; }
|
||
|
|
||
|
[DisplayName( "״̬")]
|
||
|
public int State { get; set; }
|
||
|
|
||
|
[StringLength(500)]
|
||
|
[DisplayName( "��ע")]
|
||
|
public string Remark { get; set; }
|
||
|
|
||
|
//[NotMapped]
|
||
|
//[DisplayName("��λ2")]
|
||
|
//public string Unit2 => WmsCache.GetUnit2(PartCode);
|
||
|
|
||
|
//[NotMapped]
|
||
|
//[DisplayName("ת����")]
|
||
|
//public decimal Conversion => WmsCache.GetConversion(PartCode);
|
||
|
|
||
|
//[NotMapped]
|
||
|
//[DisplayName("����2")]
|
||
|
//public decimal Qty2 =>(Conversion == 1? Qty : Math.Round(Qty / Conversion,1,MidpointRounding.AwayFromZero));
|
||
|
|
||
|
//[NotMapped]
|
||
|
//[DisplayName("����Ա")]
|
||
|
//public string Inspecter => WmsCache.GetPartInspecter(PartCode);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|