Permission management, menu management, general framework, ORACLE database, ASP. NET, ORACLE function, ORACLE package
1. Table Creation
User permission series Table menu Log Series table
Spool ora_tables.logprompt permission classification table prompt Creating table ACCOUNTS_PERMISSIONCATEGORIESprompt ======================== ============== prompt @ accounts_permissioncategories.tabprompt permission table prompt Creating table ACCOUNTS_PERMISSIONSprompt ======================== ====================== prompt @ accounts_permissions.tabprompt role permission corresponding to the table prompt Creating table ACCOUNTS_ROLEPERMISSIONSprompt ============ ====================== prompt accounts_rolepermissions.tabprompt role table prompt Creating table ACCOUNTS_ROLESprompt = ====================== prompt accounts_roles.tabprompt ================================== prompt @ accounts_userroles.tabprompt User table prompt creating table ACCOUNTS_USERSprompt ========================== prompt @ accounts_users.tabprompt log table prompt Creating table S_LOGprompt ============================ prompt s_log.tabprompt User Logon Information log prompt Creating table S_LOGUSERprompt ======== ====================== prompt @ s_loguser.tabpromptprompt Creating table S_TREEprompt ========== ====== prompt menu Table @ s_tree.tabspool off
2. Create an ORACLE package
promptprompt Creating package PKG_TESTprompt =========================prompt@@pkg_test.spc
3. Create ORACLE Functions
------------------------------------------- Created by xjy on 2010-11-7, 22:53:21 create permission prompt Creating function F_ACC_CREATEPERMISSIONprompt ======================== ========= prompt @ f_acc_createpermission.fncprompt permission: role-specific action prompt Creating function F_ADDPERMISSIONTOROLEprompt ================ ============================== prompt @ f_addpermissiontorole.fncprompt role-specific operations on prompt Creating function F_ADDUSERTOROLEprompt ========== ==================== prompt @ f_addusertorole.fncprompt role clear permission prompt Creating function F_CLEARPERMISSIONSFROMROLEprompt = ========================================================== = prompt @ f_clearpermissionsfromrole.fncprompt create permission the same as F_ACC_CREATEPERMISSIONprompt Creating function F_CREATEPERMISSIONprompt ================== ========= prompt @ f_createpermission.fncprompt create permission class prompt Creating function F_CREATEPERMISSIONCATEGORYprompt ================ ==================== prompt @ f_createpermissioncategory.fncprompt create role prompt Creating function F_CREATEROLEprompt ====== ================================== prompt @ f_createrole.fncprompt create user prompt Creating function F_CREATEUSERprompt ====== ================================ prompt @ f_createuser.fncprompt Delete permission prompt Creating function F_DELETEPERMISSIONprompt ====== ========================== prompt f_deletepermission.fncprompt Delete permission category prompt Creating function f_DELETEPERMISSIONCATEGORYprompt ========================================== ===== prompt @ f_deletepermissioncategory.fncprompt Delete role prompt Creating function F_DELETEROLEprompt ============== ===== prompt @ f_deleterole.fncprompt delete user prompt Creating function F_DELETEUSERprompt ================ ===== prompt @ f_deleteuser.fncprompt get all roles prompt Creating function F_GETALLROLESprompt ============== ======= prompt @ f_getallroles.fncprompt enter the user ID to obtain the user's valid Permission name prompt Creating function f_get1_tivepermissionlistprompt ==================== ========================== prompt f_get1_tivepermissionlist.fncprompt enter the user ID to obtain valid permissions of the user IDprompt Creating function F_GETEFFECTIVEPERMISSIONLISTIDprompt ================================== ============ prompt @ brief enter the role to obtain the role's permissions prompt Creating function F_GETNOPERMISSIONLISTprompt ======== ==================== prompt @ f_getnopermissionlist.fncprompt permission classification prompt Creating function F_GETPERMISSIONCATEGORIESprompt = ========================================================== = prompt @ f_getpermissioncategories.fncprompt detailed permission classification (description) prompt Creating function F_GETPERMISSIONCATEGORYDETAILSprompt ================================ ============ prompt @ f_getpermissioncategorydetails.fncprompt detailed permission (description) prompt Creating function F_GETPERMISSIONDETAILSprompt ================================== ==== prompt @ f_getpermissiondetails.fncprompt enter the role to obtain the permission list prompt Creating function F_GETPERMISSIONLISTprompt ====================== ============== prompt @ f_getpermissionlist.fncprompt obtain all permissions under the category change permission prompt Creating function F_GETPERMISSIONSINCATEGORYprompt ============ ==================================== prompt @ f_getpermissionsincategory.fncprompt details prompt Creating function F_GETROLEDETAILSprompt ============================== prompt @ f_getroledetails.fncprompt obtain the user details prompt Creating function F_GETUSERDETAILSprompt ======================== ==== prompt @ f_getuserdetails.fncprompt obtain the user details using the user name prompt Creating function F_GETUSERDETAILSBYUSERNAMEprompt ====================== ======================== prompt @ f_getuserdetailsbyusername.fncprompt obtain the role prompt Creating function F_GETUSERROLESprompt = ========================== prompt @ f_getuserroles.fncprompt obtain user details through fuzzy search prompt Creating function F_GETUSERSprompt ============================ prompt @ f_getusers.fncprompt obtain the user details prompt Creating function f_getusersby?prompt ================================ === prompt @ f_getusersbydepart.fncprompt obtain the user details using the user type and keywords prompt Creating function F_GETUSERSBYTYPEprompt ==================== ============ prompt @ f_getusersbytype.fncprompt Delete the role and permission ing relationship prompt Creating function F_REMOVEPERMISSIONFROMROLEprompt ============== ============================== prompt f_removepermissionfromrole.fncprompt delete a user and role relation prompt Creating function F_REMOVEUSERFROMROLEprompt ================================ === prompt @ f_removeuserfromrole.fncprompt set the password prompt Creating function F_SETPASSWORDprompt ================== ===== prompt @ f_setpassword.fncprompt test whether the user ID and password correspond to the correct prompt Creating function F_TESTPASSWORDprompt ============ ============ prompt @ f_testpassword.fncprompt update permission Description Based on permission IDprompt Creating function F_UPDATEPERMISSIONprompt ================== ============================== prompt @ f_updatepermission.fncprompt update the role Description Based on the role IDprompt Creating function F_UPDATEROLEprompt ======== ============================== prompt @ f_updaterole.fncprompt updates user information based on user IDprompt Creating function F_UPDATEUSERprompt = ========================== prompt @ f_updateuser.fncprompt verify whether the prompt Creating function is used based on the user name and password f_VALIDATELOGINprompt ========================