// GET: PDWorker public ActionResult Index() { PDService service1 = new PDService(); StoreDash store = new StoreDash(); store.NoAPO = service1.SearchPO(new POViewModel()).POList.Where(r => r.IsApproved == true).Count(); store.NoPO = service1.SearchPO(new POViewModel()).POList.Where(r => r.IsApproved == false).Count(); return(View(store)); }
// GET: PDHead public ActionResult Index() { StoreService service = new StoreService(); PDService service1 = new PDService(); StoreDash store = new StoreDash(); store.NoAGRN = service.SearchGRN(new GRNViewModel()).GRNList.Where(r => r.IsApproved == true).Count(); store.NoGRN = service.SearchGRN(new GRNViewModel()).GRNList.Where(r => r.IsApproved == false).Count(); store.NoARN = service.SearchRN(new RNViewModel()).RNList.Where(r => r.IsApproved == true).Count(); store.NoRn = service.SearchRN(new RNViewModel()).RNList.Where(r => r.IsApproved == false).Count(); store.NoAPO = service1.SearchPO(new POViewModel()).POList.Where(r => r.IsApproved == true).Count(); store.NoPO = service1.SearchPO(new POViewModel()).POList.Where(r => r.IsApproved == false).Count(); return(View(store)); }
public ActionResult SearchPO(POViewModel Model) { PDService service = new PDService(); Model = service.SearchPO(Model); return(PartialView("_POGrid", Model.POList)); }
public ActionResult ManagePO(POViewModel Model) { PDService service = new PDService(); ViewBag.Suppliers = new SelectList(AllSuppliers(), "Value", "Text"); Model = service.SearchPO(Model); if (Request.IsAjaxRequest()) { return(PartialView("_POGrid", Model.POList)); } return(View("ManagePurchaseOrder", Model)); }