using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using CK.SCP.Models.Base; using CK.SCP.Models.Enums; namespace CK.SCP.Models.ExchangeCenterTables { [Description("工作中心表")] public class TES_WORK_CENTER : TED_BASE,ITaskTable { [Description("工作中心代码")] [StringLength(50)] public string Code { get; set; } [Description("工作中心描述")] [StringLength(50)] public string Desc { get; set; } [Description("部门")] [StringLength(50)] public string Department { get; set; } [Description("自动固定")] public bool AutoFirm { get; set; } [Description("上次自动固定")] public DateTime LastAutoFirm { get; set; } [Description("调度者")] [StringLength(50)] public string Scheduler { get; set; } [Description("等待时间")] public decimal Queue { get; set; } [Description("等待时间")] public decimal Wait { get; set; } [Description("设备/工序")] public int MchOp { get; set; } [Description("设置人员")] public decimal SetupMen { get; set; } [Description("操作全体成员")] public decimal RunCrew { get; set; } [Description("机器数")] public decimal MchWkctr { get; set; } [Description("机器制造费率")] public decimal MchBdn { get; set; } [Description("设置费率")] public decimal SetupRte { get; set; } [Description("人工费率")] public decimal LbrRate { get; set; } [Description("人工制造费用率")] public decimal BdnRate { get; set; } [Description("人工制造费用")] public decimal BdnPct { get; set; } [Description("机器")] [StringLength(50)] public string Mch { get; set; } [Key] public Guid GUID { get; set; } = Guid.NewGuid(); [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int UID { get; set; } [Description("创建人")] [StringLength(50)] public string CreateUser { get; set; } [Description("创建时间")] public DateTime CreateTime { get; set; } [Description("备注")] public string Remark { get; set; } [Description("任务编号")] public Guid TaskID { get; set; } [Description("命令类型")] [StringLength(50)] public string CommandType { get; set; } public Guid DataID { get; set; } [Description("域")] [StringLength(50)] public string Domain { get; set; } [Description("地点")] [StringLength(50)] public string Site { get; set; } } }