コード例 #1
0
        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
                });
            }
        }
コード例 #2
0
 public OrderApbtViewModel()
 {
     qryservice          = XapServiceMgr.find <IBdSrvQryService>();
     MDORService         = XapServiceMgr.find <IEmsregistryMDOCrudService>();
     registryCrudService = XapServiceMgr.find <IEmsRelSrvDOCrudService>();
 }
コード例 #3
0
 public PreBloodCardViewModel()
 {
     qryservice          = XapServiceMgr.find <IBdSrvQryService>();
     MDORService         = XapServiceMgr.find <IEmsregistryMDOCrudService>();
     registryCrudService = XapServiceMgr.find <IEmsRelSrvDOCrudService>();
 }
コード例 #4
0
        /// <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
                });
            }
        }