using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Runtime.Serialization;
using IStation.Model.Repair;
namespace IStation.Model
{
///
/// 报修单
///
public class RepairRequestForm:System.ICloneable
{
///
///
///
public RepairRequestForm() { }
///
///
///
public RepairRequestForm(RepairRequestForm rhs)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.BelongType = rhs.BelongType;
this.BelongID = rhs.BelongID;
this.ProductID = rhs.ProductID;
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.UpdateUserID = rhs.UpdateUserID;
this.UpdateTime= rhs.UpdateTime;
}
///
///
///
public void Reset(RepairRequestForm rhs)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.BelongType = rhs.BelongType;
this.BelongID = rhs.BelongID;
this.ProductID = rhs.ProductID;
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.UpdateUserID = rhs.UpdateUserID;
this.UpdateTime = rhs.UpdateTime;
}
///
/// 标识
///
public long ID { get; set; }
///
/// 客户标识
///
public long CorpID { get; set; }
///
/// 所属类型
///
public string BelongType { get; set; }
///
/// 所属标识
///
public long BelongID { get; set; }
///
/// 设备标识
///
public long ProductID { 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; }
///
/// 创建用户标识
///
public long CreateUserID { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; }
///
/// 更新用户标识
///
public long? UpdateUserID { get; set; }
///
/// 更新时间
///
public DateTime? UpdateTime { get; set; }
///
///
///
public RepairRequestForm Clone()
{
return (RepairRequestForm)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}