FrmFundTransfer.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8. using System.Threading;
  9. using System.Collections;
  10. using System.Reflection;
  11. using CoreFS.CA06;
  12. namespace Core.StlMes.Client.Sale.SaleFundMgt.FundUI.UIFrm
  13. {
  14. public partial class FrmFundTransfer : FrmFundBase
  15. {
  16. public FrmFundTransfer()
  17. {
  18. InitializeComponent();
  19. }
  20. private DataSet dsBuyerCode = new DataSet();
  21. private DataSet dsSecCode = new DataSet();
  22. private DataSet dsPact = new DataSet();
  23. private void InitDataSource()
  24. {
  25. dsBuyerCode = base.GetDataSetByColumnName(this.GetCustFundDataStruct(),
  26. new Hashtable(), base.GetFundColumnNameAndCaption());
  27. this.ultraGrid1.DataSource = dsBuyerCode;
  28. dsSecCode = base.GetDataSetByColumnName(this.GetSecFundDataStruct(),
  29. new Hashtable(), base.GetFundColumnNameAndCaption());
  30. this.ultraGrid2.DataSource = dsSecCode;
  31. dsPact = base.GetDataSetByColumnName(this.GetPactFundDataStruct(),
  32. new Hashtable(), base.GetFundColumnNameAndCaption());
  33. this.ultraGrid3.DataSource = dsPact;
  34. }
  35. private void ClearDs()
  36. {
  37. this.dsSecCode.Clear();
  38. this.dsPact.Clear();
  39. }
  40. private void SetGridValue()
  41. {
  42. }
  43. private void InitGrid()
  44. {
  45. try
  46. {
  47. this.ultraGrid1.DisplayLayout.Bands[0].Columns["BUTTON"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
  48. this.ultraGrid1.DisplayLayout.Bands[0].Columns["BUTTON"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.OnMouseEnter;
  49. this.ultraGrid1.DisplayLayout.Bands[0].Columns["BUTTON"].Width = 40;
  50. this.ultraGrid2.DisplayLayout.Bands[0].Columns["BUTTON"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
  51. this.ultraGrid2.DisplayLayout.Bands[0].Columns["BUTTON"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.OnMouseEnter;
  52. this.ultraGrid2.DisplayLayout.Bands[0].Columns["RBUTTON"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
  53. this.ultraGrid2.DisplayLayout.Bands[0].Columns["RBUTTON"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.OnMouseEnter;
  54. this.ultraGrid2.DisplayLayout.Bands[0].Columns["BUTTON"].Width = 40;
  55. this.ultraGrid2.DisplayLayout.Bands[0].Columns["RBUTTON"].Width = 40;
  56. this.ultraGrid3.DisplayLayout.Bands[0].Columns["BUTTON"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
  57. this.ultraGrid3.DisplayLayout.Bands[0].Columns["BUTTON"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.OnMouseEnter;
  58. this.ultraGrid3.DisplayLayout.Bands[0].Columns["BUTTON"].Width = 40;
  59. this.ultraGrid1.DisplayLayout.Bands[0].Columns["RMONEY"].Width = 70;
  60. this.ultraGrid2.DisplayLayout.Bands[0].Columns["RMONEY"].Width = 70;
  61. this.ultraGrid2.DisplayLayout.Bands[0].Columns["LMONEY"].Width = 70;
  62. this.ultraGrid3.DisplayLayout.Bands[0].Columns["LMONEY"].Width = 70;
  63. this.ultraGrid1.DisplayLayout.Bands[0].Columns["RMONEY"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.AllowEdit;
  64. this.ultraGrid1.DisplayLayout.Bands[0].Columns["RMONEY"].CellAppearance.BackColor = base.GetEditColor();
  65. this.ultraGrid2.DisplayLayout.Bands[0].Columns["RMONEY"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.AllowEdit;
  66. this.ultraGrid2.DisplayLayout.Bands[0].Columns["RMONEY"].CellAppearance.BackColor = base.GetEditColor();
  67. this.ultraGrid2.DisplayLayout.Bands[0].Columns["LMONEY"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.AllowEdit;
  68. this.ultraGrid2.DisplayLayout.Bands[0].Columns["LMONEY"].CellAppearance.BackColor = base.GetEditColor();
  69. this.ultraGrid3.DisplayLayout.Bands[0].Columns["LMONEY"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.AllowEdit;
  70. this.ultraGrid3.DisplayLayout.Bands[0].Columns["LMONEY"].CellAppearance.BackColor = base.GetEditColor();
  71. }
  72. catch
  73. { }
  74. }
  75. protected override List<string> GetNumberColumn()
  76. {
  77. return new List<string>(new string[] { "RMONEY", "LMONEY" });
  78. }
  79. private void FrmFundTransfer_Load(object sender, EventArgs e)
  80. {
  81. InitDataSource();
  82. HIddenColumn();
  83. base.SetGridStyle(ref this.ultraGrid1, ref this.ultraGrid3, ref this.ultraGrid2);
  84. InitGrid();
  85. }
  86. private void HIddenColumn()
  87. {
  88. try
  89. {
  90. this.ultraGrid1.DisplayLayout.Bands[0].Columns[base._columnBalanceSubject].Hidden = true;
  91. this.ultraGrid1.DisplayLayout.Bands[0].Columns[base._columnBuyercode].Hidden = true;
  92. this.ultraGrid2.DisplayLayout.Bands[0].Columns[base._columnBalanceSubject].Hidden = true;
  93. this.ultraGrid2.DisplayLayout.Bands[0].Columns[base._columnBuyercode].Hidden = true;
  94. this.ultraGrid3.DisplayLayout.Bands[0].Columns[base._columnBalanceSubject].Hidden = true;
  95. this.ultraGrid3.DisplayLayout.Bands[0].Columns[base._columnBuyercode].Hidden = true;
  96. this.ultraGrid3.DisplayLayout.Bands[0].Columns[base._columnSecondaccount].Hidden = true;
  97. }
  98. catch
  99. { }
  100. }
  101. public override void ToolBar_Click(object sender, string ToolbarKey)
  102. {
  103. if (ToolbarKey == "Query")
  104. {
  105. this.Query();
  106. }
  107. if (ToolbarKey == "Exit")
  108. {
  109. this.Close();
  110. }
  111. if (ToolbarKey == "Close")
  112. {
  113. this.Close();
  114. }
  115. }
  116. private string _buyercode = "";
  117. private void Query()
  118. {
  119. if (this._buyercode.Length == 0)
  120. {
  121. Core.StlMes.Client.Sale.Util.MessageUtil.ShowError("请选择客户名称");
  122. return;
  123. }
  124. ClearDs();
  125. // 获取结算单位
  126. string balanceSubject = base.GetSaleOrgDesc();
  127. string buyercode = _buyercode;
  128. DataSet ds = base.GetInstanceCustAccount().GetCustAccountByBalanceSubjectAndBuyercode(balanceSubject, buyercode);
  129. Core.StlMes.Client.Sale.Util.UtilDataSet.SetDataSetByMergeSameColumnName(ref this.dsBuyerCode, ds);
  130. InitText();
  131. }
  132. private void InitText()
  133. {
  134. try
  135. {
  136. foreach (DataRow dr in this.dsBuyerCode.Tables[0].Rows)
  137. {
  138. dr["BUTTON"] = ">>>";
  139. }
  140. }
  141. catch
  142. { }
  143. try
  144. {
  145. foreach (DataRow dr in this.dsSecCode.Tables[0].Rows)
  146. {
  147. dr["BUTTON"] = "<<<";
  148. dr["RBUTTON"] = ">>>";
  149. }
  150. }
  151. catch
  152. { }
  153. try
  154. {
  155. foreach (DataRow dr in this.dsPact.Tables[0].Rows)
  156. {
  157. dr["BUTTON"] = "<<<";
  158. }
  159. }
  160. catch
  161. { }
  162. }
  163. private void QuerySecAccount()
  164. {
  165. try
  166. {
  167. DataSet ds = null;
  168. Infragistics.Win.UltraWinGrid.UltraGridRow ugr = null;
  169. string buyercode = "";
  170. string balancesubject = "";
  171. if (this.ultraGrid1.Rows.Count == 0)
  172. {
  173. return;
  174. }
  175. if (this.ultraGrid1.Rows.Count == 1)
  176. {
  177. ugr = this.ultraGrid1.Rows[0];
  178. }
  179. else
  180. {
  181. ugr = this.ultraGrid1.ActiveRow;
  182. }
  183. if (ugr != null)
  184. {
  185. balancesubject = ugr.Cells[base._columnBalanceSubject].Value.ToString();
  186. buyercode = ugr.Cells[base._columnBuyercode].Value.ToString();
  187. }
  188. ds = base.GetInstanceSecondLevelAccount().GetSecondLevelAccountByBalanceAndBuyercode(balancesubject, buyercode);
  189. Core.StlMes.Client.Sale.Util.UtilDataSet.SetDataSetByMergeSameColumnName(ref this.dsSecCode, ds);
  190. InitText();
  191. // Util.UltraGridUtil.SetStaticsInfoSum(ref this.ultraGrid2, this.TotalColumn(), true);
  192. // HiddenGrid2();
  193. }
  194. catch
  195. {
  196. }
  197. }
  198. private void QueryPactAccount()
  199. {
  200. try
  201. {
  202. DataSet ds = null;
  203. Infragistics.Win.UltraWinGrid.UltraGridRow ugr = null;
  204. string buyercode = "";
  205. string balancesubject = "";
  206. string secondAccount = "";
  207. if (this.ultraGrid2.Rows.Count == 0)
  208. {
  209. return;
  210. }
  211. if (this.ultraGrid2.Rows.Count == 1)
  212. {
  213. ugr = this.ultraGrid2.Rows[0];
  214. }
  215. else
  216. {
  217. ugr = this.ultraGrid2.ActiveRow;
  218. }
  219. if (ugr != null)
  220. {
  221. balancesubject = ugr.Cells[base._columnBalanceSubject].Value.ToString();
  222. buyercode = ugr.Cells[base._columnBuyercode].Value.ToString();
  223. secondAccount = ugr.Cells[base._columnSecondaccount].Value.ToString();
  224. }
  225. ds = base.GetInstancePactAccount().GetFundPactAccountByBalanceAndBuyercodeAndSecondAccount(balancesubject, buyercode, secondAccount);
  226. Core.StlMes.Client.Sale.Util.UtilDataSet.SetDataSetByMergeSameColumnName(ref this.dsPact, ds);
  227. InitText();
  228. }
  229. catch
  230. {
  231. }
  232. }
  233. /// <summary>
  234. /// 从合同账户调拨资金到二级账户
  235. /// </summary>
  236. private void TransferMoneyPactToSecond()
  237. {
  238. try
  239. {
  240. string errMsg = "";
  241. Infragistics.Win.UltraWinGrid.UltraGridRow ugr = null;
  242. if (this.ultraGrid3.Rows.Count == 0)
  243. return;
  244. if (this.ultraGrid3.Rows.Count == 1)
  245. ugr = this.ultraGrid3.Rows[0];
  246. else
  247. ugr = this.ultraGrid3.ActiveRow;
  248. if (ugr == null)
  249. return;
  250. double money = Core.StlMes.Client.Sale.Util.ConverObject.ConvertToDouble(ugr.Cells["LMONEY"].Value);
  251. Model.SEL_FUND_TRANS_PACT sceact = GetTransPactAccount(money);
  252. if (sceact == null)
  253. return;
  254. base.GetInstanceTransfer().TransferMoneyPactToSecondAccount(sceact, out errMsg);
  255. if (errMsg.Length == 0)
  256. {
  257. MessageBox.Show(base._successMsg);
  258. }
  259. else
  260. {
  261. MessageBox.Show(errMsg);
  262. }
  263. }
  264. catch
  265. {
  266. }
  267. }
  268. private void TransferMoneySecondToPact()
  269. {
  270. try
  271. {
  272. string errMsg = "";
  273. Infragistics.Win.UltraWinGrid.UltraGridRow ugr = null;
  274. if (this.ultraGrid2.Rows.Count == 0)
  275. return;
  276. if (this.ultraGrid2.Rows.Count == 1)
  277. ugr = this.ultraGrid2.Rows[0];
  278. else
  279. ugr = this.ultraGrid2.ActiveRow;
  280. if (ugr == null)
  281. return;
  282. double money = Core.StlMes.Client.Sale.Util.ConverObject.ConvertToDouble(ugr.Cells["RMONEY"].Value);
  283. Model.SEL_FUND_TRANS_PACT sceact = GetTransPactAccount(money);
  284. if (sceact == null)
  285. return;
  286. base.GetInstanceTransfer().TransferMoneySecondAccountToPact(sceact, out errMsg);
  287. if (errMsg.Length == 0)
  288. {
  289. Core.StlMes.Client.Sale.Util.MessageUtil.ShowTips(base._successMsg);
  290. }
  291. else
  292. {
  293. Core.StlMes.Client.Sale.Util.MessageUtil.ShowError(errMsg);
  294. }
  295. }
  296. catch
  297. {
  298. }
  299. }
  300. private void TransferMoneyCustToSecond()
  301. {
  302. try
  303. {
  304. Infragistics.Win.UltraWinGrid.UltraGridRow ugr = null;
  305. if (this.ultraGrid1.Rows.Count == 0)
  306. return;
  307. if (this.ultraGrid1.Rows.Count == 1)
  308. ugr = this.ultraGrid1.Rows[0];
  309. else
  310. ugr = this.ultraGrid1.ActiveRow;
  311. if (ugr == null)
  312. return;
  313. double money = Core.StlMes.Client.Sale.Util.ConverObject.ConvertToDouble( ugr.Cells["RMONEY"].Value);
  314. string errMsg = "";
  315. Model.SEL_FUND_TRANS_SECONDACCOUNT sceact = GetTransSecAccount(money);
  316. if (sceact == null)
  317. return;
  318. base.GetInstanceTransfer().TransferMoneyCustToSecondAccount(sceact, out errMsg);
  319. if (errMsg.Length == 0)
  320. {
  321. MessageBox.Show(base._successMsg);
  322. }
  323. else
  324. {
  325. MessageBox.Show(errMsg);
  326. }
  327. }
  328. catch
  329. {
  330. }
  331. }
  332. private void TransferMoneySecondToCust()
  333. {
  334. try
  335. {
  336. Infragistics.Win.UltraWinGrid.UltraGridRow ugr = null;
  337. if (this.ultraGrid2.Rows.Count == 0)
  338. return;
  339. if (this.ultraGrid2.Rows.Count == 1)
  340. ugr = this.ultraGrid2.Rows[0];
  341. else
  342. ugr = this.ultraGrid2.ActiveRow;
  343. if (ugr == null)
  344. return;
  345. double money = Core.StlMes.Client.Sale.Util.ConverObject.ConvertToDouble(ugr.Cells["LMONEY"].Value);
  346. string errMsg = "";
  347. Model.SEL_FUND_TRANS_SECONDACCOUNT sceact = GetTransSecAccount(money);
  348. if (sceact == null)
  349. return;
  350. base.GetInstanceTransfer().TransferMoneySecondAccountToCust(sceact, out errMsg);
  351. if (errMsg.Length == 0)
  352. {
  353. MessageBox.Show(base._successMsg);
  354. }
  355. else
  356. {
  357. MessageBox.Show(errMsg);
  358. }
  359. }
  360. catch
  361. {
  362. }
  363. }
  364. private Model.SEL_FUND_TRANS_PACT GetTransPactAccount(double money)
  365. {
  366. Model.SEL_FUND_TRANS_SECONDACCOUNT secact = GetTransSecAccount(money);
  367. Model.SEL_FUND_TRANS_PACT pact = new Model.SEL_FUND_TRANS_PACT();
  368. if (secact == null)
  369. return null;
  370. if (this.ultraGrid3.Rows.Count == 0)
  371. return null;
  372. if (this.ultraGrid2.ActiveRow == null)
  373. return null;
  374. if (this.ultraGrid3.ActiveRow == null)
  375. return null;
  376. string pactno = this.ultraGrid3.ActiveRow.Cells[base._columnPactno].Value.ToString();
  377. if (money <= 0)
  378. return null;
  379. pact.FUND_TRANS_SECONDACCOUNT = secact;
  380. pact.PACTNO = pactno;
  381. pact.TRANS_MONEY = money;
  382. return pact;
  383. }
  384. private Model.SEL_FUND_TRANS_SECONDACCOUNT GetTransSecAccount(double money)
  385. {
  386. Model.SEL_FUND_TRANS_CUST cust = GetTransCustAccount(money);
  387. if (cust == null)
  388. return null;
  389. if (this.ultraGrid1.Rows.Count == 0)
  390. return null;
  391. if (this.ultraGrid2.ActiveRow == null)
  392. return null;
  393. string secondLevelAccount = this.ultraGrid2.ActiveRow.Cells[base._columnSecondaccount].Value.ToString();
  394. if (money <= 0)
  395. return null;
  396. Model.SEL_FUND_TRANS_SECONDACCOUNT sec = new Model.SEL_FUND_TRANS_SECONDACCOUNT();
  397. sec.FUND_TRANS_CUST = cust;
  398. sec.SECONDACCOUNT = secondLevelAccount;
  399. sec.TRANS_MONEY = money;
  400. return sec;
  401. }
  402. private Model.SEL_FUND_TRANS_CUST GetTransCustAccount(double money)
  403. {
  404. Infragistics.Win.UltraWinGrid.UltraGridRow ugrLeft = null;
  405. Infragistics.Win.UltraWinGrid.UltraGridRow ugrRight = null;
  406. string balancesubject = "";
  407. string buyercode = "";
  408. string secondLevelAccount = "";
  409. if (this.ultraGrid1.ActiveRow == null)
  410. return null;
  411. if (this.ultraGrid1.ActiveRow == null)
  412. return null;
  413. ugrLeft = this.ultraGrid1.ActiveRow;
  414. ugrRight = this.ultraGrid2.ActiveRow;
  415. // money = Convert.ToDouble(this.ultraNumericEditor1.Value);
  416. if (money <= 0)
  417. return null;
  418. balancesubject = ugrLeft.Cells[base._columnBalanceSubject].Value.ToString();
  419. buyercode = ugrLeft.Cells[base._columnBuyercode].Value.ToString();
  420. secondLevelAccount = ugrRight.Cells[base._columnSecondaccount].Value.ToString();
  421. Model.SEL_FUND_TRANS_CUST cust = new Model.SEL_FUND_TRANS_CUST();
  422. cust.BALANCESUBJECT = balancesubject;
  423. cust.BUYERCODE = buyercode;
  424. cust.TRANS_MONEY = money;
  425. cust.TRANS_PERSON = base.GetUserName();
  426. cust.TRANS_TIME = Util.DateTimeUtil.GetSystemDate();
  427. return cust;
  428. }
  429. protected override Hashtable GetDataSetColumnCaption()
  430. {
  431. Hashtable hs = new Hashtable();
  432. hs.Add("RMONEY", "金额");
  433. hs.Add("LMONEY", "金额");
  434. hs.Add("BUTTON", "");
  435. hs.Add("RBUTTON", "");
  436. return hs;
  437. }
  438. protected override Hashtable ColumnNameAndWidht()
  439. {
  440. Hashtable hs = new Hashtable();
  441. hs.Add("RMONEY", "80");
  442. hs.Add("LMONEY", "80");
  443. return hs;
  444. }
  445. protected override Hashtable GetGridColumnLength()
  446. {
  447. Hashtable hs = new Hashtable();
  448. hs.Add("BUYERCODE",100);
  449. hs.Add("TOTALMONEY", 80);
  450. hs.Add("LEAVEMONEY", 80);
  451. hs.Add("SECONDACCOUNT", 100);
  452. hs.Add("PACTNO", 100);
  453. return hs;
  454. }
  455. private string[] GetCustFundDataStruct()
  456. {
  457. return new string[]
  458. {
  459. "BALANCESUBJECT",
  460. "BUYERCODE",
  461. "TOTALMONEY",
  462. "LEAVEMONEY",
  463. "RMONEY",
  464. "BUTTON"
  465. };
  466. }
  467. private string[] GetSecFundDataStruct()
  468. {
  469. return new string[]
  470. {
  471. "BALANCESUBJECT",
  472. "BUYERCODE",
  473. "BUTTON",
  474. "LMONEY",
  475. "SECONDACCOUNT",
  476. "TOTALMONEY",
  477. "LEAVEMONEY",
  478. "RMONEY",
  479. "RBUTTON"
  480. };
  481. }
  482. private string[] GetPactFundDataStruct()
  483. {
  484. return new string[]
  485. {
  486. "BALANCESUBJECT",
  487. "BUYERCODE",
  488. "SECONDACCOUNT",
  489. "BUTTON",
  490. "LMONEY",
  491. "PACTNO",
  492. "TOTALMONEY",
  493. "LEAVEMONEY"
  494. };
  495. }
  496. private void button1_Click(object sender, EventArgs e)
  497. {
  498. UIDlgBox.DlgCustChoose custChoose = new Core.StlMes.Client.Sale.SaleFundMgt.FundUI.UIDlgBox.DlgCustChoose(this.ob);
  499. custChoose.CustUse = "100202";
  500. custChoose.SaleOrg = base.GetSaleOrg();
  501. custChoose.ShowDialog();
  502. if (custChoose.DialogResult == DialogResult.OK)
  503. {
  504. this.textBox1.Text = custChoose.customerName;
  505. _buyercode = custChoose.customerNo;
  506. }
  507. }
  508. private void ultraGrid1_AfterRowActivate(object sender, EventArgs e)
  509. {
  510. QuerySecAccount();
  511. }
  512. private void ultraGrid2_AfterRowActivate(object sender, EventArgs e)
  513. {
  514. QueryPactAccount();
  515. }
  516. private void ultraGrid1_ClickCellButton(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
  517. {
  518. if (e.Cell.Column.Key == "BUTTON")
  519. {
  520. this.TransferMoneyCustToSecond();
  521. this.Query();
  522. }
  523. }
  524. private void ultraGrid2_ClickCellButton(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
  525. {
  526. if (e.Cell.Column.Key == "BUTTON")
  527. {
  528. this.TransferMoneySecondToCust();
  529. this.Query();
  530. }
  531. if (e.Cell.Column.Key == "RBUTTON")
  532. {
  533. this.TransferMoneySecondToPact();
  534. this.QuerySecAccount();
  535. }
  536. }
  537. private void ultraGrid3_ClickCellButton(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
  538. {
  539. if (e.Cell.Column.Key == "BUTTON")
  540. {
  541. this.TransferMoneyPactToSecond();
  542. this.QuerySecAccount();
  543. }
  544. }
  545. }
  546. }