FrmMergeJgxM.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using Core.Mes.Client.Comm.Tool;
  2. using CoreFS.CA06;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.Data;
  7. using System.Drawing;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Windows.Forms;
  11. namespace Core.StlMes.Client.PlnSaleOrd.工序排产
  12. {
  13. public partial class FrmMergeJgxM : FrmBase
  14. {
  15. private string judgeStoveNo = "";
  16. public string JudgeStoveNo
  17. {
  18. get { return judgeStoveNo; }
  19. set { judgeStoveNo = value; }
  20. }
  21. private string batchNo = "";
  22. public string BatchNo
  23. {
  24. get { return batchNo; }
  25. set { batchNo = value; }
  26. }
  27. private string num = "";
  28. public string Num
  29. {
  30. get { return num; }
  31. set { num = value; }
  32. }
  33. public FrmMergeJgxM()
  34. {
  35. InitializeComponent();
  36. }
  37. private void FrmMergeJgxM_Load(object sender, EventArgs e)
  38. {
  39. }
  40. private void ultraButton1_Click(object sender, EventArgs e)
  41. {
  42. if (txtJudgeStoveNo.Text.ToString().Equals(""))
  43. {
  44. MessageUtil.ShowTips("请输入判定炉号!");
  45. return;
  46. }
  47. if (txtBatchNo.Text.ToString().Equals(""))
  48. {
  49. MessageUtil.ShowTips("请输入批号!");
  50. return;
  51. }
  52. if (ultraNumericEditor2.Value.ToString().Equals("0"))
  53. {
  54. MessageUtil.ShowTips("请输入装炉支数!");
  55. return;
  56. }
  57. JudgeStoveNo = txtJudgeStoveNo.Text.ToString();
  58. BatchNo = txtBatchNo.Text.ToString();
  59. Num = ultraNumericEditor2.Value.ToString();
  60. this.DialogResult = System.Windows.Forms.DialogResult.OK;
  61. }
  62. private void ultraButton2_Click(object sender, EventArgs e)
  63. {
  64. this.Close();
  65. }
  66. }
  67. }