Beispiel #1
0
 public ActionResult LogFlightNumberList(LogFlightNumberListFilter param)
 {
     if (param.StartTime == null)
     {
         param.StartTime = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " " + "00:00");
     }
     if (param.EndTime == null)
     {
         param.EndTime = DateTime.Parse(DateTime.Now.AddDays(+1).ToString("yyyy-MM-dd") + " " + "00:00");
     }
     return(View(TotalPackageListDataBind(param)));
 }
Beispiel #2
0
        public LogFlightNumberListViewModel TotalPackageListDataBind(LogFlightNumberListFilter param)
        {
            var model = new LogFlightNumberListViewModel()
            {
                FilterModel = param,
                CountryList = GetCountryList(""),
                PagedList   = _fubService.GetailTotalPackageList(new LogFlightNumberListParam()
                {
                    MailTotalPackageNumber = param.MailTotalPackageNumber,
                    EndTime   = param.EndTime,
                    StartTime = param.StartTime,
                    Page      = param.Page,
                    PageSize  = param.PageSize,
                }).ToModelAsPageCollection <MailTotalPackageInfoExt, MailTotalPackageInfoModel>()
            };

            return(model);
        }