Esempio n. 1
0
        public IActionResult GetOpenSRSummary()
        {
            StationeryRetrievalSummaryViewModel srsVModel = new StationeryRetrievalSummaryViewModel();
            //emp = JsonConvert.DeserializeObject<Employee>(HttpContext.Session.GetString("employee")) as Employee;
            //srsVModel.Employee = emp;

            List <StationeryRetrieval> srOpenList = srfservice.GetListSRWithSRStatus(Enums.SRStatus.Open);

            srsVModel.pendingSROpens = srOpenList;

            return(Ok(srsVModel));
        }
        public IActionResult StationeryRetrievalSummary()
        {
            StationeryRetrievalSummaryViewModel srsVModel = new StationeryRetrievalSummaryViewModel();

            emp = JsonConvert.DeserializeObject <Employee>(HttpContext.Session.GetString("employee")) as Employee;
            srsVModel.Employee = emp;

            List <StationeryRetrieval> srOpenList = srformservice.GetListSRWithSRStatus(Enums.SRStatus.Open);

            srsVModel.pendingSROpens = srOpenList;

            List <StationeryRetrieval> srPendingList = srformservice.GetListSRWithSRStatus(Enums.SRStatus.PendingAssignment);

            srsVModel.pendingSRAssignments = srPendingList;

            List <StationeryRetrieval> srCompletedList = srformservice.GetListSRWithSRStatus(Enums.SRStatus.Assigned);

            srsVModel.completedSRs = srCompletedList;

            return(View("stationeryRetrievalSummary", srsVModel));
        }