// 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: StoreHead public ActionResult Index() { StoreService service = new StoreService(); 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.NoAI = service.SearchIssue(new IssueViewModel()).IssueList.Where(r => r.IsApproved == true).Count(); store.NoI = service.SearchIssue(new IssueViewModel()).IssueList.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)); }