Subversion Repositories DevTools

Rev

Rev 5357 | Rev 5590 | 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
Option explicit
4
Response.Expires = 0   ' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'               Patch Install Order
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/qstr.asp"-->
14
<!--#include file="common/common_subs.asp"-->
15
<!--#include file="common/common_dbedit.asp"-->
16
<!--#include file="controls/ERGFormComponent/classFormComponent.asp"-->
17
<!--#include file="common/_popup_window_common.asp"-->
18
<%
19
'------------ ACCESS CONTROL ------------------
20
%>
21
<!--#include file="_access_control_login.asp"-->
22
<!--#include file="_access_control_general.asp"-->
23
<!--#include file="_access_control_project.asp"-->
24
<%
25
'------------ Variable Definition -------------
26
Dim parPv_id
27
Dim parPatchId
28
Dim objFormComponent
29
'------------ Constants Declaration -----------
30
'------------ Variable Init -------------------
31
parPatchId = Request("patch_id")
32
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
33
parPv_id = QStrPar("pv_id")
34
Set objFormComponent = New FormComponent
35
'----------------------------------------------
36
%>
37
<%
38
'--------------------------------------------------------------------------------------------------------------------------
39
Function GetInstallOrderList ( nPatchId )
40
   Dim rsQry, query
41
 
42
   OraDatabase.Parameters.Add "PATCH_ID",  nPatchId,   ORAPARM_INPUT, ORATYPE_NUMBER
43
   OraDatabase.Parameters.Add "PV_ID",  parPv_id,   ORAPARM_INPUT, ORATYPE_NUMBER
44
 
45
   Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("PatchInstallOrderList.sql"), ORADYN_DEFAULT )
46
   If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
47
      GetInstallOrderList = rsQry.GetRows()
48
   Else
49
      GetInstallOrderList = NULL
50
   End If
51
 
52
   rsQry.Close
53
   Set rsQry = Nothing
54
 
55
   OraDatabase.Parameters.Remove "PATCH_ID"
56
   OraDatabase.Parameters.Remove "PV_ID"
57
End Function
58
'--------------------------------------------------------------------------------------------------------------------------
59
Sub UpdateInstallOrder ()
60
 
61
   OraDatabase.Parameters.Add "PV_ID",          Request("pv_id"),          ORAPARM_INPUT, ORATYPE_NUMBER
62
   OraDatabase.Parameters.Add "PATCH_ID",       Request("patch_id"),       ORAPARM_INPUT, ORATYPE_NUMBER
63
   OraDatabase.Parameters.Add "INSTALL_ORDER",  Request("install_order"),  ORAPARM_INPUT, ORATYPE_NUMBER
64
 
65
   objEH.TryORA ( OraSession )
66
   On Error Resume Next
67
 
68
   OraDatabase.ExecuteSQL _
69
   "BEGIN Shift_Install_Order ( :PATCH_ID, :PV_ID, :INSTALL_ORDER );  END;"
70
 
71
   objEH.CatchORA ( OraSession )
72
 
73
   OraDatabase.Parameters.Remove "PV_ID"
74
   OraDatabase.Parameters.Remove "PATCH_ID"
75
   OraDatabase.Parameters.Remove "INSTALL_ORDER"
76
 
77
End Sub
78
'-----------------
79
'--------------------------------------------------------------------------------------------------------------------------
80
%>
81
<%
82
'Process submition
83
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn  Then
84
   Call UpdateInstallOrder ()
85
 
86
   Call OpenInParentWindow ( "patches.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
87
   Call CloseWindow
88
End If
89
%>
90
<%
91
Call Get_Pkg_Info ( parPatchId, parRtag_id )
92
%>
93
<html>
94
<head>
95
<title>Release Manager</title>
96
<link rel="shortcut icon" href="<%=FavIcon%>"/>
97
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
98
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
99
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
100
<link rel="stylesheet" href="images/navigation.css" type="text/css">
101
<script language="JavaScript" src="images/tipster.js"></script>
102
<script language="JavaScript" src="images/_help_tips.js"></script>
103
<script language="JavaScript" src="images/common.js"></script>
104
</head>
105
 
106
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
107
<%
108
'-- FROM START ---------------------------------------------------------------------------------------------------------------
109
objFormComponent.FormName = "FormSearch"
110
objFormComponent.Action = scriptName
111
Call objFormComponent.FormStart()
112
%>
113
   <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
114
      <tr>
115
         <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_new_pkg_off.gif" width="21" height="23" hspace="5" border="0"></td>
116
         <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;Change Install Order</td>
117
         <td background="images/lbox_bg_blue.gif" align="right" width="50%">
118
            <input type="submit" name="btn" value="Update" class="form_btn_comp">
119
            <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
120
         </td>
121
         <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
122
         <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
123
      </tr>
124
      <tr>
125
         <td height="100%" width="1%">&nbsp;</td>
126
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
127
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
128
            <tr>
129
               <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
130
               <td width="1%" nowrap class="form_group" valign="bottom"></td>
131
               <td nowrap width="100%">&nbsp; </td>
132
            </tr>
133
            <tr>
134
               <td width="1%">&nbsp;</td>
135
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Patch</td>
136
               <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
137
               <%=pkgInfoHash.Item ("pkg_version")%></td>
138
            </tr>
139
            <tr>
140
               <td width="1%">&nbsp;</td>
141
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Install Order</td>
142
               <td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
143
                  <%=objFormComponent.Combo ( "install_order", GetInstallOrderList( parPatchId ), FALSE, "class='form_item'" )%>
144
                  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
145
                  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
146
                  <input type="hidden" name="patch_id" value="<%=parPatchId%>">
147
                  <input type="hidden" name="action" value="true">
148
               </td>
149
            </tr>
150
            <tr>
151
               <td width="1%">&nbsp;</td>
152
               <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
153
               <td nowrap width="100%">
154
                  <p>&nbsp;</p>
155
               </td>
156
            </tr>
157
         </table>
158
         </td>
159
      </tr>
160
      <tr>
161
         <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
162
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
163
      </tr>
164
   </table>
165
<%
166
Call objFormComponent.FormEnd()
167
'-- FROM END ----------------------------------------------------------------------------------------------------------------
168
%>
169
<!-- TIPS LAYERS -------------------------------------->
170
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
171
<!----------------------------------------------------->
172
</body>
173
</html>
174
 
175
 
176
<!-- DESTRUCTOR ------->
177
<!--#include file="common/destructor.asp"-->