Subversion Repositories DevTools

Rev

Rev 6371 | 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
 
5590 dpurdie 65
   objEH.ErrorRedirect = FALSE
5357 dpurdie 66
   objEH.TryORA ( OraSession )
67
   On Error Resume Next
68
 
69
   OraDatabase.ExecuteSQL _
70
   "BEGIN Shift_Install_Order ( :PATCH_ID, :PV_ID, :INSTALL_ORDER );  END;"
71
 
72
   objEH.CatchORA ( OraSession )
73
 
74
   OraDatabase.Parameters.Remove "PV_ID"
75
   OraDatabase.Parameters.Remove "PATCH_ID"
76
   OraDatabase.Parameters.Remove "INSTALL_ORDER"
77
 
78
End Sub
79
'-----------------
80
'--------------------------------------------------------------------------------------------------------------------------
81
%>
82
<%
83
'Process submition
84
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn  Then
5590 dpurdie 85
    Call UpdateInstallOrder ()
86
    If objEH.Finally Then
87
        Call OpenInParentWindow ( "patches.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
88
    End If
5357 dpurdie 89
End If
90
%>
91
<%
92
Call Get_Pkg_Info ( parPatchId, parRtag_id )
93
%>
94
<html>
95
<head>
96
<title>Release Manager</title>
97
<link rel="shortcut icon" href="<%=FavIcon%>"/>
98
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
99
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 100
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
101
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
102
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
103
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
104
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 105
</head>
106
 
107
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
108
<%
109
'-- FROM START ---------------------------------------------------------------------------------------------------------------
110
objFormComponent.FormName = "FormSearch"
5590 dpurdie 111
objFormComponent.FormClass = "form_tight"
5357 dpurdie 112
objFormComponent.Action = scriptName
113
Call objFormComponent.FormStart()
114
%>
5590 dpurdie 115
   <table width="100%" border="0" cellspacing="0" cellpadding="2">
5357 dpurdie 116
      <tr>
117
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
5590 dpurdie 118
        <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
119
        <!--#include file="messages/_msg_inline.asp"-->
120
        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
5357 dpurdie 121
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
122
            <tr>
123
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Patch</td>
124
               <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
125
               <%=pkgInfoHash.Item ("pkg_version")%></td>
126
            </tr>
127
            <tr>
128
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Install Order</td>
129
               <td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
130
                  <%=objFormComponent.Combo ( "install_order", GetInstallOrderList( parPatchId ), FALSE, "class='form_item'" )%>
131
                  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
132
                  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
133
                  <input type="hidden" name="patch_id" value="<%=parPatchId%>">
134
                  <input type="hidden" name="action" value="true">
135
               </td>
136
            </tr>
137
         </table>
138
         </td>
139
      </tr>
140
      <tr>
5590 dpurdie 141
         <td align="right">
142
            <input type="submit" name="btn" value="Update" class="form_btn_comp">
143
            <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
144
         </td>
5357 dpurdie 145
      </tr>
146
   </table>
147
<%
148
Call objFormComponent.FormEnd()
149
'-- FROM END ----------------------------------------------------------------------------------------------------------------
150
%>
151
</body>
152
</html>
153
<!-- DESTRUCTOR ------->
154
<!--#include file="common/destructor.asp"-->