83ad8e91084d8c10f78bedccbc32e44b9ac602fb.svn-base 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.Collections;
  10. using CoreFS.CA06;
  11. using Infragistics.Win.UltraWinGrid;
  12. using Infragistics.Win;
  13. using Newtonsoft.Json;
  14. using Newtonsoft.Json.Linq;
  15. namespace Core.LZMes.Client.QCM
  16. {
  17. public partial class QCM0210 : FrmBase
  18. {
  19. public QCM0210()
  20. {
  21. InitializeComponent();
  22. }
  23. private void QCM0210_Load(object sender, EventArgs e)
  24. {
  25. dateTimePicker2.Value = DateTime.Now.Date.AddDays(1);
  26. ValueList v1 = new ValueList();
  27. v1.ValueListItems.Add("0", "未发送");
  28. v1.ValueListItems.Add("1", "已引用");
  29. v1.ValueListItems.Add("2", "已接收");
  30. v1.ValueListItems.Add("3", "已完成");
  31. v1.ValueListItems.Add("7", "确认接收样");
  32. this.ultraGrid1.DisplayLayout.Bands[0].Columns["STATUS"].ValueList = v1.Clone();
  33. ValueList v2 = new ValueList();
  34. v2.ValueListItems.Add("A", "成分");
  35. v2.ValueListItems.Add("B", "材质");
  36. this.ultraGrid1.DisplayLayout.Bands[0].Columns["SMP_CATG"].ValueList = v2.Clone();
  37. ValueList v3 = new ValueList();
  38. v3.ValueListItems.Add("HB1", "厚板");
  39. v3.ValueListItems.Add("ZB1", "中板");
  40. this.ultraGrid1.DisplayLayout.Bands[0].Columns["PLINE_CODE_LIMS"].ValueList = v3.Clone();
  41. ValueList v4 = new ValueList();
  42. v4.ValueListItems.Add("0", "无效");
  43. v4.ValueListItems.Add("1", "有效");
  44. this.ultraGrid3.DisplayLayout.Bands[0].Columns["YN_LOG"].ValueList = v4.Clone();
  45. }
  46. public override void ToolBar_Click(object sender, string ToolbarKey)
  47. {
  48. switch (ToolbarKey)
  49. {
  50. case "Query":
  51. this.DoQuery();
  52. break;
  53. case "BLIMS":
  54. this.DoBLIMS();
  55. break;
  56. case "BJG":
  57. this.DoBJG();
  58. break;
  59. case "InExport":
  60. break;
  61. }
  62. }
  63. #region 补发
  64. private void DoBJG()
  65. {
  66. String spNoSel = "";
  67. string fh1 = "";
  68. int num1 = 0;
  69. foreach (UltraGridRow ugr in this.ultraGrid1.Rows)
  70. {
  71. if (ugr.Cells["check"].Value.ToString().ToLower() == "true")
  72. {
  73. String PRINT_SEQ = ugr.Cells["PRINT_SEQ"].Value.ToString();
  74. if (String.IsNullOrEmpty(PRINT_SEQ))
  75. {
  76. String BATCH_NO = ugr.Cells["BATCH_NO"].Value.ToString();
  77. this.alert("轧批号:" + BATCH_NO + "还未生成编号不能使用补发按钮!");
  78. return;
  79. }
  80. String specimeNoSel = "";
  81. String ZHB_SPECIMEN_NO = ugr.Cells["ZHB_SPECIMEN_NO"].Value.ToString();
  82. if (!String.IsNullOrEmpty(ZHB_SPECIMEN_NO))
  83. {
  84. specimeNoSel = ZHB_SPECIMEN_NO;
  85. }
  86. else
  87. {
  88. specimeNoSel = ugr.Cells["SPECIMEN_NO"].Value.ToString();
  89. }
  90. num1 = num1 + 1;
  91. if (num1 <= 1)
  92. {
  93. spNoSel = specimeNoSel;
  94. fh1 = ",";
  95. }
  96. else
  97. {
  98. spNoSel = spNoSel + fh1 + specimeNoSel;
  99. }
  100. }
  101. }
  102. Hashtable ht = new Hashtable();
  103. ht.Add("USERID", this.UserInfo.GetUserID());
  104. ht.Add("USERNAME", this.UserInfo.GetUserName());
  105. ht.Add("BLG", '2');
  106. CoreClientParam ccp = new CoreClientParam();
  107. ccp.ServerName = "QCM.JHY01.JHY0102.Send2";
  108. ccp.MethodName = "GetDoBLIMS";
  109. ccp.ServerParams = new object[] { spNoSel, ht };
  110. ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  111. if (ccp.ReturnCode != -1)
  112. {
  113. MessageBox.Show("编号发送激光成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.None);
  114. }
  115. this.DoQuery();
  116. }
  117. private void DoBLIMS()
  118. {
  119. String spNoSel = "";
  120. string fh1 = "";
  121. int num1 = 0;
  122. foreach (UltraGridRow ugr in this.ultraGrid1.Rows)
  123. {
  124. if (ugr.Cells["check"].Value.ToString().ToLower() == "true")
  125. {
  126. String PRINT_SEQ = ugr.Cells["PRINT_SEQ"].Value.ToString();
  127. if (String.IsNullOrEmpty(PRINT_SEQ))
  128. {
  129. String BATCH_NO = ugr.Cells["BATCH_NO"].Value.ToString();
  130. this.alert("轧批号:" + BATCH_NO + "还未生成编号不能使用补发按钮!");
  131. return;
  132. }
  133. String specimeNoSel = "";
  134. String ZHB_SPECIMEN_NO = ugr.Cells["ZHB_SPECIMEN_NO"].Value.ToString();
  135. if (!String.IsNullOrEmpty(ZHB_SPECIMEN_NO))
  136. {
  137. specimeNoSel = ZHB_SPECIMEN_NO;
  138. }
  139. else
  140. {
  141. specimeNoSel = ugr.Cells["SPECIMEN_NO"].Value.ToString();
  142. }
  143. num1 = num1 + 1;
  144. if (num1 <= 1)
  145. {
  146. spNoSel = specimeNoSel;
  147. fh1 = ",";
  148. }
  149. else
  150. {
  151. spNoSel = spNoSel + fh1 + specimeNoSel;
  152. }
  153. }
  154. }
  155. Hashtable ht = new Hashtable();
  156. ht.Add("USERID", this.UserInfo.GetUserID());
  157. ht.Add("USERNAME", this.UserInfo.GetUserName());
  158. ht.Add("BLG", '1');
  159. CoreClientParam ccp = new CoreClientParam();
  160. ccp.ServerName = "QCM.JHY01.JHY0102.Send2";
  161. ccp.MethodName = "GetDoBLIMS";
  162. ccp.ServerParams = new object[] { spNoSel, ht };
  163. ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  164. if (ccp.ReturnCode != -1)
  165. {
  166. MessageBox.Show("编号发送LIMS成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.None);
  167. }
  168. this.DoQuery();
  169. }
  170. #endregion
  171. #region 查询
  172. private void DoQuery()
  173. {
  174. try
  175. {
  176. String SEND_TIME1 = this.dateTimePicker1.Value.ToString("yyyy-MM-dd");
  177. String SEND_TIME2 = this.dateTimePicker2.Value.ToString("yyyy-MM-dd");
  178. String sdtime = this.dateTimePicker4.Text.ToString();
  179. String SAMPLE_DELIVERY_TIME = this.SAMPLE_DELIVERY_TIME2.Text.Trim();//查询 送样时间点
  180. SAMPLE_DELIVERY_TIME = sdtime + " " + SAMPLE_DELIVERY_TIME;//送样时间点
  181. String CERT_INST_CODE = "";
  182. String CERT_INST_NAME = this.textBox2.Text.Trim();//认证机构
  183. String SMP_CATG_CODE = "";
  184. String SMP_CATG = this.cbx_smp_catg.Text.Trim();//类别
  185. String BATCH_NO1 = this.BATCH_NO1.Text.Trim();//轧批号1
  186. String BATCH_NO2 = this.BATCH_NO2.Text.Trim();//轧批号2
  187. String PLINE_CODE = "";
  188. String PLINE_NAME = this.PLINE_NAME.Text.Trim();//产线
  189. if ("检测中心".Equals(CERT_INST_NAME))
  190. {
  191. CERT_INST_CODE = "5000";
  192. }
  193. else if ("挪威船级社".Equals(CERT_INST_NAME))
  194. {
  195. CERT_INST_CODE = "IC001";
  196. }
  197. else if ("俄罗斯船级社".Equals(CERT_INST_NAME))
  198. {
  199. CERT_INST_CODE = "IC002";
  200. }
  201. else if ("法国船级社".Equals(CERT_INST_NAME))
  202. {
  203. CERT_INST_CODE = "IC003";
  204. }
  205. else if ("韩国船级社".Equals(CERT_INST_NAME))
  206. {
  207. CERT_INST_CODE = "IC004";
  208. }
  209. else if ("美国船级社".Equals(CERT_INST_NAME))
  210. {
  211. CERT_INST_CODE = "IC005";
  212. }
  213. else if ("日本船级社".Equals(CERT_INST_NAME))
  214. {
  215. CERT_INST_CODE = "IC006";
  216. }
  217. else if ("意大利船级社".Equals(CERT_INST_NAME))
  218. {
  219. CERT_INST_CODE = "IC007";
  220. }
  221. else if ("英国船级社".Equals(CERT_INST_NAME))
  222. {
  223. CERT_INST_CODE = "IC009";
  224. }
  225. else if ("中国船级社".Equals(CERT_INST_NAME))
  226. {
  227. CERT_INST_CODE = "IC010";
  228. }
  229. else if ("客户认证".Equals(CERT_INST_NAME))
  230. {
  231. CERT_INST_CODE = "IC012";
  232. }
  233. else if ("军方认证".Equals(CERT_INST_NAME))
  234. {
  235. CERT_INST_CODE = "IC013";
  236. }
  237. else if ("美国船级社(非船板)".Equals(CERT_INST_NAME))
  238. {
  239. CERT_INST_CODE = "IC023";
  240. }
  241. else if ("中国船级社(非船板)".Equals(CERT_INST_NAME))
  242. {
  243. CERT_INST_CODE = "IC024";
  244. }
  245. else if ("劳盛工业(上海)".Equals(CERT_INST_NAME))
  246. {
  247. CERT_INST_CODE = "IC026";
  248. }
  249. if ("材质".Equals(SMP_CATG))
  250. {
  251. SMP_CATG_CODE = "B";
  252. }
  253. else if ("成分".Equals(SMP_CATG))
  254. {
  255. SMP_CATG_CODE = "A";
  256. }
  257. if ("厚板线".Equals(PLINE_NAME))
  258. {
  259. PLINE_CODE = "HB1";
  260. }
  261. else if ("中板线".Equals(PLINE_NAME))
  262. {
  263. PLINE_CODE = "ZB1";
  264. }
  265. if(this.checkBox4.Checked){
  266. SEND_TIME1 = "";
  267. SEND_TIME2 = "";
  268. }
  269. else
  270. {
  271. SAMPLE_DELIVERY_TIME = "";
  272. }
  273. if (this.checkBox1.Checked)
  274. {
  275. SEND_TIME1 = "";
  276. SEND_TIME2 = "";
  277. }
  278. else
  279. {
  280. BATCH_NO1 = "";
  281. BATCH_NO2 = "";
  282. }
  283. String YN = "N";
  284. if (this.checkBox3.Checked)
  285. {
  286. YN = "1";
  287. }
  288. Hashtable ht = new Hashtable();
  289. ht.Add("SEND_TIME1", SEND_TIME1);
  290. ht.Add("SEND_TIME2", SEND_TIME2);
  291. ht.Add("SAMPLE_DELIVERY_TIME", SAMPLE_DELIVERY_TIME);
  292. ht.Add("CERT_INST_CODE", CERT_INST_CODE);
  293. ht.Add("SMP_CATG_CODE", SMP_CATG_CODE);
  294. ht.Add("BATCH_NO1", BATCH_NO1);
  295. ht.Add("BATCH_NO2", BATCH_NO2);
  296. ht.Add("PLINE_CODE", PLINE_CODE);
  297. ht.Add("YN", YN);
  298. CoreClientParam ccp = new CoreClientParam();
  299. if (this.TabControl.SelectedIndex == 0) //检验委托
  300. {
  301. this.dataSet2.Clear();
  302. ccp.ServerName = "QCM.JHY01.JHY0102.QuerryJhyQtly";
  303. ccp.MethodName = "getHZBNumber";
  304. ccp.SourceDataTable = this.dataSet2.Tables[0];
  305. ccp.ServerParams = new object[] { ht };
  306. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  307. // ClsControlPack.RefreshAndAutoSize(ultraGrid1);
  308. foreach (UltraGridRow ugr in this.ultraGrid1.Rows)
  309. {
  310. if (ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "复样")
  311. {
  312. ugr.Cells["SMP_TYPE_NAME"].Appearance.ForeColor = Color.Red;
  313. }
  314. if (ugr.Cells["SMP_LOCATION"].Value.ToString().Contains("一次模拟焊后"))
  315. {
  316. if (ugr.Cells["SMP_LOCATION"].Value.ToString().Contains("一次模拟焊后")
  317. && (ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "复样" || ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "卷卷取样"
  318. || ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "按母板取样"))
  319. {
  320. ugr.Cells["SMP_TYPE_NAME"].Value = "一次模拟焊后" + ugr.Cells["SMP_TYPE_NAME"].Value.ToString();
  321. }
  322. else
  323. {
  324. ugr.Cells["SMP_TYPE_NAME"].Value = "一次模拟焊后";
  325. }
  326. }
  327. else if (ugr.Cells["SMP_LOCATION"].Value.ToString().Contains("二次模拟焊后"))
  328. {
  329. if (ugr.Cells["SMP_LOCATION"].Value.ToString().Contains("二次模拟焊后")
  330. && (ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "复样" || ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "卷卷取样"
  331. || ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "按母板取样"))
  332. {
  333. ugr.Cells["SMP_TYPE_NAME"].Value = "二次模拟焊后" + ugr.Cells["SMP_TYPE_NAME"].Value.ToString();
  334. }
  335. else
  336. {
  337. ugr.Cells["SMP_TYPE_NAME"].Value = "二次模拟焊后";
  338. }
  339. }
  340. else if (ugr.Cells["SMP_LOCATION"].Value.ToString().Contains("三次模拟焊后"))
  341. {
  342. if (ugr.Cells["SMP_LOCATION"].Value.ToString().Contains("三次模拟焊后")
  343. && (ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "复样" || ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "卷卷取样"
  344. || ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "按母板取样"))
  345. {
  346. ugr.Cells["SMP_TYPE_NAME"].Value = "三次模拟焊后" + ugr.Cells["SMP_TYPE_NAME"].Value.ToString();
  347. }
  348. else
  349. {
  350. ugr.Cells["SMP_TYPE_NAME"].Value = "三次模拟焊后";
  351. }
  352. }
  353. else if (ugr.Cells["SMP_LOCATION"].Value.ToString().Contains("四次模拟焊后"))
  354. {
  355. if (ugr.Cells["SMP_LOCATION"].Value.ToString().Contains("四次模拟焊后")
  356. && (ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "复样" || ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "卷卷取样"
  357. || ugr.Cells["SMP_TYPE_NAME"].Value.ToString() == "按母板取样"))
  358. {
  359. ugr.Cells["SMP_TYPE_NAME"].Value = "四次模拟焊后" + ugr.Cells["SMP_TYPE_NAME"].Value.ToString();
  360. }
  361. else
  362. {
  363. ugr.Cells["SMP_TYPE_NAME"].Value = "四次模拟焊后";
  364. }
  365. }
  366. if (ugr.Cells["SMP_CATG"].Value.ToString().Equals("A"))
  367. {
  368. ugr.Appearance.BackColor = Color.Aqua;
  369. }
  370. }
  371. }
  372. else
  373. {
  374. this.dataSet1.Clear();
  375. ccp.ServerName = "QCM.JHY01.JHY0102.QuerryJhyQtly";
  376. ccp.MethodName = "getHZBNumberQ";
  377. ccp.SourceDataTable = this.dataSet1.Tables[0];
  378. ccp.ServerParams = new object[] { ht };
  379. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  380. // ClsControlPack.RefreshAndAutoSize(ultraGrid3);
  381. }
  382. this.checkBox2.Checked = false;
  383. }
  384. catch (Exception ex)
  385. {
  386. System.Diagnostics.Debug.WriteLine(ex.ToString());
  387. MessageBox.Show("查询异常!", "警告");
  388. }
  389. }
  390. #endregion
  391. #region 生成按钮
  392. private void button2_Click(object sender, EventArgs e)
  393. {
  394. this.DoUpdate();
  395. }
  396. private void DoUpdate()
  397. {
  398. String spNoSel = "";
  399. string fh1 = "";
  400. int num1 = 0;
  401. foreach (UltraGridRow ugr in this.ultraGrid1.Rows)
  402. {
  403. if (ugr.Cells["check"].Value.ToString().ToLower() == "true")
  404. {
  405. String PRINT_SEQ = ugr.Cells["PRINT_SEQ"].Value.ToString();
  406. String PRINT_SEQJ = ugr.Cells["PRINT_SEQJ"].Value.ToString();
  407. if (!String.IsNullOrEmpty(PRINT_SEQ) || !String.IsNullOrEmpty(PRINT_SEQJ))
  408. {
  409. String BATCH_NO = ugr.Cells["BATCH_NO"].Value.ToString();
  410. this.alert("轧批号:" + BATCH_NO + "已生成编号不可重复生成!!!");
  411. return;
  412. }
  413. String specimeNoSel = "";
  414. String ZHB_SPECIMEN_NO = ugr.Cells["ZHB_SPECIMEN_NO"].Value.ToString();
  415. if (!String.IsNullOrEmpty(ZHB_SPECIMEN_NO))
  416. {
  417. specimeNoSel = ZHB_SPECIMEN_NO;
  418. }
  419. else
  420. {
  421. specimeNoSel = ugr.Cells["SPECIMEN_NO"].Value.ToString();
  422. }
  423. num1 = num1 + 1;
  424. if (num1 <= 1)
  425. {
  426. spNoSel = specimeNoSel;
  427. fh1 = ",";
  428. }
  429. else
  430. {
  431. spNoSel = spNoSel + fh1 + specimeNoSel;
  432. }
  433. }
  434. }
  435. Hashtable ht = new Hashtable();
  436. ht.Add("USERID", this.UserInfo.GetUserID());
  437. ht.Add("USERNAME", this.UserInfo.GetUserName());
  438. CoreClientParam ccp = new CoreClientParam();
  439. ccp.ServerName = "QCM.JHY01.JHY0102.Send2";
  440. ccp.MethodName = "GetGenerateSteel";
  441. ccp.ServerParams = new object[] { spNoSel, ht };
  442. ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  443. if (ccp.ReturnCode != -1)
  444. {
  445. MessageBox.Show("生成成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.None);
  446. }
  447. this.DoQuery();
  448. }
  449. #endregion
  450. #region 全选
  451. private void checkBox2_CheckedChanged(object sender, EventArgs e)
  452. {
  453. foreach (UltraGridRow ugr in this.ultraGrid1.Rows.Where(p => p.IsFilteredOut == false).ToList())
  454. {
  455. if (checkBox2.Checked)
  456. {
  457. ugr.Cells["check"].Value = "True";
  458. }
  459. else
  460. {
  461. ugr.Cells["check"].Value = "False";
  462. }
  463. }
  464. }
  465. #endregion
  466. #region 勾选框事件
  467. private void checkBox4_Click(object sender, EventArgs e)
  468. {
  469. if (this.checkBox4.Checked)
  470. {
  471. this.dateTimePicker1.Enabled = false;
  472. this.dateTimePicker2.Enabled = false;
  473. this.dateTimePicker4.Enabled = true;
  474. this.SAMPLE_DELIVERY_TIME2.Enabled = true;
  475. }
  476. else
  477. {
  478. if (!this.checkBox1.Checked)
  479. {
  480. this.dateTimePicker1.Enabled = true;
  481. this.dateTimePicker2.Enabled = true;
  482. }
  483. this.dateTimePicker4.Enabled = false;
  484. this.SAMPLE_DELIVERY_TIME2.Enabled = false;
  485. }
  486. }
  487. private void checkBox1_Click(object sender, EventArgs e)
  488. {
  489. if (this.checkBox1.Checked)
  490. {
  491. this.dateTimePicker1.Enabled = false;
  492. this.dateTimePicker2.Enabled = false;
  493. this.BATCH_NO1.Enabled = true;
  494. this.BATCH_NO2.Enabled = true;
  495. }
  496. else
  497. {
  498. if (!this.checkBox4.Checked)
  499. {
  500. this.dateTimePicker1.Enabled = true;
  501. this.dateTimePicker2.Enabled = true;
  502. }
  503. this.BATCH_NO1.Enabled = false;
  504. this.BATCH_NO2.Enabled = false;
  505. }
  506. }
  507. #endregion
  508. #region 重置
  509. private void ultraGrid3_InitializeRow(object sender, InitializeRowEventArgs e)
  510. {
  511. e.Row.Cells["reset"].Value = "重置";
  512. }
  513. private void ultraGrid3_ClickCellButton(object sender, CellEventArgs e)
  514. {
  515. ultraGrid3.UpdateData();
  516. if (e.Cell.Column.Key == "reset")
  517. {
  518. try
  519. {
  520. UltraGridRow row = ultraGrid3.ActiveRow;
  521. if (row.Cells["YN_LOG"].Value.ToString().Equals("0"))
  522. {
  523. this.alert("请重置有效数据!");
  524. return;
  525. }
  526. String CERT_INST_NAME = row.Cells["CERT_INST_NAME"].Value.ToString();
  527. if (MessageBox.Show("确定要重置" + CERT_INST_NAME + "吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) == DialogResult.No)
  528. {
  529. return;
  530. }
  531. String CERT_INST_CODE = row.Cells["CERT_INST_CODE"].Value.ToString();
  532. String FH_LOG = row.Cells["FH_LOG"].Value.ToString();
  533. String YYMM = row.Cells["YYMM"].Value.ToString();
  534. CoreClientParam ccp = new CoreClientParam();
  535. Hashtable ht = new Hashtable();
  536. ht.Add("USERID", this.UserInfo.GetUserID());
  537. ht.Add("USERNAME", this.UserInfo.GetUserName());
  538. ht.Add("CERT_INST_CODE", CERT_INST_CODE);
  539. ht.Add("FH_LOG", FH_LOG);
  540. ht.Add("YYMM", YYMM);
  541. ccp.ServerName = "QCM.JHY01.JHY0102.UpdateInfo";
  542. ccp.MethodName = "upShipInspec";
  543. ccp.ServerParams = new object[] { ht };
  544. ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  545. if (ccp.ReturnCode != -1)
  546. {
  547. MessageBox.Show("重置成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.None);
  548. }
  549. this.DoQuery();
  550. }
  551. catch (Exception ex)
  552. {
  553. System.Diagnostics.Debug.WriteLine(ex.ToString());
  554. MessageBox.Show("系统出错,请联系管理人员", "警告");
  555. }
  556. }
  557. }
  558. #endregion
  559. }
  560. }