/// <summary> /// 查询医嘱 /// </summary> private void QueryOrder() { ArrayList alOrder = new ArrayList(); ArrayList alPRecipe = new ArrayList(); ArrayList alPCZRecipe = new ArrayList(); ArrayList alPCCRecipe = new ArrayList(); alOrder = orderManagement.QueryOrder(this.myRecipeNO); if (alOrder.Count <= 0 || alOrder == null) { return; } foreach (Neusoft.HISFC.Models.Order.OutPatient.Order order in alOrder) { //if (order.Item.IsPharmacy) if (order.Item.ItemType == Neusoft.HISFC.Models.Base.EnumItemType.Drug) { if ((order.Item as Neusoft.HISFC.Models.Pharmacy.Item).Quality.ID != "S" && (order.Item as Neusoft.HISFC.Models.Pharmacy.Item).Quality.ID != "P" && order.Status != 3) { if (order.Item.SysClass.ID.ToString() == "PCC") { alPCCRecipe.Add(order); } else { if (isSameRecipe) { alPRecipe.Add(order); } else { if (order.Item.SysClass.ID.ToString() == "P") { alPRecipe.Add(order); } else { alPCZRecipe.Add(order); } } } } } } this.PrintRecipe(alPRecipe, false); this.PrintRecipe(alPCZRecipe, false); this.PrintRecipe(alPCCRecipe, true); }
void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { try { if (e.Node.Tag == null) { return; } Neusoft.FrameWork.Models.NeuObject obj = e.Node.Tag as Neusoft.FrameWork.Models.NeuObject; ArrayList al = orderManager.QueryOrder(obj.ID); Neusoft.HISFC.Components.Common.Classes.Function.ShowOrder(this.fpSpread1_Sheet1, al, Neusoft.HISFC.Models.Base.ServiceTypes.C); } catch { } }
/// <summary> /// 查询医嘱 /// </summary> private void QueryOrder() { ArrayList alOrder = new ArrayList(); ArrayList alPRecipe = new ArrayList(); ArrayList alPCZRecipe = new ArrayList(); ArrayList alPCCRecipe = new ArrayList(); alOrder = orderManagement.QueryOrder(this.myRecipeNO); if (alOrder.Count <= 0 || alOrder == null) { return; } #region 处方号分下组先 System.Collections.Generic.Dictionary <string, ArrayList> alRecipeNoOrder = new Dictionary <string, ArrayList>(); while (alOrder.Count > 0) { string recepeNo = string.Empty; Neusoft.HISFC.Models.Order.OutPatient.Order o = alOrder[0] as Neusoft.HISFC.Models.Order.OutPatient.Order; if (o != null) { recepeNo = o.ReciptNO.ToString(); } if (alRecipeNoOrder.ContainsKey(recepeNo) == false) { alRecipeNoOrder.Add(recepeNo, new ArrayList()); } alRecipeNoOrder[recepeNo].Add(o); alOrder.RemoveAt(0); } foreach (ArrayList a in alRecipeNoOrder.Values) { foreach (Neusoft.HISFC.Models.Order.OutPatient.Order order in a) { //if (order.Item.IsPharmacy) if (order.Item.ItemType == Neusoft.HISFC.Models.Base.EnumItemType.Drug) { if (order.Status != 3 // (order.Item as Neusoft.HISFC.Models.Pharmacy.Item).Quality.ID != "S" && // (order.Item as Neusoft.HISFC.Models.Pharmacy.Item).Quality.ID != "P" &&)) ) { if (order.Item.SysClass.ID.ToString() == "PCC") { alPCCRecipe.Add(order); } else { if (isSameRecipe) { alPRecipe.Add(order); } else { if (order.Item.SysClass.ID.ToString() == "P") { alPRecipe.Add(order); } else { alPCZRecipe.Add(order); } } } } } } this.PrintRecipe(alPRecipe, false); this.PrintRecipe(alPCZRecipe, false); this.PrintRecipe(alPCCRecipe, true); } #endregion }