示例#1
0
        public ExeEventGroupModel getEventGroup(ExeEventGroupModel eventLabelGroupModel,
                                                List <OrSplitOrderDTO> labbasedtos, ClinicalExeEventStatus type)
        {
            if (labbasedtos != null && labbasedtos.Count() > 0)
            {
                foreach (OrSplitOrderDTO orSplitOrderDto in labbasedtos)
                {
                    var eventLabel = new EventLabelModel(orSplitOrderDto.Name_or, (DateTime)orSplitOrderDto.Dt_mp_plan);
                    eventLabel.Id        = orSplitOrderDto.Id_or;
                    eventLabel.NowStates = ExeStatuses.Executed;
                    eventLabel.NowType   = type; //

                    if (orSplitOrderDto.Or_mp_status == "0")
                    {
                        eventLabel.NowStates = ExeStatuses.Pending;
                    }
                    if (orSplitOrderDto.Or_mp_status == "1")
                    {
                        eventLabel.NowStates = ExeStatuses.Executing;
                    }
                    if (orSplitOrderDto.Or_mp_status == "2")
                    {
                        eventLabel.NowStates = ExeStatuses.NoEecution;
                    }
                    if (orSplitOrderDto.Or_mp_status == "4")
                    {
                        eventLabel.NowStates = ExeStatuses.Executed;
                    }

                    eventLabelGroupModel.EventLabels.Add(eventLabel);
                }
            }
            return(eventLabelGroupModel);
        }
示例#2
0
        /// <summary>
        ///     检查检验闭环数据  RouteMark labelCheck
        /// </summary>
        public void exec(EventLabelModel EventLabel)
        {
            foreignservice = XapServiceMgr.find <IForeignService>();
            EventLabel.NowSelectedButton.ExeStatus = EventLabel.NowStates;
            EventLabel.NowSelectedButton.IdOr      = EventLabel.Id;
            var paramDto = new OrdOrpltpParamDTO();

            paramDto.Id_or      = EventLabel.Id;
            paramDto.Dt_mp_plan = EventLabel.DateTime;
            OrdOrpltpDetailDTO[] detailDtos = foreignservice.getOrdOrpltpDetail(new[] { paramDto });
            if (detailDtos == null || detailDtos.Count() == 0)
            {
                return;
            }

            getlisLoopStep(EventLabel.NowSelectedButton, detailDtos.ToList());
        }
示例#3
0
        /// <summary>
        ///     检验闭环数据
        /// </summary>
        public void getlisLoopStep(EventLabelModel EventLabel)
        {
            var loopbp = new HandleLisOrRisExeLoopBP();

            loopbp.exec(EventLabel);
        }
示例#4
0
        public ExeEventGroupModel exe(MrCtmCaDO[] mrcas, CiMrDO[] cimrs)
        {
            var mrcadic = new Dictionary <string, MrCtmCaDO>();

            foreach (MrCtmCaDO caDo in mrcas)
            {
                mrcadic.Add(caDo.Id_mrcactm, caDo);
            }

            var eventLabelGroupModel = new ExeEventGroupModel();

            eventLabelGroupModel.Name      = "病历文书";
            eventLabelGroupModel.IsGroupIn = true;
            var calist = new List <MrCtmCaDO>();

            //   List<EventLabelExtInfo> eventlist=new List<EventLabelExtInfo>();
            foreach (CiMrDO cimr in cimrs)
            {
                if (cimr.Id_mrcactm == null)
                {
                    continue;
                }
                if (mrcadic.ContainsKey(cimr.Id_mrcactm))
                {
                    MrCtmCaDO ca = mrcadic[cimr.Id_mrcactm];
                    if (!calist.Contains(ca))
                    {
                        calist.Add(ca);
                        int num = 1000;
                        if (ca.Sortno != null)
                        {
                            num = (int)ca.Sortno;
                        }
                        //   eventlist.Add(new EventLabelExtInfo() { GroupName = ca.Name, IsShow = true, Order = num });
                        eventLabelGroupModel.GroupNameList.Add(new EventLabelExtInfo
                        {
                            GroupName = ca.Name,
                            IsShow    = true,
                            Order     = num
                        });
                    }
                    var eventlable = new EventLabelModel(cimr.Name, (DateTime)cimr.Dt_rd);
                    eventlable.NowType   = ClinicalExeEventStatus.MedicalRecord;
                    eventlable.Id        = cimr.Id_mr;
                    eventlable.GroupName = ca.Name;
                    eventLabelGroupModel.EventLabels.Add(eventlable);
                }
            }
            //if (eventlist.Count > 0)
            //{
            //    eventlist = eventlist.OrderBy(x => x.Order).ToList();
            //    eventLabelGroupModel.GroupNameList.AddRange(eventlist);
            //}
            if (eventLabelGroupModel.EventLabels.Count == 0)
            {
                eventLabelGroupModel.IsGroupIn = false;
            }
            else
            {
                eventLabelGroupModel.IsGroupIn = true;
            }

            return(eventLabelGroupModel);
        }