Exemplo n.º 1
0
 private void ScBankCD_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (!string.IsNullOrWhiteSpace(ScBankCD.TxtCode.Text))
         {
             if (ScBankCD.SelectData())
             {
                 ScBranchCD.Value1 = ScBankCD.TxtCode.Text;
                 ScBranchCD.Value2 = ScBankCD.LabelText;
                 mb = GetDate();
                 mb = mtbstbl.M_Bank_ChangeDate_Select(mb);
                 if (mb != null)
                 {
                     date = mb.ChangeDate;
                 }
             }
             else
             {
                 mtbstbl.ShowMessage("E101");
                 ScBankCD.SetFocus(1);
             }
         }
     }
 }
 private void ScBankCD_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (!string.IsNullOrWhiteSpace(ScBankCD.TxtCode.Text))
         {
             if (ScBankCD.SelectData())
             {
                 ScBranchCD.Value1 = ScBankCD.TxtCode.Text;
                 ScBranchCD.Value2 = ScBankCD.LabelText;
             }
             else
             {
                 mtbbl.ShowMessage("E101");
                 ScBankCD.SetFocus(1);
             }
         }
     }
 }