private void btnFindBatchNo_Click(object sender, EventArgs e) { FormQueryInfo form = QueryInfoDialog.GetGoodsForBatchNo(Convert.ToInt32(txtCode.Tag), m_billInfo.StorageID); if (form != null && form.ShowDialog() == DialogResult.OK) { txtBatchNo.Text = form.GetDataItem("批次号").ToString(); txtProviderBatchNo.Text = form.GetDataItem("供方批次号").ToString(); txtProvider.Text = form.GetDataItem("供货单位").ToString(); cmbUnit.Text = form.GetDataItem("单位").ToString(); cmbUnit.SelectedValue = Convert.ToInt32(form.GetDataItem("单位ID").ToString()); txtShelf.Text = form.GetDataItem("货架").ToString(); txtColumn.Text = form.GetDataItem("列").ToString(); txtLayer.Text = form.GetDataItem("层").ToString(); cmbGoodsStatus.Text = form.GetDataItem("物品状态").ToString(); cmbGoodsStatus.SelectedValue = Convert.ToInt32(form.GetDataItem("物品状态ID").ToString()); txtZMSL.Text = form.GetDataItem("库存数量").ToString(); txtZMJE.Tag = m_serverStore.GetGoodsUnitPrice(Convert.ToInt32(txtCode.Tag), txtBatchNo.Text, m_billInfo.StorageID); txtZMJE.Text = (Convert.ToDecimal(form.GetDataItem("库存数量")) * Convert.ToDecimal(txtZMJE.Tag)).ToString(); } }