Beispiel #1
0
        public ExchangeBagLogModel ExchangeBagLogDataBind(MailExchangeBagLogsParam filterModel)
        {
            filterModel.StartTime = filterModel.StartTime ?? DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " " + "00:00");;
            filterModel.EndTime   = filterModel.EndTime ?? DateTime.Parse(DateTime.Now.AddDays(1).ToString("yyyy-MM-dd") + " " + "00:00");;

            var model = new ExchangeBagLogModel()
            {
                FilterModel = filterModel,
                PagedList   = _fubService.GetMailExchangeBagLogsList(new  MailExchangeBagLogsParam()
                {
                    Page        = filterModel.Page,
                    PageSize    = filterModel.PageSize,
                    TrackNumber = filterModel.TrackNumber,
                    StartTime   = filterModel.StartTime,
                    EndTime     = filterModel.EndTime
                })
            };

            return(model);
        }
Beispiel #2
0
 public ActionResult ExchangeBagLogList(ExchangeBagLogModel model)
 {
     return(View(ExchangeBagLogDataBind(model.FilterModel)));
 }