namespace Yw.Model { /// /// 维修单 /// public class RepairTaskForm : BaseModel, System.ICloneable { /// /// /// public RepairTaskForm() { } /// /// /// public RepairTaskForm(RepairTaskForm rhs) : base(rhs) { this.EquipmentID = rhs.EquipmentID; this.RequestID = rhs.RequestID; this.FormNo = rhs.FormNo; this.FormName = rhs.FormName; this.FormStatus = rhs.FormStatus; this.Faq = rhs.Faq; this.Question = rhs.Question; this.Address = rhs.Address; this.Urgency = rhs.Urgency; this.Location = rhs.Location?.Select(x => new Repair.Location(x)).ToList(); this.CreateTime = rhs.CreateTime; this.CreateUserID = rhs.CreateUserID; this.UpdateTime = rhs.UpdateTime; this.CreateUserName = rhs.CreateUserName; this.UpdateUserID = rhs.UpdateUserID; this.UpdateUserName = rhs.UpdateUserName; this.RepairUserID = rhs.RepairUserID; this.RepairUserName = rhs.RepairUserName; } /// /// /// public void Reset(RepairTaskForm rhs) { this.ID = rhs.ID; this.EquipmentID = rhs.EquipmentID; this.RequestID = rhs.RequestID; this.FormNo = rhs.FormNo; this.FormName = rhs.FormName; this.FormStatus = rhs.FormStatus; this.Faq = rhs.Faq; this.Question = rhs.Question; this.Address = rhs.Address; this.Urgency = rhs.Urgency; this.Location = rhs.Location?.Select(x => new Repair.Location(x)).ToList(); this.CreateTime = rhs.CreateTime; this.CreateUserID = rhs.CreateUserID; this.UpdateTime = rhs.UpdateTime; this.CreateUserName = rhs.CreateUserName; this.UpdateUserID = rhs.UpdateUserID; this.UpdateUserName = rhs.UpdateUserName; this.RepairUserID = rhs.RepairUserID; this.RepairUserName = rhs.RepairUserName; } /// /// 设备id /// public long EquipmentID { get; set; } /// /// 报修单标识 /// public long? RequestID { get; set; } /// /// 表单号 /// public string FormNo { get; set; } /// /// 表单名称 /// public string FormName { get; set; } /// /// 表单状态 /// public eTaskStatus FormStatus { get; set; } /// /// 问题编码 /// public string Faq { get; set; } /// /// 问题描述 /// public string Question { get; set; } /// /// 紧急程度 /// public eUrgency Urgency { get; set; } /// /// 地址 /// public string Address { get; set; } /// /// 定位 /// public List Location { get; set; } /// /// 创建用户id /// public long CreateUserID { get; set; } /// /// 创建时间 /// public DateTime CreateTime { get; set; } /// /// 创建人名称 /// public string CreateUserName { get; set; } /// /// 更新用户id /// public long? UpdateUserID { get; set; } /// /// 更新时间 /// public DateTime? UpdateTime { get; set; } /// /// 更新人名称 /// public string UpdateUserName { get; set; } /// /// 维修用户标识 /// public long? RepairUserID { get; set; } /// /// 维修用户名称 /// public string RepairUserName { get; set; } /// /// /// public RepairTaskForm Clone() { return new RepairTaskForm(this); } object ICloneable.Clone() { return Clone(); } } }