CenterResult.cs 986 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. public CenterResult()
  16. {
  17. InitializeComponent();
  18. }
  19. private void btnCancel_Click(object sender, EventArgs e)
  20. {
  21. this.returnData = "{infcode:-1}";
  22. DialogResult = DialogResult.OK;
  23. Close();
  24. }
  25. public void setTradeNo(string no)
  26. {
  27. this.label4.Text = string.Format("请输入【{0}】交易的返回结果:",no);
  28. }
  29. private void btnOK_Click(object sender, EventArgs e)
  30. {
  31. this.returnData = txtOutput.Text.Trim();
  32. DialogResult = DialogResult.OK;
  33. Close();
  34. }
  35. }
  36. }