Пример #1
0
        private OrdOrpltpParamDTO[] getStepDetailDtos(RouteMark routeMark)
        {
            //Dictionary<string,object> dic=new Dictionary<string, object>();
            var listP = new List <OrdOrpltpParamDTO>();
            var param = new OrdOrpltpParamDTO();

            param.Id_or      = routeMark.IdOr;
            param.Dt_mp_plan = routeMark.Time;
            listP.Add(param);
            //dic.Add(param.Id_or,null);
            foreach (RouteMark mark in routeMark.RepeatdRouteMarks)
            {
                if (!(mark.ExeStatus == ExeStatuses.Executing || mark.ExeStatus == ExeStatuses.Executed))
                {
                    continue;
                }

                var paramDto = new OrdOrpltpParamDTO();
                paramDto.Id_or      = mark.IdOr;
                paramDto.Dt_mp_plan = mark.Time;
                listP.Add(paramDto);
            }
            if (listP.Count > 0)
            {
                return(listP.ToArray());
            }
            return(null);
        }
Пример #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());
        }