Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			          Product Issues 			 	 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/_product_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ VARIABLE DEFINITION -------------
23
Dim rsQry
24
Dim errNumber
25
Dim objIssueCollector
26
Dim altRowColor
27
Dim currRowColor
28
Dim outORDER_BY
29
'------------ CONSTANTS DECLARATION -----------
30
Const LIMG_FIXED = "<img src='icons/i_tick.gif' border='0' hspace='2' title='Latest Fixed Issue'>"
31
Const LIMG_OLD_FIXED = "<img src='icons/i_tick_gray.gif' border='0' hspace='2' title='Old Fixed Issue'>"
32
'------------ VARIABLE INIT -------------------
33
errNumber = 0
34
Set objIssueCollector = CreateObject("Scripting.Dictionary")
35
'------------ CONDITIONS ----------------------
36
'----------------------------------------------
37
%>
38
<%
39
'----------------------------------------------------------------------------------------------------------------------------------------
40
Sub GetIssueDetails ( nIssID, nIssDB, oIssueCollector, nErrNumber )
41
	Dim query, rsCQ
42
 
43
	query = GetQuery ("IssuesList_cqDEVI.sql")
44
	query = Replace( query, "/*DEVIiss*/", nIssID )
45
 
46
	Set rsCQ = Server.CreateObject("ADODB.Recordset")
47
 
48
	nErrNumber = GetCQIssue ( query, rsCQ )
49
 
50
	If nErrNumber = 0 Then
51
		If (NOT rsCQ.BOF) AND (NOT rsCQ.EOF) Then
52
			oIssueCollector.Item ("iss_id") = CStr( rsCQ("iss_id") )
53
			oIssueCollector.Item ("iss_num") = CStr( rsCQ("iss_num") )
54
			oIssueCollector.Item ("summary") = CStr( rsCQ("summary") )
55
			oIssueCollector.Item ("status") = CStr( rsCQ("status") )
56
			oIssueCollector.Item ("priority") = CStr( rsCQ("priority") )
57
			oIssueCollector.Item ("issue_type") = CStr( rsCQ("issue_type") )
58
 
59
		End If
60
	End If
61
 
62
End Sub
63
'----------------------------------------------------------------------------------------------------------------------------------------
64
Function  GetCQIssue ( sSQL, oRsCQ )
65
	On Error Resume Next
66
	oRsCQ.ActiveConnection = CQ_CONN
67
	oRsCQ.Source = sSQL
68
	oRsCQ.CursorType = 0
69
	oRsCQ.CursorLocation = 2
70
	oRsCQ.LockType = 3
71
	oRsCQ.Open()
72
 
73
	GetCQIssue = Err.Number
74
 
75
End Function
76
'----------------------------------------------------------------------------------------------------------------------------------------
77
Function SetRowColor( cRowColor )
78
	If cRowColor = "" Then
79
		SetRowColor = altRowColor
80
	Else
81
		SetRowColor = ""
82
	End If
83
End Function
84
'----------------------------------------------------------------------------------------------------------------------------------------
85
%>
86
<%
87
'------------ RUN BEFORE PAGE RENDER ----------
88
'----------------------------------------------
89
%>
90
<html>
91
<head>
92
<title>Deployment Manager</title>
93
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
94
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
95
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
96
<script language="JavaScript" src="scripts/common.js"></script>
97
</head>
98
 
99
<body leftmargin="0" topmargin="0">
100
<!-- HEADER ++++++++++++++++ -->
101
<!--#include file="_header.asp"-->
102
<!-- +++++++++++++++++++++++ -->
103
<!-- MAIN MENU  +  CRUMBS ++++++++++++++++ -->
104
<!--#include file="_main_menu.asp"-->
105
<!-- +++++++++++++++++++++++++++++++++++++ -->
106
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
107
  <tr>
108
    <td width="1%" valign="top" background="images/bg_bage_0.gif">
109
	<!-- NODE BROWSER ++++++++++++++++++++++ -->
110
	<!--#include file="_bom_browser.asp"-->
111
	<!-- END OF NODE BROWSER +++++++++++++++ -->
112
	</td>
113
    <td width="1" background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="600"></td>
114
    <td width="100%" valign="top" bgcolor="#FFFFFF">
115
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
116
	  <tr>
117
        <td valign="top" background="images/bg_blue.gif"></td>
118
        <td align="right" valign="bottom" background="images/bg_blue.gif" class="body_txtw"><%Call RenderTitle( objProdCollector )%></td>
119
        <td background="images/bg_blue.gif"><img src="images/spacer.gif" width="10" height="20"></td>
120
      </tr>
121
      <tr>
122
        <td width="1%" valign="top" background="images/bg_blue.gif"></td>
123
        <td width="100%" valign="bottom" background="images/bg_blue.gif">
124
		<!-- TAB CONTROLS ++++++++++++++++++++++ -->
125
		<!--#include file="_tabs_definition.asp"-->
126
		<%
127
		Set objTabControl = New TabControl
128
		objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleWinXP/tab_style.html") ) ' Supply tab style definition
129
		objTabControl.TabStyle = "StyleWinXP"
130
		objTabControl.AddTabDefnition ( arrProdTabDef )
131
		objTabControl.SelectByName ("Issues")
132
		objTabControl.Render ()
133
		%>
134
		<!-- END OF TAB CONTROLS +++++++++++++++ -->
135
		</td>
136
        <td width="1%" background="images/bg_blue.gif"><img src="images/spacer.gif" width="10" height="35"></td>
137
        </tr>
138
      <tr>
139
        <td background="images/bg_bage_0.gif"><img src="images/spacer.gif" width="30" height="10"></td>
140
        <td background="images/bg_bage_0.gif">
141
		<!-- BUTTONS CONTROL +++++++++++++++++++ -->
142
		<%
143
		'-- Define Action buttons on this tab
144
		'aTabBtnsDef = Array("btnAddOs", "width=10", "btnCopyOs", "btnPasteOs")
145
 
146
		'Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
147
 
148
		'objBtnControl.Render( aTabBtnsDef )
149
		%>
150
		<!-- +++++++++++++++++++++++++++++++++++ -->
151
		</td>
152
        <td background="images/bg_blue.gif"><img src="images/p_bar_corrner.gif" width="17" height="42"></td>
153
        </tr>
154
      <tr>
155
        <td>&nbsp;</td>
156
        <td>&nbsp;</td>
157
        <td valign="top"><%If Request.Cookies( enumCOOKIE_NAME )( "user_bar" ) = "hide" Then%><a href="<%=SCRIPT_NAME%>?user_bar=<%=enumDEFAULT%>&<%=objPMod.ComposeURL()%>"><img src="icons/b_left.gif" title="Maximize favourits" width="13" height="13" vspace="5" border="0"></a><%End If%></td>
158
        </tr>
159
    </table>
160
	<table width="100%"  border="0" cellspacing="10" cellpadding="0">
161
      <tr>
162
        <td>
163
		<!-- PAGE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
164
		<%
165
		OraDatabase.Parameters.Add "PROD_ID", 		dbPARprod_id,		ORAPARM_INPUT, ORATYPE_NUMBER 
166
		%>
167
		<form name="OldVersion" method="get" action="<%=SCRIPT_NAME%>">
168
			<SPAN class="body_txt">Changes since version&nbsp;</SPAN>
169
			<select name="old_prod_id" class="form_ivalue" disabled>
170
			   <option value=""></option>
171
			  <%
172
			  Dim nOldProdID
173
			  nOldProdID = Request("old_prod_id")
174
			  If nOldProdID = "" Then nOldProdID = objProdCollector.Item ("last_pv_id")
175
 
176
 
177
			  OraDatabase.Parameters.Add "PKG_ID", 		objProdCollector.Item ("pkg_id"),	ORAPARM_INPUT, ORATYPE_NUMBER 
178
			  OraDatabase.Parameters.Add "V_EXT", 		objProdCollector.Item ("v_ext"),	ORAPARM_INPUT, ORATYPE_NUMBER 
179
			  OraDatabase.Parameters.Add "OLD_PROD_ID", nOldProdID,	ORAPARM_INPUT, ORATYPE_NUMBER 
180
 
181
			  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ProductVersionsCombo.sql"), ORADYN_DEFAULT )
182
			  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
183
			  %>
184
				<option value="<%=rsQry("pv_id")%>" <%=rsQry("selected")%>><%=rsQry("pkg_version")%></option>
185
			  <%
186
			  	rsQry.MoveNext
187
			  WEnd
188
			  rsQry.Close
189
 
190
			  OraDatabase.Parameters.Remove "PROD_ID"
191
			  OraDatabase.Parameters.Remove "PKG_ID"
192
			  OraDatabase.Parameters.Remove "V_EXT"
193
			  OraDatabase.Parameters.Remove "OLD_PROD_ID"
194
			  %>
195
			</select>
196
			<%=objPMod.ComposeHiddenTags()%>
197
			<input type="submit" name="btn" value="Compare" class="form_btn" disabled>
198
		<hr width="100%" size="1px" noshade color="Black">
199
		</form>
200
 
201
		<table width="100%"  border="0" cellspacing="3" cellpadding="0">
202
          <tr>	
203
		  	<td width="1%" nowrap align="right" <%Call DisplayColumn("Fixed", "icon_fixed", outORDER_BY, FALSE)%></td>
204
            <td width="1%" nowrap align="right" <%Call DisplayColumn("Issue ID", "iss_id", outORDER_BY, TRUE)%></td>
205
			<td width="100%" nowrap align="right" <%Call DisplayColumn("Summary", NULL, outORDER_BY, FALSE)%></td>
206
			<td width="1%" nowrap align="right" <%Call DisplayColumn("Issue Type", NULL, outORDER_BY, FALSE)%></td>
207
			<td width="1%" nowrap align="right" <%Call DisplayColumn("Priority", NULL, outORDER_BY, FALSE)%></td>
208
			<td width="1%" nowrap align="right" <%Call DisplayColumn("Source", "pkg_name", outORDER_BY, FALSE)%></td>
209
          </tr>
210
		  <%
211
		  OraDatabase.Parameters.Add "PROD_ID", 		dbPARprod_id,		ORAPARM_INPUT, ORATYPE_NUMBER 
212
		  OraDatabase.Parameters.Add "OLD_PROD_ID",  	objProdCollector.Item("last_pv_id"),		ORAPARM_INPUT, ORATYPE_NUMBER 
213
		  OraDatabase.Parameters.Add "OTHER_PROD_ID", 	dbPARprod_id,		ORAPARM_INPUT, ORATYPE_NUMBER 
214
 
215
		  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("IssuesList.sql") & outORDER_BY, ORADYN_DEFAULT )
216
 
217
		  altRowColor = "bgcolor='#F7F7F8'"
218
		  currRowColor = ""
219
 
220
		  Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
221
		  	Call GetIssueDetails ( rsQry("iss_id"), rsQry("iss_db"), objIssueCollector, errNumber )
222
 
223
			currRowColor = SetRowColor( currRowColor )
224
 
225
			If errNumber <> 0 Then Exit Do
226
		  %>
227
          <tr>
228
            <td <%=currRowColor%> nowrap valign="top" align="center"><%=Eval(rsQry("icon_fixed"))%></td>
229
            <td <%=currRowColor%> nowrap valign="top"><a href="javascript:;" onClick="MM_openBrWindow('<%=RELEASE_MANAGER_URL%>/_wform_issues_details.asp?iss_db=<%=rsQry("iss_db")%>&iss_id=<%=rsQry("iss_id")%>','IssueDetails','resizable=yes,width=580,height=500')" class="body_link"><%=objIssueCollector.Item ("iss_num")%></a></td>
230
			<td <%=currRowColor%> valign="top" class="body_rowlite"><%=objIssueCollector.Item ("summary")%></td>
231
			<td <%=currRowColor%> nowrap valign="top" class="body_rowlite"><%=objIssueCollector.Item ("issue_type")%></td>
232
            <td <%=currRowColor%> nowrap valign="top" class="body_rowlite"><%=objIssueCollector.Item ("priority")%></td>
233
			<td <%=currRowColor%> nowrap valign="top" class="body_rowlite"><%=rsQry("pkg_name").Value &" "& rsQry("pkg_version").Value%></a></td>
234
          </tr>
235
		  <%rsQry.MoveNext%>
236
 
237
		  <%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
238
          <tr>
239
            <td colspan="6"><img src="images/spacer.gif" width="1" height="1"></td>
240
          </tr>
241
		  <%End If%>
242
 
243
		  <%
244
		  Loop
245
 
246
		  OraDatabase.Parameters.Remove "PROD_ID"
247
		  OraDatabase.Parameters.Remove "OLD_PROD_ID"
248
		  OraDatabase.Parameters.Remove "OTHER_PROD_ID"
249
		  %>
250
 
251
 
252
		  <%If errNumber <> 0 Then		'--- Handle any errors during data retrieve from MS SQL database (i.e. Cannot connect to DB.)%>
253
		  <tr>
254
            <td colspan="6">
255
			  <%Response.write enumMSSQL_ERROR%>
256
			</td>
257
          </tr>
258
		  <%End If%>
259
 
260
          <tr>
261
            <td colspan="6" background="images/bg_table_border.gif">
262
			 <table width="100%"  border="0" cellspacing="1" cellpadding="2">
263
              <tr>
264
                <td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
265
              </tr>
266
             </table>
267
			</td>
268
          </tr>
269
         </table>	
270
		<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
271
		</td>
272
      </tr>
273
    </table>
274
	</td>
275
    <td width="1%" valign="top" background="images/bg_favourits.gif">
276
	<!-- PERSONAL BAR +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
277
	<!--#include file="_personal_bar.asp"-->
278
	<!-- END OF PERSONAL BAR ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
279
   </td>
280
  </tr>
281
  <tr>
282
    <td background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="15"></td>
283
    <td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
284
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
285
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
286
  </tr>
287
  <tr>
288
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="20"></td>
289
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
290
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
291
    <td bgcolor="#FFFFFF">&nbsp;</td>
292
  </tr>
293
</table>
294
<!-- FOOTER ++++++++++++++++ -->
295
<!--#include file="_footer.asp"-->
296
<!-- +++++++++++++++++++++++ -->
297
</body>
298
</html>
299
<%
300
'------------ RUN AFTER PAGE RENDER -----------
301
Set objPMod = Nothing
302
Set objCrumbs = Nothing
303
Set objTabControl = Nothing
304
Set objBtnControl = Nothing
305
'----------------------------------------------
306
%><!--#include file="common/globals_destructor.asp"-->