TradeNo.cs 1011 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 TradeNo : Form
  13. {
  14. public string tradeNO;
  15. public TradeNo()
  16. {
  17. InitializeComponent();
  18. this.StartPosition = FormStartPosition.CenterParent;
  19. }
  20. private void btnOK_Click(object sender, EventArgs e)
  21. {
  22. if (string.IsNullOrEmpty(tbTradeNo.Text))
  23. {
  24. MessageBox.Show("请输入医保结算交易流水号TradeNo!");
  25. return;
  26. }
  27. tradeNO = tbTradeNo.Text;
  28. this.DialogResult = DialogResult.OK;
  29. }
  30. private void btnCancel_Click(object sender, EventArgs e)
  31. {
  32. this.Close();
  33. this.DialogResult = DialogResult.Cancel;
  34. }
  35. }
  36. }