ContorlPlanStatusZy.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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 ContorlPlanStatusZy : UserControl
  12. {
  13. public string[] statusArr = new string[5] { "", "", "", "","" };//状态
  14. public ContorlPlanStatusZy()
  15. {
  16. InitializeComponent();
  17. if (chcStatus1.Checked) { statusArr[0] = "00"; }
  18. if (chcStatus2.Checked) { statusArr[1] = "10"; }
  19. if (chcStatus3.Checked) { statusArr[2] = "20"; }
  20. if (chcStatus4.Checked) { statusArr[3] = "30"; }
  21. if (chcStatus5.Checked) { statusArr[4] = "40"; }
  22. }
  23. private void chc_CheckedChanged(object sender, EventArgs e)
  24. {
  25. if (chcStatus1.Checked) { statusArr[0] = "00"; } else { statusArr[0] = ""; }
  26. if (chcStatus2.Checked) { statusArr[1] = "10"; } else { statusArr[1] = ""; }
  27. if (chcStatus3.Checked) { statusArr[2] = "20"; } else { statusArr[2] = ""; }
  28. if (chcStatus4.Checked) { statusArr[3] = "30"; } else { statusArr[3] = ""; }
  29. if (chcStatus5.Checked) { statusArr[4] = "40"; } else { statusArr[4] = ""; }
  30. }
  31. }
  32. }