/// <summary>
 /// Getting Customer,Group and National Statistics maximum period for a valid year
 /// </summary>
 /// <param name="year">Fiscal year.</param>
 /// <returns>Maximum period if fiscal year is valid or else 0</returns>
 public JsonNetResult GetMaxPeriodForValidYear(string year)
 {
     try
     {
         return(JsonNet(ControllerInternal.GetMaxPeriodForValidYear(year, CustomerType)));
     }
     catch (BusinessException businessException)
     {
         return(JsonNet(BuildErrorModelBase(CommonResx.GetFailedMessage, businessException, ARCommonResx.Customer)));
     }
 }
 /// <summary>
 /// Getting Sales Person maximum period for a valid year
 /// </summary>
 /// <param name="year">Fiscal year.</param>
 /// <returns>Maximum period if fiscal year is valid or else 0</returns>
 public JsonNetResult GetSalesPersonMaxPeriodForValidYear(string year)
 {
     try
     {
         return(JsonNet(ControllerInternal.GetMaxPeriodForValidYear(year, SalesType)));
     }
     catch (BusinessException businessException)
     {
         return(JsonNet(BuildErrorModelBase(CommonResx.GetFailedMessage, businessException, ARCommonResx.SalespersonStatistics)));
     }
 }
예제 #3
0
 /// <summary>
 /// Get default Index page
 /// </summary>
 /// <returns>Index view model which needs to be display.</returns>
 public override ActionResult Index()
 {
     try
     {
         return(View(ControllerInternal.Get()));
     }
     catch (BusinessException businessException)
     {
         return
             (JsonNet(BuildErrorModelBase(CommonResx.GetFailedMessage, businessException,
                                          GLCommonResx.Profile)));
     }
 }