Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

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