Subversion Repositories DevTools

Rev

Rev 129 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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