Example #1
0
        public async Task <ActionResult> ConfirmRetrievalList(List <RetrievalListModel> retrievalList)
        {
            string clerkID = Session["EmployeeID"].ToString();

            retrievalBizLogic.SaveRetrievalList(retrievalList, clerkID);
            bool haveWarning = retrievalBizLogic.CheckRetrievalSubmissionWarning(retrievalList);

            if (haveWarning)
            {
                List <RetrievalListSummaryModel> rsm = retrievalBizLogic.RetrievalListSumModelGeneration(retrievalList);
                ArrayList aList = retrievalBizLogic.RetrievalGenerationViewModel(retrievalList, rsm);
                TempData["aList"] = aList;
                return(RedirectToAction("RetrievalSave"));
            }
            retrievalBizLogic.ConfirmRetrievalList(retrievalList, clerkID);
            List <RetrievalListSummaryModel> retSumModel      = retrievalBizLogic.RetrievalListSumModelGeneration(retrievalList);
            DisbursementBusinessLogic        disburseBizLogic = new DisbursementBusinessLogic();
            await disburseBizLogic.DisbursementAllocation(retrievalList, Session);

            ViewBag.retSum = retSumModel;
            return(View(retrievalList));
        }
Example #2
0
        public async Task <ActionResult> GenerateDisbursement(List <RetrievalListModel> retrievalList)
        {
            await disburseBizLogic.DisbursementAllocation(retrievalList, Session);

            return(RedirectToAction("DisbursementListSummary", "Disbursement"));
        }