/// <summary>
        /// 查询模板明细
        /// </summary>
        /// <param name="BannerDTO"></param>
        /// <param name="id_ortmpls"></param>
        /// <returns></returns>
        public FMap getNewOrderTemplateDTO2(Ent4BannerDTO BannerDTO, string[] id_ortmpls)
        {
            remplRes = ciOrdQeryService.getOrTemplateCache(id_ortmpls, BaseEmsView.BaseEmsInfoContext["CiEnContextDTO"] as CiEnContextDTO);
            //string json = remplRes.serializeJson();
            FMap map2 = new FMap();

            if (remplRes != null)
            {
                map2 = remplRes.TemplItm;
            }
            //诊疗医疗单的开单模式赋值
            if (map2 != null && BaseEmsView.BaseEmsInfoContext.ContainsKey(ICiOrdNSysParamConst.OPDiagTreatTmplOrOpenMode))
            {
                foreach (string keyId in map2.Keys)
                {
                    FArrayList list = map2[keyId] as FArrayList;
                    foreach (NewOrderTemplateDTO templateDTO in list)
                    {
                        if (templateDTO.Ui_flag == "6")//治疗医疗单
                        {
                            FArrayList itmdolist = templateDTO.Itemlist;
                            foreach (OrTplNItmDO itmdo in itmdolist)
                            {
                                itmdo.Opdiagtreattmploropenmode = (string)BaseEmsView.BaseEmsInfoContext[ICiOrdNSysParamConst.OPDiagTreatTmplOrOpenMode];
                            }
                        }
                    }
                }
            }
            return(map2);
        }
Пример #2
0
        /// <summary>
        /// 查询医嘱模板明细数据
        /// </summary>
        /// <param name="idortmpls"></param>
        public void LoadOrTplNItmDOs(List <String> idortmpls)
        {
            for (int i = idortmpls.Count - 1; i >= 0; i--)
            {
                if (this.DicOrTplNItm.ContainsKey(idortmpls[i]))
                {
                    idortmpls.RemoveAt(i);
                }
            }

            if (idortmpls != null && idortmpls.Count > 0)
            {
                OrderTemplateRstDTO remplRes = orTmplApplyService.getOrTemplateCache(idortmpls.ToArray(), BaseEmsView.BaseEmsInfoContext["CiEnContextDTO"] as CiEnContextDTO);
                FMap fMap = null;
                if (remplRes != null)
                {
                    fMap = remplRes.TemplItm;
                }
                //诊疗医疗单的开单模式赋值
                if (fMap != null)
                {
                    if (BaseEmsView.BaseEmsInfoContext.ContainsKey(ICiOrdNSysParamConst.OPDiagTreatTmplOrOpenMode))
                    {
                        foreach (string keyId in fMap.Keys)
                        {
                            FArrayList list = fMap[keyId] as FArrayList;
                            foreach (NewOrderTemplateDTO templateDTO in list)
                            {
                                if (templateDTO.Ui_flag == "6")//治疗医疗单
                                {
                                    FArrayList itmdolist = templateDTO.Itemlist;
                                    foreach (OrTplNItmDO itmdo in itmdolist)
                                    {
                                        itmdo.Opdiagtreattmploropenmode = (string)BaseEmsView.BaseEmsInfoContext[ICiOrdNSysParamConst.OPDiagTreatTmplOrOpenMode];
                                    }
                                }
                            }
                        }
                    }
                    foreach (string keyId in fMap.Keys)
                    {
                        FArrayList list = fMap[keyId] as FArrayList;
                        if (!this.DicOrTplNItm.ContainsKey(keyId))
                        {
                            this.DicOrTplNItm.Add(keyId, list);
                        }
                    }
                }
            }
        }