Exemplo n.º 1
0
        public ActionResult Details(int?id = null)
        {
            //ViewBag.AC_MENU_ID = valMENU.TATAUSAHA_SISWA_DETAILS;

            ViewBag.CRUD_type         = hlpFlags_CRUDOption.VIEW;
            ViewBag.CRUDSavedOrDelete = TempData["CRUDSavedOrDelete"];

            StudentVM oData = new StudentVM();

            oData.DETAIL = oDS.getData(id);
            if (oData == null)
            {
                return(HttpNotFound());
            }
            prepareLookup();
            return(View(oData));
        }
Exemplo n.º 2
0
        } //End Action

        protected Boolean _setData_student(int?id)
        {
            //Get data student
            this.oDatastudent.DETAIL = oDSStudent.getData(id);
            //STUDENT
            this.oData.STUDENT_ID   = id;
            this.oData.STUDENT_NAME = this.oDatastudent.DETAIL.NAME;
            this.oData.PINREG       = this.oDatastudent.DETAIL.PINREG;
            this.oData.REGNO        = this.oDatastudent.DETAIL.REGNO;
            this.oData.REG_DT       = this.oDatastudent.DETAIL.REG_DT;

            //CLASSTYPE
            this.oData.CLASSTYPE_ID   = this.oDatastudent.DETAIL.CLASSTYPE_ID;
            this.oData.CLASSTYPE_DESC = this.oDatastudent.DETAIL.CLASSTYPE_NAME;
            //CLASSROOM
            this.oData.CLASSROOM_ID   = this.oDatastudent.DETAIL.CLASSROOM_ID;
            this.oData.CLASSROOM_DESC = this.oDatastudent.DETAIL.CLASSROOM_NAME;

            return(true);
        } //End Method
Exemplo n.º 3
0
        public ActionResult Index_calon_details(int?id = null)
        {
            if (id != hlpConfig.SessionInfo.getAppResId())
            {
                ViewBag.AC_MENU_ID = valMENU.TATAUSAHA_SISWA_DETAILS;
            }
            else if (hlpConfig.SessionInfo.getAppResId() == null)
            {
                ViewBag.AC_MENU_ID = valMENU.TATAUSAHA_SISWA_DETAILS;
            }

            ViewBag.CRUD_type         = hlpFlags_CRUDOption.VIEW;
            ViewBag.CRUDSavedOrDelete = TempData["CRUDSavedOrDelete"];

            StudentVM oData = new StudentVM();

            oData.DETAIL = oDS.getData(id);
            if (oData == null)
            {
                return(HttpNotFound());
            }
            prepareLookup();
            return(View(oData));
        }