Exemplo n.º 1
0
        public ActionResult Index(ArrivedQueryModel query)
        {
            try
            {
                var user = AccountHelper.GetLoginUserInfo(HttpContext.User.Identity);
                var model = new ArrivedListViewModel
                {
                    StartETD = query.StartETD,
                    EndETD = query.EndETD,
                    BundleNo = query.BundleNo,
                    Container = query.Container
                };
                model.Items = ArrivedManager.Instance.LoadList(user.CustomerCode
                    , query.StartETD
                    , query.EndETD
                    , query.BundleNo
                    , query.Container);
                return View(model);
            }
            catch (Exception ex)
            {
                TempData["Error"] = ex.ToString();
                return View("Error");
            }

        }
Exemplo n.º 2
0
 public ActionResult Index()
 {
     try
     {
         var user = AccountHelper.GetLoginUserInfo(HttpContext.User.Identity);
         var model = new ArrivedListViewModel
         {
             StartETD = DateTime.Now.AddMonths(-2).Date,
             EndETD = DateTime.Now.Date
         };
         model.Items = ArrivedManager.Instance.LoadList(user.CustomerCode, DateTime.Now.AddMonths(-2)
             , DateTime.Now
             , ""
             , "");
         return View(model);
     }
     catch (Exception ex)
     {
         TempData["Error"] = ex.ToString();
         return View("Error");
     }
     
 }