Example #1
0
        public void EndActivity(string id)
        {
            var activity = service.GetDetail(id);

            service.EndActivity(activity);
            if (activity.SubActivities.Count(x => x.ActivitySubject == "技术讲课") > 0)
            {
                var subject = activity.SubActivities.Find(x => x.ActivitySubject == "技术讲课");
                _eduBaseInfoService.End(subject.SubActivityId);
            }
            if (activity.SubActivities.Count(x => x.ActivitySubject == "事故预想") > 0)
            {
                var subject = activity.SubActivities.Find(x => x.ActivitySubject == "事故预想");
                _eduBaseInfoService.End(subject.SubActivityId);
            }
            if (activity.SubActivities.Count(x => x.ActivitySubject == "反事故演习") > 0)
            {
                var subject = activity.SubActivities.Find(x => x.ActivitySubject == "反事故演习");
                _eduBaseInfoService.End(subject.SubActivityId);
            }
        }