/// <summary> /// 出库单据查询 /// </summary> protected override void QueryOut() { Neusoft.HISFC.BizLogic.Pharmacy.Item itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); ArrayList alList = new ArrayList(); if (this.PrivType != null && this.PrivType.ID != "") { #region 根据不同权限进行不同处理 switch (this.PrivType.Memo) { case "16": //核准入库 alList = itemManager.QueryOutputListForApproveInput(this.DeptInfo.ID, this.BeginDate, this.EndDate); break; } #endregion } else { alList = itemManager.QueryOutputList(this.DeptInfo.ID, "A", this.State, this.BeginDate, this.EndDate); } if (alList == null) { MessageBox.Show(Language.Msg("查询单据列表发生错误" + itemManager.Err)); } this.neuSpread1_Sheet1.Rows.Count = 0; foreach (Neusoft.FrameWork.Models.NeuObject info in alList) { if (this.MarkPrivType != null) { if (this.MarkPrivType.ContainsKey(info.User01)) //对于过滤的权限不显示 { continue; } } this.neuSpread1_Sheet1.Rows.Add(0, 1); this.neuSpread1_Sheet1.Cells[0, 0].Text = info.ID; this.neuSpread1_Sheet1.Cells[0, 2].Text = this.outTypeHelper.GetName(info.User01); Neusoft.HISFC.Models.Pharmacy.Company company = new Neusoft.HISFC.Models.Pharmacy.Company(); if (this.deptHelper.GetObjectFromID(info.Memo) == null) { Neusoft.HISFC.BizLogic.Pharmacy.Constant constant = new Neusoft.HISFC.BizLogic.Pharmacy.Constant(); company = constant.QueryCompanyByCompanyID(info.Memo); if (company == null) { MessageBox.Show(constant.Err); return; } } else { company.ID = info.Memo; company.Name = this.deptHelper.GetName(info.Memo); } this.neuSpread1_Sheet1.Cells[0, 3].Text = company.Name; this.neuSpread1_Sheet1.Cells[0, (int)ColumnSet.ColTargetID].Text = company.ID; } }