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.
 
 
 
 
 

104 lines
2.7 KiB

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; }
}
}