private void Shiiresaki_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         Shiiresaki.ChangeDate = bbl.GetDate();
         if (!string.IsNullOrEmpty(Shiiresaki.TxtCode.Text))
         {
             if (Shiiresaki.SelectData())
             {
                 //Shiiresaki.Value1 = Shiiresaki.TxtCode.Text;
                 //Shiiresaki.Value2 = Shiiresaki.LabelText;
                 F11();
             }
             else
             {
                 bbl.ShowMessage("E101");
                 Shiiresaki.SetFocus(1);
                 dgvPaymentClose.DataSource = null;
             }
         }
         else
         {
             F11();
         }
     }
 }
Пример #2
0
 private void Shiiresaki_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         Shiiresaki.ChangeDate = bbl.GetDate();
         if (!string.IsNullOrEmpty(Shiiresaki.TxtCode.Text))
         {
             if (!Shiiresaki.SelectData())
             {
                 bbl.ShowMessage("E101");
                 Shiiresaki.SetFocus(1);
                 //Shiiresaki.Value1 = Shiiresaki.TxtCode.Text;
                 //Shiiresaki.Value2 = Shiiresaki.LabelText;
             }
             //else
             //{
             //    bbl.ShowMessage("E101");
             //    Shiiresaki.SetFocus(1);
             //}
         }
     }
 }