CNAS取数仪器端升级
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

ILaboratoryTestOpera.cs 8.3KB

4 meses atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. using System;
  2. using System.Collections.Generic;
  3. using CnasSynchronousCommon;
  4. using CnasSynchronusClient;
  5. using CnasSynchrousModel;
  6. namespace CNAS_BalanceClient
  7. {
  8. interface ILaboratoryTestOpera
  9. {
  10. ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode);
  11. }
  12. public class QuanShuiFenOpera : ILaboratoryTestOpera
  13. {
  14. public ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode)
  15. {
  16. ReturnValue<LaboratoryTest> returnValue = new ReturnValue<LaboratoryTest>();
  17. LaboratoryTest laboratory = new LaboratoryTest();
  18. laboratory.GUID = Guid.NewGuid().ToString();
  19. laboratory.Sample_Number = strCode;
  20. laboratory.DataType = "ARB";
  21. laboratory.Granularity = "6mm";
  22. laboratory.Operator = GlobalCommonOperation.strUserName;
  23. laboratory.OperationType = "Add";
  24. if (returnValue.LstValue == null) returnValue.LstValue = new List<LaboratoryTest>();
  25. returnValue.LstValue.Add(laboratory);
  26. return returnValue;
  27. }
  28. }
  29. public class ShuiFenOpera : ILaboratoryTestOpera
  30. {
  31. public ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode)
  32. {
  33. ReturnValue<LaboratoryTest> returnValue = new ReturnValue<LaboratoryTest>();
  34. LaboratoryTest laboratory = new LaboratoryTest();
  35. laboratory.GUID = Guid.NewGuid().ToString();
  36. laboratory.Sample_Number = strCode;
  37. laboratory.DataType = "Moisture";
  38. laboratory.Operator = GlobalCommonOperation.strUserName;
  39. laboratory.OperationType = "Add";
  40. if (returnValue.LstValue == null) returnValue.LstValue = new List<LaboratoryTest>();
  41. returnValue.LstValue.Add(laboratory);
  42. return returnValue;
  43. }
  44. }
  45. public class HuiFenOpera : ILaboratoryTestOpera
  46. {
  47. public ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode)
  48. {
  49. ReturnValue<LaboratoryTest> returnValue = new ReturnValue<LaboratoryTest>();
  50. LaboratoryTest laboratory = new LaboratoryTest();
  51. laboratory.GUID = Guid.NewGuid().ToString();
  52. laboratory.Sample_Number = strCode;
  53. laboratory.DataType = "Ash";
  54. laboratory.Operator = GlobalCommonOperation.strUserName;
  55. laboratory.OperationType = "Add";
  56. if (returnValue.LstValue == null) returnValue.LstValue = new List<LaboratoryTest>();
  57. returnValue.LstValue.Add(laboratory);
  58. return returnValue;
  59. }
  60. }
  61. public class HuiFaFenOpera : ILaboratoryTestOpera
  62. {
  63. public ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode)
  64. {
  65. ReturnValue<LaboratoryTest> returnValue = new ReturnValue<LaboratoryTest>();
  66. LaboratoryTest laboratory = new LaboratoryTest();
  67. laboratory.GUID = Guid.NewGuid().ToString();
  68. laboratory.Sample_Number = strCode;
  69. laboratory.DataType = "Volatile";
  70. laboratory.Operator = GlobalCommonOperation.strUserName;
  71. laboratory.OperationType = "Add";
  72. if (returnValue.LstValue == null) returnValue.LstValue = new List<LaboratoryTest>();
  73. returnValue.LstValue.Add(laboratory);
  74. return returnValue;
  75. }
  76. }
  77. public class CrucibleHeatOpera : ILaboratoryTestOpera
  78. {
  79. public ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode)
  80. {
  81. ReturnValue<LaboratoryTest> returnValue = new ReturnValue<LaboratoryTest>();
  82. LaboratoryTest laboratory = new LaboratoryTest();
  83. laboratory.GUID = Guid.NewGuid().ToString();
  84. laboratory.Sample_Number = strCode;
  85. laboratory.DataType = "Crucible|Heat";
  86. laboratory.DataMold = "临时";
  87. laboratory.Operator = GlobalCommonOperation.strUserName;
  88. laboratory.OperationType = "Add";
  89. if (returnValue.LstValue == null) returnValue.LstValue = new List<LaboratoryTest>();
  90. returnValue.LstValue.Add(laboratory);
  91. return returnValue;
  92. }
  93. public ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode, string strCrucible)
  94. {
  95. ReturnValue<LaboratoryTest> returnValue = new ReturnValue<LaboratoryTest>();
  96. LaboratoryTest laboratory = new LaboratoryTest();
  97. laboratory.GUID = Guid.NewGuid().ToString();
  98. laboratory.Sample_Number = strCode;
  99. laboratory.Crucible_Number = strCrucible;
  100. laboratory.DataType = "Crucible|Heat";
  101. laboratory.WeighingType = "FRL";
  102. laboratory.DataMold = "临时";
  103. laboratory.Operator = GlobalCommonOperation.strUserName;
  104. laboratory.OperationType = "Add";
  105. if (returnValue.LstValue == null) returnValue.LstValue = new List<LaboratoryTest>();
  106. returnValue.LstValue.Add(laboratory);
  107. return returnValue;
  108. }
  109. }
  110. public class CrucibleSulfurOpera : ILaboratoryTestOpera
  111. {
  112. public ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode)
  113. {
  114. ReturnValue<LaboratoryTest> returnValue = new ReturnValue<LaboratoryTest>();
  115. LaboratoryTest laboratory = new LaboratoryTest();
  116. laboratory.GUID = Guid.NewGuid().ToString();
  117. laboratory.Sample_Number = strCode;
  118. laboratory.DataType = "Crucible|Sulfur";
  119. laboratory.DataMold = "临时";
  120. laboratory.Operator = GlobalCommonOperation.strUserName;
  121. laboratory.OperationType = "Add";
  122. if (returnValue.LstValue == null) returnValue.LstValue = new List<LaboratoryTest>();
  123. returnValue.LstValue.Add(laboratory);
  124. return returnValue;
  125. }
  126. public ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode, string strCrucible)
  127. {
  128. ReturnValue<LaboratoryTest> returnValue = new ReturnValue<LaboratoryTest>();
  129. LaboratoryTest laboratory = new LaboratoryTest();
  130. laboratory.GUID = Guid.NewGuid().ToString();
  131. laboratory.Sample_Number = strCode;
  132. laboratory.Crucible_Number = strCrucible;
  133. laboratory.DataType = "Crucible|Sulfur";
  134. laboratory.WeighingType = "CLY";
  135. laboratory.DataMold = "临时";
  136. laboratory.Operator = GlobalCommonOperation.strUserName;
  137. laboratory.OperationType = "Add";
  138. if (returnValue.LstValue == null) returnValue.LstValue = new List<LaboratoryTest>();
  139. returnValue.LstValue.Add(laboratory);
  140. return returnValue;
  141. }
  142. }
  143. public class CrucibleHydrogenOpera : ILaboratoryTestOpera
  144. {
  145. public ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode)
  146. {
  147. ReturnValue<LaboratoryTest> returnValue = new ReturnValue<LaboratoryTest>();
  148. LaboratoryTest laboratory = new LaboratoryTest();
  149. laboratory.GUID = Guid.NewGuid().ToString();
  150. laboratory.Sample_Number = strCode;
  151. laboratory.DataType = "Crucible|Hydrogen";
  152. laboratory.DataMold = "临时";
  153. laboratory.Operator = GlobalCommonOperation.strUserName;
  154. laboratory.OperationType = "Add";
  155. if (returnValue.LstValue == null) returnValue.LstValue = new List<LaboratoryTest>();
  156. returnValue.LstValue.Add(laboratory);
  157. return returnValue;
  158. }
  159. public ReturnValue<LaboratoryTest> CreateLaboratoryTestData(string strCode, string strCrucible)
  160. {
  161. ReturnValue<LaboratoryTest> returnValue = new ReturnValue<LaboratoryTest>();
  162. LaboratoryTest laboratory = new LaboratoryTest();
  163. laboratory.GUID = Guid.NewGuid().ToString();
  164. laboratory.Sample_Number = strCode;
  165. laboratory.Crucible_Number = strCrucible;
  166. laboratory.WeighingType = "CHN";
  167. laboratory.DataType = "Crucible|Hydrogen";
  168. laboratory.DataMold = "临时";
  169. laboratory.Operator = GlobalCommonOperation.strUserName;
  170. laboratory.OperationType = "Add";
  171. if (returnValue.LstValue == null) returnValue.LstValue = new List<LaboratoryTest>();
  172. returnValue.LstValue.Add(laboratory);
  173. return returnValue;
  174. }
  175. }
  176. }