12345678910111213141516171819202122232425262728293031 |
- using System.Windows.Forms;
- using UAS_MES_NEW.Entity;
- namespace UAS_MES_NEW.CustomControl.CustomCheckBox
- {
- public partial class ReSetCheckBox : CheckBox
- {
- DataOperate.DataHelper dh = SystemInf.dh;
- public ReSetCheckBox()
- {
- InitializeComponent();
- }
- private void ReSetCheckBox_Layout(object sender, LayoutEventArgs e)
- {
- if (dh != null)
- {
- if (dh.getFieldDataByCondition("Step", "st_ifreset", "st_code='" + User.CurrentStepCode + "'").ToString() == "-1")
- {
- Checked = true;
- }
- else
- {
- Checked = false;
- }
- }
- }
- }
- }
|