Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
129 ghuddy 4
Response.Expires = 0   ' always load the page, dont store
119 ghuddy 5
%>
6
<%
7
'=====================================================
129 ghuddy 8
'               Patch Install Order
119 ghuddy 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 )
129 ghuddy 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"
119 ghuddy 57
End Function
58
'--------------------------------------------------------------------------------------------------------------------------
59
Sub UpdateInstallOrder ()
129 ghuddy 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
 
119 ghuddy 77
End Sub
78
'-----------------
79
'--------------------------------------------------------------------------------------------------------------------------
80
%>
81
<%
82
'Process submition
83
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn  Then
129 ghuddy 84
   Call UpdateInstallOrder ()
85
 
86
   Call OpenInParentWindow ( "patches.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
87
   Call CloseWindow
119 ghuddy 88
End If
89
%>
90
<%
91
Call Get_Pkg_Info ( parPatchId, parRtag_id )
92
%>
93
<html>
94
<head>
95
<title>Release Manager</title>
96
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
97
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
98
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
99
<link rel="stylesheet" href="images/navigation.css" type="text/css">
100
<script language="JavaScript" src="images/tipster.js"></script>
101
<script language="JavaScript" src="images/_help_tips.js"></script>
102
<script language="JavaScript" src="images/common.js"></script>
103
</head>
104
 
105
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
106
<%
107
'-- FROM START ---------------------------------------------------------------------------------------------------------------
108
objFormComponent.FormName = "FormSearch"
109
objFormComponent.Action = scriptName
110
Call objFormComponent.FormStart()
111
%>
129 ghuddy 112
   <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
113
      <tr>
114
         <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>
115
         <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;Change Install Order</td>
116
         <td background="images/lbox_bg_blue.gif" align="right" width="50%">
117
            <input type="submit" name="btn" value="Update" class="form_btn_comp">
118
            <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
119
         </td>
120
         <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
121
         <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
122
      </tr>
123
      <tr>
124
         <td height="100%" width="1%">&nbsp;</td>
125
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
126
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
127
            <tr>
128
               <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
129
               <td width="1%" nowrap class="form_group" valign="bottom"></td>
130
               <td nowrap width="100%">&nbsp; </td>
131
            </tr>
132
            <tr>
133
               <td width="1%">&nbsp;</td>
134
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Patch</td>
135
               <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
136
               <%=pkgInfoHash.Item ("pkg_version")%></td>
137
            </tr>
138
            <tr>
139
               <td width="1%">&nbsp;</td>
140
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Install Order</td>
141
               <td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
142
                  <%=objFormComponent.Combo ( "install_order", GetInstallOrderList( parPatchId ), FALSE, "class='form_item'" )%>
143
                  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
144
                  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
145
                  <input type="hidden" name="patch_id" value="<%=parPatchId%>">
146
                  <input type="hidden" name="action" value="true">
147
               </td>
148
            </tr>
149
            <tr>
150
               <td width="1%">&nbsp;</td>
151
               <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
152
               <td nowrap width="100%">
153
                  <p>&nbsp;</p>
154
               </td>
155
            </tr>
156
         </table>
157
         </td>
158
      </tr>
159
      <tr>
160
         <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
161
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
162
      </tr>
163
   </table>
119 ghuddy 164
<%
165
Call objFormComponent.FormEnd()
166
'-- FROM END ----------------------------------------------------------------------------------------------------------------
167
%>
168
<!-- TIPS LAYERS -------------------------------------->
169
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
170
<!----------------------------------------------------->
171
</body>
172
</html>
173
 
174
 
175
<!-- DESTRUCTOR ------->
129 ghuddy 176
<!--#include file="common/destructor.asp"-->