/// <summary>
        /// 查询
        /// </summary>
        protected void Query()
        {
            if (this.cmbDept.Tag == null || this.cmbDept.Tag.ToString() == "")
            {
                MessageBox.Show(Language.Msg("请选择查询库房"));
                return;
            }
            if (!this.ckIgnoreDoc.Checked)
            {
                if (this.cmbDoc.Tag == null || this.cmbDoc.Tag.ToString() == "")
                {
                    MessageBox.Show(Language.Msg("请选择医生"));
                    return;
                }
            }

            Neusoft.HISFC.BizLogic.Pharmacy.Item        itemManager  = new Neusoft.HISFC.BizLogic.Pharmacy.Item();
            Neusoft.HISFC.BizProcess.Integrate.Pharmacy integratePha = new Neusoft.HISFC.BizProcess.Integrate.Pharmacy();

            string deptCode = this.cmbDept.Tag.ToString();
            string docCode  = "";
            string docGrade = "";

            if (!this.ckIgnoreDoc.Checked && this.cmbDoc.Tag != null)
            {
                docCode = this.cmbDoc.Tag.ToString();

                Neusoft.HISFC.BizLogic.Manager.Person personManager = new Neusoft.HISFC.BizLogic.Manager.Person();
                Neusoft.HISFC.Models.Base.Employee    person        = personManager.GetPersonByID(docCode);

                docGrade = person.Level.ID;
            }

            this.dt.Rows.Clear();

            List <Neusoft.HISFC.Models.Pharmacy.Item> alList = new List <Neusoft.HISFC.Models.Pharmacy.Item>();
            ArrayList alArrList = new ArrayList();

            if (!this.ckIgnoreDoc.Checked)
            {
                alList = integratePha.QueryItemAvailableList(deptCode, docCode, docGrade);

                if (alList == null)
                {
                    MessageBox.Show(integratePha.Err);
                    return;
                }

                this.AddDataToTable(alList);

                MessageBox.Show(Language.Msg("查询完成"));
            }
            else
            {
                alArrList = itemManager.QueryItemAvailableList(deptCode);

                if (alArrList == null)
                {
                    MessageBox.Show(itemManager.Err);
                    return;
                }

                this.AddDataToTable(alArrList);

                MessageBox.Show(Language.Msg("查询完成"));
            }
        }