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.

133 lines
3.6 KiB

1 year ago
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace ChangKeTec.Wms.Models.Wms
{
public partial class TA_CUST_PART
{
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
public int UID { get; set; }
[Key]
[Column(Order = 0)]
[StringLength(50)]
[DisplayName("�ͻ�����")]
public string CustId { get; set; }
[NotMapped]
[JsonIgnore]
[DisplayName("�ͻ�����")]
public string CustName => WmsCache.GetCustName(CustId);
[Key]
[Column(Order = 1)]
[StringLength(50)]
[DisplayName("�ͻ����Ϻ�")]
public string CustPartCode { get; set; }
[StringLength(200)]
[DisplayName("�ͻ���������")]
public string CustPartName { get; set; }
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
[DisplayName("���Ϻ�")]
public string PartCode { get; set; }
[NotMapped]
[JsonIgnoreAttribute]
[DisplayName("ERP���Ϻ�")]
public string ErpPartCode => WmsCache.GetErpPartCode(PartCode);
[NotMapped]
[JsonIgnoreAttribute]
[DisplayName("����һ")]
public string PartDesc1 => WmsCache.GetPartDesc1(PartCode);
[NotMapped]
[JsonIgnoreAttribute]
[DisplayName("������")]
public string PartDesc2 => WmsCache.GetPartDesc2(PartCode);
[NotMapped]
[JsonIgnoreAttribute]
[DisplayName("��Ŀ����")]
public string ProjectId => WmsCache.GetProjectId(PartCode);
[NotMapped]
[JsonIgnoreAttribute]
[DisplayName("��λ")]
public string Unit => WmsCache.GetUnit(PartCode);
[NotMapped]
[JsonIgnoreAttribute]
[DisplayName("��������")]
public string PartType => WmsCache.GetPartType(PartCode);
[NotMapped]
[JsonIgnoreAttribute]
[DisplayName("��������")]
public string PartKind => WmsCache.GetPartKind(PartCode);
[DisplayName("�ͻ�������")]
public decimal CustPackQty { get; set; }
[StringLength(50)]
[DisplayName("�ͻ����̳ߴ�")]
public string CustPalletSize { get; set; }
[Column(TypeName = "money")]
[DisplayName("�ͻ���������")]
public decimal CustPalletCapacity { get; set; }
[DisplayName("�ͻ���������")]
public int CustPalletQty { get; set; }
[DisplayName("״̬")]
public int State { get; set; }
[StringLength(500)]
[DisplayName("��ע")]
public string Remark { get; set; }
public TA_CUST_PART_S ToS()
{
return new TA_CUST_PART_S
{
CustId = CustId,
CustPartCode = CustPartCode,
CustPartName = CustPartName,
PartCode = PartCode,
CustPackQty = CustPackQty,
State = State,
Remark = Remark,
};
}
}
public partial class TA_CUST_PART_S
{
[Key]
public string CustId { get; set; }
[Key]
[DisplayName("�ͻ����Ϻ�")]
public string CustPartCode { get; set; }
[DisplayName("�ͻ���������")]
public string CustPartName { get; set; }
[DisplayName("���Ϻ�")]
public string PartCode { get; set; }
[DisplayName("�ͻ�������")]
public decimal CustPackQty { get; set; }
[DisplayName("״̬")]
public int State { get; set; }
[DisplayName("��ע")]
public string Remark { get; set; }
}
}