namespace Yw.Model
{
///
/// 报修单
///
public class RepairRequestForm : BaseModel, System.ICloneable
{
///
///
///
public RepairRequestForm() { }
///
///
///
public RepairRequestForm(RepairRequestForm rhs) : base(rhs)
{
this.EquipmentID = rhs.EquipmentID;
this.FormNo = rhs.FormNo;
this.FormName = rhs.FormName;
this.FormStatus = rhs.FormStatus;
this.Faq = rhs.Faq;
this.Question = rhs.Question;
this.Urgency = rhs.Urgency;
this.Address = rhs.Address;
this.Location = rhs.Location?.Select(x => new Repair.Location(x)).ToList();
this.CreateUserID = rhs.CreateUserID;
this.CreateTime = rhs.CreateTime;
this.CreateUserName = rhs.CreateUserName;
this.UpdateUserID = rhs.UpdateUserID;
this.UpdateTime = rhs.UpdateTime;
this.UpdateUserName = rhs.UpdateUserName;
}
///
///
///
public void Reset(RepairRequestForm rhs)
{
this.ID = rhs.ID;
this.EquipmentID = rhs.EquipmentID;
this.FormNo = rhs.FormNo;
this.FormName = rhs.FormName;
this.FormStatus = rhs.FormStatus;
this.Faq = rhs.Faq;
this.Question = rhs.Question;
this.Urgency = rhs.Urgency;
this.Address = rhs.Address;
this.Location = rhs.Location?.Select(x => new Repair.Location(x)).ToList();
this.CreateUserID = rhs.CreateUserID;
this.CreateTime = rhs.CreateTime;
this.CreateUserName = rhs.CreateUserName;
this.UpdateUserID = rhs.UpdateUserID;
this.UpdateTime = rhs.UpdateTime;
this.UpdateUserName = rhs.UpdateUserName;
}
///
/// 设备id
///
public long EquipmentID { get; set; }
///
/// 表单号
///
public string FormNo { get; set; }
///
/// 表单名称
///
public string FormName { get; set; }
///
/// 表单状态
///
public eRequestStatus 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 RepairRequestForm Clone()
{
return new RepairRequestForm(this);
}
object ICloneable.Clone()
{
return Clone();
}
}
}