Esempio n. 1
0
        public ActionResult QueryPod(QueryTianjinPodViewModel vm)
        {
            PodSearchCondition condition = new PodSearchCondition();
            condition.CustomerOrderNumber = vm.CustomerOrderNumbers;
            condition.ActualDeliveryDate = vm.ActualDeliverlyDate;
            condition.EndActualDeliveryDate = vm.EndActualDeliverlyDate;
            condition.CustomerID = vm.CustomerID;
            condition.ShipperID = vm.ShipperID;
            condition.DateTime14 = vm.ExpertArrivalDate;
            condition.EndDateTime14 = vm.EndExpertArrivalDate;

            if (vm.InOrOut == "0")
            {
                condition.EndCityID = 3;
            }
            else
            {
                condition.StartCityID = 3;
            }

            var response = new PodService().QueryPodWithNoPaging(new QueryPodRequest() { SearchCondition = condition, ProjectID = base.UserInfo.ProjectID });
            if (response.IsSuccess)
            {
                vm.PodCollection = response.Result.OrderByDescending(p => p.ActualDeliveryDate);
            }

            vm.Customers = ApplicationConfigHelper.GetProjectUserCustomers(base.UserInfo.ProjectID, base.UserInfo.ID).Select(c => new SelectListItem() { Value = c.CustomerID.ToString(), Text = c.CustomerName });
            
            return View(vm);
        }
Esempio n. 2
0
 public ActionResult QueryPod()
 {
     QueryTianjinPodViewModel vm = new QueryTianjinPodViewModel();
     vm.ActualDeliverlyDate = DateTime.Now.AddMonths(-1);
     vm.EndActualDeliverlyDate = DateTime.Now;
     vm.Customers = ApplicationConfigHelper.GetProjectUserCustomers(base.UserInfo.ProjectID, base.UserInfo.ID).Select(c => new SelectListItem() { Value = c.CustomerID.ToString(), Text = c.CustomerName });
     return View(vm);
 }