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 RepairTaskForm : System.ICloneable
{
///
///
///
public RepairTaskForm() { }
///
///
///
public RepairTaskForm(RepairTaskForm rhs)
{
this.ID= rhs.ID;
this.CorpID= rhs.CorpID;
this.BelongType= rhs.BelongType;
this.BelongID= rhs.BelongID;
this.ProductID= rhs.ProductID;
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.UpdateUserID = rhs.UpdateUserID;
this.RepairUserID = rhs.RepairUserID;
}
///
///
///
public void Reset(RepairTaskForm rhs)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.BelongType = rhs.BelongType;
this.BelongID = rhs.BelongID;
this.ProductID = rhs.ProductID;
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.UpdateUserID = rhs.UpdateUserID;
this.RepairUserID= rhs.RepairUserID;
}
///
/// 标识
///
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 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; }
///
/// 创建用户标识
///
public long CreateUserID { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; }
///
/// 更新用户标识
///
public long? UpdateUserID { get; set; }
///
/// 更新时间
///
public DateTime? UpdateTime { get; set; }
///
/// 维修用户标识
///
public long? RepairUserID { get; set; }
///
///
///
public RepairTaskForm Clone()
{
return (RepairTaskForm)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}