Subversion Repositories DevTools

Rev

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