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.
105 lines
2.7 KiB
105 lines
2.7 KiB
4 years 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_VEND_PART
|
||
|
{
|
||
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||
|
public long UID { get; set; }
|
||
|
[Key]
|
||
|
[Column(Order = 2)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("��Ӧ��������")]
|
||
|
public string VendPartCode { get; set; }
|
||
|
[Key]
|
||
|
[Column(Order = 0)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("��Ӧ�̱���")]
|
||
|
public string VendId { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName("��Ӧ������")]
|
||
|
[JsonIgnore]
|
||
|
public string VenderName => WmsCache.GetVenderName(VendId);
|
||
|
|
||
|
[NotMapped]
|
||
|
[DisplayName("��Ӧ�����ֶ���")]
|
||
|
[JsonIgnoreAttribute]
|
||
|
public string VendAbbCode => WmsCache.GetVendAbbr(VendId);
|
||
|
|
||
|
[Key]
|
||
|
[Column(Order = 1)]
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("���Ϻ�")]
|
||
|
public string PartCode { get; set; }
|
||
|
|
||
|
[NotMapped]
|
||
|
[JsonIgnoreAttribute]
|
||
|
[DisplayName("����һ")]
|
||
|
public string PartDesc1 => WmsCache.GetPartDesc1(PartCode);
|
||
|
|
||
|
[NotMapped]
|
||
|
[JsonIgnoreAttribute]
|
||
|
[DisplayName("������")]
|
||
|
public string PartDesc2 => WmsCache.GetPartDesc2(PartCode);
|
||
|
|
||
|
|
||
|
[DisplayName("��Ӧ�̱�����")]
|
||
|
public decimal VendPackQty { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("�ɹ���λ")]
|
||
|
public string PoUnit { get; set; }
|
||
|
|
||
|
[DisplayName("״̬")]
|
||
|
public int State { get; set; }
|
||
|
|
||
|
[StringLength(500)]
|
||
|
[DisplayName("��ע")]
|
||
|
public string Remark { get; set; }
|
||
|
|
||
|
public TA_VEND_PART_S ToS()
|
||
|
{
|
||
|
return new TA_VEND_PART_S
|
||
|
{
|
||
|
VendPartCode = VendPartCode,
|
||
|
VendId = VendId,
|
||
|
PartCode= PartCode,
|
||
|
VendPackQty= VendPackQty,
|
||
|
PoUnit= PoUnit,
|
||
|
State= State,
|
||
|
Remark= Remark,
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
public partial class TA_VEND_PART_S
|
||
|
{
|
||
|
|
||
|
[DisplayName("��Ӧ��������")]
|
||
|
public string VendPartCode { get; set; }
|
||
|
|
||
|
[DisplayName("��Ӧ�̱���")]
|
||
|
public string VendId { get; set; }
|
||
|
|
||
|
[DisplayName("���Ϻ�")]
|
||
|
public string PartCode { get; set; }
|
||
|
|
||
|
[DisplayName("��Ӧ�̱�����")]
|
||
|
public decimal VendPackQty { get; set; }
|
||
|
|
||
|
[StringLength(50)]
|
||
|
[DisplayName("�ɹ���λ")]
|
||
|
public string PoUnit { get; set; }
|
||
|
|
||
|
[DisplayName("״̬")]
|
||
|
public int State { get; set; }
|
||
|
|
||
|
[StringLength(500)]
|
||
|
[DisplayName("��ע")]
|
||
|
public string Remark { get; set; }
|
||
|
}
|
||
|
}
|