protected override void Validation() { if (_AdjustRuleDal.CountAdjustRuleByNameDiffPKID(_AdjustRule.AdjustRuleName, 0) > 0) { HrmisUtility.ThrowException(HrmisUtility._AdjustRule_Name_Repeat); } }
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); } }