using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace Core.StlMes.Client.PlnSaleOrd.炼钢计划.control { public partial class UserControlGpStrat : UserControl { public string[] statusArr = new string[5] { "", "", "", "","" };//状态 public UserControlGpStrat() { InitializeComponent(); if (chcStatus1.Checked) { statusArr[0] = "0"; } if (chcStatus2.Checked) { statusArr[1] = "1"; } if (chcStatus3.Checked) { statusArr[2] = "2"; } if (chcStatus4.Checked) { statusArr[3] = "3"; } if (chcStatus5.Checked) { statusArr[4] = "4"; } } private void chc_CheckedChanged(object sender, EventArgs e) { if (chcStatus1.Checked) { statusArr[0] = "0"; } else { statusArr[0] = ""; } if (chcStatus2.Checked) { statusArr[1] = "1"; } else { statusArr[1] = ""; } if (chcStatus3.Checked) { statusArr[2] = "2"; } else { statusArr[2] = ""; } if (chcStatus4.Checked) { statusArr[3] = "3"; } else { statusArr[3] = ""; } if (chcStatus5.Checked) { statusArr[4] = "4"; } else { statusArr[4] = ""; } } } }