| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
|
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
|
|
8 |
' Additional Note
|
|
|
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="common/_popup_window_common.asp"-->
|
|
|
18 |
<%
|
|
|
19 |
' Set rfile parameter. This is a return page after Login
|
|
|
20 |
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
|
|
|
21 |
'------------ ACCESS CONTROL ------------------
|
|
|
22 |
%>
|
|
|
23 |
<!--#include file="_access_control_login.asp"-->
|
|
|
24 |
<!--#include file="_access_control_general.asp"-->
|
|
|
25 |
<!--#include file="_access_control_project.asp"-->
|
|
|
26 |
<%
|
|
|
27 |
'------------ Variable Definition -------------
|
|
|
28 |
Dim parPv_id
|
|
|
29 |
'------------ Constants Declaration -----------
|
|
|
30 |
'------------ Variable Init -------------------
|
|
|
31 |
parPv_id = Request("pv_id")
|
|
|
32 |
'----------------------------------------------
|
|
|
33 |
%>
|
|
|
34 |
<%
|
|
|
35 |
Sub New_Additional_Note ( nPv_id, sNote_Title, sNote_Body, nUser_Id )
|
|
|
36 |
Dim retErrCode
|
|
|
37 |
OraDatabase.Parameters.Add "PV_ID", nPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
38 |
OraDatabase.Parameters.Add "NOTE_TITLE", sNote_Title, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
39 |
OraDatabase.Parameters.Add "NOTE_BODY", sNote_Body, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
40 |
OraDatabase.Parameters.Add "USER_ID", nUser_Id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
41 |
OraDatabase.Parameters.Add "ERRCODE", 0, ORAPARM_OUTPUT, ORATYPE_NUMBER
|
|
|
42 |
|
|
|
43 |
objEH.TryORA ( OraSession )
|
|
|
44 |
On Error Resume Next
|
|
|
45 |
|
|
|
46 |
OraDatabase.ExecuteSQL _
|
|
|
47 |
"BEGIN New_Additional_Note ( :PV_ID,"&_
|
|
|
48 |
" :NOTE_TITLE,"&_
|
|
|
49 |
" :NOTE_BODY,"&_
|
|
|
50 |
" :USER_ID,"&_
|
|
|
51 |
" :ERRCODE ); END;"
|
|
|
52 |
|
|
|
53 |
objEH.CatchORA ( OraSession )
|
|
|
54 |
|
|
|
55 |
retErrCode = OraDatabase.Parameters("ERRCODE").Value
|
|
|
56 |
|
| 5952 |
dpurdie |
57 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
58 |
OraDatabase.Parameters.Remove "NOTE_TITLE"
|
|
|
59 |
OraDatabase.Parameters.Remove "NOTE_BODY"
|
|
|
60 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
61 |
OraDatabase.Parameters.Remove "ERRCODE"
|
|
|
62 |
|
| 5357 |
dpurdie |
63 |
If retErrCode <> 0 Then
|
|
|
64 |
Call RaiseMsg ( enum_MSG_DUPLICATE_AN, sNote_Title )
|
|
|
65 |
End If
|
|
|
66 |
|
|
|
67 |
End Sub
|
|
|
68 |
%>
|
|
|
69 |
<%
|
|
|
70 |
'Process submition
|
|
|
71 |
If CBool(Request("action")) AND objAccessControl.UserLogedIn Then
|
|
|
72 |
Call New_Additional_Note ( Request("pv_id"), Request("note_title"), Request("note_body"), objAccessControl.UserId )
|
| 6324 |
dpurdie |
73 |
Call OpenInParentWindow ("fixed_issues.asp?pv_id="& Request("pv_id") & "&rtag_id="& Request("rtag_id") & "#ADDITIONAL_NOTES" )
|
| 6373 |
dpurdie |
74 |
Call ReloadParentWindow ()
|
| 5357 |
dpurdie |
75 |
Call CloseWindow
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
End If
|
|
|
79 |
%>
|
|
|
80 |
<html>
|
|
|
81 |
<head>
|
|
|
82 |
<title>Release Manager</title>
|
|
|
83 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
84 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
85 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
86 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
87 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
88 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
89 |
</head>
|
|
|
90 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.additionalnote.note_title.focus();">
|
| 5590 |
dpurdie |
91 |
<form class="form_tight" name="additionalnote" method="post" action="<%=scriptName%>" onSubmit="MM_validateForm('note_title','Note Title','R','note_body','Note Body','maxLength:4000');return document.MM_returnValue;">
|
|
|
92 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
| 5357 |
dpurdie |
93 |
<tr>
|
|
|
94 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
|
|
95 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
96 |
<tr>
|
|
|
97 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Note Title</td>
|
|
|
98 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><input name="note_title" type="text" class="form_item" id="note_title" value="" size="80" maxlength="50">
|
|
|
99 |
</td>
|
|
|
100 |
</tr>
|
|
|
101 |
<tr>
|
|
|
102 |
<td width="1%" valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Note Body</td>
|
|
|
103 |
<td width="100%" valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><textarea cols="80" rows="20" name="note_body" wrap="off" class="form_item" id="note_body"></textarea>
|
|
|
104 |
</td>
|
|
|
105 |
</tr>
|
|
|
106 |
</table> </td>
|
|
|
107 |
</tr>
|
| 5590 |
dpurdie |
108 |
<tr>
|
|
|
109 |
<td align="right">
|
|
|
110 |
<input type="submit" name="btn" value="Submit" class="form_btn_comp">
|
|
|
111 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
|
|
|
112 |
</td>
|
|
|
113 |
</tr>
|
| 5357 |
dpurdie |
114 |
</table>
|
|
|
115 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
|
|
116 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
|
|
117 |
<input type="hidden" name="action" value="true">
|
|
|
118 |
</form>
|
|
|
119 |
</body>
|
|
|
120 |
</html>
|
|
|
121 |
<!-- DESTRUCTOR ------->
|
|
|
122 |
<!--#include file="common/destructor.asp"-->
|