protected override void Validation() { if (_IAssessTemplatePaper.GetAssessTempletPaperById(_AssessPaperID) == null) { BllUtility.ThrowException(BllExceptionConst._AssessTemplatePaper_Not_Exist); } }
protected override void Validation() { if (_IAssessTemplatePaper.GetAssessTempletPaperById(_Paper.AssessTemplatePaperID) == null) { BllUtility.ThrowException(BllExceptionConst._AssessTemplatePaper_Not_Exist); } if ( _IAssessTemplatePaper.CountTemplatePaperByPaperNameDiffPKID(_Paper.AssessTemplatePaperID, _Paper.PaperName) > 0) { BllUtility.ThrowException(BllExceptionConst._AssessTemplatePaper_PaperName_Exist); } ValideBindPosition(); }
protected override void Validation() { //if (_AssessTemplateItemsId.Count != AAUtility._RightItemCount) //{ // BllUtility.ThrowException(BllExceptionConst._AssessTemplatePaper_Not_20); //} if (_IAssessTemplatePaper.GetAssessTempletPaperById(_AssessPaperID) == null) { BllUtility.ThrowException(BllExceptionConst._AssessTemplatePaper_Not_Exist); } foreach (int id in _AssessTemplateItemsId) { if (_IItem.GetTemplateItemById(id) == null) { BllUtility.ThrowException(BllExceptionConst._AssessTemplateItem_Not_Exist); } } }