Пример #1
0
 //
 // GET: /SCM_Inbox/
 public ActionResult Inbox()
 {
     List<POC> POCs = db.POC.ToList<POC>();
     List<Shipment> Shipments = db.Shipment.ToList<Shipment>();
     List<BL> BLs = db.BL.ToList<BL>();
     ListPOCViewModel VM = new ListPOCViewModel(POCs, Shipments, BLs, "SCM");
     return View(VM);
 }
Пример #2
0
        public PartialViewResult AjaxSearchPOC(string jsonQuery)
        {
            JavaScriptSerializer serializer = new JavaScriptSerializer();
            var query = serializer.Deserialize<QueryObject>(jsonQuery);

            //result = result.Where(p => p.Customer.Name.Contains(filter));

            ListPOCViewModel VM = new ListPOCViewModel(search(query), "All");

            return this.PartialView(VM);
        }
Пример #3
0
        //
        // GET: /SCM_Search/
        public ActionResult SearchPOC()
        {
            QueryObject all = new QueryObject();
            ListPOCViewModel VM = new ListPOCViewModel(searchAll(all), "All");

            List<Product> products = db.Product.ToList();

            List<string> listStatus = new List<string> { "Incomplete", "Sent", "Cancelled" };

            List<string> months = new List<string> { "January", "February", "March",
                                                     "April", "May", "June", "July",
                                                     "August", "September", "October", "November", "December" };
            List<int> years = new List<int>();

            for (int i = 1969; i < 2031; i++)
            {
                years.Add(i);
            }

            VM.Products = products;

            VM.listStatus = listStatus;

            VM.months = months;

            VM.years = years;

            return View(VM);
        }