UIK040040.cs 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  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 CoreFS.CA06;
  10. using System.Collections;
  11. using Infragistics.Win.UltraWinGrid;
  12. namespace Core.LZMes.Client.UIK
  13. {
  14. public partial class UIK040040 : FrmBase
  15. {
  16. public UIK040040()
  17. {
  18. InitializeComponent();
  19. }
  20. string mcID = null;
  21. string mcIDName = null;
  22. public override void ToolBar_Click(object sender, string ToolbarKey)
  23. {
  24. switch (ToolbarKey)
  25. {
  26. case "Query":
  27. this.DoQuery();
  28. break;
  29. case "Save"://保存(上)
  30. this.DoSave();
  31. break;
  32. case "Save1"://保存(下)
  33. this.DoSave_1();
  34. break;
  35. case "Delete"://上
  36. this.DoDelete("S");
  37. break;
  38. case "Delete1"://删除下
  39. this.DoDelete("X");
  40. break;
  41. }
  42. }
  43. public void DoQuery()
  44. {
  45. try
  46. {
  47. if (this.ultraTabControl1.SelectedTab.Index == 0)
  48. {
  49. this.dataSet1.Tables[0].Clear();
  50. ArrayList al = new ArrayList();
  51. al.Add("UIK040040_01.SELECT");
  52. al.Add(this.textBox1.Text.ToString().Trim());
  53. al.Add(this.textBox2.Text.ToString().Trim());
  54. // al.Add(this.comboBox1.SelectedValue.ToString());
  55. CoreClientParam ccp = new CoreClientParam();
  56. ccp.ServerName = "UIB.COM.ComDBQuery";
  57. ccp.MethodName = "doSimpleQuery";
  58. ccp.ServerParams = new object[] { al };
  59. ccp.SourceDataTable = this.dataSet1.Tables[0];
  60. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  61. }
  62. else if (this.ultraTabControl1.SelectedTab.Index == 1)
  63. {
  64. this.dataSet1.Tables[3].Clear();
  65. ArrayList al = new ArrayList();
  66. al.Add("UIK040040_04.SELECT");
  67. al.Add(this.textBox1.Text.ToString().Trim());
  68. al.Add(this.textBox2.Text.ToString().Trim());
  69. // al.Add(this.comboBox1.SelectedValue.ToString());
  70. CoreClientParam ccp = new CoreClientParam();
  71. ccp.ServerName = "UIB.COM.ComDBQuery";
  72. ccp.MethodName = "doSimpleQuery";
  73. ccp.ServerParams = new object[] { al };
  74. ccp.SourceDataTable = this.dataSet1.Tables[3];
  75. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  76. }
  77. else if (this.ultraTabControl1.SelectedTab.Index == 2)
  78. {
  79. this.dataSet1.Tables[2].Clear();
  80. ArrayList al = new ArrayList();
  81. al.Add("UIK040040_03.SELECT");
  82. al.Add(this.textBox1.Text.ToString().Trim());
  83. al.Add(this.textBox2.Text.ToString().Trim());
  84. CoreClientParam ccp = new CoreClientParam();
  85. ccp.ServerName = "UIB.COM.ComDBQuery";
  86. ccp.MethodName = "doSimpleQuery";
  87. ccp.ServerParams = new object[] { al };
  88. ccp.SourceDataTable = this.dataSet1.Tables[2];
  89. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  90. }
  91. }
  92. catch (Exception ex)
  93. {
  94. }
  95. }
  96. public void DoSave()
  97. {
  98. try
  99. {
  100. ArrayList list = null;
  101. if (this.ultraTabControl1.SelectedTab.Index == 0)
  102. {
  103. foreach (UltraGridRow ugr in this.ultraGrid1.Rows)
  104. {
  105. if (Convert.ToBoolean(ugr.Cells["CHK"].Value))
  106. {
  107. if (ugr.Cells["MC_ID_FLAG"].Text == "")//insert
  108. {
  109. list = new ArrayList();
  110. list.Add("UIK040040_01.INSERT");
  111. list.Add(ugr.Cells["MC_ID"].Text);
  112. list.Add(ugr.Cells["MC_NAME"].Text);
  113. list.Add(ugr.Cells["MC_MODEL"].Text);
  114. list.Add(ugr.Cells["MC_SPEC"].Text);
  115. list.Add(ugr.Cells["MC_STARTTIME"].Text);
  116. list.Add(ugr.Cells["MC_CHANGTIME"].Text);
  117. list.Add(ugr.Cells["MC_CHECKTIME"].Text);
  118. list.Add(ugr.Cells["AREA"].Text);
  119. list.Add(ugr.Cells["MC_UNIT"].Text);
  120. list.Add(ugr.Cells["MC_STAT"].Text);
  121. list.Add(this.UserInfo.GetUserName());
  122. list.Add(ugr.Cells["MC_CHECKCYCLE"].Text);
  123. list.Add(ugr.Cells["MC_CHANGCYCLE"].Text);
  124. list.Add(ugr.Cells["NX_MC_CHECKTIME"].Text);
  125. list.Add(ugr.Cells["NX_MC_CHANGTIME"].Text);
  126. list.Add(ugr.Cells["SU_MC_ID"].Text);
  127. list.Add(ugr.Cells["MAIN_MC_NAME"].Text);
  128. // list.Add(ugr.Cells["DDDD"].Text);
  129. CoreClientParam ccp = new CoreClientParam();
  130. ccp.ServerName = "UIB.COM.ComDBSave";
  131. ccp.ServerParams = new object[] { list };
  132. ccp.MethodName = "doXmlSave";
  133. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  134. }
  135. else if (ugr.Cells["MC_ID_FLAG"].Text != "")//update
  136. {
  137. list = new ArrayList();
  138. list.Add("UIK040040_01.UPDATE");
  139. // list.Add(ugr.Cells["MC_ID"].Text);
  140. list.Add(ugr.Cells["MC_NAME"].Text);
  141. list.Add(ugr.Cells["MC_MODEL"].Text);
  142. list.Add(ugr.Cells["MC_SPEC"].Text);
  143. list.Add(ugr.Cells["MC_STARTTIME"].Text);
  144. list.Add(ugr.Cells["MC_CHANGTIME"].Text);
  145. list.Add(ugr.Cells["MC_CHECKTIME"].Text);
  146. list.Add(ugr.Cells["AREA"].Text);
  147. //list.Add(ugr.Cells["MC_NOM_CAP"].Text);
  148. list.Add(ugr.Cells["MC_UNIT"].Text);
  149. list.Add(ugr.Cells["MC_STAT"].Text);
  150. list.Add(this.UserInfo.GetUserName());
  151. list.Add(ugr.Cells["MC_CHECKCYCLE"].Text);
  152. list.Add(ugr.Cells["MC_CHANGCYCLE"].Text);
  153. list.Add(ugr.Cells["NX_MC_CHECKTIME"].Text);
  154. list.Add(ugr.Cells["NX_MC_CHANGTIME"].Text);
  155. list.Add(ugr.Cells["SU_MC_ID"].Text);
  156. list.Add(ugr.Cells["MAIN_MC_NAME"].Text);
  157. list.Add(ugr.Cells["MC_ID_FLAG"].Text);
  158. CoreClientParam ccp = new CoreClientParam();
  159. ccp.ServerName = "UIB.COM.ComDBSave";
  160. ccp.ServerParams = new object[] { list };
  161. ccp.MethodName = "doXmlSave";
  162. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  163. }
  164. }
  165. }
  166. }
  167. else if (this.ultraTabControl1.SelectedTab.Index == 1)
  168. {
  169. Hashtable ht = null;
  170. foreach (UltraGridRow ugr in this.ultraGrid4.Rows)
  171. {
  172. if (ugr.Cells["CHK"].Text.ToString() == "True")
  173. {
  174. if (ugr.Cells["MC_ID_FLAG"].Text == "")//insert
  175. {
  176. CoreClientParam ccp = new CoreClientParam();
  177. ht = new Hashtable();
  178. ht.Add("i1", ugr.Cells["MC_ID"].Text);
  179. ht.Add("i2", ugr.Cells["MC_NAME"].Text);
  180. ht.Add("i3", "");
  181. ht.Add("i4", "");
  182. ht.Add("i5", "");
  183. ht.Add("i6", "");
  184. ht.Add("i7", "");
  185. ht.Add("i8", "");
  186. ht.Add("i9", "");
  187. ht.Add("i10", "");
  188. ht.Add("i11", "");
  189. ht.Add("i12", "");
  190. ht.Add("i13", "");
  191. ht.Add("i14", "");
  192. ht.Add("i15", "");
  193. ht.Add("i16", "");
  194. ht.Add("i17", "");
  195. ht.Add("i18", "");
  196. ht.Add("i19", "");
  197. ht.Add("i20", ugr.Cells["AREA"].Text);
  198. ht.Add("i21", ugr.Cells["MC_ID_FLAG"].Text);
  199. ht.Add("i22", "");
  200. ht.Add("i23", "AI");
  201. ht.Add("i24", ugr.Cells["ZJ_RH_DS1"].Text);
  202. ht.Add("i25", ugr.Cells["ZJ_RH_DS2"].Text);
  203. ht.Add("i26", ugr.Cells["ZJ_RH_DS3"].Text);
  204. ht.Add("i27", ugr.Cells["ND_HYL1"].Text);
  205. ht.Add("i28", ugr.Cells["ND_HYL2"].Text);
  206. ht.Add("i29", ugr.Cells["ND_HYL3"].Text);
  207. ht.Add("o30", "");
  208. ccp.ServerName = "UIB.COM.ComDBProcedure";
  209. ccp.MethodName = "doXmlProcedure";
  210. ccp.ServerParams = new object[] { "UIK040040_01.CALL", ht };
  211. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  212. }
  213. else//update
  214. {
  215. CoreClientParam ccp = new CoreClientParam();
  216. ht = new Hashtable();
  217. ht.Add("i1", ugr.Cells["MC_ID"].Text);
  218. ht.Add("i2", ugr.Cells["MC_NAME"].Text);
  219. ht.Add("i3", "");
  220. ht.Add("i4", "");
  221. ht.Add("i5", "");
  222. ht.Add("i6", "");
  223. ht.Add("i7", "");
  224. ht.Add("i8", "");
  225. ht.Add("i9", "");
  226. ht.Add("i10", "");
  227. ht.Add("i11", "");
  228. ht.Add("i12", "");
  229. ht.Add("i13", "");
  230. ht.Add("i14", "");
  231. ht.Add("i15", "");
  232. ht.Add("i16", "");
  233. ht.Add("i17", "");
  234. ht.Add("i18", "");
  235. ht.Add("i19", "");
  236. ht.Add("i20", ugr.Cells["AREA"].Text);
  237. ht.Add("i21", ugr.Cells["MC_ID_FLAG"].Text);
  238. ht.Add("i22", "");
  239. ht.Add("i23", "AU");
  240. ht.Add("i24", ugr.Cells["ZJ_RH_DS1"].Text);
  241. ht.Add("i25", ugr.Cells["ZJ_RH_DS2"].Text);
  242. ht.Add("i26", ugr.Cells["ZJ_RH_DS3"].Text);
  243. ht.Add("i27", ugr.Cells["ND_HYL1"].Text);
  244. ht.Add("i28", ugr.Cells["ND_HYL2"].Text);
  245. ht.Add("i29", ugr.Cells["ND_HYL3"].Text);
  246. ht.Add("o30", "");
  247. ccp.ServerName = "UIB.COM.ComDBProcedure";
  248. ccp.MethodName = "doXmlProcedure";
  249. ccp.ServerParams = new object[] { "UIK040040_01.CALL", ht };
  250. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  251. }
  252. }
  253. }
  254. }
  255. else if (this.ultraTabControl1.SelectedTab.Index == 2)
  256. {
  257. Hashtable ht = null;
  258. foreach (UltraGridRow ugr in this.ultraGrid3.Rows)
  259. {
  260. if (ugr.Cells["CHK"].Text.ToString() == "True")
  261. {
  262. if (ugr.Cells["MC_ID_FLAG"].Text == "")//insert
  263. {
  264. CoreClientParam ccp = new CoreClientParam();
  265. ht = new Hashtable();
  266. ht.Add("i1", ugr.Cells["MC_ID"].Text);
  267. ht.Add("i2", ugr.Cells["MC_NAME"].Text);
  268. ht.Add("i3", ugr.Cells["SUB_MC_ID"].Text);
  269. ht.Add("i4", ugr.Cells["SUB_MC_NAME"].Text);
  270. ht.Add("i5", ugr.Cells["WH_BW"].Text);
  271. ht.Add("i6", ugr.Cells["WH_NR"].Text);
  272. ht.Add("i7", ugr.Cells["BZ"].Text);
  273. ht.Add("i8", ugr.Cells["WH_SJ"].Text);
  274. ht.Add("i9", ugr.Cells["XC_WH_SJ"].Text);
  275. ht.Add("i10", ugr.Cells["WH_REN"].Text);
  276. ht.Add("i11", ugr.Cells["WH_ZQ"].Text);
  277. ht.Add("i12", ugr.Cells["MC_ID"].Text);
  278. ht.Add("i13", ugr.Cells["SUB_MC_ID"].Text);
  279. ht.Add("i14", "A");
  280. ht.Add("i15", ugr.Cells["AREA"].Text);
  281. ht.Add("o16", "");
  282. ccp.ServerName = "UIB.COM.ComDBProcedure";
  283. ccp.MethodName = "doXmlProcedure";
  284. ccp.ServerParams = new object[] { "UIK040040_02.CALL", ht };
  285. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  286. }
  287. else//update
  288. {
  289. CoreClientParam ccp = new CoreClientParam();
  290. ht = new Hashtable();
  291. ht.Add("i1", ugr.Cells["MC_ID"].Text);
  292. ht.Add("i2", ugr.Cells["MC_NAME"].Text);
  293. ht.Add("i3", ugr.Cells["SUB_MC_ID"].Text);
  294. ht.Add("i4", ugr.Cells["SUB_MC_NAME"].Text);
  295. ht.Add("i5", ugr.Cells["WH_BW"].Text);
  296. ht.Add("i6", ugr.Cells["WH_NR"].Text);
  297. ht.Add("i7", ugr.Cells["BZ"].Text);
  298. ht.Add("i8", ugr.Cells["WH_SJ"].Text);
  299. ht.Add("i9", ugr.Cells["XC_WH_SJ"].Text);
  300. ht.Add("i10", ugr.Cells["WH_REN"].Text);
  301. ht.Add("i11", ugr.Cells["WH_ZQ"].Text);
  302. ht.Add("i12", ugr.Cells["MC_ID"].Text);
  303. ht.Add("i13", ugr.Cells["SUB_MC_ID"].Text);
  304. ht.Add("i14", "B");
  305. ht.Add("i15", ugr.Cells["AREA"].Text);
  306. ht.Add("o16", "");
  307. ccp.ServerName = "UIB.COM.ComDBProcedure";
  308. ccp.MethodName = "doXmlProcedure";
  309. ccp.ServerParams = new object[] { "UIK040040_02.CALL", ht };
  310. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  311. }
  312. }
  313. }
  314. }
  315. this.DoQuery();
  316. }catch(Exception ex)
  317. {
  318. MessageBox.Show(ex.ToString());
  319. }
  320. }
  321. public void DoDelete(string str)
  322. {
  323. try
  324. {
  325. if (MessageBox.Show("确定删除?", "提示", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
  326. return;
  327. Hashtable ht = null;
  328. if (this.ultraTabControl1.SelectedTab.Index == 0)
  329. {
  330. foreach (UltraGridRow ugr in this.ultraGrid1.Rows)
  331. {
  332. if (ugr.Cells["CHK"].Text.ToString() == "True")
  333. {
  334. CoreClientParam ccp = new CoreClientParam();
  335. ht = new Hashtable();
  336. ht.Add("i1", ugr.Cells["MC_ID"].Text);
  337. ht.Add("i2", "");
  338. ht.Add("i3", "AX");
  339. ht.Add("o4", "");
  340. ccp.ServerName = "UIB.COM.ComDBProcedure";
  341. ccp.MethodName = "doXmlProcedure";
  342. ccp.ServerParams = new object[] { "UIK040040_03.CALL", ht };
  343. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  344. }
  345. }
  346. }
  347. else if (this.ultraTabControl1.SelectedTab.Index == 1)
  348. {
  349. if (str == "S")
  350. {
  351. foreach (UltraGridRow ugr in this.ultraGrid4.Rows)//删除(上)
  352. {
  353. if (ugr.Cells["CHK"].Text.ToString() == "True")
  354. {
  355. CoreClientParam ccp = new CoreClientParam();
  356. ht = new Hashtable();
  357. ht.Add("i1", ugr.Cells["MC_ID"].Text);
  358. ht.Add("i2", "");
  359. ht.Add("i3", "AS");
  360. ht.Add("o4", "");
  361. ccp.ServerName = "UIB.COM.ComDBProcedure";
  362. ccp.MethodName = "doXmlProcedure";
  363. ccp.ServerParams = new object[] { "UIK040040_03.CALL", ht };
  364. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  365. }
  366. }
  367. }
  368. else if(str == "X")
  369. {
  370. foreach (UltraGridRow ugr in this.ultraGrid2.Rows)//删除(下)
  371. {
  372. if (ugr.Cells["CHK"].Text.ToString() == "True")
  373. {
  374. CoreClientParam ccp = new CoreClientParam();
  375. ht = new Hashtable();
  376. ht.Add("i1", ugr.Cells["MC_ID"].Text);
  377. ht.Add("i2", ugr.Cells["SUB_MC_ID"].Text);
  378. ht.Add("i3", "AX");
  379. ht.Add("o4", "");
  380. ccp.ServerName = "UIB.COM.ComDBProcedure";
  381. ccp.MethodName = "doXmlProcedure";
  382. ccp.ServerParams = new object[] { "UIK040040_03.CALL", ht };
  383. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  384. }
  385. }
  386. }
  387. }
  388. else if (this.ultraTabControl1.SelectedTab.Index == 2)
  389. {
  390. foreach (UltraGridRow ugr in this.ultraGrid3.Rows)
  391. {
  392. if (ugr.Cells["CHK"].Text.ToString() == "True")
  393. {
  394. CoreClientParam ccp = new CoreClientParam();
  395. ht = new Hashtable();
  396. ht.Add("i1", ugr.Cells["MC_ID"].Text);
  397. ht.Add("i2", ugr.Cells["SUB_MC_ID"].Text);
  398. ht.Add("i3", "B");
  399. ht.Add("o4", "");
  400. ccp.ServerName = "UIB.COM.ComDBProcedure";
  401. ccp.MethodName = "doXmlProcedure";
  402. ccp.ServerParams = new object[] { "UIK040040_03.CALL", ht };
  403. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  404. }
  405. }
  406. }
  407. this.DoQuery();
  408. }
  409. catch (Exception ex)
  410. {
  411. }
  412. }
  413. private void ultraGrid1_DoubleClick(object sender, EventArgs e)
  414. {
  415. //try
  416. //{
  417. //}
  418. //catch (Exception ex)
  419. //{
  420. //}
  421. }
  422. private void label1_Click(object sender, EventArgs e)
  423. {
  424. }
  425. public void DoSave_1()
  426. {
  427. try
  428. {
  429. Hashtable ht = null;
  430. foreach (UltraGridRow ugr in this.ultraGrid2.Rows)
  431. {
  432. if (ugr.Cells["CHK"].Text.ToString() == "True")
  433. {
  434. if (ugr.Cells["MC_ID_FLAG"].Text == "")//insert
  435. {
  436. CoreClientParam ccp = new CoreClientParam();
  437. ht = new Hashtable();
  438. ht.Add("i1", this.mcID);
  439. ht.Add("i2", this.mcIDName);
  440. ht.Add("i3", ugr.Cells["SUB_MC_ID"].Text);
  441. ht.Add("i4", ugr.Cells["SUB_MC_NAME"].Text);
  442. ht.Add("i5", ugr.Cells["RH_BW"].Text);
  443. ht.Add("i6", ugr.Cells["RH_DS"].Text);
  444. ht.Add("i7", ugr.Cells["RH_HF"].Text);
  445. ht.Add("i8", ugr.Cells["RH_YP_TYPE"].Text);
  446. ht.Add("i9", ugr.Cells["RH_YP_VALUE"].Text);
  447. ht.Add("i10", ugr.Cells["BY_ZQ"].Text);
  448. ht.Add("i11", ugr.Cells["BYL"].Text);
  449. ht.Add("i12", ugr.Cells["HDY_ZQ"].Text);
  450. ht.Add("i13", ugr.Cells["HDYL"].Text);
  451. ht.Add("i14", ugr.Cells["HDY_FZR"].Text);
  452. ht.Add("i15", ugr.Cells["HDY_SJ"].Text);
  453. ht.Add("i16", ugr.Cells["HDY_XC_SJ"].Text);
  454. ht.Add("i17", ugr.Cells["BJY_FZR"].Text);
  455. ht.Add("i18", ugr.Cells["BJY_SJ"].Text);
  456. ht.Add("i19", ugr.Cells["BJY_XC_SJ"].Text);
  457. ht.Add("i20", ugr.Cells["AREA"].Text);
  458. ht.Add("i21", this.mcID);
  459. ht.Add("i22", ugr.Cells["SUB_MC_ID_FLAG"].Text);
  460. ht.Add("i23", "B");
  461. ht.Add("i24", "");
  462. ht.Add("i25", "");
  463. ht.Add("i26", "");
  464. ht.Add("i27", "");
  465. ht.Add("i28", "");
  466. ht.Add("i29", "");
  467. ht.Add("o30", "");
  468. ccp.ServerName = "UIB.COM.ComDBProcedure";
  469. ccp.MethodName = "doXmlProcedure";
  470. ccp.ServerParams = new object[] { "UIK040040_01.CALL", ht };
  471. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  472. }
  473. else
  474. {
  475. CoreClientParam ccp = new CoreClientParam();
  476. ht = new Hashtable();
  477. ht.Add("i1", ugr.Cells["MC_ID"].Text);
  478. ht.Add("i2", ugr.Cells["MC_NAME"].Text);
  479. ht.Add("i3", ugr.Cells["SUB_MC_ID"].Text);
  480. ht.Add("i4", ugr.Cells["SUB_MC_NAME"].Text);
  481. ht.Add("i5", ugr.Cells["RH_BW"].Text);
  482. ht.Add("i6", ugr.Cells["RH_DS"].Text);
  483. ht.Add("i7", ugr.Cells["RH_HF"].Text);
  484. ht.Add("i8", ugr.Cells["RH_YP_TYPE"].Text);
  485. ht.Add("i9", ugr.Cells["RH_YP_VALUE"].Text);
  486. ht.Add("i10", ugr.Cells["BY_ZQ"].Text);
  487. ht.Add("i11", ugr.Cells["BYL"].Text);
  488. ht.Add("i12", ugr.Cells["HDY_ZQ"].Text);
  489. ht.Add("i13", ugr.Cells["HDYL"].Text);
  490. ht.Add("i14", ugr.Cells["HDY_FZR"].Text);
  491. ht.Add("i15", ugr.Cells["HDY_SJ"].Text);
  492. ht.Add("i16", ugr.Cells["HDY_XC_SJ"].Text);
  493. ht.Add("i17", ugr.Cells["BJY_FZR"].Text);
  494. ht.Add("i18", ugr.Cells["BJY_SJ"].Text);
  495. ht.Add("i19", ugr.Cells["BJY_XC_SJ"].Text);
  496. ht.Add("i20", ugr.Cells["AREA"].Text);
  497. ht.Add("i21", this.mcID);
  498. ht.Add("i22", ugr.Cells["SUB_MC_ID_FLAG"].Text);
  499. ht.Add("i23", "C");
  500. ht.Add("i24", "");
  501. ht.Add("i25", "");
  502. ht.Add("i26", "");
  503. ht.Add("i27", "");
  504. ht.Add("i28", "");
  505. ht.Add("i29", "");
  506. ht.Add("o30", "");
  507. ccp.ServerName = "UIB.COM.ComDBProcedure";
  508. ccp.MethodName = "doXmlProcedure";
  509. ccp.ServerParams = new object[] { "UIK040040_01.CALL", ht };
  510. this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
  511. }
  512. }
  513. }
  514. }
  515. catch (Exception ex)
  516. {
  517. }
  518. }
  519. private void ultraGrid2_AfterRowActivate(object sender, EventArgs e)
  520. {
  521. }
  522. private void ultraGrid4_AfterRowActivate(object sender, EventArgs e)
  523. {
  524. try
  525. {
  526. this.dataSet1.Tables[1].Clear();
  527. ArrayList al = new ArrayList();
  528. al.Add("UIK040040_02.SELECT");
  529. al.Add(this.ultraGrid4.ActiveRow.Cells["MC_ID"].Text.ToString());
  530. // al.Add(this.comboBox1.SelectedValue.ToString());
  531. CoreClientParam ccp = new CoreClientParam();
  532. ccp.ServerName = "UIB.COM.ComDBQuery";
  533. ccp.MethodName = "doSimpleQuery";
  534. ccp.ServerParams = new object[] { al };
  535. ccp.SourceDataTable = this.dataSet1.Tables[1];
  536. this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
  537. this.mcID = this.ultraGrid4.ActiveRow.Cells["MC_ID"].Text.ToString();
  538. this.mcIDName = this.ultraGrid4.ActiveRow.Cells["MC_NAME"].Text.ToString();
  539. }
  540. catch (Exception ex)
  541. {
  542. }
  543. }
  544. }
  545. }