/// <summary>
        /// 查找物品
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFindCode_Click(object sender, EventArgs e)
        {
            if (txtAssociateID.Text.Trim() == "")
            {
                MessageBox.Show("请先选择关联单号", "提示");
                return;
            }

            if (m_operateMode != CE_BusinessOperateMode.仓库核实)
            {
                FormQueryInfo form = QueryInfoDialog.GetStoreGoodsInfoDialog(txtAssociateID.Text, m_strProvider, m_strStorage);

                if (form != null && form.ShowDialog() == DialogResult.OK)
                {
                    txtCode.Text            = (string)form.GetDataItem("图号型号");
                    txtCode.Tag             = (int)form.GetDataItem("物品ID");
                    txtName.Text            = (string)form.GetDataItem("物品名称");
                    txtSpec.Text            = (string)form.GetDataItem("规格");
                    txtProvider.Text        = (string)form.GetDataItem("供货单位");
                    txtProviderBatchNo.Text = (string)form.GetDataItem("供方批次");
                    txtBatchNo.Text         = (string)form.GetDataItem("批次号");

                    txtUnit.Text  = (string)form.GetDataItem("单位");
                    txtDepot.Text = (string)form.GetDataItem("物品类别名称");
                    txtDepot.Tag  = (string)form.GetDataItem("物品类别");

                    txtShelf.Text  = (string)form.GetDataItem("货架");
                    txtColumn.Text = (string)form.GetDataItem("列");
                    txtLayer.Text  = (string)form.GetDataItem("层");
                }
            }
            else if (m_operateMode != CE_BusinessOperateMode.修改)
            {
                FormQueryInfo form = QueryInfoDialog.GetOrderFormGoodsStockInfoDialog(txtAssociateID.Text, m_strStorage);

                if (form.ShowDialog() == DialogResult.OK)
                {
                    txtCode.Text     = form.GetStringDataItem("图号型号");
                    txtCode.Tag      = (int)form.GetDataItem("物品ID");
                    txtName.Text     = form.GetStringDataItem("物品名称");
                    txtSpec.Text     = form.GetStringDataItem("规格");
                    txtProvider.Text = form.GetStringDataItem("供应商");

                    txtBatchNo.Text = form.GetStringDataItem("批次号");

                    txtProviderBatchNo.Text = form.GetStringDataItem("供方批次");
                    txtUnit.Text            = form.GetStringDataItem("单位");
                    txtDepot.Text           = form.GetStringDataItem("物品类别");
                    txtShelf.Text           = form.GetStringDataItem("货架");
                    txtColumn.Text          = form.GetStringDataItem("列");
                    txtLayer.Text           = form.GetStringDataItem("层");
                }
            }
        }