QcmZbsLanguageYuLan.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. using Core.Mes.Client.Comm.Control;
  2. using Core.Mes.Client.Comm.Server;
  3. using Core.Mes.Client.Comm.Tool;
  4. using CoreFS.CA06;
  5. using Infragistics.Win.UltraWinGrid;
  6. using System;
  7. using System.Collections;
  8. using System.Collections.Generic;
  9. using System.Data;
  10. using System.Drawing;
  11. using System.Net;
  12. using System.Windows.Forms;
  13. namespace Core.StlMes.Client.Judge.Forms
  14. {
  15. public partial class QcmZbsLanguageYuLan : FrmBase
  16. {
  17. private string billNo = "";
  18. private string orderNo = "";
  19. private string ordLnDlyPk = "";
  20. private string metricSystem = "";
  21. private string languageCode = "";
  22. private string billNoSeq = "";
  23. private ArrayList parm = null;
  24. public QcmZbsLanguageYuLan(string _billNo, string _orderNo, string _ordLnDlyPk, string _metricSystem, string _languageCode, string _billNoSeq, ArrayList _parm, OpeBase _ob)
  25. {
  26. InitializeComponent();
  27. ob = _ob;
  28. billNo = _billNo;
  29. orderNo = _orderNo;
  30. ordLnDlyPk = _ordLnDlyPk;
  31. metricSystem = _metricSystem;
  32. languageCode = _languageCode;
  33. billNoSeq = _billNoSeq;
  34. parm = _parm;
  35. }
  36. private void QcmZbsLanguageYuLan_Load(object sender, EventArgs e)
  37. {
  38. //查询语言要求
  39. DataTable dt1 = ServerHelper.GetData("com.steering.pss.judge.DAL.QcmZbsQueryFrm.getOrderAskSub", new object[] { "12100704" }, ob);
  40. comAsk.DataSource = dt1;
  41. comAsk.DisplayMember = "ASK_ITEM_DESC";
  42. comAsk.ValueMember = "ASK_ITEM_NO";
  43. Query();
  44. }
  45. /// <summary>
  46. /// 查询
  47. /// </summary>
  48. private void Query()
  49. {
  50. ////DataTable dt = ServerHelper.GetData("com.steering.pss.judge.DAL.QcmZbsQueryFrm.doQuerLanguage", new object[] { billNo, ordLnDlyPk }, ob);
  51. ////GridHelper.CopyDataToDatatable(dt, dataTable1, true);
  52. }
  53. private void craftImg1_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
  54. {
  55. UltraGridRow row = ultraGrid1.ActiveRow;
  56. if (row == null) return;
  57. string ordLnPk = ordLnDlyPk.Substring(0, ordLnDlyPk.Length - 3);
  58. string askSubItmeVal = row.Cells["LANGUAGE_CODE"].Text.ToString();
  59. string filePath = row.GetValue("ZBS_PATH");
  60. string metricSystem = row.Cells["METRIC_SYSTEM"].Text.ToString();
  61. if (e.Button.Key.ToLower().Equals("select"))
  62. {
  63. if (filePath.Equals(""))
  64. {
  65. if (askSubItmeVal.Equals(""))
  66. {
  67. MessageUtil.ShowTips("请选择语言要求!");
  68. return;
  69. }
  70. string askSubItmeValNo = row.Cells["LANGUAGE_CODE"].Value.ToString();
  71. if (metricSystem.Equals(""))
  72. {
  73. MessageUtil.ShowTips("请选择公英制!");
  74. return;
  75. }
  76. string metricSystemNo = row.Cells["METRIC_SYSTEM"].Value.ToString();
  77. string strurl = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepCertificateOfProductQuality.cpt&op=view"
  78. + "&BILL_NO=" + billNo + "&ORD_LN_PK=" + ordLnPk + "&ASK_ITEM_NO=" + askSubItmeValNo + "&METRIC_SYSTEM=" + metricSystemNo + "&USER=" + this.UserInfo.GetUserID() + "&YULAN=1&ORD_LN_DLY_PK=" + ordLnDlyPk;
  79. FrmRepExcel down = new FrmRepExcel(ob, strurl);
  80. down.Text = "质保书";
  81. down.Visible = false;
  82. down.Size = new Size(740, this.Height);
  83. down.WindowState = FormWindowState.Maximized;
  84. down.ShowDialog();
  85. }
  86. else
  87. {
  88. FormFileDown askDown = new FormFileDown(this.ob, filePath);
  89. askDown.CtrlFileDown1.Button3.Visible = false;
  90. askDown.Show();
  91. }
  92. //dlgOrderAskDown askDown = new dlgOrderAskDown(ob, filePath);
  93. //askDown.Show();
  94. }
  95. else if (e.Button.Key.ToLower().Equals("add"))
  96. {
  97. if (askSubItmeVal.Equals(""))
  98. {
  99. MessageUtil.ShowTips("请选择语言要求!");
  100. return;
  101. }
  102. string askSubItmeValNo = row.Cells["LANGUAGE_CODE"].Value.ToString();
  103. if (metricSystem.Equals(""))
  104. {
  105. MessageUtil.ShowTips("请选择公英制!");
  106. return;
  107. }
  108. string metricSystemNo = row.Cells["METRIC_SYSTEM"].Value.ToString();
  109. string pdfName = billNoSeq + askSubItmeValNo;
  110. string filePathNew = "Qcm/ZbsPdf/" + billNoSeq + "/" + orderNo + "/" + askSubItmeValNo + "/";
  111. var serverFileList = FileHelper.Download(filePathNew);
  112. if (serverFileList.Count > 0)
  113. {
  114. MessageUtil.ShowWarning("该记录已存在一份文件,请删除后再重新上传!");
  115. return;
  116. }
  117. //保存
  118. CoreClientParam ccp = new CoreClientParam();
  119. ccp.ServerName = "com.steering.pss.judge.DAL.QcmZbsQueryFrm";
  120. ccp.MethodName = "doAdd";
  121. ccp.ServerParams = new object[] { pdfName, filePathNew, billNoSeq, billNo, ordLnDlyPk, this.UserInfo.GetUserName(), askSubItmeValNo, metricSystemNo, askSubItmeVal };
  122. ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  123. if (ccp.ReturnCode == -1) return;
  124. MessageUtil.ShowTips(ccp.ReturnInfo);
  125. if (ccp.ReturnInfo.Equals("保存成功!"))
  126. {
  127. WebClient webClient = new WebClient();
  128. List<FileBean> listPdf = new List<FileBean>();
  129. string craftPath = filePathNew + pdfName + ".pdf";
  130. string strurl = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepCertificateOfProductQuality.cpt&format=pdf"
  131. + "&BILL_NO=" + billNo + "&ORD_LN_PK=" + ordLnPk + "&ASK_ITEM_NO=" + askSubItmeValNo + "&METRIC_SYSTEM=" + metricSystemNo + "&USER=" + this.UserInfo.GetUserID() + "&YULAN=1&ORD_LN_DLY_PK=" + ordLnDlyPk;
  132. byte[] pdf = webClient.DownloadData(strurl);
  133. if (pdf.Length <= 10000)
  134. {
  135. MessageUtil.ShowError("生成PDF ,请重新生成!");
  136. return;
  137. }
  138. FileBean fileBean = new FileBean();
  139. fileBean.setFile(pdf);
  140. fileBean.setFileName(pdfName + ".pdf");
  141. fileBean.setPathName(filePathNew);
  142. listPdf.Add(fileBean);
  143. webClient.Dispose();
  144. var a = FileHelper.Upload(listPdf);
  145. if (a)
  146. {
  147. //MessageUtil.ShowTips("上传成功!");
  148. row.Cells["ZBS_NAME"].Value = pdfName + ".pdf";
  149. row.Cells["ZBS_PATH"].Value = filePathNew;
  150. Query();
  151. }
  152. }
  153. }
  154. else
  155. {
  156. string askSubItmeValNo = row.Cells["LANGUAGE_CODE"].Value.ToString();
  157. //删除
  158. CoreClientParam ccp = new CoreClientParam();
  159. ccp.ServerName = "com.steering.pss.judge.DAL.QcmZbsQueryFrm";
  160. ccp.MethodName = "doDelete";
  161. ccp.ServerParams = new object[] { row.Cells["ZBS_NAME"].Text.ToString(), billNoSeq, billNo, ordLnDlyPk, askSubItmeValNo };
  162. ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  163. if (ccp.ReturnCode == -1) return;
  164. MessageUtil.ShowTips(ccp.ReturnInfo);
  165. if (ccp.ReturnInfo.Equals("删除成功!"))
  166. {
  167. var a = FileHelper.Delete(filePath);
  168. if (a)
  169. {
  170. Query();
  171. }
  172. }
  173. }
  174. }
  175. private void ultraGrid1_AfterRowActivate(object sender, EventArgs e)
  176. {
  177. UltraGridRow row = ultraGrid1.ActiveRow;
  178. if (row == null)
  179. {
  180. row.Cells["BILL_NO"].Value = billNo;
  181. row.Cells["ORDER_NO"].Value = orderNo;
  182. row.Cells["ORD_LN_DLY_PK"].Value = ordLnDlyPk;
  183. row.Cells["METRIC_SYSTEM"].Value = metricSystem;
  184. row.Cells["LANGUAGE_CODE"].Value = languageCode;
  185. }
  186. if (row.Cells["BILL_NO"].Text.Equals(""))
  187. {
  188. row.Cells["BILL_NO"].Value = billNo;
  189. row.Cells["ORDER_NO"].Value = orderNo;
  190. row.Cells["ORD_LN_DLY_PK"].Value = ordLnDlyPk;
  191. row.Cells["METRIC_SYSTEM"].Value = metricSystem;
  192. row.Cells["LANGUAGE_CODE"].Value = languageCode;
  193. }
  194. }
  195. private void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e)
  196. {
  197. }
  198. private void craftImgJG_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
  199. {
  200. UltraGridRow row = ultraGrid1.ActiveRow;
  201. if (row == null) return;
  202. string ordLnPk = ordLnDlyPk.Substring(0, ordLnDlyPk.Length - 3);
  203. string askSubItmeVal = row.Cells["LANGUAGE_CODE"].Text.ToString();
  204. string filePath = row.GetValue("ZBS_PATH_JG");
  205. string metricSystem = row.Cells["METRIC_SYSTEM"].Text.ToString();
  206. if (e.Button.Key.ToLower().Equals("select"))
  207. {
  208. if (filePath.Equals(""))
  209. {
  210. if (askSubItmeVal.Equals(""))
  211. {
  212. MessageUtil.ShowTips("请选择语言要求!");
  213. return;
  214. }
  215. string askSubItmeValNo = row.Cells["LANGUAGE_CODE"].Value.ToString();
  216. if (metricSystem.Equals(""))
  217. {
  218. MessageUtil.ShowTips("请选择公英制!");
  219. return;
  220. }
  221. string metricSystemNo = row.Cells["METRIC_SYSTEM"].Value.ToString();
  222. string strurl = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepCertificateOfProductQualityJG.cpt&op=view"
  223. + "&BILL_NO=" + billNo + "&ORD_LN_PK=" + ordLnPk + "&ASK_ITEM_NO=" + askSubItmeValNo + "&METRIC_SYSTEM=" + metricSystemNo + "&USER=" + this.UserInfo.GetUserID() + "&YULAN=1&TYPE=JG&ORD_LN_DLY_PK=" + ordLnDlyPk;
  224. FrmRepExcel down = new FrmRepExcel(ob, strurl);
  225. down.Text = "接箍质保书";
  226. down.Visible = false;
  227. down.Size = new Size(740, this.Height);
  228. down.WindowState = FormWindowState.Maximized;
  229. down.ShowDialog();
  230. }
  231. else
  232. {
  233. FormFileDown askDown = new FormFileDown(this.ob, filePath);
  234. askDown.CtrlFileDown1.Button3.Visible = false;
  235. askDown.Show();
  236. }
  237. //dlgOrderAskDown askDown = new dlgOrderAskDown(ob, filePath);
  238. //askDown.Show();
  239. }
  240. else if (e.Button.Key.ToLower().Equals("add"))
  241. {
  242. if (askSubItmeVal.Equals(""))
  243. {
  244. MessageUtil.ShowTips("请选择语言要求!");
  245. return;
  246. }
  247. string askSubItmeValNo = row.Cells["LANGUAGE_CODE"].Value.ToString();
  248. if (metricSystem.Equals(""))
  249. {
  250. MessageUtil.ShowTips("请选择公英制!");
  251. return;
  252. }
  253. string metricSystemNo = row.Cells["METRIC_SYSTEM"].Value.ToString();
  254. string pdfName = "JG" + billNoSeq + askSubItmeValNo;
  255. string filePathNew = "Qcm/ZbsPdf/" + billNoSeq + "/" + orderNo + "/" + askSubItmeValNo + "/JG/";
  256. var serverFileList = FileHelper.Download(filePathNew);
  257. if (serverFileList.Count > 0)
  258. {
  259. MessageUtil.ShowWarning("该记录已存在一份文件,请删除后再重新上传!");
  260. return;
  261. }
  262. //保存
  263. CoreClientParam ccp = new CoreClientParam();
  264. ccp.ServerName = "com.steering.pss.judge.DAL.QcmZbsQueryFrm";
  265. ccp.MethodName = "doAddJG";
  266. ccp.ServerParams = new object[] { pdfName, filePathNew, billNoSeq, billNo, ordLnDlyPk, this.UserInfo.GetUserName(), askSubItmeValNo, metricSystemNo, askSubItmeVal };
  267. ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  268. if (ccp.ReturnCode == -1) return;
  269. MessageUtil.ShowTips(ccp.ReturnInfo);
  270. if (ccp.ReturnInfo.Equals("保存成功!"))
  271. {
  272. WebClient webClient = new WebClient();
  273. List<FileBean> listPdf = new List<FileBean>();
  274. string craftPath = filePathNew + pdfName + ".pdf";
  275. string strurl = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepCertificateOfProductQualityJG.cpt&format=pdf"
  276. + "&BILL_NO=" + billNo + "&ORD_LN_PK=" + ordLnPk + "&ASK_ITEM_NO=" + askSubItmeValNo + "&METRIC_SYSTEM=" + metricSystemNo + "&USER=" + this.UserInfo.GetUserID() + "&TYPE=JG&ORD_LN_DLY_PK=" + ordLnDlyPk;
  277. byte[] pdf = webClient.DownloadData(strurl);
  278. if (pdf.Length <= 10000)
  279. {
  280. MessageUtil.ShowError("生成PDF ,请重新生成!");
  281. return;
  282. }
  283. FileBean fileBean = new FileBean();
  284. fileBean.setFile(pdf);
  285. fileBean.setFileName(pdfName + ".pdf");
  286. fileBean.setPathName(filePathNew);
  287. listPdf.Add(fileBean);
  288. webClient.Dispose();
  289. var a = FileHelper.Upload(listPdf);
  290. if (a)
  291. {
  292. //MessageUtil.ShowTips("上传成功!");
  293. row.Cells["ZBS_NAME_JG"].Value = pdfName + ".pdf";
  294. row.Cells["ZBS_PATH_JG"].Value = filePathNew;
  295. Query();
  296. }
  297. }
  298. }
  299. else
  300. {
  301. string askSubItmeValNo = row.Cells["LANGUAGE_CODE"].Value.ToString();
  302. //删除
  303. CoreClientParam ccp = new CoreClientParam();
  304. ccp.ServerName = "com.steering.pss.judge.DAL.QcmZbsQueryFrm";
  305. ccp.MethodName = "doDeleteJG";
  306. ccp.ServerParams = new object[] { row.Cells["ZBS_NAME_JG"].Text.ToString(), billNoSeq, billNo, ordLnDlyPk, askSubItmeValNo };
  307. ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  308. if (ccp.ReturnCode == -1) return;
  309. MessageUtil.ShowTips(ccp.ReturnInfo);
  310. if (ccp.ReturnInfo.Equals("删除成功!"))
  311. {
  312. var a = FileHelper.Delete(filePath);
  313. if (a)
  314. {
  315. Query();
  316. }
  317. }
  318. }
  319. }
  320. private void craftImgZB_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
  321. {
  322. UltraGridRow row = ultraGrid1.ActiveRow;
  323. if (row == null) return;
  324. if (parm.Count < 1)
  325. {
  326. MessageUtil.ShowTips("请选择招标质保书的炉号!");
  327. return;
  328. }
  329. string JudgeStoveNoBatchNo = "";
  330. foreach (String a in parm)
  331. {
  332. JudgeStoveNoBatchNo += a + "','";
  333. }
  334. string ordLnPk = ordLnDlyPk.Substring(0, ordLnDlyPk.Length - 3);
  335. string askSubItmeVal = row.Cells["LANGUAGE_CODE"].Text.ToString();
  336. string filePath = row.GetValue("ZBS_PATH_ZB");
  337. string metricSystem = row.Cells["METRIC_SYSTEM"].Text.ToString();
  338. if (e.Button.Key.ToLower().Equals("select"))
  339. {
  340. if (filePath.Equals(""))
  341. {
  342. if (askSubItmeVal.Equals(""))
  343. {
  344. MessageUtil.ShowTips("请选择语言要求!");
  345. return;
  346. }
  347. string askSubItmeValNo = row.Cells["LANGUAGE_CODE"].Value.ToString();
  348. if (metricSystem.Equals(""))
  349. {
  350. MessageUtil.ShowTips("请选择公英制!");
  351. return;
  352. }
  353. string metricSystemNo = row.Cells["METRIC_SYSTEM"].Value.ToString();
  354. string strurl = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepCertificateOfProductQualityZB.cpt&op=view"
  355. + "&BILL_NO=" + billNo + "&ORD_LN_PK=" + ordLnPk + "&ASK_ITEM_NO=" + askSubItmeValNo + "&METRIC_SYSTEM=" + metricSystemNo + "&USER=" + this.UserInfo.GetUserID() + "&YULAN=1&TYPE=ZB&ORD_LN_DLY_PK=" + ordLnDlyPk + "&JUDGE_STOVE_NO_BATCH_NO=" + JudgeStoveNoBatchNo;
  356. FrmRepExcel down = new FrmRepExcel(ob, strurl);
  357. down.Text = "招标质保书";
  358. down.Visible = false;
  359. down.Size = new Size(740, this.Height);
  360. down.WindowState = FormWindowState.Maximized;
  361. down.ShowDialog();
  362. }
  363. else
  364. {
  365. FormFileDown askDown = new FormFileDown(this.ob, filePath);
  366. askDown.CtrlFileDown1.Button3.Visible = false;
  367. askDown.Show();
  368. }
  369. }
  370. else if (e.Button.Key.ToLower().Equals("add"))
  371. {
  372. if (askSubItmeVal.Equals(""))
  373. {
  374. MessageUtil.ShowTips("请选择语言要求!");
  375. return;
  376. }
  377. string askSubItmeValNo = row.Cells["LANGUAGE_CODE"].Value.ToString();
  378. if (metricSystem.Equals(""))
  379. {
  380. MessageUtil.ShowTips("请选择公英制!");
  381. return;
  382. }
  383. string metricSystemNo = row.Cells["METRIC_SYSTEM"].Value.ToString();
  384. string pdfName = "ZB" + billNoSeq + askSubItmeValNo;
  385. string filePathNew = "Qcm/ZbsPdf/" + billNoSeq + "/" + orderNo + "/" + askSubItmeValNo + "/ZB/";
  386. var serverFileList = FileHelper.Download(filePathNew);
  387. if (serverFileList.Count > 0)
  388. {
  389. MessageUtil.ShowWarning("该记录已存在一份文件,请删除后再重新上传!");
  390. return;
  391. }
  392. //保存
  393. CoreClientParam ccp = new CoreClientParam();
  394. ccp.ServerName = "com.steering.pss.judge.DAL.QcmZbsQueryFrm";
  395. ccp.MethodName = "doAddZB";
  396. ccp.ServerParams = new object[] { pdfName, filePathNew, billNoSeq, billNo, ordLnDlyPk, this.UserInfo.GetUserName(), askSubItmeValNo, metricSystemNo, askSubItmeVal };
  397. ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  398. if (ccp.ReturnCode == -1) return;
  399. MessageUtil.ShowTips(ccp.ReturnInfo);
  400. if (ccp.ReturnInfo.Equals("保存成功!"))
  401. {
  402. WebClient webClient = new WebClient();
  403. List<FileBean> listPdf = new List<FileBean>();
  404. string craftPath = filePathNew + pdfName + ".pdf";
  405. string strurl = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepCertificateOfProductQualityZB.cpt&op=view&format=pdf"
  406. + "&BILL_NO=" + billNo + "&ORD_LN_PK=" + ordLnPk + "&ASK_ITEM_NO=" + askSubItmeValNo + "&METRIC_SYSTEM=" + metricSystemNo + "&USER=" + this.UserInfo.GetUserID() + "&TYPE=ZB&ORD_LN_DLY_PK=" + ordLnDlyPk + "&JUDGE_STOVE_NO_BATCH_NO=" + JudgeStoveNoBatchNo;
  407. byte[] pdf = webClient.DownloadData(strurl);
  408. if (pdf.Length <= 10000)
  409. {
  410. MessageUtil.ShowError("生成PDF ,请重新生成!");
  411. return;
  412. }
  413. FileBean fileBean = new FileBean();
  414. fileBean.setFile(pdf);
  415. fileBean.setFileName(pdfName + ".pdf");
  416. fileBean.setPathName(filePathNew);
  417. listPdf.Add(fileBean);
  418. webClient.Dispose();
  419. var a = FileHelper.Upload(listPdf);
  420. if (a)
  421. {
  422. //MessageUtil.ShowTips("上传成功!");
  423. row.Cells["ZBS_NAME_ZB"].Value = pdfName + ".pdf";
  424. row.Cells["ZBS_PATH_ZB"].Value = filePathNew;
  425. Query();
  426. }
  427. }
  428. }
  429. else
  430. {
  431. string askSubItmeValNo = row.Cells["LANGUAGE_CODE"].Value.ToString();
  432. //删除
  433. CoreClientParam ccp = new CoreClientParam();
  434. ccp.ServerName = "com.steering.pss.judge.DAL.QcmZbsQueryFrm";
  435. ccp.MethodName = "doDeleteZB";
  436. ccp.ServerParams = new object[] { row.Cells["ZBS_NAME_ZB"].Text.ToString(), billNoSeq, billNo, ordLnDlyPk, askSubItmeValNo };
  437. ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  438. if (ccp.ReturnCode == -1) return;
  439. MessageUtil.ShowTips(ccp.ReturnInfo);
  440. if (ccp.ReturnInfo.Equals("删除成功!"))
  441. {
  442. var a = FileHelper.Delete(filePath);
  443. if (a)
  444. {
  445. Query();
  446. }
  447. }
  448. }
  449. }
  450. }
  451. }