Exemplo n.º 1
0
        public ActionResult ApplicationLogSummary()
        {
            ApplicationLogSummary model = new ApplicationLogSummary();

            model.InsertedOn_From = DateTime.Today;
            model.InsertedOn_To   = DateTime.Today.AddDays(1);

            ViewBag.AvailableTraceLevels = EnumHelper.Current.GetSelectList <TraceLevels>();

            ViewBag.AvailableApplications = EnumHelper.Current.GetSelectList <Applications>();

            return(View(model));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Applications the log grid data.
        /// </summary>
        /// <param name="filter">The filter.</param>
        /// <returns></returns>
        public async Task <JsonResult> ApplicationLogSummaryGridData(ApplicationLogSummary filter)
        {
            filter.ClearEmptyModifiedColumns();

            PagedResult <ApplicationLogSummary> pagedResult = await ApplicationLogBusinessManager.Current.ApplicationLogSummaryPagingSelectAsync(SecurityManager.Current.ConnectionInfo, filter);

            foreach (ApplicationLog applicationLog in pagedResult.Results)
            {
                applicationLog.MessageTypeText = EnumHelper.Current.GetNameWithSpaces((MessageTypes)applicationLog.MessageTypeId);
            }

            return(Json(pagedResult));
        }
 /// <summary>
 /// Applications the log summary paging select asynchronous.
 /// </summary>
 /// <param name="connectionInfo">The connection information.</param>
 /// <param name="filter">The filter.</param>
 /// <returns></returns>
 public async Task <PagedResult <ApplicationLogSummary> > ApplicationLogSummaryPagingSelectAsync(IConnectionInfo connectionInfo, ApplicationLogSummary filter)
 {
     return(await ApplicationLogManager.Current.ApplicationLogSummaryPagingSelectAsync(connectionInfo, filter));
 }