FrmLabDate.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. using Core.Mes.Client.Comm.Control;
  2. using Core.Mes.Client.Comm.Server;
  3. using CoreFS.CA06;
  4. using Infragistics.Win.UltraWinGrid;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.ComponentModel;
  8. using System.Data;
  9. using System.Drawing;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Windows.Forms;
  13. using Core.Mes.Client.Comm.Tool;
  14. namespace Core.StlMes.Client.Lims.Data.PipeAndOutdec.数据管理.钢管实验管理
  15. {
  16. public partial class FrmLabDate : FrmBase
  17. {
  18. private string[] plineCodes = { };
  19. public FrmLabDate()
  20. {
  21. InitializeComponent();
  22. }
  23. protected override void OnLoad(EventArgs e)
  24. {
  25. base.OnLoad(e);
  26. InitColumns();
  27. plineCodes = comm.GetPlineCode(ValidDataPurviewIds, ob);
  28. }
  29. private void InitColumns()
  30. {
  31. DateTime now = DateTime.Now;
  32. DateTime date = new DateTime(now.Year, now.Month, 1);
  33. cmbDate.Value = DateTime.Parse(date.ToString("yyyy-MM-dd 07:00"));
  34. cmbEndDate.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm"));
  35. //加载产线
  36. DataTable dt = PublicServer.GetData("com.steering.lims.data.pipe.FrmCheckConsignAdd.queryPlineCode", new object[] { plineCodes }, ob);
  37. if (dt != null && dt.Rows.Count > 0)
  38. {
  39. ultraPLINE_CODE.DataSource = dt;
  40. ultraPLINE_CODE.ValueMember = "PLINE_CODE";
  41. ultraPLINE_CODE.DisplayMember = "PLINE_NAME";
  42. ucPlineCode.DataSource = dt;
  43. ucPlineCode.ValueMember = "PLINE_CODE_A";
  44. ucPlineCode.DisplayMember = "PLINE_NAME";
  45. }
  46. }
  47. /// <summary>
  48. /// 重写基类方法
  49. /// </summary>
  50. /// <param name="sender"></param>
  51. /// <param name="ToolbarKey"></param>
  52. public override void ToolBar_Click(object sender, string ToolbarKey)
  53. {
  54. switch (ToolbarKey)
  55. {
  56. case "Query":
  57. doQuery();
  58. break;
  59. case "Export":
  60. ExportData();
  61. break;
  62. case "Print":
  63. doPrint();
  64. break;
  65. case "Close":
  66. this.Close();
  67. break;
  68. }
  69. }
  70. //打印
  71. /// <summary>
  72. /// 打印
  73. /// </summary>
  74. private void doPrint()
  75. {
  76. UltraGridRow row = ugMain.ActiveRow;
  77. string CHECK_NO = row.Cells["CHECK_NO"].Text.ToString();
  78. string CONTRACT_NO = row.Cells["CONTRACT_NO"].Text.ToString();
  79. string CAILI_PATH = row.Cells["CAILI_PATH"].Text.ToString();
  80. string JINWU_PATH = row.Cells["JINWU_PATH"].Text.ToString();
  81. string url = "";
  82. if (!CAILI_PATH.Equals("") && !JINWU_PATH.Equals(""))
  83. {
  84. url = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepLimsPipeLxRclJw.cpt&CHECK_NO=" + CHECK_NO + "&CONTRACT_NO=" + CONTRACT_NO;
  85. }
  86. if (!CAILI_PATH.Equals("") && JINWU_PATH.Equals(""))
  87. {
  88. url = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepLimsPipeLxRcl.cpt&CHECK_NO=" + CHECK_NO + "&CONTRACT_NO=" + CONTRACT_NO;
  89. }
  90. if (CAILI_PATH.Equals("") && !JINWU_PATH.Equals(""))
  91. {
  92. url = "http://172.54.10.42:8080/webroot/decision/view/report?viewlet=RepLimsPipeRclJw.cpt&CHECK_NO=" + CHECK_NO + "&CONTRACT_NO=" + CONTRACT_NO;
  93. }
  94. FrmExcel fre = new FrmExcel(this.ob, url);
  95. fre.AutoSize = true;
  96. fre.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
  97. fre.WindowState = FormWindowState.Maximized;
  98. fre.Show();
  99. }
  100. /// <summary>
  101. /// 查询
  102. /// </summary>
  103. private void doQuery()
  104. {
  105. string date = "";
  106. string endDate = "";
  107. string CHECK_NO = "";
  108. string CONTRACT_NO = "";
  109. string HEAT_NO = "";
  110. string PLINE_CODE = "";
  111. if (chkDate.Checked)
  112. {
  113. if (DataTimeUtil.JudgeTime(DateTime.Parse(cmbDate.Value.ToString()), DateTime.Parse(cmbEndDate.Value.ToString())) == 0)
  114. {
  115. MessageUtil.ShowTips("您所选择的日期区域不对,请重新选择!");
  116. return;
  117. }
  118. else
  119. {
  120. date = cmbDate.Value.ToString();
  121. endDate = cmbEndDate.Value.ToString();
  122. }
  123. }
  124. if (chkCHECK_NO.Checked)
  125. {
  126. if (ultraCHECK_NO.Text.Trim() == "")
  127. {
  128. CHECK_NO = "";
  129. }
  130. else
  131. {
  132. CHECK_NO = ultraCHECK_NO.Value.ToString();
  133. }
  134. }
  135. if (chkCONTRACT_NO.Checked)
  136. {
  137. if (ultraCONTRACT_NO.Text.Trim() == "")
  138. {
  139. CONTRACT_NO = "";
  140. }
  141. else
  142. {
  143. CONTRACT_NO = ultraCONTRACT_NO.Value.ToString();
  144. }
  145. }
  146. if (chkHEAT_NO.Checked)
  147. {
  148. if (ultraHEAT_NO.Text.Trim() == "")
  149. {
  150. HEAT_NO = "";
  151. }
  152. else
  153. {
  154. HEAT_NO = ultraHEAT_NO.Value.ToString();
  155. }
  156. }
  157. if (chkPLINE_CODE.Checked)
  158. {
  159. if (ultraPLINE_CODE.Text.Trim() == "")
  160. {
  161. PLINE_CODE = "";
  162. }
  163. else
  164. {
  165. PLINE_CODE = ultraPLINE_CODE.Value.ToString().Substring(0, 4);
  166. }
  167. }
  168. if (CHECK_NO + CONTRACT_NO + HEAT_NO + PLINE_CODE + date == "")
  169. {
  170. MessageBox.Show("请输入查询条件");
  171. return;
  172. }
  173. //WaitingForm2 wf = new WaitingForm2("正在加载,请稍候....");
  174. DataTable dt = PublicServer.GetData("com.steering.lims.data.pipe.FrmCheckConsignAdd.queryReport", new Object[] { date, endDate, CHECK_NO, CONTRACT_NO, HEAT_NO, PLINE_CODE, plineCodes }, this.ob);
  175. if (dt == null || dt.Rows.Count == 0)
  176. {
  177. MessageBox.Show("没有找到数据,请重新输入查询条件!");
  178. return;
  179. }
  180. GridHelper.CopyDataToDatatable(dt, this.dataTable1, true);
  181. GridHelper.RefreshAndAutoSize(this.ugMain);
  182. //wf.Close();
  183. }
  184. /// <summary>
  185. /// 批量下载
  186. /// </summary>
  187. private void ExportData()
  188. {
  189. if (ugMain.Selected.Rows.Count <= 0)
  190. {
  191. MessageUtil.ShowWarning("请拖选您要批量下载的探伤报告!");
  192. return;
  193. }
  194. List<string> pathList = new List<string>();
  195. foreach (UltraGridRow uRow in ugMain.Selected.Rows)
  196. {
  197. if (uRow.GetType() != typeof(Infragistics.Win.UltraWinGrid.UltraGridGroupByRow))
  198. {
  199. string CAILI_PATH = uRow.GetValue("CAILI_PATH");
  200. if (CAILI_PATH != "") { pathList.Add(CAILI_PATH); }
  201. string FUSHI_PATH = uRow.GetValue("FUSHI_PATH");
  202. if (FUSHI_PATH != "") { pathList.Add(FUSHI_PATH); }
  203. string JINWU_PATH = uRow.GetValue("JINWU_PATH");
  204. if (JINWU_PATH != "") { pathList.Add(JINWU_PATH); }
  205. string GONGCHENG_PATH = uRow.GetValue("GONGCHENG_PATH");
  206. if (GONGCHENG_PATH != "") { pathList.Add(GONGCHENG_PATH); }
  207. string DIBEI_PATH = uRow.GetValue("DIBEI_PATH");
  208. if (DIBEI_PATH != "") { pathList.Add(DIBEI_PATH); }
  209. string HUAXUE_PATH = uRow.GetValue("HUAXUE_PATH");
  210. if (HUAXUE_PATH != "") { pathList.Add(HUAXUE_PATH); }
  211. }
  212. }
  213. dlgOrderAskDown down = new dlgOrderAskDown(this.ob, pathList);
  214. down.DeleteButton.Visible = false;
  215. down.ShowDialog();
  216. //打开下载后的文件夹
  217. if (down.Pic != "")
  218. System.Diagnostics.Process.Start("Explorer.exe", down.Pic);
  219. }
  220. private void chkDate_CheckedChanged(object sender, EventArgs e)
  221. {
  222. if (chkDate.Checked) { cmbDate.Enabled = true; } else { cmbDate.Enabled = false; }
  223. if (chkDate.Checked) { cmbEndDate.Enabled = true; } else { cmbEndDate.Enabled = false; }
  224. if (chkCHECK_NO.Checked) { ultraCHECK_NO.Enabled = true; } else { ultraCHECK_NO.Enabled = false; }
  225. if (chkCONTRACT_NO.Checked) { ultraCONTRACT_NO.Enabled = true; } else { ultraCONTRACT_NO.Enabled = false; }
  226. if (chkHEAT_NO.Checked) { ultraHEAT_NO.Enabled = true; } else { ultraHEAT_NO.Enabled = false; }
  227. if (chkPLINE_CODE.Checked) { ultraPLINE_CODE.Enabled = true; } else { ultraPLINE_CODE.Enabled = false; }
  228. }
  229. private void ultraTextEditor1_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
  230. {
  231. UltraGridRow row = ugMain.ActiveRow;
  232. if (e.Button.Key.ToLower().Equals("select"))
  233. {
  234. if (ugMain.ActiveCell.Column.Key == "CAILI_PATH")
  235. {
  236. //材力报告
  237. string filePath = row.GetValue("CAILI_PATH");
  238. dlgOrderAskDown down = new dlgOrderAskDown(this.ob, filePath);
  239. down.DeleteButton.Visible = false;
  240. down.ShowDialog();
  241. }
  242. else if (ugMain.ActiveCell.Column.Key == "CAILI_PATH_FUJIAN")
  243. {
  244. //材力报告附件
  245. string filePath = row.GetValue("CAILI_PATH_FUJIAN");
  246. dlgOrderAskDown down = new dlgOrderAskDown(this.ob, filePath);
  247. down.DeleteButton.Visible = false;
  248. down.ShowDialog();
  249. }
  250. else if (ugMain.ActiveCell.Column.Key == "FUSHI_PATH")
  251. {
  252. //腐蚀报告
  253. string filePath = row.GetValue("FUSHI_PATH");
  254. dlgOrderAskDown down = new dlgOrderAskDown(this.ob, filePath);
  255. down.DeleteButton.Visible = false;
  256. down.ShowDialog();
  257. }
  258. else if (ugMain.ActiveCell.Column.Key == "JINWU_PATH")
  259. {
  260. //金物报告
  261. string filePath = row.GetValue("JINWU_PATH");
  262. dlgOrderAskDown down = new dlgOrderAskDown(this.ob, filePath);
  263. down.DeleteButton.Visible = false;
  264. down.ShowDialog();
  265. }
  266. else if (ugMain.ActiveCell.Column.Key == "GONGCHENG_PATH")
  267. {
  268. //工程报告
  269. string filePath = row.GetValue("GONGCHENG_PATH");
  270. dlgOrderAskDown down = new dlgOrderAskDown(this.ob, filePath);
  271. down.DeleteButton.Visible = false;
  272. down.ShowDialog();
  273. }
  274. else if (ugMain.ActiveCell.Column.Key == "DIBEI_PATH")
  275. {
  276. //低倍报告
  277. string filePath = row.GetValue("DIBEI_PATH");
  278. dlgOrderAskDown down = new dlgOrderAskDown(this.ob, filePath);
  279. down.DeleteButton.Visible = false;
  280. down.ShowDialog();
  281. }
  282. else if (ugMain.ActiveCell.Column.Key == "HUAXUE_PATH")
  283. {
  284. //化学报告
  285. string filePath = row.GetValue("HUAXUE_PATH");
  286. dlgOrderAskDown down = new dlgOrderAskDown(this.ob, filePath);
  287. down.DeleteButton.Visible = false;
  288. down.ShowDialog();
  289. }
  290. }
  291. if (e.Button.Key.ToLower().Equals("update"))
  292. {
  293. if (ugMain.ActiveCell.Column.Key == "CAILI_PATH")
  294. {
  295. //材力报告
  296. string filePath = row.GetValue("CAILI_PATH");
  297. updateFile(filePath);
  298. }
  299. else if (ugMain.ActiveCell.Column.Key == "FUSHI_PATH")
  300. {
  301. //腐蚀报告
  302. string filePath = row.GetValue("FUSHI_PATH");
  303. updateFile(filePath);
  304. }
  305. else if (ugMain.ActiveCell.Column.Key == "JINWU_PATH")
  306. {
  307. //金物报告
  308. string filePath = row.GetValue("JINWU_PATH");
  309. updateFile(filePath);
  310. }
  311. else if (ugMain.ActiveCell.Column.Key == "GONGCHENG_PATH")
  312. {
  313. //工程报告
  314. string filePath = row.GetValue("GONGCHENG_PATH");
  315. updateFile(filePath);
  316. }
  317. else if (ugMain.ActiveCell.Column.Key == "DIBEI_PATH")
  318. {
  319. //低倍报告
  320. string filePath = row.GetValue("DIBEI_PATH");
  321. updateFile(filePath);
  322. }
  323. else if (ugMain.ActiveCell.Column.Key == "HUAXUE_PATH")
  324. {
  325. //化学报告
  326. string filePath = row.GetValue("HUAXUE_PATH");
  327. updateFile(filePath);
  328. }
  329. }
  330. }
  331. /// <summary>
  332. /// 替换
  333. /// </summary>
  334. /// <param name="path"></param>
  335. private void updateFile(string path)
  336. {
  337. List<FileBean> list = new List<FileBean>();
  338. FileBean bean = new FileBean();
  339. OpenFileDialog file = new OpenFileDialog();
  340. //file.Filter = "图片文件(*.jpg);(*.gif);(*.png);(*.bmp)|*.jpg;*.gif;*.png;*.bmp";
  341. //file.Title = "选择需要上传的图片";
  342. file.Multiselect = false;
  343. DialogResult drStat;
  344. drStat = file.ShowDialog();
  345. if (drStat == DialogResult.OK)
  346. {
  347. string filePath = file.FileName;
  348. string fileName = System.IO.Path.GetFileName(filePath);
  349. bean = new FileBean();
  350. bean.setFileName(fileName);
  351. bean.setPathName(path);
  352. bean.setFile(FileHelper.FileToArray(filePath));
  353. list.Add(bean);
  354. bool isSuccess = Core.Mes.Client.Comm.Server.FileHelper.Upload(list);
  355. if (isSuccess)
  356. {
  357. MessageUtil.ShowTips("替换成功!");
  358. }
  359. else
  360. {
  361. MessageUtil.ShowTips("替换失败,请重试!");
  362. }
  363. }
  364. }
  365. private void ultraPlineCODE_InitializeRow(object sender, InitializeRowEventArgs e)
  366. {
  367. if (e.Row.Cells["CAILI_FLAG"].Value.ToString2() == "1")
  368. {
  369. e.Row.Cells["CAILI_PATH"].EditorComponent = ucView;
  370. e.Row.Cells["CAILI_PATH_FUJIAN"].EditorComponent = ucView;
  371. if (e.Row.Cells["CAILI_STATUS"].Value.ToString2() == "4" || e.Row.Cells["CAILI_STATUS"].Value.ToString2() == "5")
  372. {
  373. e.Row.Cells["CAILI_PATH"].Appearance.BackColor = Color.LightGreen;
  374. }
  375. }
  376. if (e.Row.Cells["FUSHI_FLAG"].Value.ToString2() == "1")
  377. {
  378. e.Row.Cells["FUSHI_PATH"].EditorComponent = ucView;
  379. if (e.Row.Cells["FUSHI_STATUS"].Value.ToString2() == "4" || e.Row.Cells["FUSHI_STATUS"].Value.ToString2() == "5")
  380. {
  381. e.Row.Cells["FUSHI_PATH"].Appearance.BackColor = Color.LightGreen;
  382. }
  383. }
  384. if (e.Row.Cells["JINWU_FLAG"].Value.ToString2() == "1")
  385. {
  386. e.Row.Cells["JINWU_PATH"].EditorComponent = ucView;
  387. if (e.Row.Cells["JINWU_STATUS"].Value.ToString2() == "4" || e.Row.Cells["JINWU_STATUS"].Value.ToString2() == "5")
  388. {
  389. e.Row.Cells["JINWU_PATH"].Appearance.BackColor = Color.LightGreen;
  390. }
  391. }
  392. if (e.Row.Cells["GONGCHENG_FLAG"].Value.ToString2() == "1")
  393. {
  394. e.Row.Cells["GONGCHENG_PATH"].EditorComponent = ucView;
  395. if (e.Row.Cells["GONGCHENG_STATUS"].Value.ToString2() == "4" || e.Row.Cells["GONGCHENG_STATUS"].Value.ToString2() == "5")
  396. {
  397. e.Row.Cells["GONGCHENG_PATH"].Appearance.BackColor = Color.LightGreen;
  398. }
  399. }
  400. if (e.Row.Cells["DIBEI_FLAG"].Value.ToString2() == "1")
  401. {
  402. e.Row.Cells["DIBEI_PATH"].EditorComponent = ucView;
  403. if (e.Row.Cells["DIBEI_STATUS"].Value.ToString2() == "4" || e.Row.Cells["DIBEI_STATUS"].Value.ToString2() == "5")
  404. {
  405. e.Row.Cells["DIBEI_PATH"].Appearance.BackColor = Color.LightGreen;
  406. }
  407. }
  408. if (e.Row.Cells["HUAXUE_FLAG"].Value.ToString2() == "1")
  409. {
  410. e.Row.Cells["HUAXUE_PATH"].EditorComponent = ucView;
  411. if (e.Row.Cells["HUAXUE_STATUS"].Value.ToString2() == "4" || e.Row.Cells["HUAXUE_STATUS"].Value.ToString2() == "5")
  412. {
  413. e.Row.Cells["HUAXUE_PATH"].Appearance.BackColor = Color.LightGreen;
  414. }
  415. }
  416. }
  417. private void button1_Click(object sender, EventArgs e)
  418. {
  419. foreach (UltraGridRow uRow in ugMain.Rows)
  420. {
  421. string checkNo = uRow.Cells["CHECK_NO"].Text.Trim();
  422. string filePathNew = "";
  423. #region 上传化学报告
  424. if (uRow.Cells["HUAXUE_FLAG"].Value.ToString2() == "1" &&
  425. uRow.Cells["HUAXUE_PATH"].Value.ToString2() == "" &&
  426. (uRow.Cells["HUAXUE_STATUS"].Value.ToString2() == "4" || uRow.Cells["HUAXUE_STATUS"].Value.ToString2() == "5"))
  427. {
  428. if (UpLoadHandle.Upload(checkNo, "RepPipeChemAnalysisReport.cpt", "huaxue", out filePathNew))
  429. {
  430. CoreClientParam ccp = new CoreClientParam();
  431. ccp.ServerName = "com.steering.lims.data.pipe.FrmLabDateParm";
  432. ccp.MethodName = "updatePipeReport";
  433. ccp.ServerParams = new object[] { checkNo, "", "", "HUAXUE_PATH", filePathNew };
  434. ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  435. if (ccp.ReturnCode != -1)
  436. {
  437. if (ccp.ReturnInfo.Equals("上传成功!"))
  438. {
  439. }
  440. else
  441. {
  442. MessageUtil.ShowTips(ccp.ReturnInfo);
  443. }
  444. }
  445. }
  446. else
  447. {
  448. MessageUtil.ShowError("系统生成PDF失败,请稍后再试!");
  449. }
  450. }
  451. #endregion
  452. #region 上传力学报告
  453. if (uRow.Cells["CAILI_FLAG"].Value.ToString2() == "1" &&
  454. uRow.Cells["CAILI_PATH"].Value.ToString2() == "" &&
  455. (uRow.Cells["CAILI_STATUS"].Value.ToString2() == "4" || uRow.Cells["CAILI_STATUS"].Value.ToString2() == "5"))
  456. {
  457. if (UpLoadHandle.Upload(checkNo, "RepLimsPipeMetallographicPG.cpt", "caili", out filePathNew, "PG"))
  458. {
  459. CoreClientParam ccp = new CoreClientParam();
  460. ccp.ServerName = "com.steering.lims.data.pipe.FrmLabDateParm";
  461. ccp.MethodName = "updatePipeReport";
  462. ccp.ServerParams = new object[] { checkNo, "", "", "CAILI_PATH", filePathNew };
  463. ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  464. if (ccp.ReturnCode != -1)
  465. {
  466. if (ccp.ReturnInfo.Equals("上传成功!"))
  467. {
  468. }
  469. else
  470. {
  471. MessageUtil.ShowTips(ccp.ReturnInfo);
  472. }
  473. }
  474. }
  475. else
  476. {
  477. MessageUtil.ShowError("系统生成PDF失败,请稍后再试!");
  478. }
  479. }
  480. #endregion
  481. #region 上传金物报告
  482. if (uRow.Cells["JINWU_FLAG"].Value.ToString2() == "1" &&
  483. uRow.Cells["JINWU_PATH"].Value.ToString2() == "" &&
  484. (uRow.Cells["JINWU_STATUS"].Value.ToString2() == "4" || uRow.Cells["JINWU_STATUS"].Value.ToString2() == "5"))
  485. {
  486. if (UpLoadHandle.Upload(checkNo, "RepPipeMetallographic.cpt", "jinwu", out filePathNew))
  487. {
  488. CoreClientParam ccp = new CoreClientParam();
  489. ccp.ServerName = "com.steering.lims.data.pipe.FrmLabDateParm";
  490. ccp.MethodName = "updatePipeReport";
  491. ccp.ServerParams = new object[] { checkNo, "", "", "JINWU_PATH", filePathNew };
  492. ccp = ob.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  493. if (ccp.ReturnCode != -1)
  494. {
  495. if (ccp.ReturnInfo.Equals("上传成功!"))
  496. {
  497. }
  498. else
  499. {
  500. MessageUtil.ShowTips(ccp.ReturnInfo);
  501. }
  502. }
  503. }
  504. else
  505. {
  506. MessageUtil.ShowError("系统生成PDF失败,请稍后再试!");
  507. }
  508. }
  509. #endregion
  510. }
  511. doQuery();
  512. }
  513. }
  514. }