Пример #1
0
 private void txtPartCode_TxtKeyPress(object sender, KeyPressEventArgs e)
 {
     try
     {
         SetValues(txtPartCode.Text);
     }
     catch (Exception ex)
     {
         BLMUtils.ShowError(ex.Message);
     }
 }
Пример #2
0
 private void ValidateBarCode()
 {
     try
     {
         IsNullOrEmpty(BillNum);
     }
     catch (Exception ex)
     {
         BLMUtils.ShowError(ex.Message);
     }
 }
Пример #3
0
 private void ValidateBarCode()
 {
     try
     {
         IsNullOrEmpty(BarCode);
         IsInBarCodeList(BarCode, true);
         IsInStockDetail(BarCode, false);
     }
     catch (Exception ex)
     {
         BLMUtils.ShowError(ex.Message);
     }
 }
Пример #4
0
 private void txtBillNum_TxtKeyPress(object sender, EventArgs e)
 {
     try
     {
         IsNullOrEmpty(txtBillNum.Text);
         var sourceBill = SourceBillController.GetSourceBill(BillType, txtBillNum.Text);
         SetValues(sourceBill.SourceBillMaster);
         if (BtnClick != null)
         {
             BtnClick(sender, e);
         }
     }
     catch (Exception ex)
     {
         BLMUtils.ShowError(ex.Message);
     }
 }
Пример #5
0
 private void InputQty_ButtonCustomClick(object sender, EventArgs e)
 {
     try
     {
         var frm = new FrmGetQty(Part.dStdBoxQty);
         frm.ShowDialog();
         if (frm.DialogResult != DialogResult.OK)
         {
             return;
         }
         InputQty.Text = frm.Qty.ToString();
     }
     catch (Exception ex)
     {
         BLMUtils.ShowError(ex.Message);
     }
 }
Пример #6
0
 private void txtBillNum_ButtonCustomClick(object sender, EventArgs e)
 {
     try
     {
         var frm = new FrmQrySourceBill(_billType);
         frm.ShowDialog();
         if (frm.DialogResult != DialogResult.OK)
         {
             return;
         }
         SourceBill = frm.SelectedSourceBill;
         BillNum    = SourceBill.SourceBillMaster.BillNum;
     }
     catch (Exception ex)
     {
         BLMUtils.ShowError(ex.Message);
     }
 }
Пример #7
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(txtBinCode.Text))
         {
             throw new Exception("请输入器具编号!");
         }
         BinM  = BinController.GetBinM(txtBinCode.Text);
         BinDs = BinController.GetBinDs(txtBinCode.Text);
         if (BtnClick != null)
         {
             BtnClick(sender, e);
         }
     }
     catch (Exception ex)
     {
         BLMUtils.ShowError(ex.Message);
     }
 }
Пример #8
0
 private void txtBillNum_BtnClick(object sender, EventArgs e)
 {
     try
     {
         var frm = new FrmQrySourceBill(BillType);
         frm.ShowDialog();
         if (frm.DialogResult != DialogResult.OK)
         {
             return;
         }
         var sourceBill = frm.SelectedSourceBill;
         SetValues(sourceBill.SourceBillMaster);
         if (BtnClick != null)
         {
             BtnClick(sender, e);
         }
     }
     catch (Exception ex)
     {
         BLMUtils.ShowError(ex.Message);
     }
 }