Rev 2 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%'===================================================================' Role Common'===================================================================%><!--#include file="../class/classTemplateManager.asp"--><!--#include file="../class/classTabControl.asp"--><!--#include file="../class/classActionButtonControl.asp"--><!--#include file="../class/classRepeater.asp"--><%'------------ VARIABLE DEFINITION -------------Dim parApp_idDim parRole_idDim objRoleCollectorDim objBtnControlDim aTabBtnsDefDim objRepeater'------------ CONSTANTS DECLARATION -----------Const PARENT_TITLE = "Role"'------------ VARIABLE INIT -------------------parRole_id = Request("role_id")parApp_id = Request("app_id")Set objBtnControl = New ActionButtonControlSet objRepeater = New RepeaterSet objRoleCollector = CreateObject("Scripting.Dictionary")'------------ CONDITIONS ----------------------'----------------------------------------------%><%'------------ RUN BEFORE PAGE RENDER ----------objPMod.PersistInQryString ("role_id")objPMod.PersistInQryString ("app_id")objPMod.PersistInQryString ("tree")'----------------------------------------------%><%'-----------------------------------------------------------------------------------------------------------------Sub GetRoleDetails ( nRole_id, nApp_id, ByRef outobjDetails )Dim rsQry, queryquery = "SELECT * FROM ROLES WHERE role_id = "& nRole_id &" AND app_id = "& nApp_idSet rsQry = OraDatabase.DbCreateDynaset( query , ORADYN_DEFAULT )If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) ThenoutobjDetails.Item ("role_id") = rsQry("role_id")outobjDetails.Item ("role_name") = rsQry("role_name")outobjDetails.Item ("role_comments") = rsQry("comments")outobjDetails.Item ("is_role_variation") = rsQry("is_role_variation")ElseErr.Raise 8, "Sub GetRoleDetails", "Empty record set returned. nRole_id="& nRole_id &", nApp_id="& nApp_idEnd IfrsQry.CloseSet rsQry = NothingEnd Sub'-----------------------------------------------------------------------------------------------------------------Sub RenderTitle ( objCollector )If IsNull(objCollector.Item("is_role_variation")) ThenResponse.write LIMG_ROLE_LRGElseResponse.write LIMG_SPEC_ROLE_LRGEnd IfResponse.write "<b>"& objCollector.Item("role_name") &"</b>"End Sub'-----------------------------------------------------------------------------------------------------------------%>