| Line 1... |
Line 1... |
| 1 |
<%@LANGUAGE="VBSCRIPT"%>
|
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
| 2 |
<%
|
2 |
<%
|
| 3 |
'=====================================================
|
3 |
'=====================================================
|
| 4 |
'| |
|
4 |
'| |
|
| 5 |
'| wAddProdBySearch |
|
5 |
'| wAddProdBySearch |
|
| 6 |
'| |
|
6 |
'| |
|
| 7 |
'=====================================================
|
7 |
'=====================================================
|
| 8 |
%>
|
8 |
%>
|
| 9 |
<%
|
9 |
<%
|
| 10 |
Option explicit
|
10 |
Option explicit
|
| 11 |
Response.Expires = 0
|
11 |
Response.Expires = 0
|
| 12 |
%>
|
12 |
%>
|
| 13 |
<!--#include file="common/conf.asp"-->
|
13 |
<!--#include file="common/conf.asp"-->
|
| 14 |
<!--#include file="common/globals.asp"-->
|
14 |
<!--#include file="common/globals.asp"-->
|
| 15 |
<!--#include file="common/formating.asp"-->
|
15 |
<!--#include file="common/formating.asp"-->
|
| 16 |
<!--#include file="common/qstr.asp"-->
|
16 |
<!--#include file="common/qstr.asp"-->
|
| 17 |
<!--#include file="common/common_subs.asp"-->
|
17 |
<!--#include file="common/common_subs.asp"-->
|
| 18 |
<!--#include file="common/_form_window_common.asp"-->
|
18 |
<!--#include file="common/_form_window_common.asp"-->
|
| 19 |
<%
|
19 |
<%
|
| 20 |
'------------ ACCESS CONTROL ------------------
|
20 |
'------------ ACCESS CONTROL ------------------
|
| 21 |
%>
|
21 |
%>
|
| 22 |
<!--#include file="_access_control_general.asp"-->
|
22 |
<!--#include file="_access_control_general.asp"-->
|
| 23 |
<%
|
23 |
<%
|
| 24 |
'------------ VARIABLE DEFINITION -------------
|
24 |
'------------ VARIABLE DEFINITION -------------
|
| 25 |
Dim rsQry
|
25 |
Dim rsQry
|
| 26 |
Dim parProcess_name
|
26 |
Dim parProcess_name
|
| 27 |
Dim parPv_id
|
27 |
Dim parPv_id
|
| 28 |
Dim sMessage
|
28 |
Dim sMessage
|
| 29 |
'------------ CONSTANTS DECLARATION -----------
|
29 |
'------------ CONSTANTS DECLARATION -----------
|
| 30 |
'------------ VARIABLE INIT -------------------
|
30 |
'------------ VARIABLE INIT -------------------
|
| 31 |
parRtag_id = Request("rtag_id")
|
31 |
parRtag_id = Request("rtag_id")
|
| 32 |
parProcess_name = Request("prod_name")
|
32 |
parProcess_name = Request("prod_name")
|
| 33 |
parPv_id = Request("pv_id")
|
33 |
parPv_id = Request("pv_id")
|
| 34 |
|
34 |
|
| 35 |
'------------ CONDITIONS ----------------------
|
35 |
'------------ CONDITIONS ----------------------
|
| 36 |
'----------------------------------------------
|
36 |
'----------------------------------------------
|
| 37 |
%>
|
37 |
%>
|
| 38 |
<%
|
38 |
<%
|
| 39 |
'--------------------------------------------------------------------------------------------------------------------------
|
39 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 40 |
Function SearchProcessNamesQuery ( sProcess_name )
|
40 |
Function SearchProcessNamesQuery ( sProcess_name )
|
| 41 |
Dim tempSTR
|
41 |
Dim tempSTR
|
| 42 |
tempSTR = GetQuery ("ProcessNameSearch.sql")
|
42 |
tempSTR = GetQuery ("ProcessNameSearch.sql")
|
| 43 |
SearchProcessNamesQuery = Replace ( tempSTR, ":PROCESS_NAME", sProcess_name )
|
43 |
SearchProcessNamesQuery = Replace ( tempSTR, ":PROCESS_NAME", sProcess_name )
|
| 44 |
End Function
|
44 |
End Function
|
| 45 |
'--------------------------------------------------------------------------------------------------------------------------
|
45 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 46 |
%>
|
46 |
%>
|
| 47 |
<%
|
47 |
<%
|
| 48 |
'------------ RUN BEFORE PAGE RENDER ----------
|
48 |
'------------ RUN BEFORE PAGE RENDER ----------
|
| 49 |
'objPMod.PersistInQryString ( Array("base_env_id") )
|
49 |
'objPMod.PersistInQryString ( Array("base_env_id") )
|
| 50 |
'----------------------------------------------
|
50 |
'----------------------------------------------
|
| 51 |
If CBool(Request("action")) Then
|
51 |
If CBool(Request("action")) Then
|
| 52 |
|
52 |
|
| 53 |
On Error Resume Next
|
53 |
On Error Resume Next
|
| 54 |
|
54 |
|
| 55 |
OraDatabase.Parameters.Add "PROC_ID_LIST", Request("proc_id_list"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
55 |
OraDatabase.Parameters.Add "PROC_ID_LIST", Request("proc_id_list"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 56 |
OraDatabase.Parameters.Add "PV_ID", Request("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
56 |
OraDatabase.Parameters.Add "PV_ID", Request("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 57 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
57 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 58 |
|
58 |
|
| 59 |
objEH.TryORA ( OraSession )
|
59 |
objEH.TryORA ( OraSession )
|
| 60 |
|
60 |
|
| 61 |
OraDatabase.ExecuteSQL _
|
61 |
OraDatabase.ExecuteSQL _
|
| 62 |
"BEGIN PK_PACKAGE.ADD_PACKAGE_PROCESS ( :PROC_ID_LIST, :PV_ID, :USER_ID ); END;"
|
62 |
"BEGIN PK_PACKAGE.ADD_PACKAGE_PROCESS ( :PROC_ID_LIST, :PV_ID, :USER_ID ); END;"
|
| 63 |
|
63 |
|
| 64 |
objEH.CatchORA ( OraSession )
|
64 |
objEH.CatchORA ( OraSession )
|
| 65 |
|
65 |
|
| 66 |
OraDatabase.Parameters.Remove "PROC_ID_LIST"
|
66 |
OraDatabase.Parameters.Remove "PROC_ID_LIST"
|
| 67 |
OraDatabase.Parameters.Remove "PV_ID"
|
67 |
OraDatabase.Parameters.Remove "PV_ID"
|
| 68 |
OraDatabase.Parameters.Remove "USER_ID"
|
68 |
OraDatabase.Parameters.Remove "USER_ID"
|
| 69 |
|
69 |
|
| 70 |
|
70 |
|
| 71 |
|
71 |
|
| 72 |
If objEH.Finally Then
|
72 |
If objEH.Finally Then
|
| 73 |
Call OpenInParentWindow ("process_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
|
73 |
Call OpenInParentWindow ("process_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
|
| 74 |
Call CloseWindow()
|
74 |
Call CloseWindow()
|
| 75 |
End If
|
75 |
End If
|
| 76 |
|
76 |
|
| 77 |
End If
|
77 |
End If
|
| 78 |
%>
|
78 |
%>
|
| 79 |
<html>
|
79 |
<html>
|
| 80 |
<head>
|
80 |
<head>
|
| 81 |
<title>Release Manager</title>
|
81 |
<title>Release Manager</title>
|
| 82 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
82 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
| 83 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
83 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
| 84 |
<link href="images/release_manager_style.css" rel="stylesheet" type="text/css">
|
84 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 85 |
<script language="JavaScript" src="scripts/common.js"></script>
|
85 |
<link href="images/release_manager_style.css" rel="stylesheet" type="text/css">
|
| 86 |
</head>
|
86 |
<script language="JavaScript" src="scripts/common.js"></script>
|
| 87 |
|
87 |
</head>
|
| 88 |
<body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0" onLoad="self.focus();">
|
88 |
|
| 89 |
<table width="100%" border="0" cellspacing="0" cellpadding="10">
|
89 |
<body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0" onLoad="self.focus();">
|
| 90 |
<tr>
|
90 |
<table width="100%" border="0" cellspacing="0" cellpadding="10">
|
| 91 |
<td bgcolor="#FFFFFF" class="body_txt"><span class="body_h1"><img src="icons/i_linkarrow_black.gif" width="11" height="11" align="absmiddle"> Add Process </span> <br><br>
|
91 |
<tr>
|
| 92 |
|
92 |
<td bgcolor="#FFFFFF" class="body_txt"><span class="body_h1"><img src="icons/i_linkarrow_black.gif" width="11" height="11" align="absmiddle"> Add Process </span> <br><br>
|
| 93 |
</td>
|
93 |
|
| 94 |
</tr>
|
94 |
</td>
|
| 95 |
<form name="FormSearch" method="post" action="wAddProcessBySearch.asp">
|
95 |
</tr>
|
| 96 |
<tr>
|
96 |
<form name="FormSearch" method="post" action="wAddProcessBySearch.asp">
|
| 97 |
<td background="images/bg_quicksearch.gif" class="body_txt"><table width="100" border="0" cellspacing="3" cellpadding="0">
|
97 |
<tr>
|
| 98 |
<tr>
|
98 |
<td background="images/bg_quicksearch.gif" class="body_txt"><table width="100" border="0" cellspacing="3" cellpadding="0">
|
| 99 |
<td nowrap class="body_txtw"><strong>Process Search</strong> </td>
|
99 |
<tr>
|
| 100 |
<td><input name="prod_name" type="text" class="body_txt" size="20" value="<%=parProcess_name%>"></td>
|
100 |
<td nowrap class="body_txtw"><strong>Process Search</strong> </td>
|
| 101 |
<td><input name="btnSearch" type="image" src="icons/b_search.gif" width="16" height="16" border="0"></td>
|
101 |
<td><input name="prod_name" type="text" class="body_txt" size="20" value="<%=parProcess_name%>"></td>
|
| 102 |
</tr>
|
102 |
<td><input name="btnSearch" type="image" src="icons/b_search.gif" width="16" height="16" border="0"></td>
|
| 103 |
</table></td>
|
103 |
</tr>
|
| 104 |
</tr>
|
104 |
</table></td>
|
| 105 |
<%=objPMod.ComposeHiddenTags()%>
|
105 |
</tr>
|
| 106 |
</form>
|
106 |
<%=objPMod.ComposeHiddenTags()%>
|
| 107 |
<form name="FormName" method="post" action="<%=ScriptName%>">
|
107 |
</form>
|
| 108 |
<tr>
|
108 |
<form name="FormName" method="post" action="<%=ScriptName%>">
|
| 109 |
<td background="images/bg_login.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
109 |
<tr>
|
| 110 |
<tr>
|
110 |
<td background="images/bg_login.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 111 |
<td> </td>
|
111 |
<tr>
|
| 112 |
<td align="right"><input name="btn" type="reset" class="form_btn" value="« Back" onClick="history.back();">
|
112 |
<td> </td>
|
| 113 |
|
113 |
<td align="right"><input name="btn" type="reset" class="form_btn" value="« Back" onClick="history.back();">
|
| 114 |
<input name="btn" type="submit" class="form_btn" value="Add">
|
114 |
|
| 115 |
<input name="btn" type="reset" class="form_btn" value="Cancel" onClick="self.close();"></td>
|
115 |
<input name="btn" type="submit" class="form_btn" value="Add">
|
| 116 |
</tr>
|
116 |
<input name="btn" type="reset" class="form_btn" value="Cancel" onClick="self.close();"></td>
|
| 117 |
</table></td>
|
117 |
</tr>
|
| 118 |
</tr>
|
118 |
</table></td>
|
| 119 |
<tr>
|
119 |
</tr>
|
| 120 |
<td>
|
120 |
<tr>
|
| 121 |
<!-- PRODUCT NAME RESULTS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
121 |
<td>
|
| 122 |
<%If parProcess_name <> "" Then%>
|
122 |
<!-- PRODUCT NAME RESULTS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 123 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
123 |
<%If parProcess_name <> "" Then%>
|
| 124 |
<tr>
|
124 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
| 125 |
<td width="100%" valign="top" nowrap class="body_txt">Search result for <strong><%=parProcess_name%></strong> <br>
|
125 |
<tr>
|
| 126 |
<br>
|
126 |
<td width="100%" valign="top" nowrap class="body_txt">Search result for <strong><%=parProcess_name%></strong> <br>
|
| 127 |
<%
|
127 |
<br>
|
| 128 |
Set rsQry = OraDatabase.DbCreateDynaset( SearchProcessNamesQuery ( parProcess_name ), ORADYN_DEFAULT )
|
128 |
<%
|
| 129 |
%>
|
129 |
Set rsQry = OraDatabase.DbCreateDynaset( SearchProcessNamesQuery ( parProcess_name ), ORADYN_DEFAULT )
|
| 130 |
|
130 |
%>
|
| 131 |
<%If rsQry.RecordCount < 1 Then%>
|
131 |
|
| 132 |
<!-- NO RESULTS -->
|
132 |
<%If rsQry.RecordCount < 1 Then%>
|
| 133 |
No Results Found.
|
133 |
<!-- NO RESULTS -->
|
| 134 |
<%Else%>
|
134 |
No Results Found.
|
| 135 |
<!-- FOUND RESULTS -->
|
135 |
<%Else%>
|
| 136 |
Select Process and click Add.
|
136 |
<!-- FOUND RESULTS -->
|
| 137 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
137 |
Select Process and click Add.
|
| 138 |
|
138 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
| 139 |
<table>
|
139 |
|
| 140 |
<tr>
|
140 |
<table>
|
| 141 |
<td nowrap class="form_iname"></td>
|
141 |
<tr>
|
| 142 |
<td valign="top" nowrap class="body_txt"><b>Process Name</b></td>
|
142 |
<td nowrap class="form_iname"></td>
|
| 143 |
|
143 |
<td valign="top" nowrap class="body_txt"><b>Process Name</b></td>
|
| 144 |
<td valign="top" nowrap class="body_txt"><b>Run As</b></td>
|
144 |
|
| 145 |
<td valign="top" nowrap class="body_txt"><b>Pkg Owner</b></td>
|
145 |
<td valign="top" nowrap class="body_txt"><b>Run As</b></td>
|
| 146 |
<td valign="top" nowrap class="body_txt"><b>Is Interface</b></td>
|
146 |
<td valign="top" nowrap class="body_txt"><b>Pkg Owner</b></td>
|
| 147 |
</tr>
|
147 |
<td valign="top" nowrap class="body_txt"><b>Is Interface</b></td>
|
| 148 |
<%
|
148 |
</tr>
|
| 149 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
149 |
<%
|
| 150 |
%>
|
150 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
| 151 |
|
151 |
%>
|
| 152 |
<tr>
|
152 |
|
| 153 |
<td nowrap class="form_iname"><input type="checkbox" name="proc_id_list" value="<%=rsQry("proc_id")%>" <%=rsQry("checked")%>></td>
|
153 |
<tr>
|
| 154 |
<td valign="top" nowrap class="body_txt"><%=HighlightSubstring ( rsQry("proc_name"), parProcess_name )%></td>
|
154 |
<td nowrap class="form_iname"><input type="checkbox" name="proc_id_list" value="<%=rsQry("proc_id")%>" <%=rsQry("checked")%>></td>
|
| 155 |
|
155 |
<td valign="top" nowrap class="body_txt"><%=HighlightSubstring ( rsQry("proc_name"), parProcess_name )%></td>
|
| 156 |
<td valign="top" nowrap class="body_txt"><%=rsQry("run_as")%></td>
|
156 |
|
| 157 |
<td valign="top" nowrap class="body_txt"><%=rsQry("pkg_owner")%></td>
|
157 |
<td valign="top" nowrap class="body_txt"><%=rsQry("run_as")%></td>
|
| 158 |
<td valign="top" nowrap class="body_txt"><%=rsQry("is_interface")%></td>
|
158 |
<td valign="top" nowrap class="body_txt"><%=rsQry("pkg_owner")%></td>
|
| 159 |
</tr>
|
159 |
<td valign="top" nowrap class="body_txt"><%=rsQry("is_interface")%></td>
|
| 160 |
|
160 |
</tr>
|
| 161 |
<%rsQry.MoveNext%>
|
161 |
|
| 162 |
<%
|
162 |
<%rsQry.MoveNext%>
|
| 163 |
WEnd
|
163 |
<%
|
| 164 |
|
164 |
WEnd
|
| 165 |
rsQry.Close
|
165 |
|
| 166 |
Set rsQry = Nothing
|
166 |
rsQry.Close
|
| 167 |
%>
|
167 |
Set rsQry = Nothing
|
| 168 |
</table>
|
168 |
%>
|
| 169 |
<tr>
|
169 |
</table>
|
| 170 |
<td width="1" background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
170 |
<tr>
|
| 171 |
<td width="100%" background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
171 |
<td width="1" background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 172 |
</tr>
|
172 |
<td width="100%" background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 173 |
</table>
|
173 |
</tr>
|
| 174 |
<%End If%>
|
174 |
</table>
|
| 175 |
|
175 |
<%End If%>
|
| 176 |
</td>
|
176 |
|
| 177 |
</tr>
|
177 |
</td>
|
| 178 |
|
178 |
</tr>
|
| 179 |
</table>
|
179 |
|
| 180 |
<%Else
|
180 |
</table>
|
| 181 |
Response.Write("Click Back and Enter a Process Name!")
|
181 |
<%Else
|
| 182 |
End If%>
|
182 |
Response.Write("Click Back and Enter a Process Name!")
|
| 183 |
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
183 |
End If%>
|
| 184 |
</td>
|
184 |
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 185 |
</tr>
|
185 |
</td>
|
| 186 |
<input type="hidden" name="action" value="true">
|
186 |
</tr>
|
| 187 |
<%=objPMod.ComposeHiddenTags()%>
|
187 |
<input type="hidden" name="action" value="true">
|
| 188 |
</form>
|
188 |
<%=objPMod.ComposeHiddenTags()%>
|
| 189 |
</table>
|
189 |
</form>
|
| 190 |
</body>
|
190 |
</table>
|
| 191 |
</html>
|
191 |
</body>
|
| 192 |
<%
|
192 |
</html>
|
| 193 |
'------------ RUN AFTER PAGE RENDER -----------
|
193 |
<%
|
| 194 |
'Set objFormCollector = Nothing
|
194 |
'------------ RUN AFTER PAGE RENDER -----------
|
| 195 |
'----------------------------------------------
|
195 |
'Set objFormCollector = Nothing
|
| 196 |
Call Destroy_All_Objects
|
196 |
'----------------------------------------------
|
| 197 |
%>
|
197 |
Call Destroy_All_Objects
|
| - |
|
198 |
%>
|