CenterResult.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace PTMedicalInsurance.Forms
  11. {
  12. public partial class CenterResult : Form
  13. {
  14. public string returnData;
  15. private string tradeNo;
  16. public CenterResult()
  17. {
  18. InitializeComponent();
  19. }
  20. private void btnCancel_Click(object sender, EventArgs e)
  21. {
  22. this.returnData = "{infcode:-1}";
  23. DialogResult = DialogResult.OK;
  24. Close();
  25. }
  26. public void setTradeNo(string no, string input)
  27. {
  28. this.tradeNo = no;
  29. //this.txtInput.AppendText(input);
  30. this.label4.Text = string.Format("请输入【{0}】交易的返回结果:", no);
  31. }
  32. public void setTradeNo(string no)
  33. {
  34. this.label4.Text = string.Format("请输入【{0}】交易的返回结果:",no);
  35. }
  36. private void btnOK_Click(object sender, EventArgs e)
  37. {
  38. this.returnData = txtOutput.Text.Trim();
  39. DialogResult = DialogResult.OK;
  40. Close();
  41. }
  42. }
  43. }