using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using ChangkeTec.SDMS.Model.Attributes; using ChangkeTec.SDMS.Model.Base; namespace ChangkeTec.SDMS.Model.DataCenterTables { [Description("地点表")] public class TS_SITE : IUpdatableTable, ISoftDelete { [Required(ErrorMessage = "代码不能为空")] [Index("IndexSite", Order = 0, IsUnique = true, IsClustered = false)] [IsDataGridColum(true, 1)] [Description("地点代码")] [StringLength(50)] public string Site { get; set; } [IsDataGridColum(true, 2)] [Description("描述")] [StringLength(50)] public string Desc { get; set; } [IsDataGridColum(true, 3)] [Description("域")] [StringLength(50)] public string Domain { get; set; } [IsDataGridColum(true, 4)] [Description("会计单位")] [StringLength(50)] public string Entity { get; set; } [IsDataGridColum(true, 5)] [Description("库存状态")] [StringLength(50)] public string Status { get; set; } [IsDataGridColum(true, 6)] [Description("自动生成库位")] public bool AutoLocation { get; set; } [IsDataGridColum(true, 7)] [Description("检验库位")] [StringLength(50)] public string InspLocation { get; set; } [IsDataGridColum(true, 8)] [Description("EMT供应商")] [StringLength(50)] public string BtbSupplier { get; set; } [IsDataGridColum(true, 9)] [Description("外部供应商")] public bool ExtSupplier { get; set; } [IsDataGridColum(true, 10)] [Description("转移差异科目")] [StringLength(50)] public string XferAcct { get; set; } [IsDataGridColum(true, 11)] [Description("转移差异分账户")] [StringLength(50)] public string XferSub { get; set; } [IsDataGridColum(true, 12)] [Description("转移差异成本中心")] [StringLength(50)] public string XferCc { get; set; } [IsDataGridColum(true, 13)] [Description("PO运输库位")] [StringLength(50)] public string GitLocation { get; set; } [IsDataGridColum(true, 14)] [Description("使用计划/调度的工作台")] public bool UsePlanSchedWbs { get; set; } [Key] public Guid GUID { get; set; } = Guid.NewGuid(); [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int UID { get; set; } [IsDataGridColum(true, 15)] [Description("创建人")] [StringLength(50)] public string CreateUser { get; set; } [IsDataGridColum(true, 16)] [Description("创建时间")] public DateTime CreateTime { get; set; } [IsDataGridColum(true, 17)] [Description("备注")] public string Remark { get; set; } [Description("修改人")] [StringLength(50)] public string UpdateUser { get; set; } [Description("修改时间")] public DateTime? UpdateTime { get; set; } [Description("已删除")] public bool IsDeleted { get; set; } } }