예제 #1
0
 private void txtProduct_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F1)
     {
         SearchForms.SchProducts vForm = new SearchForms.SchProducts();
         vForm.IsSaleable   = true;
         vForm.IsConsumable = false;
         vForm.ShowDialog();
         if (!string.IsNullOrEmpty(vForm.MyID))
         {
             txt_ProductID.Text   = vForm.MyID;
             txt_ProductName.Text = vForm.MyName;
             txtUnit.Text         = vForm.MyUnitName;
             txtUnit.Tag          = vForm.MyUnitID.ToString();
             txt_Qty.Tag          = vForm.MyMultiplier.ToString("0");
             txt_Price.Text       = vForm.MySalePrice.ToString("G29");
             txt_Qty.Focus();
             GetCurrentStock(Int64.Parse(vForm.MyID));
         }
     }
     else
     {
         GoToNextCont(sender, e);
     }
 }
예제 #2
0
 private void txtProduct_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F1)
     {
         SearchForms.SchProducts vForm = new SearchForms.SchProducts();
         vForm.IsSaleable   = false;
         vForm.IsConsumable = false;
         vForm.ShowDialog();
         if (!string.IsNullOrEmpty(vForm.MyID))
         {
             txt_ProductID.Text   = vForm.MyID;
             txt_ProductName.Text = vForm.MyName;
         }
     }
     else
     {
         GoToNextCont(sender, e);
     }
 }