예제 #1
0
 protected override void Validation()
 {
     if (_IEmployee.CountEmployeeByNationalityID(_NationalityID) > 0)
     {
         HrmisUtility.ThrowException(HrmisUtility._Nationality_HasBeenUsed);
     }
 }
예제 #2
0
 protected override void Validation()
 {
     if (_IParameter.CountNationalityByNameDiffPKID(_Nationality.ParameterID, _Nationality.Name) > 0)
     {
         HrmisUtility.ThrowException(HrmisUtility._Nationality_Name_Repeat);
     }
     if (_IEmployee.CountEmployeeByNationalityID(_Nationality.ParameterID) > 0)
     {
         HrmisUtility.ThrowException(HrmisUtility._Nationality_HasBeenUsed);
     }
 }