Subversion Repositories DevTools

Rev

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