ContorlPlanStatus.cs 1.1 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.SaleOrder.Control
  10. {
  11. public partial class ContorlPlanStatus : UserControl
  12. {
  13. public string[] statusArr = new string[4] { "", "", "", "" };//状态
  14. public ContorlPlanStatus()
  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[2] = "3"; }
  21. }
  22. private void chc_CheckedChanged(object sender, EventArgs e)
  23. {
  24. if (chcStatus1.Checked) { statusArr[0] = "0"; } else { statusArr[0] = ""; }
  25. if (chcStatus2.Checked) { statusArr[1] = "1"; } else { statusArr[1] = ""; }
  26. if (chcStatus3.Checked) { statusArr[2] = "2"; } else { statusArr[2] = ""; }
  27. if (chcStatus4.Checked) { statusArr[3] = "3"; } else { statusArr[3] = ""; }
  28. }
  29. }
  30. }