Subversion Repositories DevTools

Rev

Rev 6579 | 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"-->
7286 dpurdie 18
<!--#include file="common/_form_window_common.asp"-->
5357 dpurdie 19
<%
20
'------------ ACCESS CONTROL ------------------
21
%>
22
<!--#include file="_access_control_login.asp"-->
23
<!--#include file="_access_control_general.asp"-->
24
<!--#include file="_access_control_project.asp"-->
25
<%
26
'------------ Variable Definition -------------
27
Dim parPv_id
28
Dim parPatchId
29
'------------ Constants Declaration -----------
30
'------------ Variable Init -------------------
31
parPatchId = Request("patch_id")
32
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
33
parPv_id = QStrPar("pv_id")
34
'----------------------------------------------
35
%>
36
<%
37
'--------------------------------------------------------------------------------------------------------------------------
38
Function GetInstallOrderList ( nPatchId )
39
   Dim rsQry, query
40
 
41
   OraDatabase.Parameters.Add "PATCH_ID",  nPatchId,   ORAPARM_INPUT, ORATYPE_NUMBER
42
   OraDatabase.Parameters.Add "PV_ID",  parPv_id,   ORAPARM_INPUT, ORATYPE_NUMBER
43
 
44
   Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("PatchInstallOrderList.sql"), ORADYN_DEFAULT )
45
   If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
46
      GetInstallOrderList = rsQry.GetRows()
47
   Else
48
      GetInstallOrderList = NULL
49
   End If
50
 
51
   rsQry.Close
52
   Set rsQry = Nothing
53
 
54
   OraDatabase.Parameters.Remove "PATCH_ID"
55
   OraDatabase.Parameters.Remove "PV_ID"
56
End Function
57
'--------------------------------------------------------------------------------------------------------------------------
58
Sub UpdateInstallOrder ()
59
 
60
   OraDatabase.Parameters.Add "PV_ID",          Request("pv_id"),          ORAPARM_INPUT, ORATYPE_NUMBER
61
   OraDatabase.Parameters.Add "PATCH_ID",       Request("patch_id"),       ORAPARM_INPUT, ORATYPE_NUMBER
62
   OraDatabase.Parameters.Add "INSTALL_ORDER",  Request("install_order"),  ORAPARM_INPUT, ORATYPE_NUMBER
63
 
5590 dpurdie 64
   objEH.ErrorRedirect = FALSE
5357 dpurdie 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
5590 dpurdie 84
    Call UpdateInstallOrder ()
85
    If objEH.Finally Then
86
        Call OpenInParentWindow ( "patches.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
87
    End If
5357 dpurdie 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">
6579 dpurdie 99
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
100
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
101
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
102
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
103
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 104
</head>
105
 
106
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
107
<%
108
'-- FROM START ---------------------------------------------------------------------------------------------------------------
109
objFormComponent.FormName = "FormSearch"
5590 dpurdie 110
objFormComponent.FormClass = "form_tight"
5357 dpurdie 111
objFormComponent.Action = scriptName
112
Call objFormComponent.FormStart()
113
%>
5590 dpurdie 114
   <table width="100%" border="0" cellspacing="0" cellpadding="2">
5357 dpurdie 115
      <tr>
116
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
5590 dpurdie 117
        <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
118
        <!--#include file="messages/_msg_inline.asp"-->
119
        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
5357 dpurdie 120
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
121
            <tr>
122
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Patch</td>
123
               <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
124
               <%=pkgInfoHash.Item ("pkg_version")%></td>
125
            </tr>
126
            <tr>
127
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Install Order</td>
128
               <td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
129
                  <%=objFormComponent.Combo ( "install_order", GetInstallOrderList( parPatchId ), FALSE, "class='form_item'" )%>
130
                  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
131
                  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
132
                  <input type="hidden" name="patch_id" value="<%=parPatchId%>">
133
                  <input type="hidden" name="action" value="true">
134
               </td>
135
            </tr>
136
         </table>
137
         </td>
138
      </tr>
139
      <tr>
5590 dpurdie 140
         <td align="right">
141
            <input type="submit" name="btn" value="Update" class="form_btn_comp">
142
            <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
143
         </td>
5357 dpurdie 144
      </tr>
145
   </table>
146
<%
147
Call objFormComponent.FormEnd()
148
'-- FROM END ----------------------------------------------------------------------------------------------------------------
149
%>
150
</body>
151
</html>
152
<!-- DESTRUCTOR ------->
153
<!--#include file="common/destructor.asp"-->