예제 #1
0
 protected override void Validation()
 {
     if (_AdjustRuleDal.CountAdjustRuleByNameDiffPKID(_AdjustRule.AdjustRuleName, 0) > 0)
     {
         HrmisUtility.ThrowException(HrmisUtility._AdjustRule_Name_Repeat);
     }
 }
예제 #2
0
 protected override void Validation()
 {
     if (_AdjustRuleDal.GetAdjustRuleByAdjustRuleID(_AdjustRule.AdjustRuleID) == null)
     {
         HrmisUtility.ThrowException(HrmisUtility._AdjustRule_Not_Exit);
     }
     else if (_AdjustRuleDal.CountAdjustRuleByNameDiffPKID(_AdjustRule.AdjustRuleName, _AdjustRule.AdjustRuleID) >
              0)
     {
         HrmisUtility.ThrowException(HrmisUtility._AdjustRule_Name_Repeat);
     }
 }