| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
| 129 |
ghuddy |
5 |
'| wAddProc |
|
| 119 |
ghuddy |
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 |
<!--#include file="_access_control_login.asp"-->
|
|
|
24 |
<%
|
|
|
25 |
'------------ VARIABLE DEFINITION -------------
|
|
|
26 |
Dim rsQry, healthTag, cmdInterface, pkgOwner, isInterface, package, procDesc
|
|
|
27 |
Dim sMessage
|
|
|
28 |
Dim SEQ_proc_id
|
|
|
29 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
30 |
Const LIMG_PRODUCT = "<img src='icons/i_product.gif' width='19' height='19' hspace='2' align='absmiddle'>"
|
|
|
31 |
Const LIMG_PRODUCT_UNPACKAGED = "<img src='icons/i_product_unpackaged.gif' width='19' height='19' hspace='2' align='absmiddle' title='Product is unofficial'>"
|
|
|
32 |
Const LIMG_PRODUCT_PATCH = "<img src='icons/i_patch_small.gif' hspace='2' align='absmiddle'>"
|
|
|
33 |
'------------ VARIABLE INIT -------------------
|
|
|
34 |
sMessage = NULL
|
|
|
35 |
isInterface = NULL
|
|
|
36 |
'parOs_id = Request("os_id")
|
|
|
37 |
'parBom_id = Request("bom_id")
|
|
|
38 |
Set objFormCollector = CreateObject("Scripting.Dictionary")
|
|
|
39 |
'------------ CONDITIONS ----------------------
|
|
|
40 |
'----------------------------------------------
|
|
|
41 |
%>
|
|
|
42 |
<%
|
|
|
43 |
|
|
|
44 |
%>
|
|
|
45 |
<%
|
|
|
46 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
If CBool(Request("action")) Then
|
|
|
50 |
|
| 129 |
ghuddy |
51 |
Dim Query_String
|
| 119 |
ghuddy |
52 |
|
| 129 |
ghuddy |
53 |
If Request("isInterface") = "" Then
|
|
|
54 |
isInterface = "F"
|
|
|
55 |
Else
|
|
|
56 |
isInterface = "T"
|
|
|
57 |
End If
|
| 119 |
ghuddy |
58 |
|
| 129 |
ghuddy |
59 |
Query_String = _
|
|
|
60 |
" SELECT * FROM PROCESSES WHERE PROC_NAME = '"& Request("healthTag") &"'"&_
|
|
|
61 |
" AND RUN_AS = '"& Request("cmdInterface") &"' AND PKG_OWNER = '"& Request("pkgOwner") &"'"&_
|
|
|
62 |
" AND IS_INTERFACE = '"& isInterface &"'"
|
| 119 |
ghuddy |
63 |
|
| 129 |
ghuddy |
64 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
| 119 |
ghuddy |
65 |
|
| 129 |
ghuddy |
66 |
If rsTemp.RecordCount = 0 Then
|
| 119 |
ghuddy |
67 |
|
| 129 |
ghuddy |
68 |
SEQ_proc_id = Get_From_DUAL("DEPLOYMENT_MANAGER.SEQ_PROC_ID.nextval")
|
|
|
69 |
|
|
|
70 |
OraDatabase.Parameters.Add "PROC_ID", SEQ_proc_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
71 |
OraDatabase.Parameters.Add "PKG_HEALTH_TAG", Request("healthTag"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
72 |
OraDatabase.Parameters.Add "PROC_DESC", Request("procDesc"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
73 |
OraDatabase.Parameters.Add "CMD_INTERFACE", Request("cmdInterface"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
74 |
OraDatabase.Parameters.Add "PKG_OWNER", Request("pkgOwner"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
75 |
OraDatabase.Parameters.Add "IS_INTERFACE", isInterface, ORAPARM_INPUT, ORATYPE_VARCHAR
|
|
|
76 |
OraDatabase.Parameters.Add "PV_ID", Request("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
77 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
78 |
|
|
|
79 |
objEH.TryORA ( OraSession )
|
|
|
80 |
On Error Resume Next
|
|
|
81 |
|
|
|
82 |
OraDatabase.ExecuteSQL _
|
|
|
83 |
"BEGIN PK_PACKAGE.ADD_PROCESS( :PROC_ID, :PKG_HEALTH_TAG, :PROC_DESC, :CMD_INTERFACE, :PKG_OWNER, :IS_INTERFACE, :PV_ID, :USER_ID); END;"
|
|
|
84 |
|
|
|
85 |
objEH.CatchORA ( OraSession )
|
|
|
86 |
|
|
|
87 |
OraDatabase.Parameters.Remove "PROC_ID"
|
|
|
88 |
OraDatabase.Parameters.Remove "PKG_HEALTH_TAG"
|
|
|
89 |
OraDatabase.Parameters.Remove "PROC_DESC"
|
|
|
90 |
OraDatabase.Parameters.Remove "CMD_INTERFACE"
|
|
|
91 |
OraDatabase.Parameters.Remove "PKG_OWNER"
|
|
|
92 |
OraDatabase.Parameters.Remove "IS_INTERFACE"
|
|
|
93 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
94 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
95 |
|
|
|
96 |
If objEH.Finally Then
|
|
|
97 |
Call OpenInParentWindow ("process_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
|
|
|
98 |
Call CloseWindow()
|
|
|
99 |
End If
|
|
|
100 |
|
|
|
101 |
Else
|
|
|
102 |
Call RaiseMsg ( enum_MSG_PROCESS_EXISTS, Request("pv_id") )
|
|
|
103 |
End If
|
|
|
104 |
|
|
|
105 |
rsTemp.Close
|
|
|
106 |
Set rsTemp = nothing
|
|
|
107 |
|
| 119 |
ghuddy |
108 |
End If
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
'----------------------------------------------
|
|
|
112 |
%>
|
|
|
113 |
<html>
|
|
|
114 |
<head>
|
|
|
115 |
<title>Release Manager</title>
|
|
|
116 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
117 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
118 |
<link href="images/release_manager_style.css" rel="stylesheet" type="text/css">
|
|
|
119 |
<script language="JavaScript" src="scripts/common.js"></script>
|
|
|
120 |
</head>
|
|
|
121 |
|
|
|
122 |
<body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0" onLoad="self.focus();FormSearch.prod_name.focus();">
|
|
|
123 |
<table width="100%" border="0" cellspacing="0" cellpadding="10">
|
| 129 |
ghuddy |
124 |
<tr>
|
|
|
125 |
<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>
|
|
|
126 |
Add a process for the package version.
|
| 119 |
ghuddy |
127 |
</td>
|
| 129 |
ghuddy |
128 |
</tr>
|
|
|
129 |
<%
|
|
|
130 |
'-- FROM START ---------------------------------------------------------------------------------------------------------------
|
|
|
131 |
objFormComponent.FormName = "FormSearch"
|
|
|
132 |
objFormComponent.Action = "wAddProcessBySearch.asp"
|
|
|
133 |
Call objFormComponent.FormStart()
|
|
|
134 |
%>
|
|
|
135 |
<tr>
|
|
|
136 |
<td background="images/bg_quicksearch.gif" class="body_txt">
|
|
|
137 |
<table width="100" border="0" cellspacing="3" cellpadding="0">
|
|
|
138 |
<tr>
|
|
|
139 |
<td nowrap class="body_txtw"><strong>Process Search</strong> </td>
|
|
|
140 |
<td><input name="prod_name" type="text" class="body_txt" size="20"></td>
|
|
|
141 |
<td><input name="btn" type="image" src="icons/b_search.gif" width="16" height="16" border="0"></td>
|
|
|
142 |
</tr>
|
|
|
143 |
</table>
|
|
|
144 |
</td>
|
|
|
145 |
</tr>
|
|
|
146 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
147 |
<%
|
|
|
148 |
Call objFormComponent.FormEnd()
|
|
|
149 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
|
|
150 |
%>
|
| 119 |
ghuddy |
151 |
|
| 129 |
ghuddy |
152 |
<%
|
|
|
153 |
'-- FROM START --------------------------------------------------------------------------------------------------------------
|
|
|
154 |
objFormComponent.FormName = "FormName"
|
|
|
155 |
objFormComponent.Action = ScriptName
|
|
|
156 |
objFormComponent.OnSubmit = "ShowProgress();"
|
|
|
157 |
Call objFormComponent.FormStart()
|
| 119 |
ghuddy |
158 |
|
| 129 |
ghuddy |
159 |
%>
|
|
|
160 |
<tr>
|
|
|
161 |
<td background="images/bg_login.gif">
|
|
|
162 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
163 |
<tr>
|
|
|
164 |
<td><%=ProgressBar()%></td>
|
|
|
165 |
<td align="right"><input name="btn" type="submit" class="form_btn" value="Submit">
|
|
|
166 |
<input name="btn" type="reset" class="form_btn" value="Cancel" onClick="self.close();">
|
|
|
167 |
</td>
|
|
|
168 |
</tr>
|
|
|
169 |
</table>
|
|
|
170 |
</td>
|
|
|
171 |
</tr>
|
|
|
172 |
<tr>
|
|
|
173 |
<td>
|
|
|
174 |
<!-- NEW PRODUCT ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
175 |
<%Call Messenger ( sMessage , 3, "100%" )%>
|
|
|
176 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
177 |
<!--#include file="messages/_msg_inline.asp"-->
|
|
|
178 |
<table width="664" border="0">
|
|
|
179 |
<tr>
|
|
|
180 |
<td><span class="body_txt">Package Health Tag</span> </td>
|
|
|
181 |
<td><input name="healthTag" type="text" class="body_txt" value="<%=healthTag%>"> </td>
|
|
|
182 |
</tr>
|
|
|
183 |
<tr>
|
|
|
184 |
<td><span class="body_txt">Process Description</span></td>
|
|
|
185 |
<td><textarea name="procDesc" rows=3 cols=50 class="body_txt"><%=procDesc%></textarea></td>
|
|
|
186 |
</tr>
|
|
|
187 |
<tr>
|
|
|
188 |
<td><span class="body_txt">Package/Product</span></td>
|
|
|
189 |
<td>
|
|
|
190 |
<%
|
|
|
191 |
Dim rsTemp
|
| 119 |
ghuddy |
192 |
|
| 129 |
ghuddy |
193 |
Set rsTemp = OraDatabase.DbCreateDynaset( "SELECT * FROM PACKAGE_VERSIONS PV, PACKAGES PKG WHERE PV.PKG_ID = PKG.PKG_ID AND PV.PV_ID ="& Request("pv_id") &"", cint(0))
|
|
|
194 |
Response.Write("<input name=""pkg_version"" type=""text"" class=""body_txt"" value="& rsTemp("pkg_name") &" size=70 disabled>")
|
|
|
195 |
rsTemp.Close
|
|
|
196 |
Set rsTemp = nothing
|
|
|
197 |
%>
|
|
|
198 |
</td>
|
|
|
199 |
</tr>
|
|
|
200 |
<tr>
|
|
|
201 |
<td><span class="body_txt">Command Interface</span></td>
|
|
|
202 |
<td><input name="cmdInterface" type="text" class="body_txt" value="<%=cmdInterface%>" size=80></td>
|
|
|
203 |
</tr>
|
|
|
204 |
<tr>
|
|
|
205 |
<td><span class="body_txt">Is Interface</span></td>
|
|
|
206 |
<td><input type="checkbox" name="isInterface">
|
|
|
207 |
<span class="body_txt">(Checked If True)</span>
|
|
|
208 |
</td>
|
|
|
209 |
</tr>
|
|
|
210 |
<tr>
|
|
|
211 |
<td><span class="body_txt">Package Owner</span></td>
|
|
|
212 |
<td><input name="pkgOwner" type="text" class="body_txt" value="<%=pkgOwner%>"></td>
|
|
|
213 |
</tr>
|
|
|
214 |
<tr>
|
|
|
215 |
<td> </td>
|
|
|
216 |
<td> </td>
|
|
|
217 |
</tr>
|
|
|
218 |
</table>
|
|
|
219 |
</td>
|
|
|
220 |
</tr>
|
|
|
221 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
222 |
<input type="hidden" name="action" value="true">
|
|
|
223 |
<%
|
|
|
224 |
Call objFormComponent.FormEnd()
|
|
|
225 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
|
|
226 |
%>
|
| 119 |
ghuddy |
227 |
</table>
|
|
|
228 |
</body>
|
|
|
229 |
</html>
|
|
|
230 |
<%
|
|
|
231 |
'------------ RUN AFTER PAGE RENDER -----------
|
|
|
232 |
Set objFormCollector = Nothing
|
|
|
233 |
'----------------------------------------------
|
|
|
234 |
Call Destroy_All_Objects
|
|
|
235 |
%>
|