コード例 #1
0
        public ActionResult Details(int?id = null)
        {
            //ViewBag.AC_MENU_ID = valMENU.MODULE_DETAILS;
            ViewBag.CRUD_type         = hlpFlags_CRUDOption.VIEW;
            ViewBag.CRUDSavedOrDelete = TempData["CRUDSavedOrDelete"];

            this.oData = oDS.getData(id);
            if (this.oData == null)
            {
                return(HttpNotFound());
            }
            prepareLookup();
            return(View(this.oData));
        }
コード例 #2
0
        } //End method

        //Prepare Lookup
        public void prepareLookup()
        {
            //ViewBag.SAMPLE = oDSSample.getDatalist_lookup();
            ViewBag.PROJECT = oDSProject.getDatalist();

            if ((hlpConfig.SessionInfo.getAppRoleId() == valROLE.ROLEID_MASTER) ||
                (hlpConfig.SessionInfo.getAppRoleId() == valROLE.ROLEID_ADMIN))
            {
                //MASTER/ADMIN
                ViewBag.EMPLOYEE = oDSEmployee.getDatalist_lookup();
            }
            else
            {
                //LEADER
                ViewBag.EMPLOYEE = oDSEmployee.getDatalist_lookupBySeperiorId(hlpConfig.SessionInfo.getAppResId());
            }
            ViewBag.EMPLOYEEUSER = oDSEmployeeuser.getData(hlpConfig.SessionInfo.getAppResId());
            ViewBag.MONTH        = oDSMonth.getDatalist_lookup();
            ViewBag.YEAR         = oDSYear.getDatalist_lookup();
        } //End prepareLookup()