protected override void Validation() { _Course = _DalTrain.GetTrainCourseByPKID(_CourseId); if (_Course == null) { BllUtility.ThrowException(BllExceptionConst._TrainCourse_NotExist); } else if (_Course.Status == TrainStatusEnum.End) { BllUtility.ThrowException(BllExceptionConst._TrainCourse_End); } }
protected override void Validation() { Course oldcourse = _DalTrain.GetTrainCourseByPKID(_Course.CourseID); if (oldcourse == null) { BllUtility.ThrowException(BllExceptionConst._Skill_Name_NotExist); } else if (oldcourse.CourseFeedBackPaper.FeedBackPaperId.Equals(_Course.CourseFeedBackPaper.FeedBackPaperId)) { _IsFeedBackPaperUpdate = false; } if (oldcourse != null) { switch (oldcourse.Status) { case TrainStatusEnum.Interrupt: BllUtility.ThrowException(BllExceptionConst._TrainCourse_Interrupt); break; case TrainStatusEnum.End: BllUtility.ThrowException(BllExceptionConst._TrainCourse_End); break; } } _ItsCordinator = _IAccountBll.GetAccountByName(_Course.Coordinator.Name); if (_ItsCordinator == null) { BllUtility.ThrowException(BllExceptionConst._Employee_Not_Found); } if (!IsLoginUserManage(_ItsCordinator, _LoginUser)) { // throw new ApplicationException("您没有管理该协调员的权限"); BllUtility.ThrowException(BllExceptionConst._Condinator_NoAuth); } }
protected override void Validation() { _Course = _DalTrain.GetTrainCourseByPKID(_CourseId); if (_Course == null) { BllUtility.ThrowException(BllExceptionConst._TrainCourse_NotExist); } else { switch (_Course.Status) { case TrainStatusEnum.Interrupt: BllUtility.ThrowException(BllExceptionConst._TrainCourse_Interrupt); break; case TrainStatusEnum.End: BllUtility.ThrowException(BllExceptionConst._TrainCourse_End); break; } } }
public Course GetTrainCourseByPKID(int pkid) { // GetEmployeeNameInCourse(_dalTrain.GetTrainCourseByPKID(pkid)); return(_dalTrain.GetTrainCourseByPKID(pkid)); }