| 2 |
rsolanki |
1 |
<%
|
|
|
2 |
'===================================================================
|
|
|
3 |
' Control Common
|
|
|
4 |
'===================================================================
|
|
|
5 |
%>
|
|
|
6 |
<!--#include file="../class/classTemplateManager.asp"-->
|
|
|
7 |
<!--#include file="../class/classTabControl.asp"-->
|
|
|
8 |
<!--#include file="../class/classActionButtonControl.asp"-->
|
|
|
9 |
<%
|
|
|
10 |
'------------ VARIABLE DEFINITION -------------
|
|
|
11 |
Dim parApp_id
|
|
|
12 |
Dim parObj_id
|
|
|
13 |
Dim parDt_id
|
|
|
14 |
Dim objObjCollector
|
|
|
15 |
Dim objBtnControl
|
|
|
16 |
Dim aTabBtnsDef
|
|
|
17 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
18 |
Const PARENT_TITLE = "Action"
|
|
|
19 |
Const LIMG_CONTROL_LRG = "<img src='images/i_control_lrg.gif' width='13' height='18' hspace='4' border='0' align='absmiddle'>"
|
|
|
20 |
Const LIMG_CONTROL = "<img src='images/i_control.gif' width='16' height='16' hspace='2' border='0' align='absmiddle'>"
|
|
|
21 |
Const LIMG_DATA_TABLE = "<img src='images/i_data_table.gif' hspace='2' border='0' align='absmiddle'>"
|
|
|
22 |
Const LIMG_DATA_TABLE_OFF = "<img src='images/i_data_table_off.gif' hspace='2' border='0' align='absmiddle'>"
|
|
|
23 |
Const LIMG_EDIT = "<img src='images/i_edit.gif' width='16' height='16' hspace='2' border='0' align='absmiddle'>"
|
|
|
24 |
Const LIMG_REMOVE = "<img src='images/i_remove.gif' width='16' height='16' hspace='2' border='0' align='absmiddle'>"
|
|
|
25 |
'------------ VARIABLE INIT -------------------
|
|
|
26 |
parDt_id = Request("dt_id")
|
|
|
27 |
parObj_id = Request("obj_id")
|
|
|
28 |
parApp_id = Request("app_id")
|
|
|
29 |
Set objBtnControl = New ActionButtonControl
|
|
|
30 |
Set objObjCollector = CreateObject("Scripting.Dictionary")
|
|
|
31 |
'------------ CONDITIONS ----------------------
|
|
|
32 |
'----------------------------------------------
|
|
|
33 |
%>
|
|
|
34 |
<%
|
|
|
35 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
36 |
objPMod.PersistInQryString ("obj_id")
|
|
|
37 |
objPMod.PersistInQryString ("app_id")
|
|
|
38 |
objPMod.PersistInQryString ("tree")
|
|
|
39 |
'----------------------------------------------
|
|
|
40 |
%>
|
|
|
41 |
<%
|
|
|
42 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
43 |
Sub GetControlDetails ( nObj_id, nApp_id, ByRef outobjDetails )
|
|
|
44 |
Dim rsQry, query
|
|
|
45 |
query = "SELECT * FROM CONTROL_OBJECTS WHERE obj_id = "& nObj_id &" AND app_id = "& nApp_id
|
|
|
46 |
|
|
|
47 |
Set rsQry = OraDatabase.DbCreateDynaset( query , ORADYN_DEFAULT )
|
|
|
48 |
|
|
|
49 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
|
|
50 |
outobjDetails.Item ("obj_id") = rsQry("obj_id")
|
|
|
51 |
outobjDetails.Item ("obj_name") = rsQry("obj_name")
|
|
|
52 |
|
|
|
53 |
Else
|
|
|
54 |
Err.Raise 8, "Sub GetControlDetails", "Empty record set returned. nObj_id="& nObj_id &", nApp_id="& nApp_id
|
|
|
55 |
|
|
|
56 |
End If
|
|
|
57 |
|
|
|
58 |
rsQry.Close
|
|
|
59 |
Set rsQry = Nothing
|
|
|
60 |
End Sub
|
|
|
61 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
62 |
Sub RenderTitle ( objCollector )
|
|
|
63 |
Response.write LIMG_CONTROL_LRG
|
|
|
64 |
Response.write "<b>"& objCollector.Item("obj_name") &"</b>"
|
|
|
65 |
End Sub
|
|
|
66 |
'-----------------------------------------------------------------------------------------------------------------
|
|
|
67 |
%>
|