Subversion Repositories DevTools

Rev

Rev 6181 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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