| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
|
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
|
|
8 |
' Update Unit Test Acceptance
|
|
|
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="common/common_dbedit.asp"-->
|
|
|
17 |
<!--#include file="_tabs.asp"-->
|
|
|
18 |
<!--#include file="common/_popup_window_common.asp"-->
|
|
|
19 |
<%
|
|
|
20 |
' Set rfile parameter. This is a return page after Login
|
|
|
21 |
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
|
|
|
22 |
'------------ ACCESS CONTROL ------------------
|
|
|
23 |
%>
|
|
|
24 |
<!--#include file="_access_control_login.asp"-->
|
|
|
25 |
<!--#include file="_access_control_general.asp"-->
|
|
|
26 |
<!--#include file="_access_control_project.asp"-->
|
|
|
27 |
<%
|
|
|
28 |
'------------ Variable Definition -------------
|
|
|
29 |
Dim parPv_id
|
|
|
30 |
Dim parTest_id
|
|
|
31 |
Dim rsQry
|
|
|
32 |
Dim rsUsr
|
|
|
33 |
Dim isDLocked
|
|
|
34 |
'------------ Constants Declaration -----------
|
|
|
35 |
'------------ Variable Init -------------------
|
|
|
36 |
parPv_id = Request("pv_id")
|
|
|
37 |
parTest_id = Request("test_id")
|
|
|
38 |
parRtag_id = Request("rtag_id")
|
|
|
39 |
'----------------------------------------------
|
|
|
40 |
%>
|
|
|
41 |
<%
|
|
|
42 |
Sub Get_This_Unit_Test ( nTest_id, nPv_id, oRS )
|
|
|
43 |
Dim Query_String
|
|
|
44 |
Query_String = _
|
|
|
45 |
" SELECT tt.TEST_TYPE_NAME,"&_
|
|
|
46 |
" ut.*"&_
|
|
|
47 |
" FROM UNIT_TESTS ut,"&_
|
|
|
48 |
" TEST_TYPES tt"&_
|
|
|
49 |
" WHERE ut.TEST_TYPES_FK = tt.TEST_TYPE_ID"&_
|
|
|
50 |
" AND ut.PV_ID = :PV_ID"&_
|
|
|
51 |
" AND ut.TEST_ID = :TEST_ID"
|
|
|
52 |
Query_String = Replace( Query_String, ":TEST_ID", nTest_id )
|
|
|
53 |
Query_String = Replace( Query_String, ":PV_ID", nPv_id )
|
|
|
54 |
|
|
|
55 |
Set oRS = OraDatabase.CreateDynaset( Query_String, cint(0))
|
|
|
56 |
End Sub
|
|
|
57 |
|
|
|
58 |
Function SQL_Get_Users ( nUser_id )
|
|
|
59 |
SQL_Get_Users = _
|
|
|
60 |
" SELECT usr.user_id, usr.full_name,"&_
|
|
|
61 |
" DECODE(usr.user_id, "& nUser_id &", 'selected', NULL) AS selected"&_
|
|
|
62 |
" FROM USERS usr"&_
|
|
|
63 |
" WHERE usr.disabled = 'N'"&_
|
|
|
64 |
" ORDER BY UPPER(usr.full_name)"
|
|
|
65 |
|
|
|
66 |
End Function
|
|
|
67 |
|
|
|
68 |
Sub Update_Unit_Test_Acceptance ( nTest_id, nPv_id, sAccepted, sAcceptanceDate, sReviewComments)
|
|
|
69 |
OraDatabase.Parameters.Add "TEST_ID", nTest_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
70 |
OraDatabase.Parameters.Add "PV_ID", nPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
71 |
OraDatabase.Parameters.Add "ACCEPTED", sAccepted, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
72 |
OraDatabase.Parameters.Add "REVIEW_DATE", sAcceptanceDate, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
73 |
OraDatabase.Parameters.Add "ACCEPTED_BY", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
74 |
OraDatabase.Parameters.Add "REVIEW_COMMENTS", sReviewComments, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
75 |
|
|
|
76 |
objEH.TryORA ( OraSession )
|
|
|
77 |
On Error Resume Next
|
|
|
78 |
|
|
|
79 |
OraDatabase.ExecuteSQL _
|
|
|
80 |
"BEGIN Update_Unit_Test_Acceptance ( :TEST_ID,"&_
|
|
|
81 |
" :PV_ID,"&_
|
|
|
82 |
" :ACCEPTED,"&_
|
|
|
83 |
" :REVIEW_DATE,"&_
|
|
|
84 |
" :ACCEPTED_BY,"&_
|
|
|
85 |
" :REVIEW_COMMENTS,"&_
|
|
|
86 |
" 'N'"&_
|
|
|
87 |
" ); END;"
|
|
|
88 |
|
|
|
89 |
objEH.CatchORA ( OraSession )
|
|
|
90 |
|
| 5952 |
dpurdie |
91 |
OraDatabase.Parameters.Remove "TEST_ID"
|
|
|
92 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
93 |
OraDatabase.Parameters.Remove "ACCEPTED"
|
|
|
94 |
OraDatabase.Parameters.Remove "REVIEW_DATE"
|
|
|
95 |
OraDatabase.Parameters.Remove "ACCEPTED_BY"
|
|
|
96 |
OraDatabase.Parameters.Remove "REVIEW_COMMENTS"
|
|
|
97 |
|
| 5357 |
dpurdie |
98 |
End Sub
|
|
|
99 |
%>
|
|
|
100 |
<%
|
|
|
101 |
'------------ Action Requirements -------------------
|
|
|
102 |
'Process submition
|
|
|
103 |
If CBool(Request("action")) AND objAccessControl.UserLogedIn Then
|
|
|
104 |
Call Update_Unit_Test_Acceptance ( parTest_id, parPv_id, Request("accepted"), Request("acceptance_date"), Request("review_comments") )
|
|
|
105 |
Call OpenInParentWindow ("fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
|
|
|
106 |
'Call CloseWindow
|
|
|
107 |
|
|
|
108 |
End If
|
|
|
109 |
Call Get_Pkg_Short_Info( parPv_id, NULL, NULL, NULL, NULL, NULL, isDLocked )
|
|
|
110 |
Call Get_This_Unit_Test ( parTest_id, parPv_id, rsQry )
|
|
|
111 |
%>
|
|
|
112 |
<html>
|
|
|
113 |
<head>
|
|
|
114 |
<title>Release Manager</title>
|
|
|
115 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
116 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
117 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 6579 |
dpurdie |
118 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
119 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
120 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
121 |
<!--#include file="_menu_def.asp"-->
|
|
|
122 |
<!-- TIPS -->
|
| 6579 |
dpurdie |
123 |
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
|
|
|
124 |
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
125 |
</head>
|
|
|
126 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
| 5590 |
dpurdie |
127 |
<form class="form_tight" action="<%=scriptName%>" method="post" name="unittest" onSubmit="MM_validateForm('accepted','Accepted field','R','acceptance_date','Review Date','RisDate','test_summary','Test Summary','maxLength:4000');return document.MM_returnValue;">
|
|
|
128 |
<table border="0" cellspacing="0" cellpadding="2" >
|
| 5357 |
dpurdie |
129 |
<tr>
|
|
|
130 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
|
|
131 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
132 |
<tr>
|
|
|
133 |
<td width="1%" nowrap class="sublbox_hitem"><img src="images/h_trsp_dot.gif" width="10" height="30"><%If Request("save_stat") <> "" Then%>Saving complete.<%End If%></td>
|
|
|
134 |
<td width="100%" align="right" valign="bottom">
|
|
|
135 |
<!-- TABS ------------------------------------->
|
|
|
136 |
<%
|
|
|
137 |
If isDLocked = "Y" Then
|
|
|
138 |
Call Generate_Tab_Menu ( TABarray6D, "Acceptance", "blue" )
|
|
|
139 |
Else
|
|
|
140 |
Call Generate_Tab_Menu ( TABarray6, "Acceptance", "blue" )
|
|
|
141 |
End If
|
|
|
142 |
%>
|
|
|
143 |
</td>
|
|
|
144 |
</tr>
|
|
|
145 |
<tr>
|
|
|
146 |
<td background="images/lbox_bg_blue.gif"></td>
|
|
|
147 |
<td background="images/lbox_bg_blue.gif"> </td>
|
|
|
148 |
</tr>
|
|
|
149 |
</table>
|
|
|
150 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
151 |
<tr>
|
|
|
152 |
<td width="1%" nowrap class="form_group" valign="bottom"></td>
|
|
|
153 |
<td nowrap width="100%"> </td>
|
|
|
154 |
</tr>
|
|
|
155 |
<tr>
|
|
|
156 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Accepted</td>
|
|
|
157 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
158 |
<select name="accepted" class="form_item">
|
|
|
159 |
<option></option>
|
|
|
160 |
<option value="<%=enumUNIT_TEST_ACCEPTED%>" <%If rsQry("test_accepted") = enumUNIT_TEST_ACCEPTED Then%>selected<%End If%>>Yes</option>
|
|
|
161 |
<option value="<%=enumUNIT_TEST_NOTACCEPTED%>" <%If rsQry("test_accepted") = enumUNIT_TEST_NOTACCEPTED Then%>selected<%End If%>>No</option>
|
|
|
162 |
</select></td>
|
|
|
163 |
</tr>
|
|
|
164 |
<tr>
|
|
|
165 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Review
|
|
|
166 |
Date</td>
|
|
|
167 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><input name="acceptance_date" type="text" class="form_item" id="acceptance_date" value="<%If Not IsNull(rsQry("acceptance_date")) Then%><%=EuroDate ( rsQry("acceptance_date") ) %><%Else%><%=EuroDate (Date) %><%End If%>" size="20" maxlength="10">
|
|
|
168 |
</td>
|
|
|
169 |
</tr>
|
|
|
170 |
<tr>
|
|
|
171 |
<td width="1%" valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Comments / Issue# <%=Quick_Help ( "ut_review_comments" )%></td>
|
|
|
172 |
<td width="100%" valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><textarea cols="80" rows="20" name="review_comments" class="form_item" id="review_comments"><%=rsQry("review_comments")%></textarea>
|
|
|
173 |
</td>
|
|
|
174 |
</tr>
|
|
|
175 |
</table> </td>
|
|
|
176 |
</tr>
|
|
|
177 |
<tr>
|
| 5590 |
dpurdie |
178 |
<td align="right" nowrap class="wform_ttl">
|
|
|
179 |
<input type="submit" name="btn" value="Save" class="form_btn">
|
|
|
180 |
<input type="reset" name="btn" value="Close" class="form_btn" onclick="parent.closeIFrame();">
|
|
|
181 |
</td>
|
| 5357 |
dpurdie |
182 |
</tr>
|
|
|
183 |
</table>
|
|
|
184 |
<input type="hidden" name="save_stat" value="true">
|
|
|
185 |
<input type="hidden" name="action" value="true">
|
|
|
186 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
|
|
187 |
<input type="hidden" name="test_id" value="<%=parTest_id%>">
|
|
|
188 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
|
|
189 |
</form>
|
|
|
190 |
</body>
|
|
|
191 |
</html>
|
|
|
192 |
<!-- DESTRUCTOR ------->
|
|
|
193 |
<!--#include file="common/destructor.asp"-->
|