private void LoadIndicatorData() { if (EmsHeadDO == null || EmsHeadDO.Emsapop == null || EmsHeadDO.Emsapop.OpLabItem == null) { return; } EmsHeadDO.Emsapop.OpLabItem.Clear(); this.qryservice = XapServiceMgr.find <IBdSrvQryService>(); IEmsregistryMDOCrudService MDORService = XapServiceMgr.find <IEmsregistryMDOCrudService>(); EmsDO emsDo = MDORService.findById(this.EmsHeadDO.Id_srvof); bool?fg_dyncitm_en = emsDo.Fg_dyncitm_crossentp; int?eu_dyncitmunit = emsDo.Eu_dyncitmunit; int?dyncitmunitct = emsDo.Cnt_dyncitmunit; string id_ent = EmsHeadDO.PatInfo.Id_ent; string id_pat = EmsHeadDO.PatInfo.Id_pat; EmsDynamicParamDTO paramDto = new EmsDynamicParamDTO(); paramDto.Id_ems = this.EmsHeadDO.Id_srvof; paramDto.Fg_dyncitm_en = fg_dyncitm_en; paramDto.Eu_dyncitmunit = eu_dyncitmunit; paramDto.Id_ent = id_ent; paramDto.Id_pat = id_pat; paramDto.Dyncitmunitct = dyncitmunitct; EmsDynamicIndexDTO[] dtos = qryservice.getEmsDynamicIndexInfos(paramDto); //Datatype为编辑类型,0:输入框,其他为:下拉框 foreach (EmsDynamicIndexDTO dto in dtos) { EmsHeadDO.Emsapop.OpLabItem.Add(new OrdApSugViewItemDO() { Val_rstrptla = dto.Indexval == null?"":dto.Indexval, Val_restrptlab = dto.Enumvalues == null ? "":"|" + dto.Enumvalues.Replace(',', '|'), Sd_restrptlabtp = dto.Datatype, Name_srv = dto.Showname, Name_unit = dto.Unitname, Id_unit = dto.Id_unit, Id_srv = dto.Id_srv }); } }
public EmsDynamicIndexDTO[] getEmsDynamicIndexInfos1(EmsUIDTO emsUIDTO) { string sql = string.Format("(a1.id_srv='{0}' or a1.id_srvtp='{1}')", emsUIDTO.MedSrvDO.Id_srv, emsUIDTO.MedSrvDO.Id_srvtp); EmsRelSrvDO[] relsrv = registryCrudService.find(sql, "", false); if (relsrv != null && relsrv.Length > 0) { if (relsrv != null && relsrv.Length > 0) { EmsDO emsDo = MDORService.findById(relsrv[0].Id_srvof); bool?fg_dyncitm_en = emsDo.Fg_dyncitm_crossentp; int?eu_dyncitmunit = emsDo.Eu_dyncitmunit; int?dyncitmunitct = emsDo.Cnt_dyncitmunit; string id_ent = emsUIDTO.PatInfo.Id_ent; string id_pat = emsUIDTO.PatInfo.Id_pat; EmsDynamicParamDTO paramDto = new EmsDynamicParamDTO(); paramDto.Id_ems = relsrv[0].Id_srvof; paramDto.Fg_dyncitm_en = fg_dyncitm_en; paramDto.Eu_dyncitmunit = eu_dyncitmunit; paramDto.Id_ent = id_ent; paramDto.Id_pat = id_pat; paramDto.Dyncitmunitct = dyncitmunitct; return(qryservice.getEmsDynamicIndexInfos(paramDto)); } else { return(null); } } else { return(null); } }
public EmsDynamicIndexDTO[] getEmsDynamicIndexInfos(EmsUIDTO emsUIDTO, string id_srvof) { EmsDO emsDo = MDORService.findById(id_srvof); bool?fg_dyncitm_en = emsDo.Fg_dyncitm_crossentp; int?eu_dyncitmunit = emsDo.Eu_dyncitmunit; int?dyncitmunitct = emsDo.Cnt_dyncitmunit; string id_ent = emsUIDTO.PatInfo.Id_ent; string id_pat = emsUIDTO.PatInfo.Id_pat; EmsDynamicParamDTO paramDto = new EmsDynamicParamDTO(); paramDto.Id_ems = id_srvof; paramDto.Fg_dyncitm_en = fg_dyncitm_en; paramDto.Eu_dyncitmunit = eu_dyncitmunit; paramDto.Id_ent = id_ent; paramDto.Id_pat = id_pat; paramDto.Dyncitmunitct = dyncitmunitct; return(qryservice.getEmsDynamicIndexInfos(paramDto)); }
/// <summary> /// 加载动态项目数据 /// </summary> public void LoadIndicatorData() { if (this.uiEmsDTO == null || uiEmsDTO.Emsapop == null || uiEmsDTO.Emsapop.OpLabItem == null) { return; } // uiEmsDTO.Emsapop.OpLabItem.Clear(); // -- 切换服务时候,动态指标项,已经存在的要设置为deleted if (uiEmsDTO.IsNEW) { uiEmsDTO.Emsapop.OpLabItem.Clear(); } else { uiEmsDTO.Emsapop.OpLabItem.ToList().ForEach(p => { p.Status = DOStatus.DELETED; }); } IBdSrvQryService qryservice = XapServiceMgr.find <IBdSrvQryService>(); IEmsregistryMDOCrudService MDORService = XapServiceMgr.find <IEmsregistryMDOCrudService>(); EmsDO emsDo = MDORService.findById(this.ciEmsDTO.Id_srvof); if (emsDo == null) { return; } bool?fg_dyncitm_en = emsDo.Fg_dyncitm_crossentp; int?eu_dyncitmunit = emsDo.Eu_dyncitmunit; //指标周期类型 int?dyncitmunitct = emsDo.Cnt_dyncitmunit; string id_ent = uiEmsDTO.PatInfo.Id_ent; string id_pat = uiEmsDTO.PatInfo.Id_pat; EmsDynamicParamDTO paramDto = new EmsDynamicParamDTO(); paramDto.Id_ems = this.ciEmsDTO.Id_srvof; paramDto.Fg_dyncitm_en = fg_dyncitm_en; paramDto.Eu_dyncitmunit = eu_dyncitmunit; paramDto.Id_ent = id_ent; paramDto.Id_pat = id_pat; paramDto.Dyncitmunitct = dyncitmunitct; EmsDynamicIndexDTO[] dtos = qryservice.getEmsDynamicIndexInfos(paramDto); //Datatype为编辑类型,0:输入框,其他为:下拉框 foreach (EmsDynamicIndexDTO dto in dtos) { uiEmsDTO.Emsapop.OpLabItem.Add(new OrdApSugViewItemDO() { Val_rstrptla = dto.Indexval == null ? "" : dto.Indexval, Val_restrptlab = dto.Enumvalues == null ? "" : "|" + dto.Enumvalues.Replace(',', '|'), Sd_restrptlabtp = dto.Datatype, Name_srv = dto.Showname, Name_unit = dto.Unitname, Id_unit = dto.Id_unit, Id_srv = dto.Id_srv }); } }