コード例 #1
0
        /// <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);
        }