WinBalanceBillInfo.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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 Core.Mes.Client.Comm.Tool;
  11. using Pur.PublicTools;
  12. using System.Collections;
  13. namespace Pur.balance
  14. {
  15. public partial class WinBalanceBillInfo : FrmBase
  16. {
  17. private OpeBase _ob;
  18. public OpeBase Ob
  19. {
  20. get { return _ob; }
  21. set { _ob = value; }
  22. }
  23. private string strBalanceNo;//结算单号
  24. public string StrBalanceNo
  25. {
  26. get { return strBalanceNo; }
  27. set { strBalanceNo = value; }
  28. }
  29. private string strBILL_NO;//发票编号
  30. public string StrBILL_NO
  31. {
  32. get { return strBILL_NO; }
  33. set { txtBILL_NO.Text = value; }
  34. }
  35. private string strTOTAL_REAL_PRICE;//发票金额
  36. public string StrTOTAL_REAL_PRICE
  37. {
  38. get { return strTOTAL_REAL_PRICE; }
  39. set { txtTOTAL_REAL_PRICE.Text = value; }
  40. }
  41. private string strMaterGroup;//报销事宜
  42. public string StrMaterGroup
  43. {
  44. get { return strMaterGroup; }
  45. set { materGroup.Text = value; }
  46. }
  47. private string remark;// 备注
  48. public string Remark
  49. {
  50. get { return remark; }
  51. set { txt_remark.Text = value; }
  52. }
  53. private string voucherNum;//报销事宜
  54. public string VoucherNum
  55. {
  56. get { return voucherNum; }
  57. set { txt_voucherNum.Text = value; }
  58. }
  59. private string totalBuyAmt;// 备注
  60. public string TotalBuyAmt
  61. {
  62. get { return totalBuyAmt; }
  63. set { TOTAL_BUY_AMT.Text = value; }
  64. }
  65. public WinBalanceBillInfo()
  66. {
  67. InitializeComponent();
  68. }
  69. private void btnOk_Click(object sender, EventArgs e)
  70. {
  71. try
  72. {
  73. if (strBalanceNo == "")
  74. {
  75. return;
  76. }
  77. if (txtBILL_NO.Text.Trim() == "")
  78. {
  79. MessageUtil.ShowWarning("发票编号不能为空!");
  80. return;
  81. }
  82. this.DialogResult = DialogResult.OK;
  83. ArrayList all = new ArrayList();
  84. all.Add(txtBILL_NO.Text.Trim());
  85. all.Add(txtTOTAL_REAL_PRICE.Text.Trim());
  86. all.Add(materGroup.Text.Trim());
  87. all.Add("2");
  88. all.Add(txt_remark.Text.Trim());
  89. all.Add(TOTAL_BUY_AMT.Text.Trim());
  90. all.Add(txt_voucherNum.Text.Trim());
  91. all.Add(strBalanceNo);
  92. PublicServer.SetData("com.hnshituo.pur.balance.service.impl.FrmBalanceBillManage.UpdateBalanceInBillInfo",
  93. new Object[] { all }, _ob);
  94. }
  95. catch (Exception ex)
  96. {
  97. MessageUtil.ShowWarning(ex.Message);
  98. return;
  99. }
  100. }
  101. private void txtTOTAL_REAL_PRICE_TextChanged(object sender, EventArgs e)
  102. {
  103. }
  104. }
  105. }