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.

124 lines
3.4 KiB

4 years ago
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; }
1 year ago
4 years ago
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; }
4 years ago
public string Extend1 { get; set; }
public string Extend2 { get; set; }
1 year ago
public string Extend3 { get; set; }
4 years ago
4 years ago
[DisplayName("��Ӧ������")]
4 years ago
public string VendName => ScpCache.GetVendName(VendId,Site);
[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 ? "��ɨ��" : "δɨ��";
4 years ago
[NotMapped]
public decimal CanQty { get; set; }
1 year ago
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; }
4 years ago
}
}