using System; using System.Text; using System.Collections.Generic; using System.Data; using System.Runtime.Serialization; namespace IStation.Model { /// /// / /// public class InspectRecord : ICloneable { /// /// /// public InspectRecord() { } /// /// /// /// public InspectRecord(InspectRecord rhs) { this.ID = rhs.ID; this.CorpID = rhs.CorpID; this.ProductID = rhs.ProductID; this.RepairRequestID = rhs.RepairRequestID; this.WorryCount = rhs.WorryCount; this.RecordDay = rhs.RecordDay; this.EmployeeID = rhs.EmployeeID; this.Note = rhs.Note; this.CompleteStatus = rhs.CompleteStatus; this.ProgressInfo = rhs.ProgressInfo;//进度 类似 2/10 表示10项 填写了2项 } /// /// /// public enum eCompleteStatus { /// /// /// 未巡检 = 0, /// /// /// 巡检中 = 1, /// /// /// 巡检完成 =100 } #region Model /// /// ID /// public long ID { get { return _id; } set { _id = value; } } private long _id; /// /// ProductID /// public long CorpID { get { return _corpid; } set { _corpid = value; } } private long _corpid; /// /// ProductID /// public long ProductID { get { return _productid; } set { _productid = value; } } private long _productid; /// /// RepairRequestID /// public long RepairRequestID { get { return _repairrequestid; } set { _repairrequestid = value; } } private long _repairrequestid; /// /// CompleteStatus /// public eCompleteStatus CompleteStatus { get { return _completeStatus; } set { _completeStatus = value; } } private eCompleteStatus _completeStatus = eCompleteStatus.未巡检; /// /// WorryCount /// public int WorryCount { get { return _worrycount; } set { _worrycount = value; } } private int _worrycount; /// /// RecordDay /// public string RecordDay { get { return _recordday; } set { _recordday = value; } } private string _recordday; /// /// /// public string Note { get; set; } /// /// EmployeeID /// public long EmployeeID { get { return _employeeid; } set { _employeeid = value; } } private long _employeeid; /// /// /// public string ProgressInfo { get; set; } #endregion Model #region Clone /// /// /// /// public InspectRecord Clone() { return new InspectRecord(this); } /// /// /// /// object ICloneable.Clone() { return this.Clone(); } #endregion Clone } }