public ActionResult RepDisbursementList(string sessionId, bool timeErr)
        {
            Employee         emp = EmployeeService.GetUserBySessionId(sessionId);
            DisbursementList disbursementList            = new DisbursementList();
            List <DisbursementListDetails> disDetailList = new List <DisbursementListDetails>();

            disbursementList      = DisbursementListService.GetDisbursementListByDeptId(emp.DeptId);
            disbursementList.date = disbursementList.date.Date;
            if (disbursementList.ListId != 0)
            {
                disDetailList = DisbursementListService.ViewDisbursementDetails(disbursementList.ListId);
            }
            List <CollectionPoint> collectionPoints = DisbursementListService.GetAllCollectionPoints();

            Dictionary <string, string> errDict = new Dictionary <string, string>();

            if (timeErr)
            {
                errDict.Add("time", "To change the collection point, you need at least 30 minutes before the pick up time of selected one.");
            }
            ViewData["errDict"]          = errDict;
            ViewData["disbursement"]     = disbursementList;
            ViewData["disDetailList"]    = disDetailList;
            ViewData["collectionPoints"] = collectionPoints;
            ViewData["sessionId"]        = sessionId;
            ViewData["isRep"]            = (emp.EmpRole == "REPRESENTATIVE");

            return(View());
        }
        public ActionResult ViewOnlyDisbursementDetails(long listId, string collectionPt, string sessionId)
        {
            ViewData["details"] = DisbursementListService.ViewDisbursementDetails(listId);

            ViewData["listId"]       = listId;
            ViewData["collectionPt"] = collectionPt;
            ViewData["sessionId"]    = sessionId;
            ViewData["status"]       = (DisbursementListService.GetDisbursementListByListId(listId)).AcknowledgedBy;
            return(View());
        }