AutoAnalyzeSettingModel.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Xml.Serialization;
  7. namespace Metis.AutoAnalysis
  8. {
  9. [XmlRoot("ROOT")]
  10. public class AutoAnalyzeSettingModel
  11. {
  12. /// <summary>
  13. /// 模板路径
  14. /// </summary>
  15. [XmlElement("modulePath")]
  16. public string modulePath { get; set; }
  17. /// <summary>
  18. /// 存储路径
  19. /// </summary>
  20. [XmlElement("savePath")]
  21. public string savePath { get; set; }
  22. /// <summary>
  23. /// 客户名称
  24. /// </summary>
  25. [XmlElement("customerName")]
  26. public string customerName { get; set; }
  27. /// <summary>
  28. /// 联系方式
  29. /// </summary>
  30. [XmlElement("telephone")]
  31. public string telephone { get; set; }
  32. /// <summary>
  33. /// 样品名称
  34. /// </summary>
  35. [XmlElement("sampleName")]
  36. public string sampleName { get; set; }
  37. /// <summary>
  38. /// 样品说明
  39. /// </summary>
  40. [XmlElement("sampleDescription")]
  41. public string sampleDescription { get; set; }
  42. /// <summary>
  43. /// 检测项目
  44. /// </summary>
  45. [XmlElement("checkItem")]
  46. public string checkItem { get; set; }
  47. /// <summary>
  48. /// 方法标准
  49. /// </summary>
  50. [XmlElement("methodStandard")]
  51. public string methodStandard { get; set; }
  52. /// <summary>
  53. /// 接收日期
  54. /// </summary>
  55. [XmlElement("receiveDate")]
  56. public DateTime receiveDate { get; set; }
  57. /// <summary>
  58. /// 检测日期
  59. /// </summary>
  60. [XmlElement("checkDate")]
  61. public DateTime checkDate { get; set; }
  62. /// <summary>
  63. /// 报告日期
  64. /// </summary>
  65. [XmlElement("reportDate")]
  66. public DateTime reportDate { get; set; }
  67. /// <summary>
  68. /// 报告编号
  69. /// </summary>
  70. [XmlElement("reportNumber")]
  71. public string reportNumber { get; set; }
  72. /// <summary>
  73. /// 检测区域
  74. /// </summary>
  75. [XmlElement("checkRegion")]
  76. public string checkRegion { get; set; }
  77. /// <summary>
  78. /// 检测环境
  79. /// </summary>
  80. [XmlElement("checkEnvironment")]
  81. public string checkEnvironment { get; set; }
  82. /// <summary>
  83. /// 分类名
  84. /// </summary>
  85. [XmlElement("analyzeClassify")]
  86. public string analyzeClassify { get; set; }
  87. public AutoAnalyzeSettingModel Clone()
  88. {
  89. AutoAnalyzeSettingModel a = new AutoAnalyzeSettingModel();
  90. a.analyzeClassify = this.analyzeClassify;
  91. a.checkDate = this.checkDate;
  92. a.checkEnvironment = this.checkEnvironment;
  93. a.checkItem = this.checkItem;
  94. a.checkRegion = this.checkRegion;
  95. a.customerName = this.customerName;
  96. a.methodStandard = this.methodStandard;
  97. a.modulePath = this.modulePath;
  98. a.receiveDate = this.receiveDate;
  99. a.reportDate = this.reportDate;
  100. a.reportNumber = this.reportNumber;
  101. a.sampleDescription = this.sampleDescription;
  102. a.sampleName = this.sampleName;
  103. a.savePath = this.savePath;
  104. a.telephone = this.telephone;
  105. return a;
  106. }
  107. }
  108. }