FrmRentFurnace.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. namespace Core.StlMes.Client.Mcp.Control.Base
  10. {
  11. public partial class FrmRentFurnace : Form
  12. {
  13. public FrmRentFurnace()
  14. {
  15. InitializeComponent();
  16. }
  17. //炉号
  18. private string judNo = "";
  19. public string JudNo
  20. {
  21. get { return judNo; }
  22. set { judNo = value; }
  23. }
  24. //批号
  25. private string batchNo = "";
  26. public string BatchNo
  27. {
  28. get { return batchNo; }
  29. set { batchNo = value; }
  30. }
  31. private void ultraButton1_Click(object sender, EventArgs e)
  32. {
  33. judNo = this.txtJudNo.Text.Trim();
  34. batchNo=txtBachNo.Text.Trim();
  35. if (judNo == "")
  36. {
  37. MessageBox.Show("组炉炉号不能为空!");
  38. return;
  39. }
  40. /* if (batchNo == "")
  41. {
  42. MessageBox.Show("组炉批号不能为空!");
  43. return;
  44. }*/
  45. this.DialogResult = System.Windows.Forms.DialogResult.OK;
  46. }
  47. private void ultraButton2_Click(object sender, EventArgs e)
  48. {
  49. this.Close();
  50. }
  51. }
  52. }