| Line 1... |
Line 1... |
| 1 |
<%@LANGUAGE="VBSCRIPT"%>
|
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
| 2 |
<%
|
2 |
<%
|
| 3 |
Option explicit
|
3 |
Option explicit
|
| 4 |
Response.Expires = 0 ' always load the page, dont store
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
| 5 |
%>
|
5 |
%>
|
| 6 |
<%
|
6 |
<%
|
| 7 |
'=====================================================
|
7 |
'=====================================================
|
| 8 |
' Change Previous Version
|
8 |
' Change Previous Version
|
| 9 |
'=====================================================
|
9 |
'=====================================================
|
| 10 |
%>
|
10 |
%>
|
| 11 |
<!--#include file="common/conf.asp"-->
|
11 |
<!--#include file="common/conf.asp"-->
|
| 12 |
<!--#include file="common/globals.asp"-->
|
12 |
<!--#include file="common/globals.asp"-->
|
| 13 |
<!--#include file="common/qstr.asp"-->
|
13 |
<!--#include file="common/qstr.asp"-->
|
| Line 31... |
Line 31... |
| 31 |
parRfile = QStrPar("rfile")
|
31 |
parRfile = QStrPar("rfile")
|
| 32 |
'----------------------------------------------
|
32 |
'----------------------------------------------
|
| 33 |
%>
|
33 |
%>
|
| 34 |
<%
|
34 |
<%
|
| 35 |
Sub Short_Pkg_Info ( NNpv_id )
|
35 |
Sub Short_Pkg_Info ( NNpv_id )
|
| 36 |
Dim rsTemp, Query_String
|
36 |
Dim rsTemp, Query_String
|
| 37 |
|
37 |
|
| 38 |
Query_String = _
|
38 |
Query_String = _
|
| 39 |
" SELECT pkg.pkg_name, pv.pkg_version, pv.pkg_id, pv.last_pv_id"&_
|
39 |
" SELECT pkg.pkg_name, pv.pkg_version, pv.pkg_id, pv.last_pv_id"&_
|
| 40 |
" FROM packages pkg, package_versions pv"&_
|
40 |
" FROM packages pkg, package_versions pv"&_
|
| 41 |
" WHERE pkg.pkg_id = pv.pkg_id"&_
|
41 |
" WHERE pkg.pkg_id = pv.pkg_id"&_
|
| 42 |
" AND pv.pv_id = "& NNpv_id
|
42 |
" AND pv.pv_id = "& NNpv_id
|
| 43 |
|
43 |
|
| 44 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
44 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
| 45 |
|
45 |
|
| 46 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
46 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
| 47 |
pkgInfoHash.Add "pkg_name", (rsTemp.Fields("pkg_name"))
|
47 |
pkgInfoHash.Add "pkg_name", (rsTemp.Fields("pkg_name"))
|
| 48 |
pkgInfoHash.Add "pkg_id", (rsTemp.Fields("pkg_id"))
|
48 |
pkgInfoHash.Add "pkg_id", (rsTemp.Fields("pkg_id"))
|
| 49 |
pkgInfoHash.Add "last_pv_id", (rsTemp.Fields("last_pv_id"))
|
49 |
pkgInfoHash.Add "last_pv_id", (rsTemp.Fields("last_pv_id"))
|
| 50 |
End If
|
50 |
End If
|
| 51 |
|
51 |
|
| 52 |
rsTemp.Close
|
52 |
rsTemp.Close
|
| 53 |
Set rsTemp = nothing
|
53 |
Set rsTemp = nothing
|
| 54 |
End Sub
|
54 |
End Sub
|
| 55 |
|
55 |
|
| 56 |
|
56 |
|
| 57 |
Sub Deprecate_Package ( NNpv_id)
|
57 |
Sub Deprecate_Package ( NNpv_id)
|
| 58 |
|
58 |
|
| 59 |
Dim rsTemp, Query_String
|
59 |
Dim rsTemp, Query_String
|
| 60 |
'If nLast_pv_id = "" Then nLast_pv_id = NULL
|
60 |
'If nLast_pv_id = "" Then nLast_pv_id = NULL
|
| 61 |
Set rsTemp = OraDatabase.DbCreateDynaset("SELECT PKG.PKG_ID, PKG.pkg_name FROM PACKAGE_VERSIONS PV, PACKAGES PKG WHERE PKG.PKG_ID = PV.PKG_ID AND PV.PV_ID = "&NNpv_id, cint(0))
|
61 |
Set rsTemp = OraDatabase.DbCreateDynaset("SELECT PKG.PKG_ID, PKG.pkg_name FROM PACKAGE_VERSIONS PV, PACKAGES PKG WHERE PKG.PKG_ID = PV.PKG_ID AND PV.PV_ID = "&NNpv_id, cint(0))
|
| 62 |
|
62 |
|
| 63 |
OraDatabase.Parameters.Add "RTAG_ID", Request("rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
63 |
OraDatabase.Parameters.Add "RTAG_ID", Request("rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 64 |
OraDatabase.Parameters.Add "PKG_ID", rsTemp("pkg_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
64 |
OraDatabase.Parameters.Add "PKG_ID", rsTemp("pkg_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 65 |
OraDatabase.Parameters.Add "COMMENTS", Request("pv_overview"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
65 |
OraDatabase.Parameters.Add "COMMENTS", Request("pv_overview"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 66 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
66 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 67 |
OraDatabase.Parameters.Add "PV_ID", Request("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
67 |
OraDatabase.Parameters.Add "PV_ID", Request("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 68 |
|
68 |
|
| 69 |
OraSession.BeginTrans
|
69 |
On Error Resume Next
|
| - |
|
70 |
objEH.TryORA ( OraSession )
|
| 70 |
|
71 |
|
| 71 |
OraDatabase.ExecuteSQL _
|
72 |
OraDatabase.ExecuteSQL _
|
| 72 |
"BEGIN Deprecate_Package ( :PV_ID, :RTAG_ID, :PKG_ID, :COMMENTS, :USER_ID ); END;"
|
73 |
"BEGIN Deprecate_Package ( :PV_ID, :RTAG_ID, :PKG_ID, :COMMENTS, :USER_ID ); END;"
|
| 73 |
OraSession.CommitTrans
|
- |
|
| 74 |
|
74 |
|
| 75 |
OraSession.BeginTrans
|
75 |
If Err.Number = 0 Then
|
| 76 |
OraDatabase.ExecuteSQL _
|
76 |
OraDatabase.ExecuteSQL _
|
| 77 |
"BEGIN Log_Action ( :PV_ID, 'deprecate_package', :USER_ID ); END;"
|
77 |
"BEGIN Log_Action ( :PV_ID, 'deprecate_package', :USER_ID ); END;"
|
| - |
|
78 |
End If
|
| - |
|
79 |
|
| 78 |
OraSession.CommitTrans
|
80 |
objEH.CatchORA ( OraSession )
|
| 79 |
|
81 |
|
| 80 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
82 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
| 81 |
OraDatabase.Parameters.Remove "PKG_ID"
|
83 |
OraDatabase.Parameters.Remove "PKG_ID"
|
| 82 |
OraDatabase.Parameters.Remove "COMMENTS"
|
84 |
OraDatabase.Parameters.Remove "COMMENTS"
|
| 83 |
OraDatabase.Parameters.Remove "USER_ID"
|
85 |
OraDatabase.Parameters.Remove "USER_ID"
|
| 84 |
OraDatabase.Parameters.Remove "PV_ID"
|
86 |
OraDatabase.Parameters.Remove "PV_ID"
|
| 85 |
|
87 |
|
| 86 |
rsTemp.Close
|
88 |
rsTemp.Close
|
| 87 |
Set rsTemp = nothing
|
89 |
Set rsTemp = nothing
|
| 88 |
End Sub
|
90 |
End Sub
|
| 89 |
%>
|
91 |
%>
|
| 90 |
<%
|
92 |
<%
|
| 91 |
'Process submition
|
93 |
'Process submition
|
| 92 |
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn AND Request("pv_overview") <> "" Then
|
94 |
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn AND Request("pv_overview") <> "" Then
|
| 93 |
Call Deprecate_Package ( parPv_id)
|
95 |
Call Deprecate_Package ( parPv_id)
|
| 94 |
Call OpenInParentWindow ( parRfile &"?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
|
96 |
Call OpenInParentWindow ( parRfile &"?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
|
| 95 |
Call CloseWindow
|
97 |
Call CloseWindow
|
| 96 |
|
98 |
|
| 97 |
|
99 |
|
| 98 |
End If
|
100 |
End If
|
| 99 |
%>
|
101 |
%>
|
| 100 |
<%
|
102 |
<%
|
| 101 |
Call Short_Pkg_Info ( parPv_id )
|
103 |
Call Short_Pkg_Info ( parPv_id )
|
| 102 |
%>
|
104 |
%>
|
| Line 118... |
Line 120... |
| 118 |
</head>
|
120 |
</head>
|
| 119 |
|
121 |
|
| 120 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
122 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
| 121 |
<form name="deprecatepackage" method="post" action="<%=scriptName%>">
|
123 |
<form name="deprecatepackage" method="post" action="<%=scriptName%>">
|
| 122 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
124 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
| 123 |
<tr>
|
125 |
<tr>
|
| 124 |
<td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_new_off.gif" width="18" height="23" hspace="5"></td>
|
126 |
<td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_new_off.gif" width="18" height="23" hspace="5"></td>
|
| 125 |
<td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl"> How
|
127 |
<td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl"> How
|
| 126 |
to migrate from a Deprecated Package </td>
|
128 |
to migrate from a Deprecated Package </td>
|
| 127 |
<td background="images/lbox_bg_blue.gif" align="right" width="50%">
|
129 |
<td background="images/lbox_bg_blue.gif" align="right" width="50%">
|
| 128 |
<input type="submit" name="btn" value="Submit" class="form_btn_comp">
|
130 |
<input type="submit" name="btn" value="Submit" class="form_btn_comp">
|
| 129 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
|
131 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
|
| 130 |
</td>
|
132 |
</td>
|
| 131 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
|
133 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
|
| 132 |
<img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
|
134 |
<img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
|
| 133 |
</tr>
|
135 |
</tr>
|
| 134 |
<tr>
|
136 |
<tr>
|
| 135 |
<td height="100%" width="1%"> </td>
|
137 |
<td height="100%" width="1%"> </td>
|
| 136 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
138 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
| 137 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
139 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
| 138 |
<tr>
|
140 |
<tr>
|
| 139 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
141 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
| 140 |
<td width="1%" nowrap class="form_group" valign="bottom"></td>
|
142 |
<td width="1%" nowrap class="form_group" valign="bottom"></td>
|
| 141 |
<td nowrap width="100%"> </td>
|
143 |
<td nowrap width="100%"> </td>
|
| 142 |
</tr>
|
144 |
</tr>
|
| 143 |
<tr>
|
145 |
<tr>
|
| 144 |
<td width="1%"> </td>
|
146 |
<td width="1%"> </td>
|
| 145 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package</td>
|
147 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package</td>
|
| 146 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
|
148 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
|
| 147 |
<%=pkgInfoHash.Item ("pkg_name")%></td>
|
149 |
<%=pkgInfoHash.Item ("pkg_name")%></td>
|
| 148 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"></td>
|
150 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"></td>
|
| 149 |
</tr>
|
151 |
</tr>
|
| 150 |
<tr>
|
152 |
<tr>
|
| 151 |
<td width="1%"> </td>
|
153 |
<td width="1%"> </td>
|
| 152 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Migration
|
154 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Migration
|
| 153 |
Instructions </td>
|
155 |
Instructions </td>
|
| 154 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
156 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
| 155 |
<%
|
157 |
<%
|
| 156 |
Dim rsTemp
|
158 |
Dim rsTemp
|
| 157 |
Set rsTemp = OraDatabase.DbCreateDynaset("SELECT COMMENTS FROM DEPRECATED_PACKAGES WHERE RTAG_ID ="& Request("rtag_id") &" AND V_EXT ='"& pkgInfoHash.Item ("v_ext") &"' AND PKG_ID ="& pkgInfoHash.Item ("pkg_id") &"", cint(0))
|
159 |
Set rsTemp = OraDatabase.DbCreateDynaset("SELECT COMMENTS FROM DEPRECATED_PACKAGES WHERE RTAG_ID ="& Request("rtag_id") &" AND V_EXT ='"& pkgInfoHash.Item ("v_ext") &"' AND PKG_ID ="& pkgInfoHash.Item ("pkg_id") &"", cint(0))
|
| 158 |
%>
|
160 |
%>
|
| 159 |
<textarea name="pv_overview" cols="60" rows="10" class="form_item" id="pv_overview"><%=rsTemp("comments")%></textarea>
|
161 |
<textarea name="pv_overview" cols="60" rows="10" class="form_item" id="pv_overview"><%=rsTemp("comments")%></textarea>
|
| 160 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
162 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
| 161 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
163 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
| 162 |
<input type="hidden" name="rfile" value="<%=parRfile%>">
|
164 |
<input type="hidden" name="rfile" value="<%=parRfile%>">
|
| 163 |
<input type="hidden" name="action" value="true">
|
165 |
<input type="hidden" name="action" value="true">
|
| 164 |
</td>
|
166 |
</td>
|
| 165 |
<%If NOT IsNull(rsTemp("comments")) Then%>
|
167 |
<%If NOT IsNull(rsTemp("comments")) Then%>
|
| 166 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif"></td>
|
168 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif"></td>
|
| 167 |
<%Else%>
|
169 |
<%Else%>
|
| 168 |
<td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field style1">Required!</td>
|
170 |
<td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field style1">Required!</td>
|
| 169 |
<%End If%>
|
171 |
<%End If%>
|
| 170 |
<%
|
172 |
<%
|
| 171 |
rsTemp.Close()
|
173 |
rsTemp.Close()
|
| 172 |
Set rsTemp = nothing
|
174 |
Set rsTemp = nothing
|
| 173 |
%>
|
175 |
%>
|
| 174 |
</tr>
|
176 |
</tr>
|
| 175 |
<tr>
|
177 |
<tr>
|
| 176 |
<td width="1%"> </td>
|
178 |
<td width="1%"> </td>
|
| 177 |
<td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
|
179 |
<td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
|
| 178 |
<td nowrap width="100%">
|
180 |
<td nowrap width="100%">
|
| 179 |
<p> </p>
|
181 |
<p> </p>
|
| 180 |
</td>
|
182 |
</td>
|
| 181 |
</tr>
|
183 |
</tr>
|
| 182 |
</table>
|
184 |
</table>
|
| 183 |
</td>
|
185 |
</td>
|
| Line 194... |
Line 196... |
| 194 |
</body>
|
196 |
</body>
|
| 195 |
</html>
|
197 |
</html>
|
| 196 |
|
198 |
|
| 197 |
|
199 |
|
| 198 |
<!-- DESTRUCTOR ------->
|
200 |
<!-- DESTRUCTOR ------->
|
| 199 |
<!--#include file="common/destructor.asp"-->
|
- |
|
| 200 |
|
201 |
<!--#include file="common/destructor.asp"-->
|
| - |
|
202 |
|