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
'=====================================================
4
'|                                                   |
5
'|			           FIXED ISSUES		     	 	 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
12
Response.Expires = 0	' always load the page, dont store
13
%>
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/common_dbedit.asp"-->
20
<!--#include file="_tabs.asp"-->
21
<!--#include file="_action_buttons.asp"-->
22
<!--#include file="common/_package_common.asp"-->
23
<%
24
'------------ ACCESS CONTROL ------------------
25
%>
26
<!--#include file="_access_control_general.asp"-->
27
<%
28
'------------ Variable Definition -------------
29
Dim pageIsEditable
30
Dim sectionIsEditable
31
Dim criticalSectionIsEditable
32
'------------ Constants Declaration -----------
33
'------------ Variable Init -------------------
34
'----------------------------------------------
35
'-----------------------------------------------------------------------------------------------------------------
36
Sub fillCommentsWithDifferences ( parPv_id )
37
	DIM outputString
38
	DIM rsTemp
39
 
40
 
41
 
42
	'If pkgInfoHash.Item("base_view_id") = cstr(enumBASE_VIEW_PRODUCTS) Then
43
 
44
	 If pkgInfoHash.Item("comments") = "" or isnull(pkgInfoHash.Item("comments")) Then
45
      OraDatabase.Parameters.Add "PV_ID", parPv_id, 	ORAPARM_INPUT, ORATYPE_NUMBER 
46
 
47
 
48
  	  If (pkgInfoHash.Item ("last_pv_id") = "") OR IsNull(pkgInfoHash.Item ("last_pv_id")) Then
49
	  		OraDatabase.Parameters.Add "OLD_PV_ID", 	0, 	ORAPARM_INPUT, ORATYPE_NUMBER 
50
	  Else
51
	  		OraDatabase.Parameters.Add "OLD_PV_ID", 	pkgInfoHash.Item ("last_pv_id"), 	ORAPARM_INPUT, ORATYPE_NUMBER 
52
	  End If
53
 
54
	  Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery ( "diff_dependencies.sql" ), cint(0))
55
	  Dim style, icon
56
	  While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
57
 
58
		  Select Case CInt(rsTemp("status"))
59
			Case enumDB_NUM_DIFF_UPDATED
60
			  outputString = outputString & "[UPDATED] " & rsTemp("pkg_name") &" to "& rsTemp("pkg_version") &" ("& rsTemp("previous_version") &")"& VBNewLine
61
 
62
		    Case enumDB_NUM_DIFF_NEW
63
			  outputString = outputString & "[NEW] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLine
64
 
65
			Case enumDB_NUM_DIFF_REMOVED
66
			  outputString = outputString & "[REMOVED] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLine
67
 
68
		  End Select
69
 
70
	  	  rsTemp.MoveNext
71
	  WEnd
72
 
73
		' An error occured when outputString was longer than 4000 bytes, so this truncates it and adds "..."
74
		If LenB(outputString) > 4000 Then
75
			outputString = Left(outputString, 3995)
76
			outputString = Left(outputString, InStrRev(outputString, vbNewLine)) & vbNewLine & "..."
77
		End If
78
 
79
		OraDatabase.ExecuteSQL _
80
		" UPDATE PACKAGE_VERSIONS"&_
81
		" SET COMMENTS = '"& outputString &"'"&_
82
		" WHERE PV_ID = :PV_ID "
83
		pkgInfoHash.Item("comments") = outputString
84
 
85
		rsTemp.Close
86
		Set rsTemp = nothing
87
 
88
		OraDatabase.Parameters.Remove "PV_ID"
89
		OraDatabase.Parameters.Remove "OLD_PV_ID"
90
	 End If
91
	'END IF
92
 
93
 
94
 
95
End Sub
96
'-----------------------------------------------------------------------------------------------------------------
97
 
98
 
99
'------------------ MAIN LINE --------------------
100
pageIsEditable = Is_Page_Editable ( pkgInfoHash.Item ("dlocked") )
101
sectionIsEditable = Is_Section_Editable ()
102
criticalSectionIsEditable = Is_Critical_Section_Editable ( pkgInfoHash.Item ("dlocked") )
103
'-------------------------------------------------
104
 
105
%>
106
<html>
107
<title><%=Title(Request("rtag_id"))%></title>
108
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
109
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
110
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
111
<link rel="stylesheet" href="images/navigation.css" type="text/css">
112
<script language="JavaScript" src="images/common.js"></script>
113
<script language="JavaScript" src="scripts/remote_scripting.js"></script>
114
<!-- TIPS -->
115
<script language="JavaScript" src="images/tipster.js"></script>
116
<script language="JavaScript" src="images/_help_tips.js"></script>
117
<!-- DROPDOWN MENUS -->
118
<!--#include file="_menu_def.asp"-->
119
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
120
</head>
121
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
122
<!-- MENU LAYERS -------------------------------------->
123
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
124
  <!----------------------------------------------------->
125
</div>
126
<!-- TIPS LAYERS -------------------------------------->
127
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
128
<!----------------------------------------------------->
129
<!-- HEADER -->
130
<!--#include file="_header.asp"-->
131
<!-- BODY ---->
132
<table width="100%" border="0" cellspacing="0" cellpadding="0">
133
	<tr> 
134
		<td valign="top" width="1" background="images/bg_bage.gif">
135
		<!-- LEFT -->
136
		<!--#include file="_environment.asp"-->
137
		</td>
138
		<td width="1" bgcolor="#999999"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
139
		<td valign="top" width="100%">
140
		<!-- MIDDLE -->
141
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
142
		  <tr>
143
		    <td width="1%" background="images/bg_action_norm.gif"><IMG height=35 src="images/spacer.gif" width=15></td>
144
		    <td width="100%" background="images/bg_action_norm.gif"><!--#include file="_pkg_action_buttons.asp"--></td>
145
		    <td width="1%" background="images/bg_action_norm.gif"><IMG height=1 src="images/spacer.gif" width=15></td>
146
		  </tr>
147
		  <!-- PACKAGE PROPERTIES ----------------------------  -->
148
  		  <%Call RenderPackageProperties ()%>
149
		  <tr>
150
		    <td background="images/bg_lght_gray.gif">&nbsp;</td>
151
		    <td valign="bottom" background="images/bg_lght_gray.gif">
152
		      <table width="100" border="0" cellspacing="0" cellpadding="0">
153
		        <tr>
154
		          <td><IMG height=1 src="images/spacer.gif" width=50></td>
155
		          <td>
156
				  <!-- TABS ------------------------------------->
157
				  <%Call Generate_Tab_Menu ( TABarray1, "Release Notes", "orange" )%>
158
				  </td>
159
		        </tr>
160
		      </table>
161
		    </td>
162
		    <td background="images/bg_lght_gray.gif">&nbsp;</td>
163
		  </tr>
164
		  <tr>
165
		    <td background="images/lbox_bg_orange.gif"><IMG height=35 src="images/spacer.gif" width=1></td>
166
		    <td background="images/lbox_bg_orange.gif">
167
			<!-- TAB ACTION BUTTONS ------------------------------------->
168
			<%Call Action_Buttons ( "Release Notes" )%> 
169
			</td>
170
		    <td background="images/lbox_bg_orange.gif">&nbsp;</td>
171
		  </tr>
172
		  <tr>
173
		    <td></td>
174
		    <td valign="top">
175
			<!-- DETAILS ------------------------------------------------->
176
			<br>
177
			<%
178
			If (pkgInfoHash.Item ("dlocked") = "Y") Then
179
				If (InStr(pkgInfoHash.Item ("release_notes_info"),"MSG:") > 0) Then	
180
					Select Case CStr( pkgInfoHash.Item ("release_notes_info") )
181
					Case enum_RELEASE_NOTES_GENERATING
182
						Call DisplayInfo ( "GENERATING_RELEASE_NOTES", "400" )
183
					Case enum_RELEASE_NOTES_NOT_FOUND_IN_ARCHIVE
184
						Call DisplayInfo ( "NOT_FOUND_IN_PKG_ARCHIVE_RELEASE_NOTES", "400" )
185
					Case enum_RELEASE_NOTES_FAILED
186
						Call DisplayInfo ( "FAILED_GENERATING_RELEASE_NOTES", "400" )
187
					Case enum_RELEASE_NOTES_NO_PREVIOUS_VERSION
188
						Call DisplayInfo ( "NO_PREVIOUS_VERSION_RELEASE_NOTES", "400" )
189
					End Select
190
 
191
				ElseIf IsNull(pkgInfoHash.Item ("release_notes_info")) Then
192
					Call DisplayInfo ( "GENERATE_RELEASE_NOTES", "400" )
193
 
194
				End If
195
			Else
196
				Call fillCommentsWithDifferences ( parPv_id )
197
			End If
198
 
199
			%>
200
 
201
			<!--#include file="_release_notes.asp"-->
202
 
203
			<!-- END DETAILS ------------------------------------------------->
204
			</td>
205
		    <td>&nbsp;</td>
206
		  </tr>
207
		</table>
208
		<!-- END MIDDLE -------->
209
		</td>
210
	</tr>
211
</table>
212
<!-- FOOTER -->
213
<!--#include file="_footer.asp"-->
214
</body>
215
</html>
216
<%
217
Call Destroy_All_Objects
218
%>