/// <summary> /// 申请信息检索 /// </summary> /// <returns></returns> internal int QueryApply() { if (this.applyPatient == null) { MessageBox.Show(Language.Msg("请输入住院号回车选择退费患者")); return(0); } Neusoft.HISFC.BizLogic.Pharmacy.Item itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); ArrayList alApply = itemManager.GetPatientApply(this.applyPatient.ID, "AAAA", this.operDept.ID, this.BeginDate, this.EndDate, "0"); if (alApply == null) { MessageBox.Show(Language.Msg("患者获取申请信息失败") + itemManager.Err); return(-1); } this.dtNormalApply.Rows.Clear(); this.dtCancelApply.Rows.Clear(); this.hsApply = new Hashtable(); foreach (Neusoft.HISFC.Models.Pharmacy.ApplyOut applyOut in alApply) { if (applyOut.State != "0") { continue; } //不显示退药申请 if (applyOut.SystemType == Neusoft.HISFC.Models.Base.EnumIMAOutTypeService.GetNameFromEnum(Neusoft.HISFC.Models.Base.EnumIMAOutType.InpatientBackOutput)) { continue; } //1有效 0 无效 if (applyOut.ValidState == Neusoft.HISFC.Models.Base.EnumValidState.Valid) { this.SetNormalApply(applyOut); } else { this.SetCancelApply(applyOut); } this.hsApply.Add(applyOut.ID, applyOut); } return(1); }