private void txtPartCode_TxtKeyPress(object sender, KeyPressEventArgs e) { try { SetValues(txtPartCode.Text); } catch (Exception ex) { BLMUtils.ShowError(ex.Message); } }
private void ValidateBarCode() { try { IsNullOrEmpty(BillNum); } catch (Exception ex) { BLMUtils.ShowError(ex.Message); } }
private void ValidateBarCode() { try { IsNullOrEmpty(BarCode); IsInBarCodeList(BarCode, true); IsInStockDetail(BarCode, false); } catch (Exception ex) { BLMUtils.ShowError(ex.Message); } }
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); } }
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); } }
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); } }
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); } }
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); } }