Пример #1
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);
     }
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 public AdjustRule GetAdjustRuleByAdjustRuleID(int pKID)
 {
     return(_AdjustRuleDal.GetAdjustRuleByAdjustRuleID(pKID));
 }