锐腾搅拌上料功能
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

269 lines
6.6 KiB

5 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using ICSSoft.Frame.Data.Entity;
  6. using ICSSoft.Frame.Data.DAL;
  7. using System.Data;
  8. namespace ICSSoft.Frame.Data.BLL
  9. {
  10. public class ICSHeatTreatmentBLL
  11. {
  12. #region AddandEdit
  13. public static void AddList(List<ICSOpFile> equipmentInfoList,string Transno, string dsconn)
  14. {
  15. try
  16. {
  17. if (string.IsNullOrWhiteSpace(dsconn))
  18. {
  19. throw new Exception("请输入......");
  20. }
  21. ICSHeatTreatmentDAL.AddAndEditList(equipmentInfoList, Transno,dsconn);
  22. }
  23. catch (Exception ex)
  24. {
  25. throw ex;
  26. }
  27. }
  28. #endregion
  29. #region AddSample
  30. public static void AddSample(List<ICSOpFile> equipmentInfoList, string ID, string Transno,int flag, string dsconn)
  31. {
  32. try
  33. {
  34. if (string.IsNullOrWhiteSpace(dsconn))
  35. {
  36. throw new Exception("请输入......");
  37. }
  38. ICSHeatTreatmentDAL.AddSample(equipmentInfoList, ID,Transno,flag, dsconn);
  39. }
  40. catch (Exception ex)
  41. {
  42. throw ex;
  43. }
  44. }
  45. #endregion
  46. #region select
  47. public static ICSToCheck select(String guid, String Appconstr)
  48. {
  49. return ICSHeatTreatmentDAL.select(guid, Appconstr);
  50. }
  51. #endregion
  52. #region FindAll
  53. public static DataTable FindAll(string Appconstr)
  54. {
  55. try
  56. {
  57. return ICSHeatTreatmentDAL.FindAll(Appconstr);
  58. }
  59. catch (Exception ex)
  60. {
  61. throw ex;
  62. }
  63. }
  64. #endregion
  65. #region delete
  66. public static void delete(string ItemCode, string Appconstr)
  67. {
  68. try
  69. {
  70. ICSHeatTreatmentDAL.delete(ItemCode, Appconstr);
  71. }
  72. catch (Exception ex)
  73. {
  74. throw ex;
  75. }
  76. }
  77. #endregion
  78. #region AddPDF
  79. public static void AddPDF(string id,string transno,string filetype,string fname, string dsconn)
  80. {
  81. try
  82. {
  83. ICSHeatTreatmentDAL.AddPDF(id,transno,filetype, fname, dsconn);
  84. }
  85. catch (Exception ex)
  86. {
  87. throw ex;
  88. }
  89. }
  90. public static void AddINPDF(string INCode, string tFileName, string dsconn)
  91. {
  92. try
  93. {
  94. ICSHeatTreatmentDAL.AddINPDF(INCode, tFileName, dsconn);
  95. }
  96. catch (Exception ex)
  97. {
  98. throw ex;
  99. }
  100. }
  101. #endregion
  102. #region DeletePDF
  103. public static void DeletePDF(string TransNO, string dsconn)
  104. {
  105. try
  106. {
  107. ICSHeatTreatmentDAL.DeletePDF(TransNO, dsconn);
  108. }
  109. catch (Exception ex)
  110. {
  111. throw ex;
  112. }
  113. }
  114. public static void DeletePDFAll(string TransNO, string dsconn)
  115. {
  116. try
  117. {
  118. ICSHeatTreatmentDAL.DeletePDFAll(TransNO, dsconn);
  119. }
  120. catch (Exception ex)
  121. {
  122. throw ex;
  123. }
  124. }
  125. public static void DeletePDF1(string id, string dsconn)
  126. {
  127. try
  128. {
  129. ICSHeatTreatmentDAL.DeletePDF1(id, dsconn);
  130. }
  131. catch (Exception ex)
  132. {
  133. throw ex;
  134. }
  135. }
  136. public static void DeleteINPDF(string id, string dsconn)
  137. {
  138. try
  139. {
  140. ICSHeatTreatmentDAL.DeleteINPDF(id, dsconn);
  141. }
  142. catch (Exception ex)
  143. {
  144. throw ex;
  145. }
  146. }
  147. #endregion
  148. public static DataTable Check(string BarCode, string ToCheckNo, string Appconstr)
  149. {
  150. try
  151. {
  152. return ICSHeatTreatmentDAL.Check(BarCode, ToCheckNo, Appconstr);
  153. }
  154. catch (Exception ex)
  155. {
  156. throw ex;
  157. }
  158. }
  159. public static DataTable CheckNo(string BarCode, string Appconstr)
  160. {
  161. try
  162. {
  163. return ICSHeatTreatmentDAL.CheckNo(BarCode, Appconstr);
  164. }
  165. catch (Exception ex)
  166. {
  167. throw ex;
  168. }
  169. }
  170. #region delete
  171. public static void delete(List<string> guidList,string Appconstr)
  172. {
  173. ICSHeatTreatmentDAL.delete(guidList, Appconstr);
  174. }
  175. #endregion
  176. public static ICSOpFileDetail GetModel(string TransNO, string dsconn)
  177. {
  178. try
  179. {
  180. return ICSHeatTreatmentDAL.GetModel(TransNO, dsconn);
  181. }
  182. catch (Exception ex)
  183. {
  184. throw ex;
  185. }
  186. }
  187. public static DataTable GetModeldt(string TransNO, string dsconn)
  188. {
  189. try
  190. {
  191. return ICSHeatTreatmentDAL.GetModeldt(TransNO, dsconn);
  192. }
  193. catch (Exception ex)
  194. {
  195. throw ex;
  196. }
  197. }
  198. public static ICSOpFileDetail GetModel1(string id, string dsconn)
  199. {
  200. try
  201. {
  202. return ICSHeatTreatmentDAL.GetModel1(id, dsconn);
  203. }
  204. catch (Exception ex)
  205. {
  206. throw ex;
  207. }
  208. }
  209. public static ICSINFile GetINModel(string id, string dsconn)
  210. {
  211. try
  212. {
  213. return ICSHeatTreatmentDAL.GetINModel(id, dsconn);
  214. }
  215. catch (Exception ex)
  216. {
  217. throw ex;
  218. }
  219. }
  220. #region AddandEdit
  221. public static void AddINList(List<ICSINFile> datas, string dsconn)
  222. {
  223. try
  224. {
  225. if (string.IsNullOrWhiteSpace(dsconn))
  226. {
  227. throw new Exception("请输入......");
  228. }
  229. ICSHeatTreatmentDAL.AddINList(datas, dsconn);
  230. }
  231. catch (Exception ex)
  232. {
  233. throw ex;
  234. }
  235. }
  236. #endregion
  237. #region delete
  238. public static void deleteIN(List<String> guidList)
  239. {
  240. ICSHeatTreatmentDAL.deleteIN(guidList);
  241. }
  242. #endregion
  243. }
  244. }