Пример #1
0
        private void ClearFields(int rank = 0)
        {
            if (rank == 1)
            {
                TxtCodeCmd.Clear();
                _initCmbState           = false;
                CmbClient.SelectedIndex = -1;
                _initCmbState           = true;
                BtnDeleteCmd.Enabled    = false;
                GbControlDCmd.Enabled   = false;
            }
            else
            {
                TxtCodeDetailCmd.Clear();
                TxtCodeCmd.Clear();
                TxtPrixCmd.Clear();
                TxtQteCmd.Clear();

                _initCmbState          = false;
                CmbPiece.SelectedIndex = -1;
                _initCmbState          = true;
                CmbPiece.Focus();
                BtnDeleteDCmd.Enabled = false;
                GbCmd.Enabled         = true;
            }
        }
Пример #2
0
        private void ClearFields(int rank = 0)
        {
            if (rank == 1)
            {
                TxtCodeApprov.Clear();
                _initCmbState            = false;
                CmbFss.SelectedIndex     = -1;
                _initCmbState            = true;
                BtnDeleteApprov.Enabled  = false;
                GbControlDApprov.Enabled = false;
            }
            else
            {
                TxtCodeDetailApprov.Clear();
                TxtCodeApprov.Clear();
                TxtPrixApprov.Clear();
                TxtQteApprov.Clear();

                _initCmbState          = false;
                CmbPiece.SelectedIndex = -1;
                _initCmbState          = true;
                CmbPiece.Focus();
                BtnDeleteDApprov.Enabled = false;
                GbApprov.Enabled         = true;
            }
        }