Exemplo n.º 1
0
 public void E188Check(bool value, SCheckBox ctrl1, SCheckBox ctrl2, string errText)
 {
     E188         = value;
     ctrlE188_1   = ctrl1;
     ctrlE188_2   = ctrl2;
     E188_ErrText = errText;
 }
Exemplo n.º 2
0
        private (bool, DataTable) CheckBoxErrorCheck(SCheckBox sCheckBox)
        {
            DataTable rDt = new DataTable();

            if (sCheckBox.E188)
            {
                if (!sCheckBox.ctrlE188_1.Checked && !sCheckBox.ctrlE188_2.Checked)
                {
                    ShowErrorMessage("E188", sCheckBox.E188_ErrText);
                    sCheckBox.Focus();
                    return(true, rDt);
                }
            }
            return(false, rDt);
        }
Exemplo n.º 3
0
        public (bool, DataTable) Check(Control ctrl)
        {
            DataTable dt = new DataTable();

            if (ctrl is STextBox)
            {
                STextBox sTextBox = ctrl as STextBox;
                (bool, DataTable)r_value = TextBoxErrorCheck(sTextBox);
                return(r_value);
            }
            if (ctrl is ComboBox)
            {
                SCombo sCombo = ctrl as SCombo;
                (bool, DataTable)r_value = ComboErrorCheck(sCombo);
                return(r_value);
            }
            if (ctrl is SCheckBox)
            {
                SCheckBox sCheckBox = ctrl as SCheckBox;
                (bool, DataTable)r_value = CheckBoxErrorCheck(sCheckBox);
                return(r_value);
            }
            return(false, dt);
        }