Esempio n. 1
0
 protected override void Validation()
 {
     if (_IEmployee.CountEmployeeByNationalityID(_NationalityID) > 0)
     {
         HrmisUtility.ThrowException(HrmisUtility._Nationality_HasBeenUsed);
     }
 }
Esempio n. 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);
     }
 }