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.
 
 
 
 
 

123 lines
3.6 KiB

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CK.SCP.Models.ScpEntity
{
public partial class TS_BARCODE
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long UID { get; set; }
[StringLength(50)]
public string BarCode { get; set; }
[Required]
[StringLength(500)]
public string FullBarCode { get; set; }
[Required]
[StringLength(50)]
public string PartCode { get; set; }
[StringLength(50)]
public string VendPartCode { get; set; }
[Required]
[StringLength(50)]
public string Batch { get; set; }
[Column(TypeName = "datetime2")]
public DateTime ProduceDate { get; set; }
public int ManageType { get; set; }
[Required]
[StringLength(50)]
public string SerialNum { get; set; }
[Column(TypeName = "money")]
public decimal Qty { get; set; }
public int BarCodeType { get; set; }
[Required]
[StringLength(50)]
public string BillNum { get; set; }
public int PoBillLine { get; set; }
[StringLength(50)]
public string VendId { get; set; }
public string VendBatch { get; set; }
[Column(TypeName = "money")]
public decimal PackQty { get; set; }
[Required]
[StringLength(50)]
public string CreateOper { get; set; }
public DateTime CreateTime { get; set; }
public int State { get; set; }
[StringLength(500)]
public string Remark { get; set; }
public string PoUnit { get; set; }
public string LocUnit { get; set; }
public string Site { get; set; }
public string Qlevel { get; set; }
public string QMark { get; set; }
public string ProjectId { get; set; }
public string PoBillNum { get; set; }
public string Extend1 { get; set; }
public string Extend2 { get; set; }
public string Extend3 { get; set; }
[DisplayName("��Ӧ������")]
public string VendName => string.IsNullOrEmpty(OtherVendName)? ScpCache.GetVendName(VendId,Site): OtherVendName;
[DisplayName("��Ӧ�̱���")]
public string OtherVendName { get; set; }
[DisplayName("��������")]
public string PartDesc => ScpCache.GetPartDesc1(PartCode,Site);
[DisplayName("��������")]
public string PartName => ScpCache.GetPartDesc1(PartCode,Site);
[NotMapped]
public List<long> UIDList { get; set; }
[DisplayName("�Ƿ�ɨ��")]
public bool IsScanned { get; set; }
[DisplayName("�Ƿ�ɨ��")]
[NotMapped]
public string IsScanned_Desc => IsScanned ? "��ɨ��" : "δɨ��";
[NotMapped]
public decimal CanQty { get; set; }
public string Extend4 { get; set; }
public string Extend5 { get; set; }
public DateTime Extend6 { get; set; }
public string Extend7 { get; set; }
public string Extend8 { get; set; }
public string Extend9 { get; set; }
public string Extend10{ get; set; }
public string Extend11 { get; set; }
public string Extend12 { get; set; }
public DateTime Extend13 { get; set; }
public string Extend14 { get; set; }
public string Extend15 { get; set; }
public string Extend16 { get; set; }
public string PalletNum { get; set; }
}
}