Subversion Repositories DevTools

Rev

Rev 3974 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
159 ghuddy 4
Response.Expires = 0   ' always load the page, dont store
119 ghuddy 5
%>
6
<%
7
'=====================================================
159 ghuddy 8
'              ISSUE DETAILS
119 ghuddy 9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="_tabs.asp"-->
17
<!--#include file="common/cq_common_subs.asp"-->
18
<!--#include file="common/_popup_window_common.asp"-->
19
<%
20
'------------ ACCESS CONTROL ------------------
21
%>
22
<!--#include file="_access_control_general.asp"-->
23
<%
24
'------------ Variable Definition -------------
25
Dim rsCQ
26
Dim ddWidth
27
Dim parIss_db
28
Dim parIss_id
159 ghuddy 29
Dim childDevis()
30
Dim numChildDevis
31
Dim i
119 ghuddy 32
'------------ Constants Declaration -----------
33
'------------ Variable Init -------------------
34
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
35
Set rsCQ = Server.CreateObject("ADODB.Recordset")
36
Call Get_Iss_Parameters ( parIss_db, parIss_id )
37
ddWidth = 20
159 ghuddy 38
 
39
numChildDevis = 0
119 ghuddy 40
'----------------------------------------------
41
%>
42
<%
43
Sub Get_Issue_Details ( NNiss_db, NNiss_id, OOrsCQ )
159 ghuddy 44
   Dim SQLstr
45
   Dim objRegEx
46
   Dim objMatches
47
   Dim match
48
   Dim rsCQ2
49
 
50
   If Cint(NNiss_db) = enumCLEARQUEST_DEVI_ID Then
51
      SQLstr = _
52
      " SELECT si.dbid, si.new_num AS iss_num, si.headline AS summary, sdef.name AS status, si.priority AS priority, si.issue_type, si.release_part1, "&_
53
       "        si.release_part2, si.release_part3, si.project, si.product AS product, si.package_ref AS package, sb.fullname AS submitter, si.submit_date, ow.fullname AS owner, "&_
54
       "        ap.fullname AS approver, si.description, si.dependant_devis"&_
55
    " FROM cq_devi.admin.software_issue si INNER JOIN"&_
56
      "        cq_devi.admin.statedef sdef ON si.state = sdef.id INNER JOIN"&_
57
      "        cq_devi.admin.users sb ON si.submitter = sb.dbid INNER JOIN"&_
58
      "        cq_devi.admin.users ow ON si.owner = ow.dbid INNER JOIN"&_
59
      "        cq_devi.admin.users ap ON si.approver = ap.dbid"&_
60
      "  WHERE si.dbid = "& NNiss_id
61
 
62
   OOrsCQ.ActiveConnection = CQ_conn
63
   OOrsCQ.Source = SQLstr
64
   OOrsCQ.CursorType = 0
65
   OOrsCQ.CursorLocation = 2
66
   OOrsCQ.LockType = 3
67
   OOrsCQ.Open()
68
 
69
   ' Experimental code to obtain parent and child DEVIs for the currently displaying DEVI
70
   If Cint(NNiss_db) = enumCLEARQUEST_DEVI_ID Then
71
      Set objRegEx = New RegExp
72
      objRegEx.IgnoreCase = True
73
      objRegEx.Pattern = "[1-9][0-9]+"
74
 
75
      If NOT IsNull(OOrsCQ("iss_num") ) Then
76
         set objMatches = objRegEx.Execute(OOrsCQ("iss_num") )
77
         Set rsCQ2 = Server.CreateObject("ADODB.Recordset")
78
         For each match in objMatches
79
            rsCQ2.ActiveConnection = CQ_conn
80
            rsCQ2.Source = " SELECT  si.new_num AS iss_num"&_
81
                           " FROM cq_devi.admin.software_issue si"&_
82
                           " WHERE si.dependant_devis like '%" & match & "%'"
83
            rsCQ2.CursorType = 0
84
            rsCQ2.CursorLocation = 2
85
            rsCQ2.LockType = 3
86
            rsCQ2.Open()
87
            While (NOT rsCQ2.BOF) AND (NOT rsCQ2.EOF)
88
               numChildDevis = numChildDevis + 1
89
               ReDim Preserve childDevis(numChildDevis)
90
               childDevis(numChildDevis-1) = rsCQ2("iss_num")
91
               rsCQ2.MoveNext
92
            Wend
93
            rsCQ2.Close()
94
         Next
95
         set objMatches = Nothing
96
         Set rsCQ2 = Nothing
97
      End If
98
      Set objRegEx = Nothing
99
   End If
4021 dpurdie 100
 End If
159 ghuddy 101
End Sub
119 ghuddy 102
%>
3974 dpurdie 103
<%If parIss_db <> enumCLEARQUEST_DEVI_ID Then Call RaiseMsg ( enum_WMSG_ERROR, "This option is not available for this issue's database!" )%>
119 ghuddy 104
<%Call Get_Issue_Details ( parIss_db, parIss_id, rsCQ )%>
105
<!--#include file="_menu_def.asp"-->
106
<html>
107
<head>
108
<title><%=rsCQ("iss_num")%> - <%=rsCQ("summary")%></title>
109
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
110
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
111
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
112
<link rel="stylesheet" href="images/navigation.css" type="text/css">
113
<script language="JavaScript" src="images/common.js"></script>
114
<script language="JavaScript">
115
<!--
116
function height()
159 ghuddy 117
{
118
   if( typeof( window.innerWidth ) == 'number' )
119
   {
120
      h = window.innerHeight;
121
   }
122
   else if(document.documentElement&&(document.documentElement.clientHeight ))
123
   {
124
      h = document.documentElement.clientHeight;
125
   }
126
   else if( document.body &&  ( document.body.clientWidth || document.body.clientHeight ) )
127
   {
128
      h = document.body.clientHeight;
129
   }
130
 
131
   var e = document.getElementById("LayerDescription");
132
 
133
   if (navigator.userAgent.indexOf('Internet Explorer'))
134
   {
135
      e.style.height = h - 350 + "px";
136
      e.style.overflow = "auto";
137
   }
138
   else
139
   {
140
      // This line shouldn't be run by IE; it doesn't seem to work. It gets run in Firefox, etc.
141
      e.style.minHeight= h - 350 + "px";
142
      e.style.overflow = "auto";
143
   }
119 ghuddy 144
}
145
//-->
146
</script>
147
</head>
148
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();height();" onresize="height();" >
149
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
159 ghuddy 150
   <tr>
151
      <td width="1%" background="images/bg_lght_gray.gif">&nbsp;</td>
152
      <td width="100%" background="images/bg_lght_gray.gif"><span class="form_field"><br>&nbsp;Issue</span>
153
         <input name="FRpname" type="text" class="form_item" size="12" value="<%=rsCQ("iss_num")%>" readonly>
154
         <input name="FRpname2" type="text" class="form_item" size="80" value="<%=HTMLEncode(rsCQ("summary"))%>" readonly>
155
      </td>
156
   </tr>
157
   <tr>
158
      <td background="images/bg_lght_gray.gif"><img src="images/h_trsp_dot.gif" width="1" height="400"></td>
159
      <td valign="top" background="images/bg_form_lightbluedark.gif">
160
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
161
            <tr>
162
               <td align="right" background="images/bg_lght_gray.gif"><br>
163
                  <!-- TABS ------------------------------------------->
164
                  <%Call Generate_Tab_Menu ( TABarray4, "Details", "blue" )%>
165
                  <!------------------------------------------------------------->
166
               </td>
167
            </tr>
168
            <tr>
169
               <td background="images/lbox_bg_blue.gif">&nbsp;</td>
170
            </tr>
171
         </table><br>
172
         <table width="100%" border="0" cellspacing="5" cellpadding="1">
173
            <tr>
174
               <td background="images/bg_vtree_h1.gif">
175
                  <table width="100%" border="0" cellspacing="0" cellpadding="2">
176
                     <tr>
177
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Issue Type</td>
178
                        <td background="images/bg_lght_gray.gif">
179
                           <select name="group_id" class="form_item" disabled>
180
                              <option selected><%=rsCQ("issue_type")%></option>
181
                              <option><%=String(ddWidth, "_")%></option>
182
                           </select>
183
                        </td>
184
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Submitter</td>
185
                        <td background="images/bg_lght_gray.gif">
186
                           <select name="group_id" class="form_item" disabled>
187
                              <option selected><%=rsCQ("submitter")%></option>
188
                              <option><%=String(ddWidth, "_")%></option>
189
                           </select>
190
                        </td>
191
                     </tr>
192
                     <tr>
193
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Detected in Version</td>
194
                        <td background="images/bg_lght_gray.gif">
195
                           <select name="group_id" class="form_item" disabled>
196
                              <option selected><%=rsCQ("release_part1") &"."& rsCQ("release_part2") &"."& rsCQ("release_part3") %></option>
197
                              <option><%=String(ddWidth, "_")%></option>
198
                           </select>
199
                        </td>
200
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Submitted on Date</td>
201
                        <td background="images/bg_lght_gray.gif">
202
                           <select name="group_id" class="form_item" disabled>
203
                              <option selected><%=ToLongDate( rsCQ("submit_date")+1 )%></option>
204
                              <option><%=String(ddWidth, "_")%></option>
205
                           </select>
206
                        </td>
207
                     </tr>
208
                     <tr>
209
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Project</td>
210
                        <td background="images/bg_lght_gray.gif">
211
                           <select name="group_id" class="form_item" disabled>
212
                              <option selected><%=rsCQ("project")%></option>
213
                              <option><%=String(ddWidth, "_")%></option>
214
                           </select>
215
                        </td>
216
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Owner</td>
217
                        <td background="images/bg_lght_gray.gif">
218
                           <select name="group_id" class="form_item" disabled>
219
                              <option selected><%=rsCQ("owner")%></option>
220
                              <option><%=String(ddWidth, "_")%></option>
221
                           </select>
222
                        </td>
223
                     </tr>
224
                     <tr>
225
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Product</td>
226
                        <td background="images/bg_lght_gray.gif">
227
                           <select name="group_id" class="form_item" disabled>
228
                              <option selected><%=rsCQ("product")%></option>
229
                              <option><%=String(ddWidth, "_")%></option>
230
                           </select>
231
                        </td>
232
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Approver</td>
233
                        <td background="images/bg_lght_gray.gif">
234
                           <select name="group_id" class="form_item" disabled>
235
                              <option selected><%=rsCQ("approver")%></option>
236
                              <option><%=String(ddWidth, "_")%></option>
237
                           </select>
238
                        </td>
239
                     </tr>
240
                     <tr>
241
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Package</td>
242
                        <td background="images/bg_lght_gray.gif">
243
                           <select name="group_id" class="form_item" disabled>
244
                              <option selected><%=rsCQ("package")%></option>
245
                              <option><%=String(ddWidth, "_")%></option>
246
                           </select>
247
                        </td>
248
                        <%If parIss_db = enumCLEARQUEST_DEVI_ID Then%>
249
                           <td align="right" background="images/bg_lght_gray.gif" class="form_field">Parent Devi</td>
250
                           <td background="images/bg_lght_gray.gif">
251
                              <select name="group_id" class="form_item" disabled>
252
                                 <option selected><%=rsCQ("dependant_devis")%></option>
253
                                 <option><%=String(ddWidth, "_")%></option>
254
                              </select>
255
                           </td>
256
                        <%else%>
257
                           <td align="right" background="images/bg_lght_gray.gif" class="form_field">&nbsp;</td>
258
                           <td background="images/bg_lght_gray.gif">&nbsp;</td>
259
                        <%end if%>
260
                     </tr>
261
                     <tr>
262
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Priority</td>
263
                        <td background="images/bg_lght_gray.gif">
264
                           <select name="group_id" class="form_item" disabled>
265
                              <option selected><%=rsCQ("priority")%></option>
266
                              <option><%=String(ddWidth, "_")%></option>
267
                           </select>
268
                        </td>
269
                        <%If parIss_db = enumCLEARQUEST_DEVI_ID AND numChildDevis > 0 Then%>
270
                           <td align="right" background="images/bg_lght_gray.gif" class="form_field">Child Devis</td>
271
                           <td background="images/bg_lght_gray.gif">
272
                              <select name="group_id" class="form_item" enabled>
273
                                 <%For i = 0 To numChildDevis - 1%>
274
                                    <%If i = 0 Then%>
275
                                       <option selected><%=childDevis(i)%></option>
276
                                    <%else%>
277
                                       <option><%=childDevis(i)%></option>
278
                                    <%End If%>
279
                                 <%Next%>
280
                              </select>
281
                           </td>
282
 
283
                        <%else%>
284
                           <td align="right" background="images/bg_lght_gray.gif" class="form_field">&nbsp;</td>
285
                           <td background="images/bg_lght_gray.gif">&nbsp;</td>
286
                        <%end if%>
287
                     </tr>
288
                     <tr>
289
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">Status</td>
290
                        <td background="images/bg_lght_gray.gif">
291
                           <select name="group_id" class="form_item" disabled>
292
                              <option selected><%=rsCQ("status")%></option>
293
                              <option><%=String(ddWidth, "_")%></option>
294
                           </select>
295
                        </td>
296
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field">&nbsp;</td>
297
                        <td background="images/bg_lght_gray.gif">&nbsp;</td>
298
                     </tr>
299
                     <tr>
300
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field"><br></td>
301
                        <td background="images/bg_lght_gray.gif"></td>
302
                        <td align="right" background="images/bg_lght_gray.gif" class="form_field"></td>
303
                        <td background="images/bg_lght_gray.gif"></td>
304
                     </tr>
305
                  </table>
306
               </td>
307
            </tr>
308
            <tr>
309
               <td background="images/bg_vtree_h1.gif">
310
                  <table width="100%" border="0" cellspacing="0" cellpadding="2">
311
                     <tr>
312
                        <td bgcolor="White" class="form_item"><span class="form_field">Description</span><br>
313
                           <div id="LayerDescription" style="height:height(); overflow: auto;"><%=NewLine_To_BR( Server.HTMLEncode( rsCQ("description") ) )%></div>
314
                        </td>
315
                     </tr>
316
                  </table>
317
               </td>
318
            </tr>
319
         </table>
320
      </td>
321
   </tr>
322
   <tr>
323
      <td background="images/bg_lght_gray.gif">&nbsp;</td>
324
      <td background="images/lbox_bg_blue.gif">&nbsp;</td>
325
   </tr>
119 ghuddy 326
</table>
327
</body>
328
</html>
329
 
330
 
331
<!-- DESTRUCTOR ------->
159 ghuddy 332
<!--#include file="common/destructor.asp"-->