UserControlGpStrat.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace Core.StlMes.Client.PlnSaleOrd.炼钢计划.control
  10. {
  11. public partial class UserControlGpStrat : UserControl
  12. {
  13. public string[] statusArr = new string[5] { "", "", "", "","" };//状态
  14. public UserControlGpStrat()
  15. {
  16. InitializeComponent();
  17. if (chcStatus1.Checked) { statusArr[0] = "0"; }
  18. if (chcStatus2.Checked) { statusArr[1] = "1"; }
  19. if (chcStatus3.Checked) { statusArr[2] = "2"; }
  20. if (chcStatus4.Checked) { statusArr[3] = "3"; }
  21. if (chcStatus5.Checked) { statusArr[4] = "4"; }
  22. }
  23. private void chc_CheckedChanged(object sender, EventArgs e)
  24. {
  25. if (chcStatus1.Checked) { statusArr[0] = "0"; } else { statusArr[0] = ""; }
  26. if (chcStatus2.Checked) { statusArr[1] = "1"; } else { statusArr[1] = ""; }
  27. if (chcStatus3.Checked) { statusArr[2] = "2"; } else { statusArr[2] = ""; }
  28. if (chcStatus4.Checked) { statusArr[3] = "3"; } else { statusArr[3] = ""; }
  29. if (chcStatus5.Checked) { statusArr[4] = "4"; } else { statusArr[4] = ""; }
  30. }
  31. }
  32. }