Exemplo n.º 1
0
        public ActionResult Details(string id = null)
        {
            ViewBag.AC_MENU_RUID = valMENU.CPAR_SUMBERCPAR_COMPLAIN_DETAILS;
            ViewBag.CRUD_type    = hlpFlags_CRUDOption.VIEW;
            var oData = oDS.getData(id);

            if (oData == null)
            {
                return(HttpNotFound());
            }
            return(View(oData));
        }
Exemplo n.º 2
0
        public ActionResult Details(string id = null)
        {
            ViewBag.AC_MENU_RUID         = valMENU.CPAR_LOGBOOK_COMPLAIN_DETAILS;
            ViewBag.CRUDClosedOrCanceled = TempData["CRUDClosedOrCanceled"];
            ViewBag.CRUD_type            = hlpFlags_CRUDOption.VIEW;
            var oData = oDS.getData(id);

            if (oData == null)
            {
                return(HttpNotFound());
            }

            //Custom Access Control
            //#disabled by changerequest#1
            //oVAL = new Complain_Validation(oData);
            //if (!oVAL.isGranted_View()) { return RedirectToAction("Error403", "Error"); } //End if (!oVAL.isValidAccess_CPAR())
            return(View(oData));
        }