private void btnSelectScraptBill_Click(object sender, EventArgs e)
        {
            对应的隔离单 Form = new 对应的隔离单(txtAssociateID.Text.Trim(), m_strStorage);

            Form.ShowDialog();

            DataTable dt = Form.m_dtIsolation;

            if (dt == null || dt.Rows.Count == 0)
            {
                return;
            }

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                S_MaterialListRejectBill goods = new S_MaterialListRejectBill();

                goods.Bill_ID         = m_billNo;
                goods.GoodsID         = Convert.ToInt32(dt.Rows[i]["物品ID"].ToString());
                goods.Provider        = dt.Rows[i]["供货单位"].ToString();
                goods.ProviderBatchNo = dt.Rows[i]["供方批次号"].ToString();
                goods.BatchNo         = dt.Rows[i]["批次号"].ToString();
                goods.Amount          = Convert.ToDecimal(dt.Rows[i]["退货数"].ToString());
                goods.Remark          = "隔离退货单【" + dt.Rows[i]["隔离单号"].ToString() + "】";
                goods.AssociateID     = txtAssociateID.Text;
                IQueryable <View_S_MaterialListRejectBill> IQReject = dataGridView1.DataSource as IQueryable <View_S_MaterialListRejectBill>;
                DataTable dvt = GlobalObject.GeneralFunction.ConvertToDataTable <View_S_MaterialListRejectBill>(IQReject);

                if (CheckSameGoods(dvt, goods))
                {
                    if (!m_goodsServer.AddGoods(txtAssociateID.Text, goods, m_strStorage, out m_error))
                    {
                        MessageDialog.ShowErrorMessage(m_error);
                        return;
                    }
                }
            }

            GetCodeInfoFromForm();
            m_queryGoodsInfo = m_goodsServer.GetGoods(m_billNo);
            RefreshDataGridView(m_queryGoodsInfo);
        }
        private void 隔离退货查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            对应的隔离单 Form = new 对应的隔离单("", cmbStorage.Text);

            Form.ShowDialog();
        }