private void SC_BranchCD_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (!string.IsNullOrWhiteSpace(SC_BranchCD.TxtCode.Text))
         {
             SC_BranchCD.ChangeDate = DateTime.Today.ToShortDateString();
             SC_BranchCD.Value1     = SC_BankCD.TxtCode.Text;
             if (!SC_BranchCD.SelectData())
             {
                 bbl.ShowMessage("E101");
                 SC_BranchCD.SetFocus(1);
             }
             else
             {
                 Select_KouzaFee();
             }
         }
         else
         {
             bbl.ShowMessage("E101");
             SC_BranchCD.SetFocus(1);
         }
     }
 }
Пример #2
0
        private bool CheckBranchCD(bool F12 = false)
        {
            SC_BranchCD.LabelText = "";

            if (!string.IsNullOrWhiteSpace(SC_BranchCD.TxtCode.Text))
            {
                SC_BranchCD.ChangeDate = dpe.PayDate;
                SC_BranchCD.Value1     = SC_BankCD.TxtCode.Text;
                if (!SC_BranchCD.SelectData())
                {
                    bbl.ShowMessage("E101");
                    SC_BranchCD.SetFocus(1);
                    return(false);
                }
                else
                {
                    if (!F12)
                    {
                        Select_KouzaFee();
                    }
                }
            }


            return(true);
        }