| Line 1... |
Line 1... |
| 1 |
<%@LANGUAGE="VBSCRIPT"%>
|
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
| 2 |
<%
|
2 |
<%
|
| 3 |
'=====================================================
|
3 |
'=====================================================
|
| 4 |
'| |
|
4 |
'| |
|
| 5 |
'| DIFF |
|
5 |
'| DIFF |
|
| 6 |
'| |
|
6 |
'| |
|
| 7 |
'=====================================================
|
7 |
'=====================================================
|
| 8 |
%>
|
8 |
%>
|
| 9 |
<%
|
9 |
<%
|
| 10 |
Option explicit
|
10 |
Option explicit
|
| 11 |
' Good idea to set when using redirect
|
11 |
' Good idea to set when using redirect
|
| 12 |
Response.Expires = 0 ' always load the page, dont store
|
12 |
Response.Expires = 0 ' always load the page, dont store
|
| 13 |
%>
|
13 |
%>
|
| 14 |
|
14 |
|
| 15 |
<%
|
15 |
<%
|
| 16 |
'To enable the script timeout to 20 mins
|
16 |
'To enable the script timeout to 20 mins
|
| 17 |
Server.ScriptTimeout=1200
|
17 |
Server.ScriptTimeout=1200
|
| Line 39... |
Line 39... |
| 39 |
Dim dDiffFilter
|
39 |
Dim dDiffFilter
|
| 40 |
Dim colorA, colorB, ChangeTypeIcon
|
40 |
Dim colorA, colorB, ChangeTypeIcon
|
| 41 |
Dim btnMerge, btnRemove
|
41 |
Dim btnMerge, btnRemove
|
| 42 |
Dim rowId
|
42 |
Dim rowId
|
| 43 |
Dim email
|
43 |
Dim email
|
| - |
|
44 |
Dim genReport
|
| 44 |
Dim FSO
|
45 |
Dim FSO
|
| 45 |
Dim NewTextFile
|
46 |
Dim NewTextFile
|
| 46 |
Dim pkgA, pkgB, pkgname, delimiter, rsQryA, rsQryB, rsQryCommentsA, rsQryCommentsB, sqlstrA, counterA, sqlstrB, counterB
|
47 |
Dim pkgA, pkgB, pkgname, delimiter, rsQryA, rsQryB, rsQryCommentsA, rsQryCommentsB, sqlstrA, counterA, sqlstrB, counterB
|
| 47 |
Dim SSsql, retVal, rsCQ, DEVIiss
|
48 |
Dim SSsql, retVal, rsCQ, DEVIiss
|
| 48 |
Dim a, b, c, d, pkgversion, errormsg, source_change, ChangeASource, ChangeAUpdate, ChangeBSource, ChangeBUpdate, pvCollectionA, pvCollectionB
|
49 |
Dim a, b, c, d, pkgversion, errormsg, ChangeASource, ChangeAUpdate, ChangeBSource, ChangeBUpdate, pvCollectionA, pvCollectionB
|
| - |
|
50 |
Dim source_change, scFlag
|
| 49 |
Dim changeType
|
51 |
Dim changeType
|
| 50 |
Dim pendingAdditions
|
52 |
Dim pendingAdditions
|
| 51 |
|
53 |
|
| 52 |
'------------ Constants Declaration -----------
|
54 |
'------------ Constants Declaration -----------
|
| 53 |
Const LIMG_UPDATED = "<img src='images/i_updated.gif' width='11' height='11' border='0' hspace='5' align='absmiddle' title='Updated'>"
|
55 |
Const LIMG_UPDATED = "<img src='images/i_updated.gif' width='11' height='11' border='0' hspace='5' align='absmiddle' title='Updated'>"
|
| Line 73... |
Line 75... |
| 73 |
Set objRelCollectorB = CreateObject("Scripting.Dictionary")
|
75 |
Set objRelCollectorB = CreateObject("Scripting.Dictionary")
|
| 74 |
Set dDiffFilter = CreateObject("Scripting.Dictionary")
|
76 |
Set dDiffFilter = CreateObject("Scripting.Dictionary")
|
| 75 |
Set pendingAdditions = CreateObject("Scripting.Dictionary")
|
77 |
Set pendingAdditions = CreateObject("Scripting.Dictionary")
|
| 76 |
'----------------------------------------------
|
78 |
'----------------------------------------------
|
| 77 |
If Request("btn") = "Mail Me Report" Then
|
79 |
If Request("btn") = "Mail Me Report" Then
|
| 78 |
email = true
|
80 |
email = true
|
| - |
|
81 |
genReport = true
|
| - |
|
82 |
End If
|
| - |
|
83 |
If Request("btn") = "Show Me Report" Then
|
| - |
|
84 |
genReport = true
|
| 79 |
End If
|
85 |
End If
|
| 80 |
%>
|
86 |
%>
|
| 81 |
<%
|
87 |
<%
|
| 82 |
'--------------------------------------------------------------------------------------------------------------------------
|
88 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 83 |
Sub GetDiffFilterValues ( outDepFilter )
|
89 |
Sub GetDiffFilterValues ( outDepFilter )
|
| 84 |
Dim FilterVal, aFilterValues
|
90 |
Dim FilterVal, aFilterValues
|
| 85 |
|
91 |
|
| 86 |
If Request.Cookies(enum_RELMGR_COOKIE_DOMAIN)(COOKIE_HIDE_DIFF_FILTER) <> "" Then
|
92 |
If Request.Cookies(enum_RELMGR_COOKIE_DOMAIN)(COOKIE_HIDE_DIFF_FILTER) <> "" Then
|
| 87 |
aFilterValues = Split( Replace( Request.Cookies(enum_RELMGR_COOKIE_DOMAIN)(COOKIE_HIDE_DIFF_FILTER), " ", ""), ",")
|
93 |
aFilterValues = Split( Replace( Request.Cookies(enum_RELMGR_COOKIE_DOMAIN)(COOKIE_HIDE_DIFF_FILTER), " ", ""), ",")
|
| 88 |
|
94 |
|
| 89 |
For Each FilterVal In aFilterValues
|
95 |
For Each FilterVal In aFilterValues
|
| 90 |
outDepFilter.Item (CStr( FilterVal )) = ""
|
96 |
outDepFilter.Item (CStr( FilterVal )) = ""
|
| 91 |
Next
|
97 |
Next
|
| 92 |
|
98 |
|
| 93 |
End If
|
99 |
End If
|
| - |
|
100 |
|
| - |
|
101 |
End Sub
|
| - |
|
102 |
'--------------------------------------------------------------------------------------------------------------------------
|
| - |
|
103 |
Sub Javascript()
|
| - |
|
104 |
NewTextFile.WriteLine("<script language=""JavaScript"" type=""text/javascript"">")
|
| - |
|
105 |
NewTextFile.WriteLine("function MM_findObj(n, d) { //v4.0")
|
| - |
|
106 |
NewTextFile.WriteLine(" var p,i,x;")
|
| - |
|
107 |
NewTextFile.WriteLine(" if(!d) d=document; ")
|
| - |
|
108 |
NewTextFile.WriteLine(" if((p=n.indexOf(""?""))>0&&parent.frames.length) {")
|
| - |
|
109 |
NewTextFile.WriteLine(" d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);")
|
| - |
|
110 |
NewTextFile.WriteLine(" }")
|
| - |
|
111 |
NewTextFile.WriteLine(" if(!(x=d[n])&&d.all) x=d.all[n]; ")
|
| - |
|
112 |
NewTextFile.WriteLine(" for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];")
|
| - |
|
113 |
NewTextFile.WriteLine(" for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);")
|
| - |
|
114 |
NewTextFile.WriteLine(" if(!x && document.getElementById) x=document.getElementById(n); ")
|
| - |
|
115 |
NewTextFile.WriteLine(" return x;")
|
| - |
|
116 |
NewTextFile.WriteLine("}")
|
| - |
|
117 |
|
| - |
|
118 |
NewTextFile.WriteLine("function toggleSPAN(x) {")
|
| - |
|
119 |
NewTextFile.WriteLine(" var el = MM_findObj('spanPkgInfo' + x);")
|
| - |
|
120 |
NewTextFile.WriteLine(" if (el.style.display != ""block"") {")
|
| - |
|
121 |
NewTextFile.WriteLine(" el.style.display = ""block"";")
|
| - |
|
122 |
NewTextFile.WriteLine(" } else {")
|
| - |
|
123 |
NewTextFile.WriteLine(" el.style.display = ""none"";")
|
| - |
|
124 |
NewTextFile.WriteLine(" }")
|
| - |
|
125 |
NewTextFile.WriteLine("}")
|
| - |
|
126 |
|
| - |
|
127 |
NewTextFile.WriteLine("function MM_getElementsByClassName(cn) {")
|
| - |
|
128 |
NewTextFile.WriteLine(" var allT=document.getElementsByTagName('*'), allCN=[], i=0, a;")
|
| - |
|
129 |
NewTextFile.WriteLine(" while(a=allT[i++]) {")
|
| - |
|
130 |
NewTextFile.WriteLine(" a.className==cn ? allCN[allCN.length]=a : null;")
|
| - |
|
131 |
NewTextFile.WriteLine(" }")
|
| - |
|
132 |
NewTextFile.WriteLine(" return allCN")
|
| - |
|
133 |
NewTextFile.WriteLine("}")
|
| - |
|
134 |
|
| - |
|
135 |
NewTextFile.WriteLine(" function MM_toggleAll(cn, show){")
|
| - |
|
136 |
NewTextFile.WriteLine(" var allEl = MM_getElementsByClassName(cn);")
|
| - |
|
137 |
NewTextFile.WriteLine(" for (var ii=0; ii<allEl.length;ii++){")
|
| - |
|
138 |
NewTextFile.WriteLine(" var el = allEl[ii];")
|
| - |
|
139 |
NewTextFile.WriteLine(" if(show) {")
|
| - |
|
140 |
NewTextFile.WriteLine(" el.style.display = ""block"";")
|
| - |
|
141 |
NewTextFile.WriteLine(" } else {")
|
| - |
|
142 |
NewTextFile.WriteLine(" el.style.display = ""none"";")
|
| - |
|
143 |
NewTextFile.WriteLine(" }")
|
| - |
|
144 |
NewTextFile.WriteLine(" }")
|
| - |
|
145 |
NewTextFile.WriteLine(" }")
|
| 94 |
|
146 |
|
| - |
|
147 |
NewTextFile.WriteLine("</script>")
|
| 95 |
End Sub
|
148 |
End Sub
|
| 96 |
'--------------------------------------------------------------------------------------------------------------------------
|
149 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 97 |
Sub GetFixedIssues(pv_id)
|
150 |
Sub GetFixedIssues(pv_id)
|
| - |
|
151 |
'
|
| - |
|
152 |
' Clearcase issues
|
| - |
|
153 |
'
|
| 98 |
Set sqlstrA = OraDatabase.DbCreateDynaset("SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE pv_id="& pv_id &" AND iss_state = "& enumISSUES_STATE_FIXED, cint(0))
|
154 |
Set sqlstrA = OraDatabase.DbCreateDynaset("SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE pv_id="& pv_id &" AND iss_state = "& enumISSUES_STATE_FIXED, cint(0))
|
| - |
|
155 |
|
| - |
|
156 |
If sqlstrA.RecordCount <> 0 Then
|
| - |
|
157 |
NewTextFile.WriteLine()
|
| - |
|
158 |
NewTextFile.WriteLine("<blockquote><blockquote>Fixed ClearQuest Issues:</blockquote></blockquote>")
|
| - |
|
159 |
NewTextFile.WriteLine("<blockquote><blockquote><blockquote><table class='fixed_issues' width='100%'>")
|
| - |
|
160 |
NewTextFile.WriteLine("<tr>")
|
| - |
|
161 |
NewTextFile.WriteLine("<td width='10%' class='form_field'>Issue Id</td>")
|
| - |
|
162 |
NewTextFile.WriteLine("<td width='55%' class='form_field'>Summary</td>")
|
| - |
|
163 |
NewTextFile.WriteLine("<td width='10%' class='form_field'>Issue Type</td>")
|
| - |
|
164 |
NewTextFile.WriteLine("<td width='15%' class='form_field'>Priority</td>")
|
| - |
|
165 |
NewTextFile.WriteLine("<td width='10%' class='form_field'>Status</td>")
|
| - |
|
166 |
NewTextFile.WriteLine("</tr>")
|
| 99 |
|
167 |
|
| 100 |
If sqlstrA.RecordCount <> 0 Then
|
- |
|
| 101 |
NewTextFile.WriteLine()
|
- |
|
| 102 |
NewTextFile.WriteLine("<blockquote><blockquote>Fixed Issues:</blockquote></blockquote>")
|
- |
|
| 103 |
End If
|
- |
|
| 104 |
|
- |
|
| 105 |
For counterA=1 to sqlstrA.RecordCount
|
168 |
For counterA=1 to sqlstrA.RecordCount
|
| 106 |
DEVIiss = "-1"
|
169 |
DEVIiss = "-1"
|
| 107 |
|
170 |
|
| 108 |
If CInt(sqlstrA("iss_db")) = CInt(enumCLEARQUEST_DEVI_ID) Then
|
171 |
If CInt(sqlstrA("iss_db")) = CInt(enumCLEARQUEST_DEVI_ID) Then
|
| 109 |
DEVIiss = DEVIiss &","& sqlstrA("iss_id")
|
172 |
DEVIiss = DEVIiss &","& sqlstrA("iss_id")
|
| 110 |
End If
|
173 |
End If
|
| 111 |
|
174 |
|
| 112 |
SSsql = ReadFile( rootPath & "queries\cq_issues.sql" )
|
175 |
SSsql = ReadFile( rootPath & "queries\cq_issues.sql" )
|
| 113 |
SSsql = Replace( SSsql, "/*enumCLEARQUEST_DEVI_ID*/", enumCLEARQUEST_DEVI_ID)
|
176 |
SSsql = Replace( SSsql, "/*enumCLEARQUEST_DEVI_ID*/", enumCLEARQUEST_DEVI_ID)
|
| 114 |
SSsql = Replace( SSsql, "/*DEVIiss*/", DEVIiss)
|
177 |
SSsql = Replace( SSsql, "/*DEVIiss*/", DEVIiss)
|
| 115 |
retVal = Get_CQ_Issues ( SSsql, rsCQ )
|
178 |
retVal = Get_CQ_Issues ( SSsql, rsCQ )
|
| 116 |
|
179 |
|
| 117 |
If rsCQ("iss_num") <> "" Then
|
180 |
NewTextFile.WriteLine("<tr>")
|
| 118 |
NewTextFile.Write("<blockquote><blockquote><blockquote>"&rsCQ("iss_num")&": ")
|
181 |
NewTextFile.WriteLine("<td nowrap class='form_item'>"&rsCQ("iss_num")&"</td>")
|
| - |
|
182 |
|
| - |
|
183 |
NewTextFile.WriteLine("<td class='form_item'>"&NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )&"</td>")
|
| - |
|
184 |
NewTextFile.WriteLine("<td class='form_item'>"&rsCQ("issue_type")&"</td>")
|
| - |
|
185 |
NewTextFile.WriteLine("<td class='form_item'>"&rsCQ("priority")&"</td>")
|
| - |
|
186 |
NewTextFile.WriteLine("<td class='form_item'>"&rsCQ("Status")&"</td>")
|
| 119 |
End If
|
187 |
NewTextFile.WriteLine("</tr>")
|
| 120 |
|
188 |
|
| 121 |
If rsCQ("summary") <> "" Then
|
189 |
sqlstrA.MoveNext
|
| - |
|
190 |
Next
|
| - |
|
191 |
sqlstrA.Close()
|
| 122 |
NewTextFile.WriteLine(rsCQ("summary")&"</blockquote></blockquote></blockquote>")
|
192 |
NewTextFile.WriteLine( " </table></blockquote></blockquote></blockquote> ")
|
| 123 |
End If
|
193 |
End If
|
| - |
|
194 |
|
| - |
|
195 |
'
|
| - |
|
196 |
' Must also handle Jira Issues
|
| - |
|
197 |
'
|
| - |
|
198 |
Dim SQLstr
|
| - |
|
199 |
retVal = Get_JIRA_Package_Issues ( pv_id, SQLstr )
|
| - |
|
200 |
' Debug ... NewTextFile.WriteLine("<blockquote><blockquote>Jira Issues:"&retVal&":"&pv_id&"</blockquote></blockquote>")
|
| - |
|
201 |
If retVal > 0 Then
|
| - |
|
202 |
retVal = Get_JIRA_Issues ( SQLstr, rsCQ )
|
| - |
|
203 |
If (retVal = 0 AND rsCQ.RecordCount > 0) Then
|
| - |
|
204 |
NewTextFile.WriteLine()
|
| - |
|
205 |
NewTextFile.WriteLine("<blockquote><blockquote>Jira Issues:</blockquote></blockquote>")
|
| - |
|
206 |
NewTextFile.WriteLine("<blockquote><blockquote><blockquote><table class='fixed_issues' width='100%'>")
|
| - |
|
207 |
NewTextFile.WriteLine("<tr>")
|
| - |
|
208 |
NewTextFile.WriteLine("<td width='8%' class='form_field'>Issue Id</td>")
|
| - |
|
209 |
NewTextFile.WriteLine("<td width='58%' class='form_field'>Summary</td>")
|
| - |
|
210 |
NewTextFile.WriteLine("<td width='8%' class='form_field'>Issue Type</td>")
|
| - |
|
211 |
NewTextFile.WriteLine("<td width='10%' class='form_field'>Priority</td>")
|
| - |
|
212 |
NewTextFile.WriteLine("<td width='8%' class='form_field'>Status</td>")
|
| - |
|
213 |
NewTextFile.WriteLine("<td width='8%' class='form_field'>Resolution</td>")
|
| - |
|
214 |
NewTextFile.WriteLine("</tr>")
|
| - |
|
215 |
|
| - |
|
216 |
While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))
|
| - |
|
217 |
NewTextFile.WriteLine("<tr>")
|
| - |
|
218 |
NewTextFile.WriteLine("<td nowrap class='form_item'>"&rsCQ("iss_num")&"</td>")
|
| - |
|
219 |
NewTextFile.WriteLine("<td class='form_item'>"&NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )&"</td>")
|
| - |
|
220 |
NewTextFile.WriteLine("<td class='form_item'>"&rsCQ("issue_type")&"</td>")
|
| - |
|
221 |
NewTextFile.WriteLine("<td class='form_item'>"&rsCQ("priority")&"</td>")
|
| - |
|
222 |
NewTextFile.WriteLine("<td class='form_item'>"&rsCQ("Status")&"</td>")
|
| - |
|
223 |
NewTextFile.WriteLine("<td class='form_item'>"&rsCQ("RESOLUTION")&"</td>")
|
| - |
|
224 |
NewTextFile.WriteLine("</tr>")
|
| 124 |
|
225 |
|
| 125 |
sqlstrA.MoveNext
|
226 |
rsCQ.MoveNext
|
| - |
|
227 |
Wend
|
| - |
|
228 |
NewTextFile.WriteLine( " </table></blockquote></blockquote></blockquote> ")
|
| 126 |
Next
|
229 |
End If
|
| 127 |
sqlstrA.Close()
|
230 |
rsCQ.Close()
|
| - |
|
231 |
End If
|
| 128 |
End Sub
|
232 |
End Sub
|
| 129 |
'--------------------------------------------------------------------------------------------------------------------------
|
233 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 130 |
Sub LastPvIdA(a)
|
234 |
Sub LastPvIdA(a)
|
| 131 |
|
235 |
|
| 132 |
Dim qryA
|
236 |
Dim qryA
|
| 133 |
Set qryA = OraDatabase.DbCreateDynaset("SELECT LAST_PV_ID FROM PACKAGE_VERSIONS WHERE PV_ID="&a, cint(0))
|
237 |
Set qryA = OraDatabase.DbCreateDynaset("SELECT LAST_PV_ID FROM PACKAGE_VERSIONS WHERE PV_ID="&a, cint(0))
|
| 134 |
|
238 |
|
| 135 |
'If a <> qryA("last_pv_id") Then
|
239 |
'If a <> qryA("last_pv_id") Then
|
| 136 |
a = qryA("last_pv_id")
|
240 |
a = qryA("last_pv_id")
|
| 137 |
'Else
|
241 |
'Else
|
| 138 |
' errormsg = true
|
242 |
' errormsg = true
|
| 139 |
'End If
|
243 |
'End If
|
| 140 |
|
244 |
|
| 141 |
If pvCollectionA.Exists(CStr(a)) Then
|
245 |
If pvCollectionA.Exists(CStr(a)) Then
|
| 142 |
errormsg = true
|
246 |
errormsg = true
|
| 143 |
Exit Sub
|
247 |
Exit Sub
|
| 144 |
End If
|
248 |
End If
|
| 145 |
|
249 |
|
| 146 |
qryA.Close()
|
250 |
qryA.Close()
|
| 147 |
End Sub
|
251 |
End Sub
|
| 148 |
'--------------------------------------------------------------------------------------------------------------------------
|
252 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 149 |
Sub LastPvIdB(b)
|
253 |
Sub LastPvIdB(b)
|
| 150 |
Dim qryB
|
254 |
Dim qryB
|
| 151 |
Set qryB = OraDatabase.DbCreateDynaset("SELECT LAST_PV_ID FROM PACKAGE_VERSIONS WHERE PV_ID="&b, cint(0))
|
255 |
Set qryB = OraDatabase.DbCreateDynaset("SELECT LAST_PV_ID FROM PACKAGE_VERSIONS WHERE PV_ID="&b, cint(0))
|
| 152 |
|
256 |
|
| 153 |
'If b <> qryB("last_pv_id") Then
|
257 |
'If b <> qryB("last_pv_id") Then
|
| 154 |
b = qryB("last_pv_id")
|
258 |
b = qryB("last_pv_id")
|
| 155 |
'Else
|
259 |
'Else
|
| 156 |
' errormsg = true
|
260 |
' errormsg = true
|
| 157 |
'End If
|
261 |
'End If
|
| 158 |
|
262 |
|
| 159 |
If pvCollectionB.Exists(CStr(b)) Then
|
263 |
If pvCollectionB.Exists(CStr(b)) Then
|
| 160 |
errormsg = true
|
264 |
errormsg = true
|
| 161 |
Exit Sub
|
265 |
Exit Sub
|
| 162 |
End If
|
266 |
End If
|
| 163 |
|
267 |
|
| 164 |
qryB.Close()
|
268 |
qryB.Close()
|
| 165 |
End Sub
|
269 |
End Sub
|
| 166 |
'--------------------------------------------------------------------------------------------------------------------------
|
270 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 167 |
Sub pkg_Version(pv)
|
271 |
Sub pkg_Version(pv)
|
| 168 |
Dim qry
|
272 |
Dim qry
|
| 169 |
Set qry = OraDatabase.DbCreateDynaset("SELECT PKG_VERSION FROM PACKAGE_VERSIONS WHERE PV_ID="&pv, cint(0))
|
273 |
Set qry = OraDatabase.DbCreateDynaset("SELECT PKG_VERSION FROM PACKAGE_VERSIONS WHERE PV_ID="&pv, cint(0))
|
| 170 |
pkgversion = qry("pkg_version")
|
274 |
pkgversion = qry("pkg_version")
|
| 171 |
qry.Close()
|
275 |
qry.Close()
|
| 172 |
End Sub
|
276 |
End Sub
|
| 173 |
'--------------------------------------------------------------------------------------------------------------------------
|
277 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 174 |
Sub LastPvIdAa(a)
|
278 |
Sub LastPvIdAa(a)
|
| 175 |
Dim qryA
|
279 |
Dim qryA
|
| 176 |
Set qryA = OraDatabase.DbCreateDynaset("SELECT LAST_PV_ID FROM PACKAGE_VERSIONS WHERE PV_ID="&a, cint(0))
|
280 |
Set qryA = OraDatabase.DbCreateDynaset("SELECT LAST_PV_ID FROM PACKAGE_VERSIONS WHERE PV_ID="&a, cint(0))
|
| 177 |
c = qryA("last_pv_id")
|
281 |
c = qryA("last_pv_id")
|
| 178 |
qryA.Close()
|
282 |
qryA.Close()
|
| 179 |
End Sub
|
283 |
End Sub
|
| 180 |
'--------------------------------------------------------------------------------------------------------------------------
|
284 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 181 |
Sub LastPvIdBb(b)
|
285 |
Sub LastPvIdBb(b)
|
| 182 |
Dim qryB
|
286 |
Dim qryB
|
| 183 |
Set qryB = OraDatabase.DbCreateDynaset("SELECT LAST_PV_ID FROM PACKAGE_VERSIONS WHERE PV_ID="&b, cint(0))
|
287 |
Set qryB = OraDatabase.DbCreateDynaset("SELECT LAST_PV_ID FROM PACKAGE_VERSIONS WHERE PV_ID="&b, cint(0))
|
| 184 |
d = qryB("last_pv_id")
|
288 |
d = qryB("last_pv_id")
|
| 185 |
qryB.Close()
|
289 |
qryB.Close()
|
| 186 |
End Sub
|
290 |
End Sub
|
| 187 |
'--------------------------------------------------------------------------------------------------------------------------
|
291 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 188 |
Sub Comments(Pv_Id)
|
292 |
Sub Comments(Pv_Id)
|
| 189 |
Dim comments
|
293 |
Dim comments
|
| 190 |
Set comments = OraDatabase.DbCreateDynaset("SELECT COMMENTS, PKG_VERSION FROM PACKAGE_VERSIONS WHERE PV_ID="&Pv_id, cint(0))
|
294 |
Set comments = OraDatabase.DbCreateDynaset("SELECT COMMENTS, PKG_VERSION FROM PACKAGE_VERSIONS WHERE PV_ID="&Pv_id, cint(0))
|
| 191 |
|
295 |
|
| - |
|
296 |
scFlag = false
|
| 192 |
If comments("comments") <> "Rippled Build." Then
|
297 |
If comments("comments") <> "Rippled Build." Then
|
| 193 |
NewTextFile.WriteLine("<blockquote><blockquote><font color="&chr(34)&"blue"&chr(34)&">Version: "& comments("pkg_version")&"</font></blockquote></blockquote>")
|
298 |
NewTextFile.WriteLine("<blockquote><blockquote><font color="&chr(34)&"blue"&chr(34)&">Version: "& comments("pkg_version")&"</font></blockquote></blockquote>")
|
| 194 |
If comments("comments") <> "" Then
|
299 |
If comments("comments") <> "" Then
|
| 195 |
NewTextFile.WriteLine("<blockquote><blockquote>Comments: </blockquote></blockquote>")
|
300 |
NewTextFile.WriteLine("<blockquote><blockquote>Comments: </blockquote></blockquote>")
|
| 196 |
NewTextFile.WriteLine("<blockquote><blockquote><blockquote>"& TextToHTML(comments("comments")) &"</blockquote></blockquote></blockquote>")
|
301 |
NewTextFile.WriteLine("<blockquote><blockquote><blockquote>"& TextToHTML(comments("comments")) &"</blockquote></blockquote></blockquote>")
|
| 197 |
source_change = true
|
302 |
source_change = true
|
| - |
|
303 |
scFlag = true
|
| 198 |
End If
|
304 |
End If
|
| 199 |
End If
|
305 |
End If
|
| 200 |
|
306 |
|
| 201 |
End Sub
|
307 |
End Sub
|
| 202 |
'--------------------------------------------------------------------------------------------------------------------------
|
308 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 203 |
Sub Release(pvId)
|
309 |
Sub Release(pvId)
|
| 204 |
Dim release
|
310 |
Dim release
|
| 205 |
Set release = OraDatabase.DbCreateDynaset("SELECT INSERT_STAMP FROM RELEASE_CONTENT WHERE PV_ID="&pvId, cint(0))
|
311 |
Set release = OraDatabase.DbCreateDynaset("SELECT INSERT_STAMP FROM RELEASE_CONTENT WHERE PV_ID="&pvId, cint(0))
|
| 206 |
|
312 |
|
| 207 |
If release("insert_stamp") <> "" Then
|
313 |
If release("insert_stamp") <> "" Then
|
| 208 |
NewTextFile.Write(release("insert_stamp"))
|
314 |
NewTextFile.Write(release("insert_stamp"))
|
| 209 |
Else
|
315 |
Else
|
| 210 |
NewTextFile.Write("Version Not Used.")
|
316 |
NewTextFile.Write("Version Not Used.")
|
| 211 |
End If
|
317 |
End If
|
| 212 |
|
318 |
|
| 213 |
End Sub
|
319 |
End Sub
|
| 214 |
'--------------------------------------------------------------------------------------------------------------------------
|
320 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 215 |
Sub Header()
|
321 |
Sub Header()
|
| 216 |
NewTextFile.WriteLine("<html>")
|
322 |
NewTextFile.WriteLine("<html>")
|
| - |
|
323 |
NewTextFile.WriteLine("<head>")
|
| 217 |
End Sub
|
324 |
End Sub
|
| 218 |
'--------------------------------------------------------------------------------------------------------------------------
|
325 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 219 |
Sub Footer()
|
326 |
Sub Footer()
|
| - |
|
327 |
NewTextFile.WriteLine("</body>")
|
| 220 |
NewTextFile.WriteLine("</html>")
|
328 |
NewTextFile.WriteLine("</html>")
|
| 221 |
End Sub
|
329 |
End Sub
|
| 222 |
'--------------------------------------------------------------------------------------------------------------------------
|
330 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 223 |
Sub Javascript()
|
331 |
Sub Styles()
|
| 224 |
NewTextFile.WriteLine("<script language=""JavaScript"" type=""text/javascript"">")
|
332 |
NewTextFile.WriteLine("<style type="&chr(34)&"text/css"&chr(34)&">")
|
| 225 |
NewTextFile.WriteLine("function MM_findObj(n, d) { //v4.0")
|
333 |
NewTextFile.WriteLine("body { font-family:Verdana,Arial,Helvetica,sans-serif; }")
|
| 226 |
NewTextFile.WriteLine(" var p,i,x;")
|
- |
|
| 227 |
NewTextFile.WriteLine(" if(!d) d=document; ")
|
334 |
NewTextFile.WriteLine("table { border-collapse:collapse; }")
|
| 228 |
NewTextFile.WriteLine(" if((p=n.indexOf(""?""))>0&&parent.frames.length) {")
|
335 |
NewTextFile.WriteLine("table.fixed_issues td { border-width:1; border-style:solid; border-color:black; padding:3 5 3 5; }")
|
| 229 |
NewTextFile.WriteLine(" d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);")
|
336 |
NewTextFile.WriteLine(".fixed_issues { border-width:1; border-style:solid; border-color:black; }")
|
| 230 |
NewTextFile.WriteLine(" }")
|
- |
|
| 231 |
NewTextFile.WriteLine(" if(!(x=d[n])&&d.all) x=d.all[n]; ")
|
337 |
NewTextFile.WriteLine(".page_title { color:red; font-size:110%; text-align:center; }")
|
| 232 |
NewTextFile.WriteLine(" for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];")
|
338 |
NewTextFile.WriteLine(".highlight_text { color:blue; }")
|
| 233 |
NewTextFile.WriteLine(" for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);")
|
339 |
NewTextFile.WriteLine(".form_field { background-color:#EAE5D7; font:bold 70% Tahoma,sans-serif; }")
|
| 234 |
NewTextFile.WriteLine(" if(!x && document.getElementById) x=document.getElementById(n); ")
|
340 |
NewTextFile.WriteLine(".form_item { background-color:#EAE5D7; color:red; font:bold 70% Tahoma,sans-serif; vertical-align:top; }")
|
| - |
|
341 |
|
| 235 |
NewTextFile.WriteLine(" return x;")
|
342 |
NewTextFile.WriteLine(".changesa { background-color:red; }")
|
| 236 |
NewTextFile.WriteLine("}")
|
- |
|
| 237 |
NewTextFile.WriteLine("function DisplaySPAN(show, x) {")
|
343 |
NewTextFile.WriteLine(".changesb { background-color:#FF9933; }")
|
| 238 |
NewTextFile.WriteLine(" if (show) {")
|
344 |
NewTextFile.WriteLine(".changesnone { color:#999999; }")
|
| 239 |
NewTextFile.WriteLine(" MM_findObj(""spanHideDetails"" + x).style.display = ""block"";")
|
- |
|
| 240 |
NewTextFile.WriteLine(" MM_findObj(""spanPkgInfo"" + x).style.display = ""block"";")
|
- |
|
| 241 |
NewTextFile.WriteLine(" MM_findObj(""spanShowDetails"" + x).style.display = ""none"";")
|
- |
|
| - |
|
345 |
|
| 242 |
NewTextFile.WriteLine(" } else {")
|
346 |
NewTextFile.WriteLine(".texta { color:red; }")
|
| 243 |
NewTextFile.WriteLine(" MM_findObj(""spanHideDetails"" + x).style.display = ""none"";")
|
- |
|
| 244 |
NewTextFile.WriteLine(" MM_findObj(""spanPkgInfo"" + x).style.display = ""none"";")
|
- |
|
| 245 |
NewTextFile.WriteLine(" MM_findObj(""spanShowDetails"" + x).style.display = ""block"";")
|
- |
|
| 246 |
NewTextFile.WriteLine(" }")
|
347 |
NewTextFile.WriteLine(".textb { color:#FF9933; }")
|
| 247 |
NewTextFile.WriteLine("}")
|
348 |
NewTextFile.WriteLine(".textnone { color:#999999; }")
|
| - |
|
349 |
|
| 248 |
NewTextFile.WriteLine("</script>")
|
350 |
NewTextFile.WriteLine("</style>")
|
| 249 |
End Sub
|
351 |
End Sub
|
| 250 |
'--------------------------------------------------------------------------------------------------------------------------
|
352 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 251 |
Function GetIsDiffFilterInUseIcon()
|
353 |
Function GetIsDiffFilterInUseIcon()
|
| 252 |
GetIsDiffFilterInUseIcon = LIMG_FILTER_OFF & LIMG_DROP_DOWN_ARROW
|
354 |
GetIsDiffFilterInUseIcon = LIMG_FILTER_OFF & LIMG_DROP_DOWN_ARROW
|
| 253 |
|
355 |
|
| 254 |
If dDiffFilter.Count > 0 Then
|
356 |
If dDiffFilter.Count > 0 Then
|
| 255 |
GetIsDiffFilterInUseIcon = LIMG_FILTER_ON & LIMG_DROP_DOWN_ARROW
|
357 |
GetIsDiffFilterInUseIcon = LIMG_FILTER_ON & LIMG_DROP_DOWN_ARROW
|
| 256 |
End If
|
358 |
End If
|
| 257 |
|
359 |
|
| 258 |
End Function
|
360 |
End Function
|
| 259 |
'--------------------------------------------------------------------------------------------------------------------------
|
361 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 260 |
Function GetIsDiffFilterChecked( nFilterId )
|
362 |
Function GetIsDiffFilterChecked( nFilterId )
|
| 261 |
|
363 |
|
| 262 |
If dDiffFilter.Exists ( CStr(nFilterId) ) Then
|
364 |
If dDiffFilter.Exists ( CStr(nFilterId) ) Then
|
| 263 |
GetIsDiffFilterChecked = "checked"
|
365 |
GetIsDiffFilterChecked = "checked"
|
| 264 |
End If
|
366 |
End If
|
| 265 |
|
367 |
|
| 266 |
End Function
|
368 |
End Function
|
| 267 |
'---------------------------------------------------------------------------------------------------------------------------
|
369 |
'---------------------------------------------------------------------------------------------------------------------------
|
| 268 |
Function Get_CQ_Issues ( SSsql, OOrsCQ )
|
370 |
Function Get_CQ_Issues ( SSsql, OOrsCQ )
|
| 269 |
|
371 |
|
| 270 |
If OOrsCQ.State = 1 Then
|
372 |
If OOrsCQ.State = 1 Then
|
| 271 |
OOrsCQ.Close
|
373 |
OOrsCQ.Close
|
| 272 |
End If
|
374 |
End If
|
| 273 |
|
375 |
|
| 274 |
On Error Resume Next
|
376 |
On Error Resume Next
|
| 275 |
OOrsCQ.ActiveConnection = CQ_conn
|
377 |
OOrsCQ.ActiveConnection = CQ_conn
|
| 276 |
OOrsCQ.Source = SSsql
|
378 |
OOrsCQ.Source = SSsql
|
| 277 |
OOrsCQ.CursorType = 0
|
379 |
OOrsCQ.CursorType = 0
|
| 278 |
OOrsCQ.CursorLocation = 2
|
380 |
OOrsCQ.CursorLocation = 2
|
| 279 |
OOrsCQ.LockType = 3
|
381 |
OOrsCQ.LockType = 3
|
| 280 |
OOrsCQ.Open()
|
382 |
OOrsCQ.Open()
|
| 281 |
Get_CQ_Issues = Err.Number
|
383 |
Get_CQ_Issues = Err.Number
|
| 282 |
|
384 |
|
| 283 |
End Function
|
385 |
End Function
|
| 284 |
'--------------------------------------------------------------------------------------------------------------------------
|
386 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 285 |
Public Function TextToHTML ( sString )
|
387 |
Public Function TextToHTML ( sString )
|
| 286 |
Dim mString
|
388 |
Dim mString
|
| 287 |
|
389 |
|
| 288 |
If (sString = "") OR IsNull(sString) Then Exit Function
|
390 |
If (sString = "") OR IsNull(sString) Then Exit Function
|
| 289 |
|
391 |
|
| 290 |
mString = Server.HTMLEncode( sString )
|
392 |
mString = Server.HTMLEncode( sString )
|
| 291 |
mString = Replace(mString, VBNewLine, "<br>")
|
393 |
mString = Replace(mString, VBNewLine, "<br>")
|
| 292 |
|
394 |
|
| 293 |
TextToHTML = mString
|
395 |
TextToHTML = mString
|
| 294 |
End Function
|
396 |
End Function
|
| 295 |
'--------------------------------------------------------------------------------------------------------------------------
|
397 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 296 |
|
398 |
|
| 297 |
Sub GetFormDetails ( nSourceRtagId, ByRef outobjDetails )
|
399 |
Sub GetFormDetails ( nSourceRtagId, ByRef outobjDetails )
|
| 298 |
Dim rsQry, query
|
400 |
Dim rsQry, query
|
| 299 |
|
401 |
|
| 300 |
' Exit if nSourceRtagId is empty
|
402 |
' Exit if nSourceRtagId is empty
|
| 301 |
If nSourceRtagId = "" Then Exit Sub
|
403 |
If nSourceRtagId = "" Then Exit Sub
|
| 302 |
|
404 |
|
| 303 |
OraDatabase.Parameters.Add "SOURCE_RTAG_ID", nSourceRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
405 |
OraDatabase.Parameters.Add "SOURCE_RTAG_ID", nSourceRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 304 |
|
406 |
|
| 305 |
query = _
|
407 |
query = _
|
| 306 |
" SELECT pr.PROJ_NAME ||' > '|| rt.RTAG_NAME AS LOCATION, "&_
|
408 |
" SELECT pr.PROJ_NAME ||' > '|| rt.RTAG_NAME AS LOCATION, "&_
|
| 307 |
" rt.OFFICIAL, pr.PROJ_ID, rt.RTAG_ID"&_
|
409 |
" rt.OFFICIAL, pr.PROJ_ID, rt.RTAG_ID"&_
|
| 308 |
" FROM RELEASE_TAGS rt,"&_
|
410 |
" FROM RELEASE_TAGS rt,"&_
|
| 309 |
" PROJECTS pr"&_
|
411 |
" PROJECTS pr"&_
|
| 310 |
" WHERE rt.PROJ_ID = pr.PROJ_ID"&_
|
412 |
" WHERE rt.PROJ_ID = pr.PROJ_ID"&_
|
| 311 |
" AND rt.RTAG_ID = :SOURCE_RTAG_ID"
|
413 |
" AND rt.RTAG_ID = :SOURCE_RTAG_ID"
|
| 312 |
|
414 |
|
| 313 |
Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
|
415 |
Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
|
| 314 |
|
416 |
|
| 315 |
OraDatabase.Parameters.Remove "SOURCE_RTAG_ID"
|
417 |
OraDatabase.Parameters.Remove "SOURCE_RTAG_ID"
|
| 316 |
|
418 |
|
| 317 |
If rsQry.RecordCount > 0 Then
|
419 |
If rsQry.RecordCount > 0 Then
|
| 318 |
outobjDetails.Item ("location") = rsQry("location")
|
420 |
outobjDetails.Item ("location") = rsQry("location")
|
| 319 |
outobjDetails.Item ("official") = rsQry("official")
|
421 |
outobjDetails.Item ("official") = rsQry("official")
|
| 320 |
outobjDetails.Item ("proj_id") = rsQry("proj_id")
|
422 |
outobjDetails.Item ("proj_id") = rsQry("proj_id")
|
| 321 |
outobjDetails.Item ("rtag_id") = rsQry("rtag_id")
|
423 |
outobjDetails.Item ("rtag_id") = rsQry("rtag_id")
|
| 322 |
Else
|
424 |
Else
|
| 323 |
Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. nSourceRtagId="& nSourceRtagId
|
425 |
Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. nSourceRtagId="& nSourceRtagId
|
| 324 |
End If
|
426 |
End If
|
| 325 |
|
427 |
|
| 326 |
rsQry.Close
|
428 |
rsQry.Close
|
| 327 |
Set rsQry = Nothing
|
429 |
Set rsQry = Nothing
|
| 328 |
End Sub
|
430 |
End Sub
|
| 329 |
'--------------------------------------------------------------------------------------------------------------------------
|
431 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 330 |
Sub GetDiffStateIcon( nDiffState, outIcon )
|
432 |
Sub GetDiffStateIcon( nDiffState, outIcon )
|
| 331 |
|
433 |
|
| 332 |
Select Case nDiffState
|
434 |
Select Case nDiffState
|
| 333 |
Case "U"
|
435 |
Case "U"
|
| 334 |
outIcon = LIMG_UPDATED
|
436 |
outIcon = LIMG_UPDATED
|
| 335 |
Case "UW"
|
437 |
Case "UW"
|
| 336 |
outIcon = LIMG_UPDATED
|
438 |
outIcon = LIMG_UPDATED
|
| 337 |
Case "A"
|
439 |
Case "A"
|
| 338 |
outIcon = LIMG_ADDED
|
440 |
outIcon = LIMG_ADDED
|
| 339 |
Case "R"
|
441 |
Case "R"
|
| 340 |
outIcon = LIMG_REMOVED
|
442 |
outIcon = LIMG_REMOVED
|
| 341 |
Case "UR"
|
443 |
Case "UR"
|
| 342 |
outIcon = LIMG_RIPPLED
|
444 |
outIcon = LIMG_RIPPLED
|
| 343 |
Case Else
|
445 |
Case Else
|
| 344 |
outIcon = ""
|
446 |
outIcon = ""
|
| 345 |
End Select
|
447 |
End Select
|
| 346 |
|
448 |
|
| 347 |
End Sub
|
449 |
End Sub
|
| 348 |
'--------------------------------------------------------------------------------------------------------------------------
|
450 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 349 |
Function Get_Record_Count ( SSsql )
|
451 |
Function Get_Record_Count ( SSsql )
|
| 350 |
Dim rsTemp
|
452 |
Dim rsTemp
|
| 351 |
Set rsTemp = OraDatabase.DbCreateDynaset( "SELECT COUNT(*) as record_count FROM "& SSsql , cint(0))
|
453 |
Set rsTemp = OraDatabase.DbCreateDynaset( "SELECT COUNT(*) as record_count FROM "& SSsql , cint(0))
|
| 352 |
|
454 |
|
| 353 |
If (NOT rsTemp.BOF) AND (NOT rsTemp.EOF) Then
|
455 |
If (NOT rsTemp.BOF) AND (NOT rsTemp.EOF) Then
|
| 354 |
Get_Record_Count = rsTemp("record_count")
|
456 |
Get_Record_Count = rsTemp("record_count")
|
| 355 |
Else
|
457 |
Else
|
| 356 |
Get_Record_Count = 0
|
458 |
Get_Record_Count = 0
|
| 357 |
End If
|
459 |
End If
|
| 358 |
rsTemp.Close
|
460 |
rsTemp.Close
|
| 359 |
Set rsTemp = nothing
|
461 |
Set rsTemp = nothing
|
| 360 |
End Function
|
462 |
End Function
|
| 361 |
'--------------------------------------------------------------------------------------------------------------------------
|
463 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 362 |
' We need a way of discriminating between versions in the destination release that are pending, and those that are officially
|
464 |
' We need a way of discriminating between versions in the destination release that are pending, and those that are officially
|
| 363 |
' in the release. This function allows us to do that on the fly within the VBSCRIPT HTML generating code, indicating specifically
|
465 |
' in the release. This function allows us to do that on the fly within the VBSCRIPT HTML generating code, indicating specifically
|
| 364 |
' if the given PV_ID reflects a pending additive merge.
|
466 |
' if the given PV_ID reflects a pending additive merge.
|
| 365 |
Function Is_Pending_Add(NNrtag_id, NNpv_id)
|
467 |
Function Is_Pending_Add(NNrtag_id, NNpv_id)
|
| 366 |
If IsNull(NNrtag_id) OR IsNull(NNpv_id) Then
|
468 |
If IsNull(NNrtag_id) OR IsNull(NNpv_id) Then
|
| 367 |
Is_Pending_Add = 0
|
469 |
Is_Pending_Add = 0
|
| 368 |
Else
|
470 |
Else
|
| 369 |
Is_Pending_Add = Get_Record_Count( "PLANNED pl WHERE pl.rtag_id = " & NNrtag_id & " AND pl.pv_id = " & NNpv_id & " AND pl.operation = 'A'" )
|
471 |
Is_Pending_Add = Get_Record_Count( "PLANNED pl WHERE pl.rtag_id = " & NNrtag_id & " AND pl.pv_id = " & NNpv_id & " AND pl.operation = 'A'" )
|
| 370 |
End If
|
472 |
End If
|
| 371 |
End Function
|
473 |
End Function
|
| 372 |
'--------------------------------------------------------------------------------------------------------------------------
|
474 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 373 |
' We need a way of discriminating between versions in the destination release that are pending, and those that are officially
|
475 |
' We need a way of discriminating between versions in the destination release that are pending, and those that are officially
|
| 374 |
' in the release. This function allows us to do that on the fly within the VBSCRIPT HTML generating code, indicating specifically
|
476 |
' in the release. This function allows us to do that on the fly within the VBSCRIPT HTML generating code, indicating specifically
|
| 375 |
' if the given PV_ID reflects a pending subtractive merge.
|
477 |
' if the given PV_ID reflects a pending subtractive merge.
|
| 376 |
Function Is_Pending_Sub(NNrtag_id, NNpv_id)
|
478 |
Function Is_Pending_Sub(NNrtag_id, NNpv_id)
|
| 377 |
If IsNull(NNrtag_id) OR IsNull(NNpv_id) Then
|
479 |
If IsNull(NNrtag_id) OR IsNull(NNpv_id) Then
|
| 378 |
Is_Pending_Sub = 0
|
480 |
Is_Pending_Sub = 0
|
| 379 |
Else
|
481 |
Else
|
| 380 |
Is_Pending_Sub = Get_Record_Count( "PLANNED pl WHERE pl.rtag_id = " & NNrtag_id & " AND pl.pv_id = " & NNpv_id & " AND pl.operation = 'S'" )
|
482 |
Is_Pending_Sub = Get_Record_Count( "PLANNED pl WHERE pl.rtag_id = " & NNrtag_id & " AND pl.pv_id = " & NNpv_id & " AND pl.operation = 'S'" )
|
| 381 |
End If
|
483 |
End If
|
| 382 |
End Function
|
484 |
End Function
|
| 383 |
|
485 |
|
| 384 |
'--------------------------------------------------------------------------------------------------------------------------
|
486 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 385 |
|
487 |
|
| 386 |
|
488 |
|
| 387 |
Sub MergePackages (releaseMode)
|
489 |
Sub MergePackages (releaseMode)
|
| 388 |
Dim aFullList, aAddPkgList, aRemovePkgList, dAddPkgList, dRemovePkgList, PvId
|
490 |
Dim aFullList, aAddPkgList, aRemovePkgList, dAddPkgList, dRemovePkgList, PvId
|
| 389 |
Dim OraParameter
|
491 |
Dim OraParameter
|
| 390 |
Dim rc
|
492 |
Dim rc
|
| 391 |
|
493 |
|
| 392 |
' Business Rules restricting the use of the merge feature...
|
494 |
' Business Rules restricting the use of the merge feature...
|
| 393 |
' Bypass merge if the destination release is in closed or archive mode, or if user does not have
|
495 |
' Bypass merge if the destination release is in closed or archive mode, or if user does not have
|
| 394 |
' merge permissions
|
496 |
' merge permissions
|
| 395 |
If releaseMode <> enumDB_RELEASE_IN_CLOSED_MODE AND releaseMode <> enumDB_RELEASE_IN_ARCHIVE_MODE _
|
497 |
If releaseMode <> enumDB_RELEASE_IN_CLOSED_MODE AND releaseMode <> enumDB_RELEASE_IN_ARCHIVE_MODE _
|
| 396 |
AND (objAccessControl.IsActive("MergeRelease")) THEN
|
498 |
AND (objAccessControl.IsActive("MergeRelease")) THEN
|
| 397 |
|
499 |
|
| 398 |
Set dAddPkgList = CreateObject("Scripting.Dictionary")
|
500 |
Set dAddPkgList = CreateObject("Scripting.Dictionary")
|
| 399 |
Set dRemovePkgList = CreateObject("Scripting.Dictionary")
|
501 |
Set dRemovePkgList = CreateObject("Scripting.Dictionary")
|
| 400 |
|
502 |
|
| 401 |
'--- Get Add Packages ---
|
503 |
'--- Get Add Packages ---
|
| 402 |
' Get full list of "addpkg" parameter
|
504 |
' Get full list of "addpkg" parameter
|
| 403 |
aFullList = Split ( Replace( Request("addpkg"), " ", "" ), "," )
|
505 |
aFullList = Split ( Replace( Request("addpkg"), " ", "" ), "," )
|
| 404 |
|
506 |
|
| 405 |
' Clean empty parameters
|
507 |
' Clean empty parameters
|
| 406 |
For Each PvId In aFullList
|
508 |
For Each PvId In aFullList
|
| 407 |
If PvId <> "" Then
|
509 |
If PvId <> "" Then
|
| 408 |
dAddPkgList.Add CStr( PvId ), Empty
|
510 |
dAddPkgList.Add CStr( PvId ), Empty
|
| 409 |
End If
|
511 |
End If
|
| 410 |
Next
|
512 |
Next
|
| 411 |
|
513 |
|
| 412 |
aFullList = NULL
|
514 |
aFullList = NULL
|
| 413 |
aAddPkgList = dAddPkgList.Keys
|
515 |
aAddPkgList = dAddPkgList.Keys
|
| 414 |
|
516 |
|
| 415 |
'--- Get Remove Packages ---
|
517 |
'--- Get Remove Packages ---
|
| 416 |
' Get full list of "removepkg" parameter
|
518 |
' Get full list of "removepkg" parameter
|
| 417 |
aFullList = Split ( Replace( Request("removepkg"), " ", "" ), "," )
|
519 |
aFullList = Split ( Replace( Request("removepkg"), " ", "" ), "," )
|
| 418 |
|
520 |
|
| 419 |
' Clean empty parameters
|
521 |
' Clean empty parameters
|
| 420 |
For Each PvId In aFullList
|
522 |
For Each PvId In aFullList
|
| 421 |
If PvId <> "" Then
|
523 |
If PvId <> "" Then
|
| 422 |
dRemovePkgList.Add CStr( PvId ), Empty
|
524 |
dRemovePkgList.Add CStr( PvId ), Empty
|
| 423 |
End If
|
525 |
End If
|
| 424 |
Next
|
526 |
Next
|
| 425 |
|
527 |
|
| 426 |
aFullList = NULL
|
528 |
aFullList = NULL
|
| 427 |
aRemovePkgList = dRemovePkgList.Keys
|
529 |
aRemovePkgList = dRemovePkgList.Keys
|
| 428 |
|
530 |
|
| 429 |
'-- Add package List to release --
|
531 |
'-- Add package List to release --
|
| 430 |
OraDatabase.Parameters.Add "PV_ID", NULL, ORAPARM_INPUT, ORATYPE_NUMBER
|
532 |
OraDatabase.Parameters.Add "PV_ID", NULL, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 431 |
OraDatabase.Parameters.Add "VIEW_ID", NULL, ORAPARM_BOTH, ORATYPE_NUMBER
|
533 |
OraDatabase.Parameters.Add "VIEW_ID", NULL, ORAPARM_BOTH, ORATYPE_NUMBER
|
| 432 |
OraDatabase.Parameters.Add "RTAG_A", Request("rtagA"), ORAPARM_INPUT, ORATYPE_NUMBER
|
534 |
OraDatabase.Parameters.Add "RTAG_A", Request("rtagA"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 433 |
OraDatabase.Parameters.Add "RTAG_B", Request("rtagB"), ORAPARM_INPUT, ORATYPE_NUMBER
|
535 |
OraDatabase.Parameters.Add "RTAG_B", Request("rtagB"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 434 |
OraDatabase.Parameters.Add "PROJB", objRelCollectorB.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
536 |
OraDatabase.Parameters.Add "PROJB", objRelCollectorB.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 435 |
OraDatabase.Parameters.Add "COMMENTS", "Merging from "& objRelCollectorA.Item("location") &" to "& objRelCollectorB.Item("location"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
537 |
OraDatabase.Parameters.Add "COMMENTS", "Merging from "& objRelCollectorA.Item("location") &" to "& objRelCollectorB.Item("location"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 436 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
538 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 437 |
OraDatabase.Parameters.Add "OPERATION",NULL, ORAPARM_INPUT, ORATYPE_CHAR
|
539 |
OraDatabase.Parameters.Add "OPERATION",NULL, ORAPARM_INPUT, ORATYPE_CHAR
|
| 438 |
|
540 |
|
| 439 |
Set OraParameter = OraDatabase.Parameters
|
541 |
Set OraParameter = OraDatabase.Parameters
|
| 440 |
|
542 |
|
| 441 |
|
543 |
|
| 442 |
On Error Resume Next
|
544 |
On Error Resume Next
|
| 443 |
|
- |
|
| 444 |
|
- |
|
| 445 |
' Begin Database entry
|
- |
|
| 446 |
objEH.TryORA ( OraSession )
|
- |
|
| 447 |
|
- |
|
| 448 |
'-- Add Packages --
|
- |
|
| 449 |
OraParameter("OPERATION").Value = "A"
|
- |
|
| 450 |
For Each PvId In aAddPkgList
|
- |
|
| 451 |
OraParameter("PV_ID").Value = PvId
|
- |
|
| 452 |
' DEVI-45275, Merge into Planned (pending) table instead of release_content table.
|
- |
|
| 453 |
If Err.Number = 0 Then
|
- |
|
| 454 |
OraDatabase.ExecuteSQL _
|
- |
|
| 455 |
"BEGIN "&_
|
- |
|
| 456 |
" :VIEW_ID := PK_RELEASE.GET_PACKAGE_VIEW ( :PV_ID, :RTAG_A ); "&_
|
- |
|
| 457 |
" PK_PLANNED.MERGE_PACKAGE ( :PV_ID, :VIEW_ID, :RTAG_B, :USER_ID, :OPERATION ); "&_
|
- |
|
| 458 |
"END;"
|
- |
|
| 459 |
End If
|
- |
|
| 460 |
Next
|
- |
|
| 461 |
|
545 |
|
| 462 |
'-- Remove Packages --
|
- |
|
| 463 |
If Err.Number = 0 Then
|
- |
|
| 464 |
OraParameter("OPERATION").Value = "S"
|
- |
|
| 465 |
For Each PvId In aRemovePkgList
|
- |
|
| 466 |
OraParameter("PV_ID").Value = PvId
|
- |
|
| 467 |
|
546 |
|
| - |
|
547 |
' Begin Database entry
|
| - |
|
548 |
objEH.TryORA ( OraSession )
|
| - |
|
549 |
|
| - |
|
550 |
'-- Add Packages --
|
| - |
|
551 |
OraParameter("OPERATION").Value = "A"
|
| - |
|
552 |
For Each PvId In aAddPkgList
|
| - |
|
553 |
OraParameter("PV_ID").Value = PvId
|
| - |
|
554 |
' DEVI-45275, Merge into Planned (pending) table instead of release_content table.
|
| 468 |
If Err.Number = 0 Then
|
555 |
If Err.Number = 0 Then
|
| 469 |
' Does this PV_ID exist in the destination release's planned table?
|
- |
|
| 470 |
rc = Get_Record_Count ("PLANNED pl WHERE pl.pv_id = " & PvId & " AND pl.rtag_id = " & Request("rtagB") )
|
- |
|
| 471 |
If rc > 0 Then
|
- |
|
| 472 |
' Given that merging now merges into pending, the merge page may be used to remove items that have
|
- |
|
| 473 |
' previously been merged but have not yet been committed to the destination release. For these,
|
- |
|
| 474 |
' we cannot call PK_RELEASE.GET_PACKAGE_VIEW(). We have to call PK_PLANNED.GET_PACKAGE_VIEW() instead.
|
- |
|
| 475 |
OraDatabase.ExecuteSQL _
|
556 |
OraDatabase.ExecuteSQL _
|
| 476 |
"BEGIN "&_
|
- |
|
| 477 |
" :VIEW_ID := PK_PLANNED.GET_PACKAGE_VIEW ( :PV_ID, :RTAG_B ); "&_
|
- |
|
| 478 |
" PK_PLANNED.MERGE_PACKAGE ( :PV_ID, :VIEW_ID, :RTAG_B, :USER_ID, :OPERATION ); "&_
|
- |
|
| 479 |
"END;"
|
- |
|
| 480 |
Else
|
- |
|
| 481 |
' DEVI-45275, Merge into Planned (pending) table instead of release_content table.
|
- |
|
| 482 |
OraDatabase.ExecuteSQL _
|
- |
|
| 483 |
"BEGIN "&_
|
557 |
"BEGIN "&_
|
| 484 |
" :VIEW_ID := PK_RELEASE.GET_PACKAGE_VIEW ( :PV_ID, :RTAG_B ); "&_
|
558 |
" :VIEW_ID := PK_RELEASE.GET_PACKAGE_VIEW ( :PV_ID, :RTAG_A ); "&_
|
| 485 |
" PK_PLANNED.MERGE_PACKAGE ( :PV_ID, :VIEW_ID, :RTAG_B, :USER_ID, :OPERATION ); "&_
|
559 |
" PK_PLANNED.MERGE_PACKAGE ( :PV_ID, :VIEW_ID, :RTAG_B, :USER_ID, :OPERATION ); "&_
|
| 486 |
"END;"
|
560 |
"END;"
|
| 487 |
End If
|
- |
|
| 488 |
End If
|
561 |
End If
|
| 489 |
Next
|
562 |
Next
|
| 490 |
|
563 |
|
| 491 |
'-- Log Project Merge Action
|
564 |
'-- Remove Packages --
|
| 492 |
If Err.Number = 0 Then
|
565 |
If Err.Number = 0 Then
|
| - |
|
566 |
OraParameter("OPERATION").Value = "S"
|
| - |
|
567 |
For Each PvId In aRemovePkgList
|
| - |
|
568 |
OraParameter("PV_ID").Value = PvId
|
| - |
|
569 |
|
| - |
|
570 |
If Err.Number = 0 Then
|
| - |
|
571 |
' Does this PV_ID exist in the destination release's planned table?
|
| - |
|
572 |
rc = Get_Record_Count ("PLANNED pl WHERE pl.pv_id = " & PvId & " AND pl.rtag_id = " & Request("rtagB") )
|
| - |
|
573 |
If rc > 0 Then
|
| - |
|
574 |
' Given that merging now merges into pending, the merge page may be used to remove items that have
|
| - |
|
575 |
' previously been merged but have not yet been committed to the destination release. For these,
|
| - |
|
576 |
' we cannot call PK_RELEASE.GET_PACKAGE_VIEW(). We have to call PK_PLANNED.GET_PACKAGE_VIEW() instead.
|
| - |
|
577 |
OraDatabase.ExecuteSQL _
|
| - |
|
578 |
"BEGIN "&_
|
| - |
|
579 |
" :VIEW_ID := PK_PLANNED.GET_PACKAGE_VIEW ( :PV_ID, :RTAG_B ); "&_
|
| - |
|
580 |
" PK_PLANNED.MERGE_PACKAGE ( :PV_ID, :VIEW_ID, :RTAG_B, :USER_ID, :OPERATION ); "&_
|
| - |
|
581 |
"END;"
|
| - |
|
582 |
Else
|
| - |
|
583 |
' DEVI-45275, Merge into Planned (pending) table instead of release_content table.
|
| 493 |
OraDatabase.ExecuteSQL _
|
584 |
OraDatabase.ExecuteSQL _
|
| - |
|
585 |
"BEGIN "&_
|
| - |
|
586 |
" :VIEW_ID := PK_RELEASE.GET_PACKAGE_VIEW ( :PV_ID, :RTAG_B ); "&_
|
| 494 |
"BEGIN LOG_PROJECT_ACTION ( :PROJB, 'merge_release', :USER_ID, :COMMENTS, :RTAG_B ); END;"
|
587 |
" PK_PLANNED.MERGE_PACKAGE ( :PV_ID, :VIEW_ID, :RTAG_B, :USER_ID, :OPERATION ); "&_
|
| - |
|
588 |
"END;"
|
| - |
|
589 |
End If
|
| 495 |
End If
|
590 |
End If
|
| - |
|
591 |
Next
|
| 496 |
|
592 |
|
| - |
|
593 |
'-- Log Project Merge Action
|
| - |
|
594 |
If Err.Number = 0 Then
|
| - |
|
595 |
OraDatabase.ExecuteSQL _
|
| - |
|
596 |
"BEGIN LOG_PROJECT_ACTION ( :PROJB, 'merge_release', :USER_ID, :COMMENTS, :RTAG_B ); END;"
|
| 497 |
End If
|
597 |
End If
|
| 498 |
|
598 |
|
| 499 |
objEH.CatchORA ( OraSession ) ' sets up LastOraFailed as appropriate
|
599 |
End If
|
| 500 |
|
600 |
|
| - |
|
601 |
objEH.CatchORA ( OraSession ) ' sets up LastOraFailed as appropriate
|
| - |
|
602 |
|
| 501 |
' NOTE, The Touch_Release stored procedure does a commit itself, so we should not do it unless all the ExecuteSQL's we
|
603 |
' NOTE, The Touch_Release stored procedure does a commit itself, so we should not do it unless all the ExecuteSQL's we
|
| 502 |
' have just performed, were successful
|
604 |
' have just performed, were successful
|
| 503 |
If objEH.LastOraFailed = FALSE Then
|
605 |
If objEH.LastOraFailed = FALSE Then
|
| 504 |
'-- Force package state recalculate
|
606 |
'-- Force package state recalculate
|
| 505 |
objEH.TryORA ( OraSession )
|
607 |
objEH.TryORA ( OraSession )
|
| 506 |
OraDatabase.ExecuteSQL _
|
608 |
OraDatabase.ExecuteSQL _
|
| 507 |
"BEGIN "&_
|
609 |
"BEGIN "&_
|
| 508 |
" TOUCH_RELEASE ( :RTAG_B ); "&_
|
610 |
" TOUCH_RELEASE ( :RTAG_B ); "&_
|
| 509 |
"END;"
|
611 |
"END;"
|
| 510 |
objEH.CatchORA ( OraSession )
|
612 |
objEH.CatchORA ( OraSession )
|
| 511 |
End If
|
613 |
End If
|
| 512 |
|
614 |
|
| 513 |
Set OraParameter = Nothing
|
615 |
Set OraParameter = Nothing
|
| 514 |
OraDatabase.Parameters.Remove "PV_ID"
|
616 |
OraDatabase.Parameters.Remove "PV_ID"
|
| 515 |
OraDatabase.Parameters.Remove "VIEW_ID"
|
617 |
OraDatabase.Parameters.Remove "VIEW_ID"
|
| 516 |
OraDatabase.Parameters.Remove "RTAG_A"
|
618 |
OraDatabase.Parameters.Remove "RTAG_A"
|
| 517 |
OraDatabase.Parameters.Remove "RTAG_B"
|
619 |
OraDatabase.Parameters.Remove "RTAG_B"
|
| 518 |
OraDatabase.Parameters.Remove "USER_ID"
|
620 |
OraDatabase.Parameters.Remove "USER_ID"
|
| 519 |
OraDatabase.Parameters.Remove "PROJB"
|
621 |
OraDatabase.Parameters.Remove "PROJB"
|
| 520 |
OraDatabase.Parameters.Remove "COMMENTS"
|
622 |
OraDatabase.Parameters.Remove "COMMENTS"
|
| 521 |
OraDatabase.Parameters.Remove "OPERATION"
|
623 |
OraDatabase.Parameters.Remove "OPERATION"
|
| 522 |
'Response.write "<br>"& sAddPkgList &"-"& dAddPkgList.Count &"-"& UBound( aFullList )
|
624 |
'Response.write "<br>"& sAddPkgList &"-"& dAddPkgList.Count &"-"& UBound( aFullList )
|
| 523 |
End If
|
625 |
End If
|
| 524 |
End Sub
|
626 |
End Sub
|
| 525 |
'--------------------------------------------------------------------------------------------------------------------------
|
627 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 526 |
Function AddTrailingZeros(byval n, byval count)
|
628 |
Function AddTrailingZeros(byval n, byval count)
|
| 527 |
if len(n) >= count then
|
629 |
if len(n) >= count then
|
| 528 |
AddTrailingZeros = n
|
630 |
AddTrailingZeros = n
|
| 529 |
exit function
|
631 |
exit function
|
| 530 |
end if
|
632 |
end if
|
| 531 |
|
633 |
|
| 532 |
dim c, s, i
|
634 |
dim c, s, i
|
| 533 |
c = count - len(n)
|
635 |
c = count - len(n)
|
| 534 |
|
636 |
|
| 535 |
for i = 1 to c
|
637 |
for i = 1 to c
|
| 536 |
s = s & "0"
|
638 |
s = s & "0"
|
| 537 |
next
|
639 |
next
|
| 538 |
s = cstr(n) & s
|
640 |
s = cstr(n) & s
|
| 539 |
|
641 |
|
| 540 |
AddTrailingZeros = s
|
642 |
AddTrailingZeros = s
|
| 541 |
End function
|
643 |
End function
|
| - |
|
644 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
| - |
|
645 |
' Function returns the number of imported jira issues
|
| - |
|
646 |
' and builds a string suitable for querying the jira issues database
|
| - |
|
647 |
Function Get_JIRA_Package_Issues ( NNpv_id, SSsql )
|
| - |
|
648 |
Dim rsTemp, sqlstr, JIRAIss, retVal
|
| - |
|
649 |
|
| - |
|
650 |
JIRAIss = "'-1'"
|
| - |
|
651 |
sqlstr = "SELECT iss_key FROM JIRA_ISSUES WHERE pv_id="& NNpv_id
|
| - |
|
652 |
|
| - |
|
653 |
Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
|
| - |
|
654 |
retVal = rsTemp.RecordCount
|
| - |
|
655 |
|
| - |
|
656 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
| - |
|
657 |
JIRAIss = JIRAIss &",'"& rsTemp("iss_key")&"'"
|
| - |
|
658 |
rsTemp.MoveNext
|
| - |
|
659 |
WEnd
|
| - |
|
660 |
|
| - |
|
661 |
SSsql = "SELECT I.pkey AS iss_num, I.summary, ISS.pname AS Status, IT.pname as issue_type, PR.pname as Priority, R.PNAME as RESOLUTION"&_
|
| - |
|
662 |
" FROM jiraissue I, issuestatus ISS, issuetype IT, resolution R, priority PR "&_
|
| - |
|
663 |
" WHERE I.pkey IN ("& JIRAIss &") "&_
|
| - |
|
664 |
" AND I.issuestatus = ISS.ID "&_
|
| - |
|
665 |
" AND I.RESOLUTION = R.ID "&_
|
| - |
|
666 |
" AND IT.ID = I.issuetype "&_
|
| - |
|
667 |
" AND PR.ID = I.PRIORITY "
|
| - |
|
668 |
|
| - |
|
669 |
rsTemp.Close()
|
| - |
|
670 |
Set rsTemp = nothing
|
| - |
|
671 |
|
| - |
|
672 |
Get_JIRA_Package_Issues = retVal
|
| - |
|
673 |
|
| - |
|
674 |
End Function
|
| - |
|
675 |
|
| - |
|
676 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
| - |
|
677 |
Function Get_JIRA_Issues ( SSsql, OOrsCQ )
|
| - |
|
678 |
If OOrsCQ.State = 1 Then
|
| - |
|
679 |
OOrsCQ.Close()
|
| - |
|
680 |
End If
|
| - |
|
681 |
|
| - |
|
682 |
On Error Resume Next
|
| - |
|
683 |
OOrsCQ.ActiveConnection = JIRA_conn
|
| - |
|
684 |
OOrsCQ.Source = SSsql
|
| - |
|
685 |
OOrsCQ.CursorType = 0
|
| - |
|
686 |
OOrsCQ.CursorLocation = 3
|
| - |
|
687 |
OOrsCQ.LockType = 3
|
| - |
|
688 |
OOrsCQ.Open()
|
| - |
|
689 |
|
| - |
|
690 |
Get_JIRA_Issues = Err.Number
|
| - |
|
691 |
|
| - |
|
692 |
End Function
|
| 542 |
'--------------------------------------------------------------------------------------------------------------------------
|
693 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 543 |
%>
|
694 |
%>
|
| 544 |
<%
|
695 |
<%
|
| 545 |
'------------ RUN BEFORE PAGE RENDER ----------
|
696 |
'------------ RUN BEFORE PAGE RENDER ----------
|
| 546 |
If Request("btn") = "Exit" Then
|
697 |
If Request("btn") = "Exit" Then
|
| 547 |
Call OpenInWindow ( "index.asp" )
|
698 |
Call OpenInWindow ( "index.asp" )
|
| 548 |
End If
|
699 |
End If
|
| 549 |
|
700 |
|
| 550 |
' Get release details
|
701 |
' Get release details
|
| 551 |
Call GetFormDetails ( parRtagA, objRelCollectorA )
|
702 |
Call GetFormDetails ( parRtagA, objRelCollectorA )
|
| 552 |
Call GetFormDetails ( parRtagB, objRelCollectorB )
|
703 |
Call GetFormDetails ( parRtagB, objRelCollectorB )
|
| 553 |
|
704 |
|
| 554 |
|
705 |
|
| 555 |
|
- |
|
| 556 |
|
- |
|
| 557 |
If (Request("btn") = "Merge") Then
|
706 |
If (Request("btn") = "Merge") Then
|
| 558 |
Call MergePackages ( objRelCollectorB.Item("official") )
|
707 |
Call MergePackages ( objRelCollectorB.Item("official") )
|
| 559 |
End If
|
708 |
End If
|
| 560 |
|
709 |
|
| 561 |
If Request("btn") = "Swap Compare" Then
|
710 |
If Request("btn") = "Swap Compare" Then
|
| 562 |
Call OpenInWindow ( ScriptName &"?rtagA="& parRtagB &"&rtagB="& parRtagA )
|
711 |
Call OpenInWindow ( ScriptName &"?rtagA="& parRtagB &"&rtagB="& parRtagA )
|
| 563 |
End If
|
712 |
End If
|
| 564 |
|
713 |
|
| 565 |
If Request("btn") = "Hide" Then
|
714 |
If Request("btn") = "Hide" Then
|
| 566 |
' Store filter in cookie
|
715 |
' Store filter in cookie
|
| 567 |
Response.Cookies(enum_RELMGR_COOKIE_DOMAIN)(COOKIE_HIDE_DIFF_FILTER) = Request("difilter")
|
716 |
Response.Cookies(enum_RELMGR_COOKIE_DOMAIN)(COOKIE_HIDE_DIFF_FILTER) = Request("difilter")
|
| 568 |
End If
|
717 |
End If
|
| 569 |
|
718 |
|
| 570 |
|
719 |
|
| 571 |
Call GetDiffFilterValues ( dDiffFilter )
|
720 |
Call GetDiffFilterValues ( dDiffFilter )
|
| 572 |
'----------------------------------------------
|
721 |
'----------------------------------------------
|
| Line 587... |
Line 736... |
| 587 |
<script language="JavaScript" type="text/javascript">
|
736 |
<script language="JavaScript" type="text/javascript">
|
| 588 |
<!--
|
737 |
<!--
|
| 589 |
|
738 |
|
| 590 |
function RequestReleaseCombo( paramString, rowId )
|
739 |
function RequestReleaseCombo( paramString, rowId )
|
| 591 |
{
|
740 |
{
|
| 592 |
var requestURL = 'RequestReleaseCombo.asp';
|
741 |
var requestURL = 'RequestReleaseCombo.asp';
|
| 593 |
|
742 |
|
| 594 |
// Set ajax divname
|
743 |
// Set ajax divname
|
| 595 |
ajaxdivname = rowId;
|
744 |
ajaxdivname = rowId;
|
| 596 |
|
745 |
|
| 597 |
//Append the name to search for to the requestURL
|
746 |
//Append the name to search for to the requestURL
|
| 598 |
var url = requestURL + paramString;
|
747 |
var url = requestURL + paramString;
|
| 599 |
|
748 |
|
| 600 |
//Progress
|
749 |
//Progress
|
| 601 |
//alert(MM_findObj( rowId ));
|
750 |
//alert(MM_findObj( rowId ));
|
| 602 |
|
751 |
|
| 603 |
//MM_findObj( rowId ).options[0] = new Option('Loading...','');
|
752 |
//MM_findObj( rowId ).options[0] = new Option('Loading...','');
|
| 604 |
//MM_findObj( rowId ).selectedIndex = 0;
|
753 |
//MM_findObj( rowId ).selectedIndex = 0;
|
| 605 |
rowId.options[0] = new Option('Loading...','');
|
754 |
rowId.options[0] = new Option('Loading...','');
|
| 606 |
rowId.selectedIndex = 0;
|
755 |
rowId.selectedIndex = 0;
|
| 607 |
|
756 |
|
| 608 |
|
757 |
|
| 609 |
//Create the xmlHttp object to use in the request
|
758 |
//Create the xmlHttp object to use in the request
|
| 610 |
//stateChangeHandler will fire when the state has changed, i.e. data is received back
|
759 |
//stateChangeHandler will fire when the state has changed, i.e. data is received back
|
| 611 |
// This is non-blocking (asynchronous)
|
760 |
// This is non-blocking (asynchronous)
|
| 612 |
xmlHttp = GetXmlHttpObject(stateComboChangeHandler);
|
761 |
xmlHttp = GetXmlHttpObject(stateComboChangeHandler);
|
| 613 |
|
762 |
|
| 614 |
//Send the xmlHttp get to the specified url
|
763 |
//Send the xmlHttp get to the specified url
|
| 615 |
xmlHttp_Get(xmlHttp, url);
|
764 |
xmlHttp_Get(xmlHttp, url);
|
| 616 |
}
|
765 |
}
|
| 617 |
|
766 |
|
| 618 |
|
767 |
|
| 619 |
function MergePackage ( pkga, pkgb, rowId )
|
768 |
function MergePackage ( pkga, pkgb, rowId )
|
| 620 |
{
|
769 |
{
|
| 621 |
// Set merge hidden field with new value
|
770 |
// Set merge hidden field with new value
|
| 622 |
MM_findObj( 'ADDPKG_' + rowId ).value = pkga;
|
771 |
MM_findObj( 'ADDPKG_' + rowId ).value = pkga;
|
| 623 |
|
772 |
|
| 624 |
var divA = MM_findObj( 'PVA' + rowId );
|
773 |
var divA = MM_findObj( 'PVA' + rowId );
|
| 625 |
var divB = MM_findObj( 'PVB' + rowId );
|
774 |
var divB = MM_findObj( 'PVB' + rowId );
|
| 626 |
|
775 |
|
| 627 |
// Set text equal
|
776 |
// Set text equal
|
| 628 |
divB.innerHTML = divA.innerHTML;
|
777 |
divB.innerHTML = divA.innerHTML;
|
| 629 |
|
778 |
|
| 630 |
// Set highlight to blank
|
779 |
// Set highlight to blank
|
| 631 |
divA.style.backgroundColor = '<%=LCOLOR_NOT_CHANGED%>';
|
780 |
divA.style.backgroundColor = '<%=LCOLOR_NOT_CHANGED%>';
|
| 632 |
divB.style.backgroundColor = '<%=LCOLOR_NOT_CHANGED%>';
|
781 |
divB.style.backgroundColor = '<%=LCOLOR_NOT_CHANGED%>';
|
| 633 |
|
782 |
|
| 634 |
// Set Change state icon to blank
|
783 |
// Set Change state icon to blank
|
| 635 |
MM_findObj( 'IMGSTATE' + rowId ).style.display = 'none';
|
784 |
MM_findObj( 'IMGSTATE' + rowId ).style.display = 'none';
|
| 636 |
|
785 |
|
| 637 |
// Remove Merge Button
|
786 |
// Remove Merge Button
|
| 638 |
MM_findObj( 'IMGMERGE' + rowId ).style.display = 'none';
|
787 |
MM_findObj( 'IMGMERGE' + rowId ).style.display = 'none';
|
| 639 |
MM_findObj( 'IMGREMOVE' + rowId ).style.display = 'none';
|
788 |
MM_findObj( 'IMGREMOVE' + rowId ).style.display = 'none';
|
| 640 |
|
789 |
|
| 641 |
// Show undo button
|
790 |
// Show undo button
|
| 642 |
MM_findObj( 'IMGUNDO' + rowId ).style.display = 'block';
|
791 |
MM_findObj( 'IMGUNDO' + rowId ).style.display = 'block';
|
| 643 |
}
|
792 |
}
|
| 644 |
|
793 |
|
| 645 |
|
794 |
|
| 646 |
function RemovePackage ( pkga, pkgb, rowId )
|
795 |
function RemovePackage ( pkga, pkgb, rowId )
|
| 647 |
{
|
796 |
{
|
| 648 |
// Set remove hidden field with new value
|
797 |
// Set remove hidden field with new value
|
| 649 |
MM_findObj( 'REMOVEPKG_' + rowId ).value = pkgb;
|
798 |
MM_findObj( 'REMOVEPKG_' + rowId ).value = pkgb;
|
| 650 |
|
799 |
|
| 651 |
var divA = MM_findObj( 'PVA' + rowId );
|
800 |
var divA = MM_findObj( 'PVA' + rowId );
|
| 652 |
var divB = MM_findObj( 'PVB' + rowId );
|
801 |
var divB = MM_findObj( 'PVB' + rowId );
|
| 653 |
|
802 |
|
| 654 |
// Set text equal
|
803 |
// Set text equal
|
| 655 |
divB.style.textDecoration = 'line-through';
|
804 |
divB.style.textDecoration = 'line-through';
|
| 656 |
|
805 |
|
| 657 |
// Set highlight to blank
|
806 |
// Set highlight to blank
|
| 658 |
if (MM_findObj( 'CHANGETYPE_' + rowId ).value != "A")
|
807 |
if (MM_findObj( 'CHANGETYPE_' + rowId ).value != "A")
|
| 659 |
{
|
808 |
{
|
| 660 |
divA.style.backgroundColor = '<%=LCOLOR_NOT_CHANGED%>';
|
809 |
divA.style.backgroundColor = '<%=LCOLOR_NOT_CHANGED%>';
|
| 661 |
}
|
810 |
}
|
| 662 |
divB.style.backgroundColor = '<%=LCOLOR_NOT_CHANGED%>';
|
811 |
divB.style.backgroundColor = '<%=LCOLOR_NOT_CHANGED%>';
|
| 663 |
|
812 |
|
| 664 |
// Set Change state icon to blank
|
813 |
// Set Change state icon to blank
|
| 665 |
MM_findObj( 'IMGSTATE' + rowId ).style.display = 'none';
|
814 |
MM_findObj( 'IMGSTATE' + rowId ).style.display = 'none';
|
| 666 |
|
815 |
|
| 667 |
// Remove Merge Button
|
816 |
// Remove Merge Button
|
| 668 |
MM_findObj( 'IMGMERGE' + rowId ).style.display = 'none';
|
817 |
MM_findObj( 'IMGMERGE' + rowId ).style.display = 'none';
|
| 669 |
MM_findObj( 'IMGREMOVE' + rowId ).style.display = 'none';
|
818 |
MM_findObj( 'IMGREMOVE' + rowId ).style.display = 'none';
|
| 670 |
|
819 |
|
| 671 |
// Show undo button
|
820 |
// Show undo button
|
| 672 |
MM_findObj( 'IMGUNDO' + rowId ).style.display = 'block';
|
821 |
MM_findObj( 'IMGUNDO' + rowId ).style.display = 'block';
|
| 673 |
}
|
822 |
}
|
| 674 |
|
823 |
|
| 675 |
|
824 |
|
| 676 |
|
825 |
|
| 677 |
function UndoPackage ( rowId )
|
826 |
function UndoPackage ( rowId )
|
| 678 |
{
|
827 |
{
|
| 679 |
// Set merge/remove hidden field with new value
|
828 |
// Set merge/remove hidden field with new value
|
| 680 |
MM_findObj( 'ADDPKG_' + rowId ).value = '';
|
829 |
MM_findObj( 'ADDPKG_' + rowId ).value = '';
|
| 681 |
MM_findObj( 'REMOVEPKG_' + rowId ).value = '';
|
830 |
MM_findObj( 'REMOVEPKG_' + rowId ).value = '';
|
| 682 |
|
831 |
|
| 683 |
var divA = MM_findObj( 'PVA' + rowId );
|
832 |
var divA = MM_findObj( 'PVA' + rowId );
|
| 684 |
var divB = MM_findObj( 'PVB' + rowId );
|
833 |
var divB = MM_findObj( 'PVB' + rowId );
|
| 685 |
|
834 |
|
| 686 |
// Set text equal
|
835 |
// Set text equal
|
| 687 |
divB.innerHTML = MM_findObj( 'UNDOPKG_' + rowId ).value;
|
836 |
divB.innerHTML = MM_findObj( 'UNDOPKG_' + rowId ).value;
|
| 688 |
divB.style.textDecoration = 'none';
|
837 |
divB.style.textDecoration = 'none';
|
| 689 |
|
838 |
|
| 690 |
|
839 |
|
| 691 |
// Set highlight to blank
|
840 |
// Set highlight to blank
|
| 692 |
divA.style.backgroundColor = MM_findObj( 'UNDOCOLORA_' + rowId ).value;
|
841 |
divA.style.backgroundColor = MM_findObj( 'UNDOCOLORA_' + rowId ).value;
|
| 693 |
divB.style.backgroundColor = MM_findObj( 'UNDOCOLORB_' + rowId ).value;
|
842 |
divB.style.backgroundColor = MM_findObj( 'UNDOCOLORB_' + rowId ).value;
|
| 694 |
|
843 |
|
| 695 |
// Set Change state icon to blank
|
844 |
// Set Change state icon to blank
|
| 696 |
MM_findObj( 'IMGSTATE' + rowId ).style.display = 'block';
|
845 |
MM_findObj( 'IMGSTATE' + rowId ).style.display = 'block';
|
| 697 |
|
846 |
|
| 698 |
// Remove Merge Button
|
847 |
// Remove Merge Button
|
| 699 |
var cht = MM_findObj( 'CHANGETYPE_' + rowId );
|
848 |
var cht = MM_findObj( 'CHANGETYPE_' + rowId );
|
| 700 |
|
849 |
|
| 701 |
if (cht.value == "R")
|
850 |
if (cht.value == "R")
|
| 702 |
{
|
851 |
{
|
| 703 |
MM_findObj( 'IMGMERGE' + rowId ).style.display = 'block';
|
852 |
MM_findObj( 'IMGMERGE' + rowId ).style.display = 'block';
|
| 704 |
}
|
853 |
}
|
| 705 |
else if ( (cht.value == "A") || (cht.value == "") )
|
854 |
else if ( (cht.value == "A") || (cht.value == "") )
|
| 706 |
{
|
855 |
{
|
| 707 |
MM_findObj( 'IMGREMOVE' + rowId ).style.display = 'block';
|
856 |
MM_findObj( 'IMGREMOVE' + rowId ).style.display = 'block';
|
| 708 |
}
|
857 |
}
|
| 709 |
else
|
858 |
else
|
| 710 |
{
|
859 |
{
|
| 711 |
MM_findObj( 'IMGMERGE' + rowId ).style.display = 'block';
|
860 |
MM_findObj( 'IMGMERGE' + rowId ).style.display = 'block';
|
| 712 |
MM_findObj( 'IMGREMOVE' + rowId ).style.display = 'block';
|
861 |
MM_findObj( 'IMGREMOVE' + rowId ).style.display = 'block';
|
| 713 |
}
|
862 |
}
|
| 714 |
|
863 |
|
| 715 |
// Show undo button
|
864 |
// Show undo button
|
| 716 |
MM_findObj( 'IMGUNDO' + rowId ).style.display = 'none';
|
865 |
MM_findObj( 'IMGUNDO' + rowId ).style.display = 'none';
|
| 717 |
}
|
866 |
}
|
| 718 |
|
867 |
|
| 719 |
|
868 |
|
| 720 |
function MergeAll()
|
869 |
function MergeAll()
|
| 721 |
{
|
870 |
{
|
| 722 |
var elem
|
871 |
var elem
|
| 723 |
|
872 |
|
| 724 |
if (document.all)
|
873 |
if (document.all)
|
| 725 |
{
|
874 |
{
|
| 726 |
// Run this for IE
|
875 |
// Run this for IE
|
| 727 |
elem = document.all;
|
876 |
elem = document.all;
|
| 728 |
} else {
|
877 |
} else {
|
| 729 |
// Run this for other browsers
|
878 |
// Run this for other browsers
|
| 730 |
elem = document.getElementsByTagName('div');
|
879 |
elem = document.getElementsByTagName('div');
|
| 731 |
}
|
880 |
}
|
| 732 |
|
881 |
|
| 733 |
for (i in elem)
|
882 |
for (i in elem)
|
| 734 |
{
|
883 |
{
|
| 735 |
if (elem[i].id)
|
884 |
if (elem[i].id)
|
| 736 |
{
|
885 |
{
|
| 737 |
if (elem[i].id.indexOf('SHORT_') == 0) elem[i].style.display = 'none';
|
886 |
if (elem[i].id.indexOf('SHORT_') == 0) elem[i].style.display = 'none';
|
| 738 |
if (elem[i].id.indexOf('LONG_') == 0) elem[i].style.display = 'block';
|
887 |
if (elem[i].id.indexOf('LONG_') == 0) elem[i].style.display = 'block';
|
| 739 |
}
|
888 |
}
|
| 740 |
}
|
889 |
}
|
| 741 |
}
|
890 |
}
|
| 742 |
|
891 |
|
| 743 |
//-->
|
892 |
//-->
|
| 744 |
</script>
|
893 |
</script>
|
| 745 |
|
894 |
|
| 746 |
</head>
|
895 |
</head>
|
| 747 |
<!-- TIPS LAYERS -------------------------------------->
|
896 |
<!-- TIPS LAYERS -------------------------------------->
|
| 748 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
897 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
| 749 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
|
898 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
|
| 750 |
<form name="FormName" method="post" action="<%=ScriptName%>">
|
899 |
<form name="FormName" method="post" action="<%=ScriptName%>">
|
| 751 |
<!-- HEADER -->
|
900 |
<!-- HEADER -->
|
| 752 |
<!--#include file="_header.asp"-->
|
901 |
<!--#include file="_header.asp"-->
|
| 753 |
<!-- BODY ---->
|
902 |
<!-- BODY ---->
|
| 754 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
903 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| - |
|
904 |
<tr>
|
| - |
|
905 |
<td width="20%">
|
| - |
|
906 |
<td width="60%">
|
| - |
|
907 |
<td width="20%">
|
| - |
|
908 |
</tr>
|
| 755 |
<tr>
|
909 |
<tr>
|
| 756 |
<td width="1%" background="images/bg_home_orange.gif" valign="top">
|
910 |
<td background="images/bg_home_orange.gif" valign="top">
|
| 757 |
<!-- SELECT RELEASE A ---------------------------------------------->
|
911 |
<!-- SELECT RELEASE A ---------------------------------------------->
|
| 758 |
<br>
|
912 |
<br>
|
| 759 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
913 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
| 760 |
<tr>
|
914 |
<tr>
|
| 761 |
<td align="left" class="body_col"><img src="images/i_rtag_open_mode.gif" border="0" align="absmiddle" width="15" height="13"> Select Release A<hr size="1px" color="Olive" noshade></td>
|
915 |
<td align="left" class="body_col"><img src="images/i_rtag_open_mode.gif" border="0" align="absmiddle" width="15" height="13"> Select Release A<hr size="1px" color="Olive" noshade></td>
|
| 762 |
</tr>
|
916 |
</tr>
|
| 763 |
<tr>
|
917 |
<tr>
|
| 764 |
<td align="left">
|
918 |
<td align="left">
|
| 765 |
<select name="projA" class="form_item" onChange="RequestReleaseCombo( '?proj_id='+ this.value, FormName.rtagA );">
|
919 |
<select name="projA" class="form_item" onChange="RequestReleaseCombo( '?proj_id='+ this.value, FormName.rtagA );">
|
| 766 |
<option value="">-- Select Project --</option>
|
920 |
<option value="">-- Select Project --</option>
|
| 767 |
<%
|
921 |
<%
|
| 768 |
OraDatabase.Parameters.Add "PROJ_ID", objRelCollectorA.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
922 |
OraDatabase.Parameters.Add "PROJ_ID", objRelCollectorA.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 769 |
|
923 |
|
| 770 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ProjectsCombo.sql"), cint(0))
|
924 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ProjectsCombo.sql"), cint(0))
|
| 771 |
|
925 |
|
| 772 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
926 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 773 |
|
927 |
|
| 774 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
|
928 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
|
| 775 |
<option value="<%=rsQry("proj_id")%>" <%=rsQry("selected")%>><%=rsQry("proj_name")%></option>
|
929 |
<option value="<%=rsQry("proj_id")%>" <%=rsQry("selected")%>><%=rsQry("proj_name")%></option>
|
| 776 |
<%rsQry.MoveNext
|
930 |
<%rsQry.MoveNext
|
| 777 |
WEnd
|
931 |
WEnd
|
| 778 |
|
932 |
|
| 779 |
rsQry.Close
|
933 |
rsQry.Close
|
| 780 |
Set rsQry = Nothing
|
934 |
Set rsQry = Nothing
|
| 781 |
%>
|
935 |
%>
|
| 782 |
</select>
|
936 |
</select>
|
| 783 |
</td>
|
937 |
</td>
|
| 784 |
</tr>
|
938 |
</tr>
|
| 785 |
<tr>
|
939 |
<tr>
|
| 786 |
<td align="left">
|
940 |
<td align="left">
|
| 787 |
<select name="rtagA" id="rtagA" class="form_item">
|
941 |
<select name="rtagA" id="rtagA" class="form_item">
|
| 788 |
<%
|
942 |
<%
|
| 789 |
OraDatabase.Parameters.Add "PROJ_ID", objRelCollectorA.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
943 |
OraDatabase.Parameters.Add "PROJ_ID", objRelCollectorA.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 790 |
OraDatabase.Parameters.Add "RTAG_ID", objRelCollectorA.Item("rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
944 |
OraDatabase.Parameters.Add "RTAG_ID", objRelCollectorA.Item("rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 791 |
|
945 |
|
| 792 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReleasesCombo.sql"), cint(0))
|
946 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReleasesCombo.sql"), cint(0))
|
| 793 |
|
947 |
|
| 794 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
948 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 795 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
949 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
| 796 |
|
950 |
|
| 797 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
|
951 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
|
| 798 |
<option value="<%=rsQry("rtag_id")%>" <%=rsQry("selected")%>><%=rsQry("rtag_name")%></option>
|
952 |
<option value="<%=rsQry("rtag_id")%>" <%=rsQry("selected")%>><%=rsQry("rtag_name")%></option>
|
| 799 |
<%rsQry.MoveNext
|
953 |
<%rsQry.MoveNext
|
| 800 |
WEnd
|
954 |
WEnd
|
| 801 |
|
955 |
|
| 802 |
rsQry.Close
|
956 |
rsQry.Close
|
| 803 |
Set rsQry = Nothing
|
957 |
Set rsQry = Nothing
|
| 804 |
%>
|
958 |
%>
|
| 805 |
</select>
|
959 |
</select>
|
| 806 |
</td>
|
960 |
</td>
|
| 807 |
</tr>
|
961 |
</tr>
|
| 808 |
<%If (parRtagA <> "") Then%>
|
962 |
<%If (parRtagA <> "") Then%>
|
| 809 |
<tr>
|
- |
|
| 810 |
<td align="left"><a href="dependencies.asp?rtag_id=<%=parRtagA%>" class="body_txt_drk">Go To Release A »</a></td>
|
- |
|
| 811 |
</tr>
|
- |
|
| 812 |
<%End If%>
|
- |
|
| 813 |
</table>
|
- |
|
| 814 |
|
- |
|
| 815 |
<!-- SELECT RELEASE A END ---------------------------------------------->
|
- |
|
| 816 |
</td>
|
- |
|
| 817 |
|
- |
|
| 818 |
<td width="1%" valign="top" background="images/bg_lght_gray.gif"> </td>
|
- |
|
| 819 |
|
- |
|
| 820 |
<td rowspan="2" valign="top" width="100%" background="images/bg_lght_gray.gif" align="center">
|
- |
|
| 821 |
<!-- DIFF -------------------------------------------------------->
|
- |
|
| 822 |
<br>
|
- |
|
| 823 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
- |
|
| 824 |
<tr>
|
- |
|
| 825 |
<td>
|
- |
|
| 826 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
- |
|
| 827 |
<tr>
|
963 |
<tr>
|
| 828 |
<td width="1%"></td>
|
- |
|
| 829 |
<td width="100%" align="left" class="form_ttl">DIFF / MERGE RELEASE</td>
|
964 |
<td align="left"><a href="dependencies.asp?rtag_id=<%=parRtagA%>" class="body_txt_drk">Go To Release A »</a></td>
|
| 830 |
<td width="1%"></td>
|
- |
|
| 831 |
</tr>
|
965 |
</tr>
|
| 832 |
<tr>
|
966 |
<%End If%>
|
| 833 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
967 |
</table>
|
| 834 |
<td background="images/lbox_bg_blue.gif" align="left" class="wform_ttl"> </td>
|
968 |
|
| 835 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
969 |
<!-- SELECT RELEASE A END ---------------------------------------------->
|
| 836 |
</tr>
|
970 |
</td>
|
| 837 |
<tr>
|
971 |
|
| 838 |
<td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
972 |
<td rowspan="2" valign="top" background="images/bg_lght_gray.gif" align="center">
|
| 839 |
<td bgcolor="#FFFFFF" valign="top" class="form_item">
|
973 |
<!-- DIFF -------------------------------------------------------->
|
| 840 |
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
974 |
<br>
|
| 841 |
<tr>
|
975 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
| 842 |
<td width="100%" bgcolor="#DAD7C8">
|
976 |
<tr>
|
| 843 |
<input type="submit" name="btn" value="Compare" class="form_btn_comp" style="margin-right:5px;">
|
977 |
<td>
|
| 844 |
<input type="submit" name="btn" value="Swap Compare" class="form_btn_comp">
|
978 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 845 |
<span class="body_txt">
|
979 |
<tr>
|
| 846 |
<input name="btn" type="submit" class="form_btn" value="Mail Me Report">
|
980 |
<td width="1%"></td>
|
| 847 |
</span>
|
981 |
<td width="100%" align="left" class="form_ttl">DIFF / MERGE RELEASE
|
| 848 |
</td>
|
982 |
<%If genReport Then%>
|
| 849 |
<td width="1" align="right" bgcolor="#DAD7C8" nowrap>
|
983 |
[Generating Report]
|
| 850 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
984 |
<%End If%>
|
| 851 |
<tr>
|
985 |
</td>
|
| 852 |
<td>
|
986 |
<td width="1%"></td>
|
| 853 |
<%If (objRelCollectorB.Item("official") <> "Y" AND objRelCollectorB.Item("official") <> "C" ) AND (objAccessControl.IsActive("MergeRelease")) Then%>
|
987 |
</tr>
|
| 854 |
<input type="submit" name="btn" value="Merge" class="form_btn_comp" style="margin-right:10px;" <%If (parRtagA = "") OR (parRtagB = "")Then%>disabled<%End If%>>
|
988 |
<tr>
|
| 855 |
<%End If%>
|
989 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
| 856 |
</td>
|
990 |
<td background="images/lbox_bg_blue.gif" align="left" class="wform_ttl"> </td>
|
| 857 |
<td>
|
991 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
| 858 |
<%If (objRelCollectorB.Item("official") = "C" ) AND (objAccessControl.IsActive("MergeReleaseForCCB")) Then%>
|
992 |
</tr>
|
| 859 |
<input type="submit" name="btn" value="Merge" class="form_btn_comp" style="margin-right:10px;" <%If (parRtagA = "") OR (parRtagB = "")Then%>disabled<%End If%>>
|
993 |
<tr>
|
| 860 |
<%End If%>
|
994 |
<td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
| 861 |
</td>
|
995 |
<td bgcolor="#FFFFFF" valign="top" class="form_item">
|
| 862 |
<td>
|
996 |
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
| 863 |
<input type="submit" name="btn" value="Exit" class="form_btn_comp">
|
997 |
<tr>
|
| 864 |
</td>
|
998 |
<td width="100%" bgcolor="#DAD7C8">
|
| 865 |
</tr>
|
999 |
<input type="submit" name="btn" value="Compare" class="form_btn_comp" style="margin-right:5px;">
|
| 866 |
</table>
|
1000 |
<input type="submit" name="btn" value="Swap Compare" class="form_btn_comp">
|
| 867 |
</td>
|
1001 |
<span class="body_txt">
|
| 868 |
</tr>
|
1002 |
<input name="btn" type="submit" class="form_btn" value="Mail Me Report">
|
| 869 |
<tr>
|
1003 |
<% '<input name="btn" type="submit" class="form_btn" value="Show Me Report"> %>
|
| 870 |
<td>
|
1004 |
</span>
|
| 871 |
<%If (parRtagA <> "") AND (parRtagB <> "")Then%>
|
- |
|
| 872 |
<!-- DIFF FILTER +++++++++++++++++++++++++++++++++++++++++++ -->
|
- |
|
| 873 |
<fieldset style="width:150px;">
|
- |
|
| 874 |
<legend><a href="javascript:;" class="body_scol" onClick="ToggleDisplay('divDiffFilter');" ><%=GetIsDiffFilterInUseIcon() %> Filter Results...</a></legend>
|
- |
|
| 875 |
<div name="divDiffFilter" id="divDiffFilter" class="body_txt" style="display:none;">
|
- |
|
| 876 |
<br>
|
- |
|
| 877 |
<table width="100%" border="0" cellspacing="1" cellpadding="3">
|
- |
|
| 878 |
<tr>
|
- |
|
| 879 |
<td width="1" background="images/bg_action_norm.gif"><input name="difilter" type="checkbox" value="<%=enumDB_NUM_DIFF_UPDATED%>" <%=GetIsDiffFilterChecked(enumDB_NUM_DIFF_UPDATED)%>></td>
|
- |
|
| 880 |
<td width="50" nowrap background="images/bg_action_norm.gif" class="form_field"><%=LIMG_UPDATED%>Updated</td>
|
- |
|
| 881 |
</tr>
|
- |
|
| 882 |
<tr>
|
- |
|
| 883 |
<td background="images/bg_action_norm.gif"><input type="checkbox" name="difilter" value="<%=enumDB_NUM_DIFF_NEW%>" <%=GetIsDiffFilterChecked(enumDB_NUM_DIFF_NEW)%>></td>
|
- |
|
| 884 |
<td nowrap background="images/bg_action_norm.gif" class="form_field"><%=LIMG_ADDED%>Added</td>
|
- |
|
| 885 |
</tr>
|
- |
|
| 886 |
<tr>
|
- |
|
| 887 |
<td background="images/bg_action_norm.gif"><input type="checkbox" name="difilter" value="<%=enumDB_NUM_DIFF_REMOVED%>" <%=GetIsDiffFilterChecked(enumDB_NUM_DIFF_REMOVED)%>></td>
|
- |
|
| 888 |
<td nowrap background="images/bg_action_norm.gif" class="form_field"><%=LIMG_REMOVED%>Removed</td>
|
- |
|
| 889 |
</tr>
|
- |
|
| 890 |
<tr>
|
- |
|
| 891 |
<td background="images/bg_action_norm.gif"><input type="checkbox" name="difilter" value="<%=enumDB_NUM_DIFF_RIPPLE%>" <%=GetIsDiffFilterChecked(enumDB_NUM_DIFF_RIPPLE)%>></td>
|
- |
|
| 892 |
<td nowrap background="images/bg_action_norm.gif" class="form_field"><%=LIMG_RIPPLED%>Rippled</td>
|
- |
|
| 893 |
</tr>
|
- |
|
| 894 |
<tr>
|
- |
|
| 895 |
<td background="images/bg_action_norm.gif"><input type="checkbox" name="difilter" value="<%=enumDB_NUM_DIFF_NO_CHANGE%>" <%=GetIsDiffFilterChecked(enumDB_NUM_DIFF_NO_CHANGE)%>></td>
|
- |
|
| 896 |
<td nowrap background="images/bg_action_norm.gif" class="form_field">Unchanged</td>
|
- |
|
| 897 |
</tr>
|
- |
|
| 898 |
<tr>
|
- |
|
| 899 |
<td background="images/bg_action_norm.gif"> </td>
|
- |
|
| 900 |
<td background="images/bg_action_norm.gif"><input name="btn" type="submit" class="form_btn" value="Hide"></td>
|
- |
|
| 901 |
</tr>
|
- |
|
| 902 |
</table>
|
- |
|
| 903 |
</div>
|
- |
|
| 904 |
</fieldset>
|
- |
|
| 905 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
- |
|
| 906 |
<%End If%>
|
- |
|
| 907 |
</td>
|
- |
|
| 908 |
<td></td>
|
- |
|
| 909 |
</tr>
|
- |
|
| 910 |
</table>
|
- |
|
| 911 |
|
- |
|
| 912 |
<%
|
- |
|
| 913 |
' Successfull Merge
|
- |
|
| 914 |
If (Request("btn") = "Merge") Then
|
- |
|
| 915 |
Call Messenger ( "Merge has completed successfully.", 3, "100%" )
|
- |
|
| 916 |
End If
|
- |
|
| 917 |
|
- |
|
| 918 |
Set FSO=Server.CreateObject("Scripting.FileSystemObject")
|
- |
|
| 919 |
Set NewTextFile=FSO.CreateTextFile(Server.MapPath("docs\compareReleases_"&objAccessControl.UserName&".html"), true)
|
- |
|
| 920 |
|
- |
|
| 921 |
Call Header()
|
- |
|
| 922 |
|
- |
|
| 923 |
If (parRtagA <> "") AND (parRtagB <> "")Then%>
|
- |
|
| 924 |
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
- |
|
| 925 |
<tr>
|
- |
|
| 926 |
<td width="50%" bgcolor="#E4E9EC" class="body_row" nowrap><%= ReleaseIcon(objRelCollectorA.Item("official")) & objRelCollectorA.Item("location")%> </td>
|
- |
|
| 927 |
<td width="1" bgcolor="#E4E9EC"><img src="images/spacer.gif" width="20" height="1"></td>
|
- |
|
| 928 |
<td width="1" bgcolor="#E4E9EC"><img src="images/spacer.gif" width="20" height="20"></td>
|
- |
|
| 929 |
<td width="1" bgcolor="#E4E9EC"><img src="images/spacer.gif" width="20" height="1"></td>
|
- |
|
| 930 |
<td width="50%" bgcolor="#E4E9EC" class="body_row" nowrap><%= ReleaseIcon(objRelCollectorB.Item("official")) & objRelCollectorB.Item("location")%></td>
|
- |
|
| 931 |
<td width="1" bgcolor="#E4E9EC"><img src="images/spacer.gif" width="20" height="1"></td>
|
- |
|
| 932 |
</tr>
|
- |
|
| 933 |
<%
|
- |
|
| 934 |
OraDatabase.Parameters.Add "RTAG_A", parRtagA, ORAPARM_INPUT, ORATYPE_NUMBER
|
- |
|
| 935 |
OraDatabase.Parameters.Add "RTAG_B", parRtagB, ORAPARM_INPUT, ORATYPE_NUMBER
|
- |
|
| 936 |
OraDatabase.Parameters.Add "NO_CHANGE", GetIsDiffFilterChecked(enumDB_NUM_DIFF_NO_CHANGE), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
- |
|
| 937 |
OraDatabase.Parameters.Add "ADDED", GetIsDiffFilterChecked(enumDB_NUM_DIFF_NEW), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
- |
|
| 938 |
OraDatabase.Parameters.Add "UPDATED", GetIsDiffFilterChecked(enumDB_NUM_DIFF_UPDATED), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
- |
|
| 939 |
OraDatabase.Parameters.Add "REMOVED", GetIsDiffFilterChecked(enumDB_NUM_DIFF_REMOVED), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
- |
|
| 940 |
|
- |
|
| 941 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseDiff.sql"), cint(0))
|
- |
|
| 942 |
|
- |
|
| 943 |
OraDatabase.Parameters.Remove "RTAG_A"
|
- |
|
| 944 |
OraDatabase.Parameters.Remove "RTAG_B"
|
- |
|
| 945 |
OraDatabase.Parameters.Remove "NO_CHANGE"
|
- |
|
| 946 |
OraDatabase.Parameters.Remove "ADDED"
|
- |
|
| 947 |
OraDatabase.Parameters.Remove "UPDATED"
|
- |
|
| 948 |
OraDatabase.Parameters.Remove "REMOVED"
|
- |
|
| 949 |
|
- |
|
| 950 |
Set rsQryA = OraDatabase.DbCreateDynaset( "SELECT RT.RTAG_NAME, PRJ.PROJ_NAME FROM RELEASE_TAGS RT, PROJECTS PRJ WHERE RTAG_ID="& parRtagA &" AND RT.PROJ_ID=PRJ.PROJ_ID", cint(0))
|
- |
|
| 951 |
Set rsQryB = OraDatabase.DbCreateDynaset( "SELECT RT.RTAG_NAME, PRJ.PROJ_NAME FROM RELEASE_TAGS RT, PROJECTS PRJ WHERE RTAG_ID="& parRtagB &" AND RT.PROJ_ID=PRJ.PROJ_ID", cint(0))
|
- |
|
| 952 |
|
- |
|
| 953 |
Call Javascript()
|
- |
|
| 954 |
|
- |
|
| 955 |
NewTextFile.WriteLine("<title>Difference Report Between "&rsQryA("proj_name")&" "&rsQryA("rtag_name")&" and "&rsQryB("proj_name")&" "&rsQryB("rtag_name")&"</title>")
|
- |
|
| 956 |
NewTextFile.WriteLine("<div align="&chr(34)&"center"&chr(34)&"><font color="&chr(34)&"red"&chr(34)&" size="&chr(34)&"4"&chr(34)&" face="&chr(34)&"Verdana, Arial, Helvetica, sans-serif"&chr(34)&">Difference Report Between "&rsQryA("proj_name")&" "&rsQryA("rtag_name")&" and "&rsQryB("proj_name")&" "&rsQryB("rtag_name")&"</font></div><br>")
|
- |
|
| 957 |
NewTextFile.WriteLine("<b>Key:</b><br><blockquote><font style="&chr(34)&"background-color:red"&chr(34)&"><b> SOURCE CODE CHANGES</b></font><font color="&chr(34)&"red"&chr(34)&"> Indicates Changes to a Package in "& rsQryA("rtag_name") &"</font>. <br><font style="&chr(34)&"background-color:#FF9933"&chr(34)&"><b> SOURCE CODE CHANGES</b></font><font color="&chr(34)&"#FF9933"&chr(34)&"> Indicates Changes to a Package in "& rsQryB("rtag_name") &"</font>. <br><font color="&chr(34)&"#999999"&chr(34)&">Grey Text Indicates No Source Code Changes to a Package in either Release</font>.</blockquote>")
|
- |
|
| 958 |
|
- |
|
| 959 |
Dim currView_id
|
- |
|
| 960 |
currView_id = -1
|
- |
|
| 961 |
|
- |
|
| 962 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
- |
|
| 963 |
errormsg = false
|
- |
|
| 964 |
rowId = rsQry("pv_id_a") &"_"& rsQry("pv_id_b")
|
- |
|
| 965 |
|
- |
|
| 966 |
btnMerge = LIMG_MERGE
|
- |
|
| 967 |
btnRemove = LIMG_REMOVE
|
- |
|
| 968 |
colorA = LCOLOR_NOT_CHANGED
|
- |
|
| 969 |
colorB = LCOLOR_NOT_CHANGED
|
- |
|
| 970 |
|
- |
|
| 971 |
changeType = rsQry("change_type")
|
- |
|
| 972 |
|
- |
|
| 973 |
Select Case changeType
|
- |
|
| 974 |
Case "U"
|
- |
|
| 975 |
colorA = LCOLOR_CHANGED
|
- |
|
| 976 |
colorB = LCOLOR_CHANGED
|
- |
|
| 977 |
Case "UW"
|
- |
|
| 978 |
colorA = LCOLOR_CHANGED
|
- |
|
| 979 |
colorB = LCOLOR_CHANGED
|
- |
|
| 980 |
btnMerge = LIMG_MERGE_WARN
|
- |
|
| 981 |
Case "UR"
|
- |
|
| 982 |
colorA = LCOLOR_RIPPLED
|
- |
|
| 983 |
colorB = LCOLOR_RIPPLED
|
- |
|
| 984 |
Case "A"
|
- |
|
| 985 |
colorA = LCOLOR_BLANK
|
- |
|
| 986 |
Case "R"
|
- |
|
| 987 |
colorB = LCOLOR_BLANK
|
- |
|
| 988 |
End Select
|
- |
|
| 989 |
|
- |
|
| 990 |
Call GetDiffStateIcon ( changeType, ChangeTypeIcon )
|
- |
|
| 991 |
|
- |
|
| 992 |
If changeType = "U" OR changeType = "UW" OR changeType = "UR" Then
|
- |
|
| 993 |
Dim MajorA, MajorB, MinorA, MinorB, PatchA, PatchB, BuildA, BuildB, pos, pkgVersionA, pkgVersionB, majMinA, majMinB
|
- |
|
| 994 |
MajorA = NULL
|
- |
|
| 995 |
MajorB = NULL
|
- |
|
| 996 |
MinorA = NULL
|
- |
|
| 997 |
MinorB = NULL
|
- |
|
| 998 |
|
- |
|
| 999 |
pkgVersionA = rsQry("pkg_version_a")
|
- |
|
| 1000 |
pkgVersionB = rsQry("pkg_version_b")
|
- |
|
| 1001 |
|
- |
|
| 1002 |
PatchA = rsQry("patch_number_a")
|
- |
|
| 1003 |
PatchB = rsQry("patch_number_b")
|
- |
|
| 1004 |
BuildA = rsQry("build_number_a")
|
- |
|
| 1005 |
BuildB = rsQry("build_number_b")
|
- |
|
| 1006 |
|
- |
|
| 1007 |
|
- |
|
| 1008 |
' Find the first occurence of the dot in package version A
|
- |
|
| 1009 |
pos = InStr(pkgVersionA, ".")
|
- |
|
| 1010 |
If pos <> 0 Then
|
- |
|
| 1011 |
' Extract the Major Version for A
|
- |
|
| 1012 |
MajorA = Mid(pkgVersionA, 1, pos - 1)
|
- |
|
| 1013 |
' Delete the Major Version Value from the string to get the minor and patch version
|
- |
|
| 1014 |
pkgVersionA = Mid(pkgVersionA, pos + 1, Len(pkgVersionA))
|
- |
|
| 1015 |
' Find the second occurence of the dot in package version A
|
- |
|
| 1016 |
pos = InStr(pkgVersionA, ".")
|
- |
|
| 1017 |
' Extract the Minor Version for A
|
- |
|
| 1018 |
If pos <> 0 Then
|
- |
|
| 1019 |
MinorA = Mid(pkgVersionA, 1, pos - 1)
|
- |
|
| 1020 |
End If
|
- |
|
| 1021 |
End If
|
- |
|
| 1022 |
|
- |
|
| 1023 |
' Find the first occurence of the dot in package version B
|
- |
|
| 1024 |
pos = InStr(pkgVersionB, ".")
|
- |
|
| 1025 |
If pos <> 0 Then
|
- |
|
| 1026 |
' Extract the Major Version for B
|
- |
|
| 1027 |
MajorB = Mid(pkgVersionB, 1, pos - 1)
|
- |
|
| 1028 |
' Delete the Major Version Value from the string to get the minor and patch version
|
- |
|
| 1029 |
pkgVersionB = Mid(pkgVersionB, pos + 1, Len(pkgVersionB))
|
- |
|
| 1030 |
' Find the second occurence of the dot in package version B
|
- |
|
| 1031 |
pos = InStr(pkgVersionB, ".")
|
- |
|
| 1032 |
' Extract the Minor Version for B
|
- |
|
| 1033 |
If pos <> 0 Then
|
- |
|
| 1034 |
MinorB = Mid(pkgVersionB, 1, pos - 1)
|
- |
|
| 1035 |
End If
|
- |
|
| 1036 |
End If
|
- |
|
| 1037 |
|
- |
|
| 1038 |
If MajorA = MajorB Then
|
- |
|
| 1039 |
If MinorA = MinorB Then
|
- |
|
| 1040 |
If IsNumeric(PatchA) AND IsNumeric(PatchB) Then
|
- |
|
| 1041 |
If CInt(PatchB) > CInt(PatchA) Then
|
- |
|
| 1042 |
btnMerge = LIMG_MERGE_WARN
|
- |
|
| 1043 |
Else
|
- |
|
| 1044 |
btnMerge = LIMG_MERGE
|
- |
|
| 1045 |
End If
|
- |
|
| 1046 |
End If
|
- |
|
| 1047 |
Else
|
- |
|
| 1048 |
If IsNumeric(MinorA) AND IsNumeric(MinorB) Then
|
- |
|
| 1049 |
If CInt(MinorB) > CInt(MinorA) Then
|
- |
|
| 1050 |
btnMerge = LIMG_MERGE_WARN
|
- |
|
| 1051 |
Else
|
- |
|
| 1052 |
btnMerge = LIMG_MERGE
|
- |
|
| 1053 |
End If
|
- |
|
| 1054 |
End If
|
- |
|
| 1055 |
End If
|
- |
|
| 1056 |
Else
|
- |
|
| 1057 |
If IsNumeric(MajorA) AND IsNumeric(MajorB) Then
|
- |
|
| 1058 |
If CInt(MajorB) > CInt(MajorA) Then
|
- |
|
| 1059 |
btnMerge = LIMG_MERGE_WARN
|
- |
|
| 1060 |
Else
|
- |
|
| 1061 |
btnMerge = LIMG_MERGE
|
- |
|
| 1062 |
End If
|
- |
|
| 1063 |
End If
|
- |
|
| 1064 |
End If
|
- |
|
| 1065 |
End If
|
- |
|
| 1066 |
|
- |
|
| 1067 |
' -------- FILTERS RIPPLE BUILDS WHEN CHECKED -----------------
|
- |
|
| 1068 |
If NOT (GetIsDiffFilterChecked(enumDB_NUM_DIFF_RIPPLE) = "checked" AND changeType = "UR") THEN
|
- |
|
| 1069 |
|
- |
|
| 1070 |
' -------- GROUP BY BASE VIEW -----------------
|
- |
|
| 1071 |
If CDbl(currView_id) <> CDbl(rsQry("view_id")) Then%>
|
- |
|
| 1072 |
<tr>
|
- |
|
| 1073 |
<td valign="top" nowrap class="form_ttl"><b><%=rsQry("view_name")%></b></td>
|
- |
|
| 1074 |
<td class="form_ttl"> </td>
|
- |
|
| 1075 |
<td class="form_ttl"> </td>
|
- |
|
| 1076 |
<td class="form_ttl"> </td>
|
- |
|
| 1077 |
<td class="form_ttl"> </td>
|
- |
|
| 1078 |
<td class="form_ttl"> </td>
|
- |
|
| 1079 |
</tr>
|
- |
|
| 1080 |
<%
|
- |
|
| 1081 |
currView_id = CDbl(rsQry("view_id"))
|
- |
|
| 1082 |
End If
|
- |
|
| 1083 |
' -------- END GROUP ------------------------
|
- |
|
| 1084 |
%>
|
- |
|
| 1085 |
<%
|
- |
|
| 1086 |
'Determine if we are dealing with a PV_ID that we have already encountered and displayed as a pending addition
|
- |
|
| 1087 |
'If we are, we do not need to display anything more about it, so skip the row.
|
- |
|
| 1088 |
' NOTE. the result set is sorted by change type (see releasediff.sql) such that if there are multiple entries
|
- |
|
| 1089 |
' for the same PV_ID, they are sorted in the following order: unchanged, additions, removals, updates.
|
- |
|
| 1090 |
' This is important to the row skip filtering carried out below.
|
- |
|
| 1091 |
Dim skipRow
|
- |
|
| 1092 |
If rsQry("pv_id_a") Then
|
- |
|
| 1093 |
skipRow = pendingAdditions.Exists(CStr(rsQry("pv_id_a")))
|
- |
|
| 1094 |
Else
|
- |
|
| 1095 |
skipRow = FALSE
|
- |
|
| 1096 |
End If
|
- |
|
| 1097 |
%>
|
- |
|
| 1098 |
<%If NOT skipRow Then%>
|
- |
|
| 1099 |
<tr>
|
- |
|
| 1100 |
<td class="body_row" nowrap>
|
- |
|
| 1101 |
<DIV id="PVA<%=rowId%>" style="background:<%=colorA%>; padding:5px;">
|
- |
|
| 1102 |
<%=rsQry("pkg_name_a") &" "& rsQry("pkg_version_a")%>
|
- |
|
| 1103 |
</DIV>
|
- |
|
| 1104 |
<input type="hidden" id="UNDOCOLORA_<%=rowId%>" value="<%=colorA%>">
|
- |
|
| 1105 |
</td>
|
- |
|
| 1106 |
<td bgcolor="#F5F5F5">
|
- |
|
| 1107 |
<%If objRelCollectorB.Item("official") <> "Y" Then%>
|
- |
|
| 1108 |
<DIV id="IMGMERGE<%=rowId%>" <%If (changeType = "A") OR IsNull( changeType ) Then%>style="display:none;"<%End If%>><a href="javascript:;" onClick="MergePackage( '<%=rsQry("pv_id_a")%>', '<%=rsQry("pv_id_b")%>', '<%=rowId%>' );"><%=btnMerge%></a></DIV>
|
- |
|
| 1109 |
<%End If%>
|
- |
|
| 1110 |
</td>
|
- |
|
| 1111 |
<td bgcolor="#E4E9EC">
|
- |
|
| 1112 |
<DIV id="IMGSTATE<%=rowId%>" ><%=ChangeTypeIcon%></DIV>
|
- |
|
| 1113 |
<input type="hidden" id="CHANGETYPE_<%=rowId%>" value="<%=changeType%>">
|
- |
|
| 1114 |
</td>
|
- |
|
| 1115 |
<td bgcolor="#F5F5F5">
|
- |
|
| 1116 |
<%If objRelCollectorB.Item("official") <> "Y" Then%>
|
- |
|
| 1117 |
<DIV id="IMGREMOVE<%=rowId%>" <%If changeType = "R" Then%>style="display:none;"<%End If%>><a href="javascript:;" onClick="RemovePackage( '<%=rsQry("pv_id_a")%>', '<%=rsQry("pv_id_b")%>', '<%=rowId%>' );"><%=btnRemove%></a></DIV>
|
- |
|
| 1118 |
<%End If%>
|
- |
|
| 1119 |
</td>
|
1005 |
</td>
|
| 1120 |
<td class="body_row" nowrap>
|
1006 |
<td width="1" align="right" bgcolor="#DAD7C8" nowrap>
|
| 1121 |
<DIV id="PVB<%=rowId%>" style="background:<%=colorB%>; padding:5px;">
|
1007 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 1122 |
<%If IsNull(rsQry("pv_id_b")) Then %>
|
- |
|
| 1123 |
<%If Is_Pending_Sub(Request("rtagB"), rsQry("pv_id_a")) Then%>
|
- |
|
| 1124 |
(removal pending<%=Quick_Help("RemovalPending")%>)
|
- |
|
| 1125 |
<%End If %>
|
1008 |
<tr>
|
| 1126 |
<%Else%>
|
1009 |
<td>
|
| 1127 |
<%=rsQry("pkg_name_b") &" "& rsQry("pkg_version_b")%>
|
- |
|
| 1128 |
<%If Is_Pending_Add(Request("rtagB"), rsQry("pv_id_b")) Then%>
|
- |
|
| 1129 |
(addition pending<%=Quick_Help("AdditionPending")%>)
|
- |
|
| 1130 |
<% 'Add this pending addition to the dictionary so that we can filter out REMOVED entries
|
1010 |
<%If (objRelCollectorB.Item("official") <> "Y" AND objRelCollectorB.Item("official") <> "C" ) AND (objAccessControl.IsActive("MergeRelease")) Then%>
|
| 1131 |
'with identical PV_ID's that we might encounter further on in the result set
|
1011 |
<input type="submit" name="btn" value="Merge" class="form_btn_comp" style="margin-right:10px;" <%If (parRtagA = "") OR (parRtagB = "")Then%>disabled<%End If%>>
|
| 1132 |
If NOT pendingAdditions.Exists(rsQry("pv_id_b")) Then
|
1012 |
<%End If%>
|
| 1133 |
pendingAdditions.Add CStr(rsQry("pv_id_b")), CStr(rsQry("pkg_version_b"))
|
1013 |
</td>
|
| 1134 |
End If%>
|
1014 |
<td>
|
| 1135 |
<%ElseIf Is_Pending_Sub(Request("rtagB"), rsQry("pv_id_b")) Then%>
|
1015 |
<%If (objRelCollectorB.Item("official") = "C" ) AND (objAccessControl.IsActive("MergeReleaseForCCB")) Then%>
|
| 1136 |
(removal pending<%=Quick_Help("RemovalPending")%>)
|
1016 |
<input type="submit" name="btn" value="Merge" class="form_btn_comp" style="margin-right:10px;" <%If (parRtagA = "") OR (parRtagB = "")Then%>disabled<%End If%>>
|
| 1137 |
<%End If %>
|
1017 |
<%End If%>
|
| 1138 |
<%End If %>
|
1018 |
</td>
|
| 1139 |
</DIV>
|
1019 |
<td>
|
| 1140 |
<input type="hidden" id="UNDOCOLORB_<%=rowId%>" value="<%=colorB%>">
|
1020 |
<input type="submit" name="btn" value="Exit" class="form_btn_comp">
|
| 1141 |
<input type="hidden" name="addpkg" id="ADDPKG_<%=rowId%>" value="">
|
1021 |
</td>
|
| 1142 |
<input type="hidden" name="removepkg" id="REMOVEPKG_<%=rowId%>" value="">
|
1022 |
</tr>
|
| 1143 |
<input type="hidden" id="UNDOPKG_<%=rowId%>" value="<%=rsQry("pkg_name_b") &" "& rsQry("pkg_version_b")%>">
|
1023 |
</table>
|
| 1144 |
</td>
|
1024 |
</td>
|
| - |
|
1025 |
</tr>
|
| - |
|
1026 |
<tr>
|
| 1145 |
<td bgcolor="#F5F5F5">
|
1027 |
<td>
|
| - |
|
1028 |
<%If (parRtagA <> "") AND (parRtagB <> "")Then%>
|
| - |
|
1029 |
<!-- DIFF FILTER +++++++++++++++++++++++++++++++++++++++++++ -->
|
| 1146 |
<DIV id="IMGUNDO<%=rowId%>" style="display:none;" >
|
1030 |
<fieldset style="width:150px;">
|
| - |
|
1031 |
<legend><a href="javascript:;" class="body_scol" onClick="ToggleDisplay('divDiffFilter');" ><%=GetIsDiffFilterInUseIcon() %> Filter Results...</a></legend>
|
| - |
|
1032 |
<div name="divDiffFilter" id="divDiffFilter" class="body_txt" style="display:none;">
|
| - |
|
1033 |
<br>
|
| - |
|
1034 |
<table width="100%" border="0" cellspacing="1" cellpadding="3">
|
| - |
|
1035 |
<tr>
|
| 1147 |
<a href="javascript:;" onClick="UndoPackage( '<%=rowId%>' );"><%=LIMG_UNDO%></a>
|
1036 |
<td width="1" background="images/bg_action_norm.gif"><input name="difilter" type="checkbox" value="<%=enumDB_NUM_DIFF_UPDATED%>" <%=GetIsDiffFilterChecked(enumDB_NUM_DIFF_UPDATED)%>></td>
|
| - |
|
1037 |
<td width="50" nowrap background="images/bg_action_norm.gif" class="form_field"><%=LIMG_UPDATED%>Updated</td>
|
| - |
|
1038 |
</tr>
|
| - |
|
1039 |
<tr>
|
| - |
|
1040 |
<td background="images/bg_action_norm.gif"><input type="checkbox" name="difilter" value="<%=enumDB_NUM_DIFF_NEW%>" <%=GetIsDiffFilterChecked(enumDB_NUM_DIFF_NEW)%>></td>
|
| - |
|
1041 |
<td nowrap background="images/bg_action_norm.gif" class="form_field"><%=LIMG_ADDED%>Added</td>
|
| - |
|
1042 |
</tr>
|
| - |
|
1043 |
<tr>
|
| - |
|
1044 |
<td background="images/bg_action_norm.gif"><input type="checkbox" name="difilter" value="<%=enumDB_NUM_DIFF_REMOVED%>" <%=GetIsDiffFilterChecked(enumDB_NUM_DIFF_REMOVED)%>></td>
|
| - |
|
1045 |
<td nowrap background="images/bg_action_norm.gif" class="form_field"><%=LIMG_REMOVED%>Removed</td>
|
| - |
|
1046 |
</tr>
|
| - |
|
1047 |
<tr>
|
| - |
|
1048 |
<td background="images/bg_action_norm.gif"><input type="checkbox" name="difilter" value="<%=enumDB_NUM_DIFF_RIPPLE%>" <%=GetIsDiffFilterChecked(enumDB_NUM_DIFF_RIPPLE)%>></td>
|
| - |
|
1049 |
<td nowrap background="images/bg_action_norm.gif" class="form_field"><%=LIMG_RIPPLED%>Rippled</td>
|
| - |
|
1050 |
</tr>
|
| - |
|
1051 |
<tr>
|
| - |
|
1052 |
<td background="images/bg_action_norm.gif"><input type="checkbox" name="difilter" value="<%=enumDB_NUM_DIFF_NO_CHANGE%>" <%=GetIsDiffFilterChecked(enumDB_NUM_DIFF_NO_CHANGE)%>></td>
|
| - |
|
1053 |
<td nowrap background="images/bg_action_norm.gif" class="form_field">Unchanged</td>
|
| - |
|
1054 |
</tr>
|
| - |
|
1055 |
<tr>
|
| - |
|
1056 |
<td background="images/bg_action_norm.gif"> </td>
|
| - |
|
1057 |
<td background="images/bg_action_norm.gif"><input name="btn" type="submit" class="form_btn" value="Hide"></td>
|
| - |
|
1058 |
</tr>
|
| - |
|
1059 |
</table>
|
| - |
|
1060 |
</div>
|
| - |
|
1061 |
</fieldset>
|
| - |
|
1062 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 1148 |
</DIV>
|
1063 |
<%End If%>
|
| 1149 |
</td>
|
1064 |
</td>
|
| 1150 |
</tr>
|
1065 |
<td></td>
|
| 1151 |
<%End If %>
|
1066 |
</tr>
|
| 1152 |
|
1067 |
</table>
|
| 1153 |
<%
|
1068 |
|
| 1154 |
If email AND NOT skipRow Then
|
1069 |
<%
|
| 1155 |
If rsQry("pv_id_a") Then
|
1070 |
' Successfull Merge
|
| 1156 |
Set rsQryCommentsA = OraDatabase.DbCreateDynaset( "SELECT COMMENTS FROM PACKAGE_VERSIONS WHERE PV_ID="& rsQry("pv_id_a"), cint(0))
|
1071 |
If (Request("btn") = "Merge") Then
|
| 1157 |
End If
|
1072 |
Call Messenger ( "Merge has completed successfully.", 3, "100%" )
|
| 1158 |
|
1073 |
End If
|
| 1159 |
If rsQry("pv_id_b") Then
|
1074 |
|
| 1160 |
Set rsQryCommentsB = OraDatabase.DbCreateDynaset( "SELECT COMMENTS FROM PACKAGE_VERSIONS WHERE PV_ID="& rsQry("pv_id_b"), cint(0))
|
1075 |
Set FSO=Server.CreateObject("Scripting.FileSystemObject")
|
| 1161 |
End If
|
1076 |
Set NewTextFile=FSO.CreateTextFile(Server.MapPath("docs\compareReleases_"&objAccessControl.UserName&".html"), true)
|
| 1162 |
|
1077 |
|
| 1163 |
pkgA = rsQry("pkg_name_a")
|
1078 |
Call Header()
|
| 1164 |
pkgB = rsQry("pkg_name_b")
|
1079 |
|
| 1165 |
|
1080 |
If (parRtagA <> "") AND (parRtagB <> "")Then%>
|
| 1166 |
If pkgA <> "" then
|
1081 |
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
| 1167 |
pkgname = pkgA
|
1082 |
<tr>
|
| 1168 |
Else
|
1083 |
<td width="50%" bgcolor="#E4E9EC" class="body_row" nowrap><%= ReleaseIcon(objRelCollectorA.Item("official")) & objRelCollectorA.Item("location")%> </td>
|
| 1169 |
pkgname = pkgB
|
1084 |
<td width="1" bgcolor="#E4E9EC"><img src="images/spacer.gif" width="20" height="1"></td>
|
| 1170 |
End If
|
1085 |
<td width="1" bgcolor="#E4E9EC"><img src="images/spacer.gif" width="20" height="20"></td>
|
| 1171 |
|
1086 |
<td width="1" bgcolor="#E4E9EC"><img src="images/spacer.gif" width="20" height="1"></td>
|
| 1172 |
If changeType = "U" OR changeType = "UW" Then
|
1087 |
<td width="50%" bgcolor="#E4E9EC" class="body_row" nowrap><%= ReleaseIcon(objRelCollectorB.Item("official")) & objRelCollectorB.Item("location")%></td>
|
| 1173 |
ChangeASource = false
|
1088 |
<td width="1" bgcolor="#E4E9EC"><img src="images/spacer.gif" width="20" height="1"></td>
|
| 1174 |
ChangeAUpdate = false
|
1089 |
</tr>
|
| 1175 |
ChangeBSource = false
|
1090 |
<%
|
| 1176 |
ChangeBUpdate = false
|
1091 |
OraDatabase.Parameters.Add "RTAG_A", parRtagA, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 1177 |
|
1092 |
OraDatabase.Parameters.Add "RTAG_B", parRtagB, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 1178 |
'NewTextFile.WriteLine("<br><b><font face="&chr(34)&"arial"&chr(34)&">"&pkgname&"</font></b>")
|
1093 |
OraDatabase.Parameters.Add "NO_CHANGE", GetIsDiffFilterChecked(enumDB_NUM_DIFF_NO_CHANGE), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 1179 |
NewTextFile.Write("<SPAN id=""spanShowDetails"& rowId &""" name=""spanShowDetails""><a href=""javascript:;"" class=""body_scol"" onClick=""DisplaySPAN(true,'"& rowId &"');"">"& pkgname &"</a></SPAN>")
|
1094 |
OraDatabase.Parameters.Add "ADDED", GetIsDiffFilterChecked(enumDB_NUM_DIFF_NEW), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 1180 |
NewTextFile.Write("<SPAN id=""spanHideDetails"& rowId &""" name=""spanHideDetails"" style=""display:none;""><a href=""javascript:;"" class=""body_scol"" onClick=""DisplaySPAN(false,'"& rowId &"');"">"& pkgname &"</a></SPAN>")
|
1095 |
OraDatabase.Parameters.Add "UPDATED", GetIsDiffFilterChecked(enumDB_NUM_DIFF_UPDATED), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 1181 |
NewTextFile.WriteLine("<SPAN id=""spanPkgInfo"& rowId &""" name=""spanPkgInfo"" style=""display:none;"">")
|
1096 |
OraDatabase.Parameters.Add "REMOVED", GetIsDiffFilterChecked(enumDB_NUM_DIFF_REMOVED), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 1182 |
NewTextFile.Write(rsQryA("rtag_name")&" uses: "&rsQry("pkg_version_a")&" (")
|
1097 |
|
| 1183 |
Call Release(rsQry("pv_id_a"))
|
1098 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseDiff.sql"), cint(0))
|
| 1184 |
NewTextFile.WriteLine(")<br>")
|
1099 |
|
| 1185 |
NewTextFile.Write(rsQryB("rtag_name")&" uses: "&rsQry("pkg_version_b")&" (")
|
1100 |
OraDatabase.Parameters.Remove "RTAG_A"
|
| 1186 |
Call Release(rsQry("pv_id_b"))
|
1101 |
OraDatabase.Parameters.Remove "RTAG_B"
|
| 1187 |
NewTextFile.WriteLine(")<br>")
|
1102 |
OraDatabase.Parameters.Remove "NO_CHANGE"
|
| 1188 |
|
1103 |
OraDatabase.Parameters.Remove "ADDED"
|
| 1189 |
a = rsQry("pv_id_a")
|
1104 |
OraDatabase.Parameters.Remove "UPDATED"
|
| 1190 |
b = rsQry("pv_id_b")
|
1105 |
OraDatabase.Parameters.Remove "REMOVED"
|
| 1191 |
c = rsQry("pv_id_a")
|
1106 |
|
| 1192 |
d = rsQry("pv_id_b")
|
1107 |
Set rsQryA = OraDatabase.DbCreateDynaset( "SELECT RT.RTAG_NAME, PRJ.PROJ_NAME FROM RELEASE_TAGS RT, PROJECTS PRJ WHERE RTAG_ID="& parRtagA &" AND RT.PROJ_ID=PRJ.PROJ_ID", cint(0))
|
| 1193 |
|
1108 |
Set rsQryB = OraDatabase.DbCreateDynaset( "SELECT RT.RTAG_NAME, PRJ.PROJ_NAME FROM RELEASE_TAGS RT, PROJECTS PRJ WHERE RTAG_ID="& parRtagB &" AND RT.PROJ_ID=PRJ.PROJ_ID", cint(0))
|
| 1194 |
Set pvCollectionA = CreateObject("Scripting.Dictionary")
|
1109 |
|
| 1195 |
Set pvCollectionB = CreateObject("Scripting.Dictionary")
|
1110 |
Call Javascript()
|
| 1196 |
On Error Resume Next
|
1111 |
Call Styles()
|
| 1197 |
While CLng(a) <> CLng(b) and NOT errormsg
|
1112 |
|
| 1198 |
|
1113 |
NewTextFile.WriteLine("<title>Difference Report Between "&rsQryA("proj_name")&" "&rsQryA("rtag_name")&" and "&rsQryB("proj_name")&" "&rsQryB("rtag_name")&"</title>")
|
| 1199 |
'NewTextFile.WriteLine("A: "&a)
|
1114 |
NewTextFile.WriteLine("<div class=""page_title"">Difference Report Between "&rsQryA("proj_name")&" "&rsQryA("rtag_name")&" and "&rsQryB("proj_name")&" "&rsQryB("rtag_name")&"</div><br>")
|
| 1200 |
'NewTextFile.WriteLine("B: "&b)
|
1115 |
NewTextFile.WriteLine("<b>Key:</b><br><blockquote>")
|
| 1201 |
pvCollectionA.Add CStr(a), Empty
|
1116 |
NewTextFile.WriteLine("<span class=changesa><b>SOURCE CODE CHANGES</b></span><span class=texta> Indicates Changes to a Package in "& rsQryA("rtag_name") &".</span><br>")
|
| 1202 |
pvCollectionB.Add CStr(b), Empty
|
1117 |
NewTextFile.WriteLine("<span class=changesb><b>SOURCE CODE CHANGES</b></span><span class=textb> Indicates Changes to a Package in "& rsQryB("rtag_name") &".</span><br>")
|
| 1203 |
If CLng(a) > CLng(b) Then
|
1118 |
NewTextFile.WriteLine("<span class=changesnone><b>Grey Text</b></span><span class=textnone> No Source Code Changes to a Package in either Release.</span>")
|
| 1204 |
'NewTextFile.WriteLine("TestA")
|
1119 |
NewTextFile.WriteLine("</blockquote>")
|
| 1205 |
Call LastPvIdA(a)
|
1120 |
|
| 1206 |
ElseIf CLng(b) > CLng(a) Then
|
1121 |
NewTextFile.WriteLine("<b>Toggle Sections:</b><blockquote>")
|
| 1207 |
'NewTextFile.WriteLine("TestB")
|
1122 |
NewTextFile.WriteLine("<a href=""javascript:;"" onClick=""MM_toggleAll('divPkgInfo','1');"">Expand All</a>")
|
| 1208 |
Call LastPvIdB(b)
|
1123 |
NewTextFile.WriteLine("<a href=""javascript:;"" onClick=""MM_toggleAll('divPkgInfo','');"">Collapse All</a>")
|
| 1209 |
End If
|
1124 |
NewTextFile.WriteLine("</blockquote>")
|
| 1210 |
Wend
|
1125 |
|
| 1211 |
|
1126 |
Dim currView_id
|
| 1212 |
Set pvCollectionA = Nothing
|
1127 |
currView_id = -1
|
| 1213 |
Set pvCollectionB = Nothing
|
1128 |
|
| 1214 |
|
1129 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
| 1215 |
Call pkg_Version(a)
|
1130 |
errormsg = false
|
| 1216 |
NewTextFile.Write("Common PARENT package version: "&pkgversion&" (")
|
1131 |
rowId = rsQry("pv_id_a") &"_"& rsQry("pv_id_b")
|
| 1217 |
Call Release(a)
|
1132 |
|
| 1218 |
NewTextFile.WriteLine(")<br><br>")
|
1133 |
btnMerge = LIMG_MERGE
|
| 1219 |
NewTextFile.WriteLine()
|
1134 |
btnRemove = LIMG_REMOVE
|
| 1220 |
NewTextFile.WriteLine("<b>"&rsQryA("rtag_name")&"</b>")
|
1135 |
colorA = LCOLOR_NOT_CHANGED
|
| 1221 |
|
1136 |
colorB = LCOLOR_NOT_CHANGED
|
| 1222 |
If pkgversion <> rsQry("pkg_version_a") Then
|
1137 |
|
| 1223 |
NewTextFile.WriteLine("<blockquote><b><i>Versions between "& pkgversion &" and "& rsQry("pkg_version_a")&"</i></b></blockquote>")
|
1138 |
changeType = rsQry("change_type")
|
| 1224 |
|
1139 |
|
| 1225 |
If errormsg Then
|
1140 |
Select Case changeType
|
| 1226 |
NewTextFile.WriteLine("Error determining root!<br>")
|
1141 |
Case "U"
|
| 1227 |
NewTextFile.WriteLine()
|
1142 |
colorA = LCOLOR_CHANGED
|
| 1228 |
End If
|
1143 |
colorB = LCOLOR_CHANGED
|
| 1229 |
|
1144 |
Case "UW"
|
| 1230 |
source_change = false
|
1145 |
colorA = LCOLOR_CHANGED
|
| 1231 |
|
1146 |
colorB = LCOLOR_CHANGED
|
| 1232 |
While CLng(a) <> CLng(c) and NOT errormsg
|
1147 |
btnMerge = LIMG_MERGE_WARN
|
| 1233 |
Call Comments(c)
|
1148 |
Case "UR"
|
| 1234 |
Call GetFixedIssues(c)
|
1149 |
colorA = LCOLOR_RIPPLED
|
| 1235 |
Call LastPvIdAa(c)
|
1150 |
colorB = LCOLOR_RIPPLED
|
| 1236 |
NewTextFile.WriteLine()
|
1151 |
Case "A"
|
| 1237 |
Wend
|
1152 |
colorA = LCOLOR_BLANK
|
| 1238 |
|
1153 |
Case "R"
|
| 1239 |
If source_change = false Then
|
1154 |
colorB = LCOLOR_BLANK
|
| 1240 |
NewTextFile.WriteLine("<blockquote><b><i>No source changes to "& rsQryA("rtag_name")&". Only Rippled Builds.</i></b></blockquote><br>")
|
1155 |
End Select
|
| 1241 |
ChangeASource = true
|
1156 |
|
| 1242 |
End If
|
1157 |
Call GetDiffStateIcon ( changeType, ChangeTypeIcon )
|
| 1243 |
|
1158 |
|
| 1244 |
Call pkg_Version(b)
|
1159 |
If changeType = "U" OR changeType = "UW" OR changeType = "UR" Then
|
| 1245 |
NewTextFile.WriteLine()
|
1160 |
Dim MajorA, MajorB, MinorA, MinorB, PatchA, PatchB, BuildA, BuildB, pos, pkgVersionA, pkgVersionB, majMinA, majMinB
|
| 1246 |
NewTextFile.WriteLine()
|
1161 |
MajorA = NULL
|
| 1247 |
|
1162 |
MajorB = NULL
|
| 1248 |
ElseIf pkgversion = rsQry("pkg_version_a") Then
|
1163 |
MinorA = NULL
|
| 1249 |
NewTextFile.WriteLine("<blockquote><b><i>No updates to "& rsQryA("rtag_name")&"</i></b></blockquote><br>")
|
1164 |
MinorB = NULL
|
| 1250 |
ChangeAUpdate = true
|
1165 |
|
| 1251 |
NewTextFile.WriteLine()
|
1166 |
pkgVersionA = rsQry("pkg_version_a")
|
| 1252 |
End If
|
1167 |
pkgVersionB = rsQry("pkg_version_b")
|
| 1253 |
|
1168 |
|
| 1254 |
NewTextFile.WriteLine("<b>"&rsQryB("rtag_name")&"</b>")
|
1169 |
PatchA = rsQry("patch_number_a")
|
| 1255 |
|
1170 |
PatchB = rsQry("patch_number_b")
|
| 1256 |
If pkgversion <> rsQry("pkg_version_b") Then
|
1171 |
BuildA = rsQry("build_number_a")
|
| 1257 |
NewTextFile.WriteLine("<blockquote><b><i>Versions between "& pkgversion &" and "& rsQry("pkg_version_b")&"</i></b></blockquote>")
|
1172 |
BuildB = rsQry("build_number_b")
|
| 1258 |
|
1173 |
|
| 1259 |
If errormsg Then
|
1174 |
|
| 1260 |
NewTextFile.WriteLine("Error determining root!<br>")
|
1175 |
' Find the first occurence of the dot in package version A
|
| 1261 |
NewTextFile.WriteLine()
|
1176 |
pos = InStr(pkgVersionA, ".")
|
| 1262 |
End If
|
1177 |
If pos <> 0 Then
|
| 1263 |
|
1178 |
' Extract the Major Version for A
|
| 1264 |
source_change = false
|
1179 |
MajorA = Mid(pkgVersionA, 1, pos - 1)
|
| 1265 |
|
1180 |
' Delete the Major Version Value from the string to get the minor and patch version
|
| 1266 |
While CLng(b) <> CLng(d) and NOT errormsg
|
1181 |
pkgVersionA = Mid(pkgVersionA, pos + 1, Len(pkgVersionA))
|
| 1267 |
Call Comments(d)
|
1182 |
' Find the second occurence of the dot in package version A
|
| 1268 |
Call GetFixedIssues(d)
|
1183 |
pos = InStr(pkgVersionA, ".")
|
| 1269 |
Call LastPvIdBb(d)
|
1184 |
' Extract the Minor Version for A
|
| 1270 |
NewTextFile.WriteLine()
|
1185 |
If pos <> 0 Then
|
| 1271 |
Wend
|
1186 |
MinorA = Mid(pkgVersionA, 1, pos - 1)
|
| 1272 |
|
1187 |
End If
|
| 1273 |
If source_change = false Then
|
1188 |
End If
|
| 1274 |
NewTextFIle.WriteLine("<blockquote><b><i>No source changes to "& rsQryB("rtag_name")&". Only Rippled Builds.</i></b></blockquote><br>")
|
1189 |
|
| 1275 |
ChangeBSource = true
|
1190 |
' Find the first occurence of the dot in package version B
|
| 1276 |
End If
|
1191 |
pos = InStr(pkgVersionB, ".")
|
| 1277 |
|
1192 |
If pos <> 0 Then
|
| 1278 |
ElseIf pkgversion = rsQry("pkg_version_b") Then
|
1193 |
' Extract the Major Version for B
|
| 1279 |
NewTextFile.WriteLine("<blockquote><b><i>No updates to "& rsQryB("rtag_name")&"</i></b></blockquote><br>")
|
1194 |
MajorB = Mid(pkgVersionB, 1, pos - 1)
|
| 1280 |
ChangeBUpdate = true
|
1195 |
' Delete the Major Version Value from the string to get the minor and patch version
|
| 1281 |
NewTextFile.WriteLine()
|
1196 |
pkgVersionB = Mid(pkgVersionB, pos + 1, Len(pkgVersionB))
|
| 1282 |
End If
|
1197 |
' Find the second occurence of the dot in package version B
|
| 1283 |
|
1198 |
pos = InStr(pkgVersionB, ".")
|
| 1284 |
NewTextFile.WriteLine("</SPAN>")
|
1199 |
' Extract the Minor Version for B
|
| 1285 |
|
1200 |
If pos <> 0 Then
|
| 1286 |
If ChangeASource Then
|
1201 |
MinorB = Mid(pkgVersionB, 1, pos - 1)
|
| 1287 |
If ChangeBSource Then
|
1202 |
End If
|
| 1288 |
NewTextFile.WriteLine("<blockquote><table width=""700"" border=""0""> <tr><td width=""335""><b>"& Ucase(rsQryA("rtag_name")) &": .</b><font color="&chr(34)&"#999999"&chr(34)&"> Ripple Builds Only.</font></td> <td width=""349""><b>"& Ucase(rsQryB("rtag_name")) &": </b><font color="&chr(34)&"#999999"&chr(34)&"> Ripple Builds Only.</font></td> </tr></table></blockquote>")
|
1203 |
End If
|
| 1289 |
ElseIf ChangeBUpdate Then
|
1204 |
|
| 1290 |
NewTextFile.WriteLine("<blockquote><table width=""700"" border=""0""> <tr><td width=""335""><b>"& Ucase(rsQryA("rtag_name")) &": </b><font color="&chr(34)&"#999999"&chr(34)&">Ripple Builds Only.</font></td> <td width=""349""><b>"& Ucase(rsQryB("rtag_name")) &": </b><font color="&chr(34)&"#999999"&chr(34)&">No Updates.</font></td> </tr></table></blockquote>")
|
1205 |
If MajorA = MajorB Then
|
| 1291 |
ElseIf NOT ChangeBSource AND NOT ChangeBUpdate Then
|
1206 |
If MinorA = MinorB Then
|
| 1292 |
NewTextFile.WriteLine("<blockquote><table width=""700"" border=""0""> <tr><td width=""335""><b>"& Ucase(rsQryA("rtag_name")) &":</b> <font color="&chr(34)&"999999"&chr(34)&">Ripple Builds Only.</font></td> <td width=""349""> <b>"& Ucase(rsQryB("rtag_name")) &":</b> <b><font style="&chr(34)&"background-color:#FF9933"&chr(34)&">SOURCE CODE CHANGES.</b></font></td> </tr></table></blockquote>")
|
1207 |
If IsNumeric(PatchA) AND IsNumeric(PatchB) Then
|
| 1293 |
End If
|
1208 |
If CInt(PatchB) > CInt(PatchA) Then
|
| 1294 |
End If
|
1209 |
btnMerge = LIMG_MERGE_WARN
|
| 1295 |
|
1210 |
Else
|
| 1296 |
If ChangeBSource Then
|
1211 |
btnMerge = LIMG_MERGE
|
| 1297 |
If NOT ChangeAUpdate Then
|
1212 |
End If
|
| 1298 |
If NOT ChangeASource AND NOT ChangeBUpdate Then
|
1213 |
End If
|
| 1299 |
NewTextFile.WriteLine("<blockquote><table width=""700"" border=""0""> <tr><td width=""335""><b>"& Ucase(rsQryA("rtag_name")) &": </b><b><font style="&chr(34)&"background-color:red"&chr(34)&"> SOURCE CODE CHANGES</font></b>.</td> <td width=""349""> <b>"& Ucase(rsQryB("rtag_name")) &":</b> <font color="&chr(34)&"#999999"&chr(34)&">Ripple Builds Only.</font></td> </tr></table></blockquote>")
|
1214 |
Else
|
| 1300 |
End If
|
1215 |
If IsNumeric(MinorA) AND IsNumeric(MinorB) Then
|
| 1301 |
End If
|
1216 |
If CInt(MinorB) > CInt(MinorA) Then
|
| 1302 |
End If
|
1217 |
btnMerge = LIMG_MERGE_WARN
|
| 1303 |
|
1218 |
Else
|
| 1304 |
If NOT ChangeASource Then
|
1219 |
btnMerge = LIMG_MERGE
|
| 1305 |
If NOT ChangeAUpdate Then
|
1220 |
End If
|
| 1306 |
If NOT ChangeBSource AND NOT ChangeBUpdate Then
|
1221 |
End If
|
| 1307 |
NewTextFile.WriteLine("<blockquote><table width=""700"" border=""0""> <tr><td width=""335""><b>"& Ucase(rsQryA("rtag_name")) &": </b><b><font style="&chr(34)&"background-color:red"&chr(34)&"> SOURCE CODE CHANGES</font></b>.</td> <td width=""349""> <b>"& Ucase(rsQryB("rtag_name")) &":</b> <b><font style="&chr(34)&"background-color:#FF9933"&chr(34)&">SOURCE CODE CHANGES.</b></font></td> </tr></table></blockquote>")
|
1222 |
End If
|
| 1308 |
ElseIf ChangeBUpdate Then
|
1223 |
Else
|
| 1309 |
NewTextFile.WriteLine("<blockquote><table width=""700"" border=""0""> <tr><td width=""335""><b>"& Ucase(rsQryA("rtag_name")) &":</b> <b><font style="&chr(34)&"background-color:red"&chr(34)&">SOURCE CODE CHANGES.</font></b></td> <td width=""349""><b>"& Ucase(rsQryB("rtag_name")) &":</b><font color="&chr(34)&"#999999"&chr(34)&">No Updates.</font></td> </tr></table></blockquote>")
|
1224 |
If IsNumeric(MajorA) AND IsNumeric(MajorB) Then
|
| 1310 |
End If
|
1225 |
If CInt(MajorB) > CInt(MajorA) Then
|
| 1311 |
ElseIf ChangeAUpdate Then
|
1226 |
btnMerge = LIMG_MERGE_WARN
|
| 1312 |
If NOT ChangeBSource AND NOT ChangeBUpdate Then
|
1227 |
Else
|
| 1313 |
NewTextFile.WriteLine("<blockquote><table width=""700"" border=""0""> <tr><td width=""335""><b>"& Ucase(rsQryA("rtag_name")) &":</b> <font color="&chr(34)&"#999999"&chr(34)&">No Updates.</td> <td width=""349""> <b></font>"& Ucase(rsQryB("rtag_name")) &":</b> <b><font style="&chr(34)&"background-color:#FF9933"&chr(34)&">SOURCE CODE CHANGES.</font></b></td> </tr></table></blockquote>")
|
1228 |
btnMerge = LIMG_MERGE
|
| 1314 |
ElseIf ChangeBSource Then
|
1229 |
End If
|
| 1315 |
NewTextFile.WriteLine("<blockquote><table width=""700"" border=""0""> <tr><td width=""335""><b>"& Ucase(rsQryA("rtag_name")) &":</b> <font color="&chr(34)&"#999999"&chr(34)&">No Updates.</td> <td width=""349""> </font><b>"& Ucase(rsQryB("rtag_name")) &":</b> <font color="&chr(34)&"#999999"&chr(34)&">Ripple Builds Only.</font></td> </tr></table></blockquote>")
|
1230 |
End If
|
| 1316 |
End If
|
1231 |
End If
|
| 1317 |
End If
|
1232 |
End If
|
| 1318 |
End If
|
1233 |
|
| 1319 |
|
1234 |
' -------- FILTERS RIPPLE BUILDS WHEN CHECKED -----------------
|
| 1320 |
End If 'changeType = "U" OR changeType = "UW"
|
1235 |
If NOT (GetIsDiffFilterChecked(enumDB_NUM_DIFF_RIPPLE) = "checked" AND changeType = "UR") THEN
|
| 1321 |
|
1236 |
|
| 1322 |
End If 'email
|
1237 |
' -------- GROUP BY BASE VIEW -----------------
|
| 1323 |
|
1238 |
If CDbl(currView_id) <> CDbl(rsQry("view_id")) Then%>
|
| 1324 |
End If 'NOT (GetIsDiffFilterChecked(enumDB_NUM_DIFF_RIPPLE) = "checked" AND changeType = "UR")
|
1239 |
<tr>
|
| 1325 |
|
1240 |
<td valign="top" nowrap class="form_ttl"><b><%=rsQry("view_name")%></b></td>
|
| 1326 |
rsQry.MoveNext
|
1241 |
<td class="form_ttl"> </td>
|
| 1327 |
WEnd
|
1242 |
<td class="form_ttl"> </td>
|
| 1328 |
|
1243 |
<td class="form_ttl"> </td>
|
| 1329 |
rsQry.Close
|
1244 |
<td class="form_ttl"> </td>
|
| 1330 |
Set rsQry = Nothing
|
1245 |
<td class="form_ttl"> </td>
|
| 1331 |
%>
|
1246 |
</tr>
|
| 1332 |
<%
|
1247 |
<%
|
| 1333 |
Call Footer()
|
1248 |
currView_id = CDbl(rsQry("view_id"))
|
| 1334 |
NewTextFile.Close
|
1249 |
End If
|
| 1335 |
Set NewTextFile=Nothing
|
1250 |
' -------- END GROUP ------------------------
|
| 1336 |
%>
|
1251 |
%>
|
| 1337 |
</table>
|
1252 |
<%
|
| 1338 |
<br>
|
1253 |
'Determine if we are dealing with a PV_ID that we have already encountered and displayed as a pending addition
|
| 1339 |
<%Else%>
|
1254 |
'If we are, we do not need to display anything more about it, so skip the row.
|
| 1340 |
<br>
|
1255 |
' NOTE. the result set is sorted by change type (see releasediff.sql) such that if there are multiple entries
|
| 1341 |
<%
|
1256 |
' for the same PV_ID, they are sorted in the following order: unchanged, additions, removals, updates.
|
| 1342 |
If (parRtagB <> "") Then
|
1257 |
' This is important to the row skip filtering carried out below.
|
| 1343 |
Call Messenger ( "Select <b>Release A</b> to compare.", 3, "100%" )
|
1258 |
Dim skipRow
|
| 1344 |
ElseIf (parRtagA <> "") Then
|
1259 |
If rsQry("pv_id_a") Then
|
| 1345 |
Call Messenger ( "Select <b>Release B</b> to compare.", 3, "100%" )
|
1260 |
skipRow = pendingAdditions.Exists(CStr(rsQry("pv_id_a")))
|
| 1346 |
Else
|
1261 |
Else
|
| 1347 |
Call Messenger ( "Select <b>Release A</b> and <b>Release B</b> to compare.", 3, "100%" )
|
1262 |
skipRow = FALSE
|
| 1348 |
End If
|
1263 |
End If
|
| 1349 |
%>
|
1264 |
%>
|
| 1350 |
<%End If%>
|
1265 |
<%If NOT skipRow Then%>
|
| 1351 |
</td>
|
1266 |
<tr>
|
| 1352 |
<td width="1%" background="images/lbox_bgside_white.gif"> </td>
|
1267 |
<td class="body_row" nowrap>
|
| 1353 |
</tr>
|
1268 |
<DIV id="PVA<%=rowId%>" style="background:<%=colorA%>; padding:5px;">
|
| - |
|
1269 |
<%=rsQry("pkg_name_a") &" "& rsQry("pkg_version_a")%>
|
| - |
|
1270 |
</DIV>
|
| - |
|
1271 |
<input type="hidden" id="UNDOCOLORA_<%=rowId%>" value="<%=colorA%>">
|
| - |
|
1272 |
</td>
|
| - |
|
1273 |
<td bgcolor="#F5F5F5">
|
| - |
|
1274 |
<%If objRelCollectorB.Item("official") <> "Y" Then%>
|
| - |
|
1275 |
<DIV id="IMGMERGE<%=rowId%>" <%If (changeType = "A") OR IsNull( changeType ) Then%>style="display:none;"<%End If%>><a href="javascript:;" onClick="MergePackage( '<%=rsQry("pv_id_a")%>', '<%=rsQry("pv_id_b")%>', '<%=rowId%>' );"><%=btnMerge%></a></DIV>
|
| - |
|
1276 |
<%End If%>
|
| - |
|
1277 |
</td>
|
| - |
|
1278 |
<td bgcolor="#E4E9EC">
|
| - |
|
1279 |
<DIV id="IMGSTATE<%=rowId%>" ><%=ChangeTypeIcon%></DIV>
|
| - |
|
1280 |
<input type="hidden" id="CHANGETYPE_<%=rowId%>" value="<%=changeType%>">
|
| - |
|
1281 |
</td>
|
| - |
|
1282 |
<td bgcolor="#F5F5F5">
|
| - |
|
1283 |
<%If objRelCollectorB.Item("official") <> "Y" Then%>
|
| - |
|
1284 |
<DIV id="IMGREMOVE<%=rowId%>" <%If changeType = "R" Then%>style="display:none;"<%End If%>><a href="javascript:;" onClick="RemovePackage( '<%=rsQry("pv_id_a")%>', '<%=rsQry("pv_id_b")%>', '<%=rowId%>' );"><%=btnRemove%></a></DIV>
|
| - |
|
1285 |
<%End If%>
|
| - |
|
1286 |
</td>
|
| - |
|
1287 |
<td class="body_row" nowrap>
|
| - |
|
1288 |
<DIV id="PVB<%=rowId%>" style="background:<%=colorB%>; padding:5px;">
|
| - |
|
1289 |
<%If IsNull(rsQry("pv_id_b")) Then %>
|
| - |
|
1290 |
<%If Is_Pending_Sub(Request("rtagB"), rsQry("pv_id_a")) Then%>
|
| - |
|
1291 |
(removal pending<%=Quick_Help("RemovalPending")%>)
|
| - |
|
1292 |
<%End If %>
|
| - |
|
1293 |
<%Else%>
|
| - |
|
1294 |
<%=rsQry("pkg_name_b") &" "& rsQry("pkg_version_b")%>
|
| - |
|
1295 |
<%If Is_Pending_Add(Request("rtagB"), rsQry("pv_id_b")) Then%>
|
| - |
|
1296 |
(addition pending<%=Quick_Help("AdditionPending")%>)
|
| - |
|
1297 |
<% 'Add this pending addition to the dictionary so that we can filter out REMOVED entries
|
| - |
|
1298 |
'with identical PV_ID's that we might encounter further on in the result set
|
| - |
|
1299 |
If NOT pendingAdditions.Exists(rsQry("pv_id_b")) Then
|
| - |
|
1300 |
pendingAdditions.Add CStr(rsQry("pv_id_b")), CStr(rsQry("pkg_version_b"))
|
| - |
|
1301 |
End If%>
|
| - |
|
1302 |
<%ElseIf Is_Pending_Sub(Request("rtagB"), rsQry("pv_id_b")) Then%>
|
| - |
|
1303 |
(removal pending<%=Quick_Help("RemovalPending")%>)
|
| - |
|
1304 |
<%End If %>
|
| - |
|
1305 |
<%End If %>
|
| - |
|
1306 |
</DIV>
|
| - |
|
1307 |
<input type="hidden" id="UNDOCOLORB_<%=rowId%>" value="<%=colorB%>">
|
| - |
|
1308 |
<input type="hidden" name="addpkg" id="ADDPKG_<%=rowId%>" value="">
|
| - |
|
1309 |
<input type="hidden" name="removepkg" id="REMOVEPKG_<%=rowId%>" value="">
|
| - |
|
1310 |
<input type="hidden" id="UNDOPKG_<%=rowId%>" value="<%=rsQry("pkg_name_b") &" "& rsQry("pkg_version_b")%>">
|
| - |
|
1311 |
</td>
|
| - |
|
1312 |
<td bgcolor="#F5F5F5">
|
| - |
|
1313 |
<DIV id="IMGUNDO<%=rowId%>" style="display:none;" >
|
| - |
|
1314 |
<a href="javascript:;" onClick="UndoPackage( '<%=rowId%>' );"><%=LIMG_UNDO%></a>
|
| - |
|
1315 |
</DIV>
|
| - |
|
1316 |
</td>
|
| - |
|
1317 |
</tr>
|
| - |
|
1318 |
<%End If %>
|
| - |
|
1319 |
|
| - |
|
1320 |
<%
|
| - |
|
1321 |
If genReport AND NOT skipRow Then
|
| - |
|
1322 |
If rsQry("pv_id_a") Then
|
| - |
|
1323 |
Set rsQryCommentsA = OraDatabase.DbCreateDynaset( "SELECT COMMENTS FROM PACKAGE_VERSIONS WHERE PV_ID="& rsQry("pv_id_a"), cint(0))
|
| - |
|
1324 |
End If
|
| - |
|
1325 |
|
| - |
|
1326 |
If rsQry("pv_id_b") Then
|
| - |
|
1327 |
Set rsQryCommentsB = OraDatabase.DbCreateDynaset( "SELECT COMMENTS FROM PACKAGE_VERSIONS WHERE PV_ID="& rsQry("pv_id_b"), cint(0))
|
| - |
|
1328 |
End If
|
| - |
|
1329 |
|
| - |
|
1330 |
pkgA = rsQry("pkg_name_a")
|
| - |
|
1331 |
pkgB = rsQry("pkg_name_b")
|
| - |
|
1332 |
|
| - |
|
1333 |
If pkgA <> "" then
|
| - |
|
1334 |
pkgname = pkgA
|
| - |
|
1335 |
Else
|
| - |
|
1336 |
pkgname = pkgB
|
| - |
|
1337 |
End If
|
| - |
|
1338 |
|
| - |
|
1339 |
If changeType = "U" OR changeType = "UW" Then
|
| - |
|
1340 |
ChangeASource = false
|
| - |
|
1341 |
ChangeAUpdate = false
|
| - |
|
1342 |
ChangeBSource = false
|
| - |
|
1343 |
ChangeBUpdate = false
|
| - |
|
1344 |
|
| - |
|
1345 |
'NewTextFile.WriteLine("<br><b><font face="&chr(34)&"arial"&chr(34)&">"&pkgname&"</font></b>")
|
| - |
|
1346 |
NewTextFile.Write("<a href=""javascript:;"" class=""body_scol"" onClick=""toggleSPAN('"& rowId &"');"">"& pkgname &"</a>")
|
| - |
|
1347 |
NewTextFile.WriteLine("<DIV class=divPkgInfo id=""spanPkgInfo"& rowId &""" name=""spanPkgInfo"" style=""display:none;"">")
|
| - |
|
1348 |
NewTextFile.Write(rsQryA("rtag_name")&" uses: "&rsQry("pkg_version_a")&" (")
|
| - |
|
1349 |
Call Release(rsQry("pv_id_a"))
|
| - |
|
1350 |
NewTextFile.WriteLine(")<br>")
|
| - |
|
1351 |
NewTextFile.Write(rsQryB("rtag_name")&" uses: "&rsQry("pkg_version_b")&" (")
|
| - |
|
1352 |
Call Release(rsQry("pv_id_b"))
|
| - |
|
1353 |
NewTextFile.WriteLine(")<br>")
|
| - |
|
1354 |
|
| - |
|
1355 |
a = rsQry("pv_id_a")
|
| - |
|
1356 |
b = rsQry("pv_id_b")
|
| - |
|
1357 |
c = rsQry("pv_id_a")
|
| - |
|
1358 |
d = rsQry("pv_id_b")
|
| - |
|
1359 |
|
| - |
|
1360 |
Set pvCollectionA = CreateObject("Scripting.Dictionary")
|
| - |
|
1361 |
Set pvCollectionB = CreateObject("Scripting.Dictionary")
|
| - |
|
1362 |
On Error Resume Next
|
| - |
|
1363 |
While CLng(a) <> CLng(b) and NOT errormsg
|
| - |
|
1364 |
|
| - |
|
1365 |
'NewTextFile.WriteLine("A: "&a)
|
| - |
|
1366 |
'NewTextFile.WriteLine("B: "&b)
|
| - |
|
1367 |
pvCollectionA.Add CStr(a), Empty
|
| - |
|
1368 |
pvCollectionB.Add CStr(b), Empty
|
| - |
|
1369 |
If CLng(a) > CLng(b) Then
|
| - |
|
1370 |
'NewTextFile.WriteLine("TestA")
|
| - |
|
1371 |
Call LastPvIdA(a)
|
| - |
|
1372 |
ElseIf CLng(b) > CLng(a) Then
|
| - |
|
1373 |
'NewTextFile.WriteLine("TestB")
|
| - |
|
1374 |
Call LastPvIdB(b)
|
| - |
|
1375 |
End If
|
| - |
|
1376 |
Wend
|
| - |
|
1377 |
|
| - |
|
1378 |
Set pvCollectionA = Nothing
|
| - |
|
1379 |
Set pvCollectionB = Nothing
|
| - |
|
1380 |
|
| - |
|
1381 |
Call pkg_Version(a)
|
| - |
|
1382 |
NewTextFile.Write("Common PARENT package version: "&pkgversion&" (")
|
| - |
|
1383 |
Call Release(a)
|
| - |
|
1384 |
NewTextFile.WriteLine(")<br><br>")
|
| - |
|
1385 |
NewTextFile.WriteLine()
|
| - |
|
1386 |
NewTextFile.WriteLine("<b>"&rsQryA("rtag_name")&"</b>")
|
| - |
|
1387 |
|
| - |
|
1388 |
If pkgversion <> rsQry("pkg_version_a") Then
|
| - |
|
1389 |
NewTextFile.WriteLine("<blockquote><b><i>Versions between "& pkgversion &" and "& rsQry("pkg_version_a")&"</i></b></blockquote>")
|
| - |
|
1390 |
|
| - |
|
1391 |
If errormsg Then
|
| - |
|
1392 |
NewTextFile.WriteLine("Error determining root!<br>")
|
| - |
|
1393 |
NewTextFile.WriteLine()
|
| - |
|
1394 |
End If
|
| - |
|
1395 |
|
| - |
|
1396 |
source_change = false
|
| - |
|
1397 |
|
| - |
|
1398 |
While CLng(a) <> CLng(c) and NOT errormsg
|
| - |
|
1399 |
Call Comments(c)
|
| - |
|
1400 |
If scFlag = TRUE Then
|
| - |
|
1401 |
Call GetFixedIssues(c)
|
| - |
|
1402 |
End If
|
| - |
|
1403 |
Call LastPvIdAa(c)
|
| - |
|
1404 |
NewTextFile.WriteLine()
|
| - |
|
1405 |
Wend
|
| - |
|
1406 |
|
| - |
|
1407 |
If source_change = false Then
|
| - |
|
1408 |
NewTextFile.WriteLine("<blockquote><b><i>No source changes to "& rsQryA("rtag_name")&". Only Rippled Builds.</i></b></blockquote><br>")
|
| - |
|
1409 |
ChangeASource = true
|
| - |
|
1410 |
End If
|
| - |
|
1411 |
|
| - |
|
1412 |
Call pkg_Version(b)
|
| - |
|
1413 |
NewTextFile.WriteLine()
|
| - |
|
1414 |
NewTextFile.WriteLine()
|
| - |
|
1415 |
|
| - |
|
1416 |
ElseIf pkgversion = rsQry("pkg_version_a") Then
|
| - |
|
1417 |
NewTextFile.WriteLine("<blockquote><b><i>No updates to "& rsQryA("rtag_name")&"</i></b></blockquote><br>")
|
| - |
|
1418 |
ChangeAUpdate = true
|
| - |
|
1419 |
NewTextFile.WriteLine()
|
| - |
|
1420 |
End If
|
| - |
|
1421 |
|
| - |
|
1422 |
NewTextFile.WriteLine("<b>"&rsQryB("rtag_name")&"</b>")
|
| - |
|
1423 |
|
| - |
|
1424 |
If pkgversion <> rsQry("pkg_version_b") Then
|
| - |
|
1425 |
NewTextFile.WriteLine("<blockquote><b><i>Versions between "& pkgversion &" and "& rsQry("pkg_version_b")&"</i></b></blockquote>")
|
| - |
|
1426 |
|
| - |
|
1427 |
If errormsg Then
|
| - |
|
1428 |
NewTextFile.WriteLine("Error determining root!<br>")
|
| - |
|
1429 |
NewTextFile.WriteLine()
|
| - |
|
1430 |
End If
|
| - |
|
1431 |
|
| - |
|
1432 |
source_change = false
|
| - |
|
1433 |
|
| - |
|
1434 |
While CLng(b) <> CLng(d) and NOT errormsg
|
| - |
|
1435 |
Call Comments(d)
|
| - |
|
1436 |
If scFlag = TRUE Then
|
| - |
|
1437 |
Call GetFixedIssues(d)
|
| - |
|
1438 |
End If
|
| - |
|
1439 |
Call LastPvIdBb(d)
|
| - |
|
1440 |
NewTextFile.WriteLine()
|
| - |
|
1441 |
Wend
|
| - |
|
1442 |
|
| - |
|
1443 |
If source_change = false Then
|
| - |
|
1444 |
NewTextFIle.WriteLine("<blockquote><b><i>No source changes to "& rsQryB("rtag_name")&". Only Rippled Builds.</i></b></blockquote><br>")
|
| - |
|
1445 |
ChangeBSource = true
|
| - |
|
1446 |
End If
|
| - |
|
1447 |
|
| - |
|
1448 |
ElseIf pkgversion = rsQry("pkg_version_b") Then
|
| - |
|
1449 |
NewTextFile.WriteLine("<blockquote><b><i>No updates to "& rsQryB("rtag_name")&"</i></b></blockquote><br>")
|
| - |
|
1450 |
ChangeBUpdate = true
|
| - |
|
1451 |
NewTextFile.WriteLine()
|
| - |
|
1452 |
End If
|
| - |
|
1453 |
|
| - |
|
1454 |
NewTextFile.WriteLine("</DIV>")
|
| - |
|
1455 |
|
| - |
|
1456 |
If ChangeASource Then
|
| - |
|
1457 |
If ChangeBSource Then
|
| - |
|
1458 |
NewTextFile.WriteLine("<blockquote><table width=""100%"" border=""0""> <tr><td width=""50%""><b>"& Ucase(rsQryA("rtag_name")) &": .</b class=changesnone> Ripple Builds Only.</td><td width=""50%""><b>"& Ucase(rsQryB("rtag_name")) &": </b class=changesnone> Ripple Builds Only.</td> </tr></table></blockquote>")
|
| - |
|
1459 |
ElseIf ChangeBUpdate Then
|
| - |
|
1460 |
NewTextFile.WriteLine("<blockquote><table width=""100%"" border=""0""> <tr><td width=""50%""><b>"& Ucase(rsQryA("rtag_name")) &": </b><span class=changesnone>Ripple Builds Only.</span></td><td width=""50%""><b>"& Ucase(rsQryB("rtag_name")) &": </b><span class=changesnone> No Updates.</span></td> </tr></table></blockquote>")
|
| - |
|
1461 |
ElseIf NOT ChangeBSource AND NOT ChangeBUpdate Then
|
| - |
|
1462 |
NewTextFile.WriteLine("<blockquote><table width=""100%"" border=""0""><tr><td width=""50%""><b>"& Ucase(rsQryA("rtag_name")) &":</b> <span class=changesnone>Ripple Builds Only.</span></td> <td width=""50%""> <b>"& Ucase(rsQryB("rtag_name")) &":</b> <b class=changesb> SOURCE CODE CHANGES.</b></td></tr></table></blockquote>")
|
| - |
|
1463 |
End If
|
| - |
|
1464 |
End If
|
| - |
|
1465 |
|
| - |
|
1466 |
If ChangeBSource Then
|
| - |
|
1467 |
If NOT ChangeAUpdate Then
|
| - |
|
1468 |
If NOT ChangeASource AND NOT ChangeBUpdate Then
|
| - |
|
1469 |
NewTextFile.WriteLine("<blockquote><table width=""100%"" border=""0""> <tr><td width=""50%""><b>"& Ucase(rsQryA("rtag_name")) &": </b><b class=changesa> SOURCE CODE CHANGES</b>.</td> <td width=""50%""> <b>"& Ucase(rsQryB("rtag_name")) &":</b> <span class=changesnone> Ripple Builds Only.</span></td> </tr></table></blockquote>")
|
| - |
|
1470 |
End If
|
| - |
|
1471 |
End If
|
| - |
|
1472 |
End If
|
| - |
|
1473 |
|
| - |
|
1474 |
If NOT ChangeASource Then
|
| - |
|
1475 |
If NOT ChangeAUpdate Then
|
| - |
|
1476 |
If NOT ChangeBSource AND NOT ChangeBUpdate Then
|
| - |
|
1477 |
NewTextFile.WriteLine("<blockquote><table width=""100%"" border=""0""> <tr><td width=""50%""><b>"& Ucase(rsQryA("rtag_name")) &":</b> <b class=changesa> SOURCE CODE CHANGES.</b></td><td width=""50%""><b>"& Ucase(rsQryB("rtag_name")) &":</b><b class=changesb> SOURCE CODE CHANGES.</b></td></tr></table></blockquote>")
|
| - |
|
1478 |
ElseIf ChangeBUpdate Then
|
| - |
|
1479 |
NewTextFile.WriteLine("<blockquote><table width=""100%"" border=""0""> <tr><td width=""50%""><b>"& Ucase(rsQryA("rtag_name")) &":</b> <b class=changesa> SOURCE CODE CHANGES.</b></td> <td width=""50%""><b>"& Ucase(rsQryB("rtag_name")) &":</b><span class=changesnone> No Updates.</span></td> </tr></table></blockquote>")
|
| - |
|
1480 |
End If
|
| - |
|
1481 |
ElseIf ChangeAUpdate Then
|
| - |
|
1482 |
If NOT ChangeBSource AND NOT ChangeBUpdate Then
|
| - |
|
1483 |
NewTextFile.WriteLine("<blockquote><table width=""100%"" border=""0""> <tr><td width=""50%""><b>"& Ucase(rsQryA("rtag_name")) &":</b> <span class=changesnone>No Updates.</span></td> <td width=""50%""> <b></font>"& Ucase(rsQryB("rtag_name")) &":</b><b class=changesb> SOURCE CODE CHANGES.</b></td></tr></table></blockquote>")
|
| - |
|
1484 |
ElseIf ChangeBSource Then
|
| - |
|
1485 |
NewTextFile.WriteLine("<blockquote><table width=""100%"" border=""0""> <tr><td width=""50%""><b>"& Ucase(rsQryA("rtag_name")) &":</b> <span class=changesnone>No Updates.</span></td> <td width=""50%""> </font><b>"& Ucase(rsQryB("rtag_name")) &":</b> <span class=changesnone> Ripple Builds Only.</span></td> </tr></table></blockquote>")
|
| - |
|
1486 |
End If
|
| - |
|
1487 |
End If
|
| - |
|
1488 |
End If
|
| - |
|
1489 |
|
| - |
|
1490 |
End If 'changeType = "U" OR changeType = "UW"
|
| - |
|
1491 |
|
| - |
|
1492 |
End If 'email
|
| - |
|
1493 |
|
| - |
|
1494 |
End If 'NOT (GetIsDiffFilterChecked(enumDB_NUM_DIFF_RIPPLE) = "checked" AND changeType = "UR")
|
| - |
|
1495 |
|
| - |
|
1496 |
rsQry.MoveNext
|
| - |
|
1497 |
WEnd
|
| - |
|
1498 |
|
| - |
|
1499 |
rsQry.Close
|
| - |
|
1500 |
Set rsQry = Nothing
|
| - |
|
1501 |
%>
|
| - |
|
1502 |
<%
|
| - |
|
1503 |
Call Footer()
|
| - |
|
1504 |
NewTextFile.Close
|
| - |
|
1505 |
Set NewTextFile=Nothing
|
| - |
|
1506 |
%>
|
| - |
|
1507 |
</table>
|
| - |
|
1508 |
<br>
|
| - |
|
1509 |
<%Else%>
|
| - |
|
1510 |
<br>
|
| - |
|
1511 |
<%
|
| - |
|
1512 |
If (parRtagB <> "") Then
|
| - |
|
1513 |
Call Messenger ( "Select <b>Release A</b> to compare.", 3, "100%" )
|
| - |
|
1514 |
ElseIf (parRtagA <> "") Then
|
| - |
|
1515 |
Call Messenger ( "Select <b>Release B</b> to compare.", 3, "100%" )
|
| - |
|
1516 |
Else
|
| - |
|
1517 |
Call Messenger ( "Select <b>Release A</b> and <b>Release B</b> to compare.", 3, "100%" )
|
| - |
|
1518 |
End If
|
| - |
|
1519 |
%>
|
| - |
|
1520 |
<%End If%>
|
| - |
|
1521 |
</td>
|
| - |
|
1522 |
<td width="1%" background="images/lbox_bgside_white.gif"> </td>
|
| - |
|
1523 |
</tr>
|
| - |
|
1524 |
<tr>
|
| - |
|
1525 |
<td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
| - |
|
1526 |
<td background="images/lbox_bg_blue.gif"></td>
|
| - |
|
1527 |
<td width="1%" background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
| - |
|
1528 |
</tr>
|
| - |
|
1529 |
</table>
|
| - |
|
1530 |
</td>
|
| - |
|
1531 |
</tr>
|
| - |
|
1532 |
</table>
|
| - |
|
1533 |
<!-- DIFF END ---------------------------------------------------->
|
| - |
|
1534 |
</td>
|
| - |
|
1535 |
<td valign="top" background="images/bg_home_orange.gif">
|
| - |
|
1536 |
|
| - |
|
1537 |
<!-- SELECT RELEASE B ---------------------------------------------->
|
| - |
|
1538 |
<br>
|
| - |
|
1539 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
| - |
|
1540 |
<tr>
|
| - |
|
1541 |
<td align="left" class="body_col">
|
| - |
|
1542 |
<img src="images/i_rtag_open_mode.gif" border="0" align="absmiddle" width="15" height="13"> Select Release B<hr size="1px" color="Olive" noshade>
|
| - |
|
1543 |
</td>
|
| - |
|
1544 |
</tr>
|
| - |
|
1545 |
<tr>
|
| - |
|
1546 |
<td align="left">
|
| - |
|
1547 |
<select name="projB" class="form_item" onChange="RequestReleaseCombo( '?proj_id='+ this.value, FormName.rtagB );">
|
| - |
|
1548 |
<option value="">-- Select Project --</option>
|
| - |
|
1549 |
<%
|
| - |
|
1550 |
OraDatabase.Parameters.Add "PROJ_ID", objRelCollectorB.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| - |
|
1551 |
|
| - |
|
1552 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ProjectsCombo.sql"), cint(0))
|
| - |
|
1553 |
|
| - |
|
1554 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| - |
|
1555 |
|
| - |
|
1556 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
|
| - |
|
1557 |
<option value="<%=rsQry("proj_id")%>" <%=rsQry("selected")%>><%=rsQry("proj_name")%></option>
|
| - |
|
1558 |
<%rsQry.MoveNext
|
| - |
|
1559 |
WEnd
|
| - |
|
1560 |
|
| - |
|
1561 |
rsQry.Close
|
| - |
|
1562 |
Set rsQry = Nothing
|
| - |
|
1563 |
%>
|
| - |
|
1564 |
</select>
|
| - |
|
1565 |
</td>
|
| - |
|
1566 |
</tr>
|
| - |
|
1567 |
<tr>
|
| - |
|
1568 |
<td align="left">
|
| - |
|
1569 |
<select name="rtagB" id="rtagB" class="form_item">
|
| - |
|
1570 |
<%
|
| - |
|
1571 |
OraDatabase.Parameters.Add "PROJ_ID", objRelCollectorB.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| - |
|
1572 |
OraDatabase.Parameters.Add "RTAG_ID", objRelCollectorB.Item("rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| - |
|
1573 |
|
| - |
|
1574 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReleasesCombo.sql"), cint(0))
|
| - |
|
1575 |
|
| - |
|
1576 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| - |
|
1577 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
| - |
|
1578 |
|
| - |
|
1579 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
|
| - |
|
1580 |
<option value="<%=rsQry("rtag_id")%>" <%=rsQry("selected")%>><%=rsQry("rtag_name")%></option>
|
| - |
|
1581 |
<%rsQry.MoveNext
|
| - |
|
1582 |
WEnd
|
| - |
|
1583 |
|
| - |
|
1584 |
rsQry.Close
|
| - |
|
1585 |
Set rsQry = Nothing
|
| - |
|
1586 |
%>
|
| - |
|
1587 |
</select>
|
| - |
|
1588 |
</td>
|
| - |
|
1589 |
</tr>
|
| - |
|
1590 |
<%If (parRtagB <> "") Then%>
|
| 1354 |
<tr>
|
1591 |
<tr>
|
| 1355 |
<td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
1592 |
<td align="left"><a href="dependencies.asp?rtag_id=<%=parRtagB%>" class="body_txt_drk">Go To Release B »</a></td>
|
| 1356 |
<td background="images/lbox_bg_blue.gif"></td>
|
- |
|
| 1357 |
<td width="1%" background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
- |
|
| 1358 |
</tr>
|
1593 |
</tr>
|
| 1359 |
</table>
|
- |
|
| 1360 |
</td>
|
- |
|
| 1361 |
</tr>
|
- |
|
| 1362 |
</table>
|
- |
|
| 1363 |
<!-- DIFF END ---------------------------------------------------->
|
- |
|
| 1364 |
</td>
|
- |
|
| 1365 |
<td valign="top" width="1%" background="images/bg_home_orange.gif">
|
- |
|
| 1366 |
|
- |
|
| 1367 |
<!-- SELECT RELEASE B ---------------------------------------------->
|
- |
|
| 1368 |
<br>
|
- |
|
| 1369 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
- |
|
| 1370 |
<tr>
|
- |
|
| 1371 |
<td align="left" class="body_col">
|
- |
|
| 1372 |
<img src="images/i_rtag_open_mode.gif" border="0" align="absmiddle" width="15" height="13"> Select Release B<hr size="1px" color="Olive" noshade>
|
- |
|
| 1373 |
</td>
|
- |
|
| 1374 |
</tr>
|
- |
|
| 1375 |
<tr>
|
- |
|
| 1376 |
<td align="left">
|
- |
|
| 1377 |
<select name="projB" class="form_item" onChange="RequestReleaseCombo( '?proj_id='+ this.value, FormName.rtagB );">
|
- |
|
| 1378 |
<option value="">-- Select Project --</option>
|
- |
|
| 1379 |
<%
|
- |
|
| 1380 |
OraDatabase.Parameters.Add "PROJ_ID", objRelCollectorB.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
- |
|
| 1381 |
|
- |
|
| 1382 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ProjectsCombo.sql"), cint(0))
|
- |
|
| 1383 |
|
- |
|
| 1384 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
- |
|
| 1385 |
|
- |
|
| 1386 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
|
- |
|
| 1387 |
<option value="<%=rsQry("proj_id")%>" <%=rsQry("selected")%>><%=rsQry("proj_name")%></option>
|
- |
|
| 1388 |
<%rsQry.MoveNext
|
- |
|
| 1389 |
WEnd
|
- |
|
| 1390 |
|
- |
|
| 1391 |
rsQry.Close
|
- |
|
| 1392 |
Set rsQry = Nothing
|
- |
|
| 1393 |
%>
|
- |
|
| 1394 |
</select>
|
- |
|
| 1395 |
</td>
|
- |
|
| 1396 |
</tr>
|
- |
|
| 1397 |
<tr>
|
- |
|
| 1398 |
<td align="left">
|
- |
|
| 1399 |
<select name="rtagB" id="rtagB" class="form_item">
|
- |
|
| 1400 |
<%
|
- |
|
| 1401 |
OraDatabase.Parameters.Add "PROJ_ID", objRelCollectorB.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
- |
|
| 1402 |
OraDatabase.Parameters.Add "RTAG_ID", objRelCollectorB.Item("rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
- |
|
| 1403 |
|
- |
|
| 1404 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReleasesCombo.sql"), cint(0))
|
- |
|
| 1405 |
|
- |
|
| 1406 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
- |
|
| 1407 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
- |
|
| 1408 |
|
- |
|
| 1409 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
|
- |
|
| 1410 |
<option value="<%=rsQry("rtag_id")%>" <%=rsQry("selected")%>><%=rsQry("rtag_name")%></option>
|
- |
|
| 1411 |
<%rsQry.MoveNext
|
- |
|
| 1412 |
WEnd
|
- |
|
| 1413 |
|
- |
|
| 1414 |
rsQry.Close
|
- |
|
| 1415 |
Set rsQry = Nothing
|
- |
|
| 1416 |
%>
|
- |
|
| 1417 |
</select>
|
- |
|
| 1418 |
</td>
|
- |
|
| 1419 |
</tr>
|
- |
|
| 1420 |
<%If (parRtagB <> "") Then%>
|
- |
|
| 1421 |
<tr>
|
- |
|
| 1422 |
<td align="left"><a href="dependencies.asp?rtag_id=<%=parRtagB%>" class="body_txt_drk">Go To Release B »</a></td>
|
- |
|
| 1423 |
</tr>
|
- |
|
| 1424 |
<%End If%>
|
1594 |
<%End If%>
|
| 1425 |
</table>
|
1595 |
</table>
|
| 1426 |
<!-- SELECT RELEASE B END ---------------------------------------------->
|
1596 |
<!-- SELECT RELEASE B END ---------------------------------------------->
|
| 1427 |
</td>
|
1597 |
</td>
|
| 1428 |
</tr>
|
1598 |
</tr>
|
| 1429 |
<tr>
|
1599 |
<tr>
|
| 1430 |
<td valign="bottom" align="center" background="images/bg_home_orange.gif">
|
1600 |
<td valign="bottom" align="center" background="images/bg_home_orange.gif">
|
| 1431 |
<img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30">
|
1601 |
<img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30">
|
| 1432 |
</td>
|
- |
|
| 1433 |
<td background="images/bg_lght_gray.gif" valign="top">
|
- |
|
| 1434 |
<img src="images/h_trsp_dot.gif" width="1" height="500">
|
- |
|
| 1435 |
</td>
|
1602 |
</td>
|
| 1436 |
<td valign="bottom" background="images/bg_home_orange.gif" align="center">
|
1603 |
<td valign="bottom" background="images/bg_home_orange.gif" align="center">
|
| 1437 |
<img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30">
|
1604 |
<img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30">
|
| 1438 |
</td>
|
1605 |
</td>
|
| 1439 |
</tr>
|
1606 |
</tr>
|
| 1440 |
</table>
|
1607 |
</table>
|
| 1441 |
</form>
|
1608 |
</form>
|
| 1442 |
<!-- FOOTER -->
|
1609 |
<!-- FOOTER -->
|
| 1443 |
<!--#include file="_footer.asp"-->
|
1610 |
<!--#include file="_footer.asp"-->
|
| 1444 |
<%
|
1611 |
<%
|
| 1445 |
If email Then
|
1612 |
If email Then
|
| 1446 |
Dim LocalPath
|
1613 |
Dim LocalPath
|
| 1447 |
LocalPath = Server.MapPath("docs\compareReleases_"&objAccessControl.UserName&".html")
|
1614 |
LocalPath = Server.MapPath("docs\compareReleases_"&objAccessControl.UserName&".html")
|
| 1448 |
|
1615 |
|
| 1449 |
Send_Email "Release Manager Notification",_
|
1616 |
Send_Email "Release Manager Notification",_
|
| 1450 |
adminEmail, _
|
1617 |
adminEmail, _
|
| 1451 |
objAccessControl.UserEmail,_
|
1618 |
objAccessControl.UserEmail,_
|
| 1452 |
"Release Comparisons from Release Manager", _
|
1619 |
"Release Comparisons from Release Manager", _
|
| 1453 |
"Your requested report...",_
|
1620 |
"Your requested report...",_
|
| 1454 |
LocalPath
|
1621 |
LocalPath
|
| 1455 |
End If
|
1622 |
End If
|
| 1456 |
%>
|
1623 |
%>
|
| 1457 |
</body>
|
1624 |
</body>
|
| 1458 |
</html>
|
1625 |
</html>
|
| 1459 |
<%
|
1626 |
<%
|