private void label9_Click(object sender, EventArgs e) { if ((this._WHId.Trim() == "") || (this.txt_cMNo.Text.Trim() == "")) { MessageBox.Show("对不起,必须先选择物料,才能选择该物料的库存入库单数据!"); } else { frmSelBillInDtl dtl = new frmSelBillInDtl { AppInformation = base.AppInformation, UserInformation = base.UserInformation }; dtl.lbl_cWHId.Text = this._WHId.Trim(); dtl.lbl_cMNo.Text = this.txt_cMNo.Text.Trim(); dtl.ShowDialog(); if (dtl.IsSelected) { this.txt_cBatchNo.Text = dtl.SelBatchNo.Trim(); this.txt_cBNoIn.Text = dtl.SelBNo.Trim(); this.txt_nItemIn.Text = dtl.SelItem.Trim(); this.txt_cUnit.Text = dtl.SelUnit.Trim(); } dtl.Dispose(); } }
private void lblBillIn_Click(object sender, EventArgs e) { if (_WHId.Trim() == "" || txt_cMNo.Text.Trim() == "") { MessageBox.Show("对不起,必须先选择物料,才能选择该物料的库存入库单数据!"); return; } frmSelBillInDtl frmX = new frmSelBillInDtl(); frmX.AppInformation = AppInformation; frmX.UserInformation = UserInformation; frmX.lbl_cWHId.Text = _WHId.Trim(); frmX.lbl_cMNo.Text = txt_cMNo.Text.Trim(); frmX.ShowDialog(); if (frmX.IsSelected) { txt_cBatchNo.Text = frmX.SelBatchNo.Trim(); txt_cBNoIn.Text = frmX.SelBNo.Trim(); txt_nItemIn.Text = frmX.SelItem.Trim(); txt_cUnit.Text = frmX.SelUnit.Trim(); txt_fQty.SelectAll(); txt_fQty.Focus(); } frmX.Dispose(); }