Exemple #1
0
 public override object Evaluate(PXCache cache, object item, Dictionary <Type, object> pars)
 {
     try
     {
         return(DeprCalcParameters.GetRecoveryEndDate(cache.Graph, (FABookBalance)item));
     }
     catch (PXException ex)
     {
         throw new PXSetPropertyException(ex.Message, PXErrorLevel.Error);
     }
     catch
     {
         return(null);
     }
 }
Exemple #2
0
 public override object Evaluate(PXCache cache, object item, Dictionary <Type, object> pars)
 {
     try
     {
         return(PeriodIDAttribute.FormatForDisplay(DeprCalcParameters.GetRecoveryStartPeriod(cache.Graph, (FABookBalance)item)));
     }
     catch (PXException ex)
     {
         throw new PXSetPropertyException(ex.Message, PXErrorLevel.Error);
     }
     catch
     {
         return(null);
     }
 }