| 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 |
<%
|
| Line 23... |
Line 23... |
| 23 |
<%
|
23 |
<%
|
| 24 |
'------------ Variable Definition -------------
|
24 |
'------------ Variable Definition -------------
|
| 25 |
Dim parFRproj_id
|
25 |
Dim parFRproj_id
|
| 26 |
Dim parFRrtag_id
|
26 |
Dim parFRrtag_id
|
| 27 |
Dim parToRtag_id
|
27 |
Dim parToRtag_id
|
| - |
|
28 |
Dim parFromRtag_id
|
| - |
|
29 |
Dim sMessage
|
| 28 |
'------------ Constants Declaration -----------
|
30 |
'------------ Constants Declaration -----------
|
| 29 |
'------------ Variable Init -------------------
|
31 |
'------------ Variable Init -------------------
|
| 30 |
parFRproj_id = QStrPar("FRproj_id")
|
32 |
parFRproj_id = QStrPar("FRproj_id")
|
| 31 |
parFRrtag_id = QStrPar("FRrtag_id")
|
33 |
parFRrtag_id = QStrPar("FRrtag_id")
|
| 32 |
parToRtag_id = QStrPar("ToRtag_id")
|
34 |
parToRtag_id = QStrPar("ToRtag_id")
|
| - |
|
35 |
parFromRtag_id = QStrPar("FromRtag_id")
|
| - |
|
36 |
sMessage = NULL
|
| 33 |
If parFRproj_id = "" Then parFRproj_id = "-1"
|
37 |
If parFRproj_id = "" Then parFRproj_id = "-1"
|
| 34 |
If parFRrtag_id = "" Then parFRrtag_id = "-1"
|
38 |
If parFRrtag_id = "" Then parFRrtag_id = "-1"
|
| 35 |
'----------------------------------------------
|
39 |
'----------------------------------------------
|
| 36 |
%>
|
40 |
%>
|
| 37 |
<%
|
41 |
<%
|
| Line 39... |
Line 43... |
| 39 |
Dim rsTemp, Query_String, tempLINK
|
43 |
Dim rsTemp, Query_String, tempLINK
|
| 40 |
Query_String = _
|
44 |
Query_String = _
|
| 41 |
"SELECT * FROM projects ORDER BY proj_name ASC"
|
45 |
"SELECT * FROM projects ORDER BY proj_name ASC"
|
| 42 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
46 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
| 43 |
|
47 |
|
| 44 |
Response.write "<select name='FRproj_id' onChange=""MM_jumpMenu('parent',this,0)"" class='form_item'>"
|
48 |
Response.write "<select name='FRproj_id' onChange=""MM_showProgressBar();MM_jumpMenu('window',this,0)"" class='form_item'>"
|
| 45 |
Response.write "<option value=''>Select Project</option>"
|
49 |
Response.write "<option value=''>Select Project</option>"
|
| 46 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
50 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
| 47 |
tempLINK = scriptName &"?FRproj_id="& rsTemp.Fields("proj_id") &"&FRrtag_id=&ToRtag_id="& parToRtag_id &"&"& objPMod.ComposeURL()
|
51 |
tempLINK = scriptName &"?FRproj_id="& rsTemp.Fields("proj_id") &"&FRrtag_id=&ToRtag_id="& parToRtag_id &"&"& objPMod.ComposeURL()
|
| 48 |
|
52 |
|
| 49 |
If NNproj_id = Cstr(rsTemp.Fields("proj_id")) Then
|
53 |
If NNproj_id = Cstr(rsTemp.Fields("proj_id")) Then
|
| Line 57... |
Line 61... |
| 57 |
|
61 |
|
| 58 |
rsTemp.Close
|
62 |
rsTemp.Close
|
| 59 |
Set rsTemp = nothing
|
63 |
Set rsTemp = nothing
|
| 60 |
End Sub
|
64 |
End Sub
|
| 61 |
|
65 |
|
| 62 |
|
- |
|
| 63 |
|
- |
|
| 64 |
Sub Get_Release_Labels ( NNproj_id, NNrtag_id )
|
66 |
Sub Get_Release_Labels ( NNproj_id, NNrtag_id )
|
| 65 |
Dim rsTemp, Query_String, tempLINK
|
67 |
Dim rsTemp, Query_String, tempLINK
|
| 66 |
Query_String = _
|
68 |
Query_String = _
|
| 67 |
"SELECT rtag_id, rtag_name FROM release_tags WHERE proj_id = "& NNproj_id &" ORDER BY rtag_id ASC"
|
69 |
"SELECT rtag_id, rtag_name FROM release_tags WHERE proj_id = "& NNproj_id &" ORDER BY rtag_id ASC"
|
| 68 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
70 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
| 69 |
|
71 |
|
| 70 |
Response.write "<select name='FRrtag_id' onChange=""MM_jumpMenu('parent',this,0)"" class='form_item'>"
|
72 |
Response.write "<select name='FRrtag_id' onChange=""MM_showProgressBar();MM_jumpMenu('window',this,0)"" class='form_item'>"
|
| 71 |
If NNproj_id <> "-1" Then
|
73 |
If NNproj_id <> "-1" Then
|
| 72 |
Response.write "<option value=''>Select Release Label</option>"
|
74 |
Response.write "<option value=''>Select Release Label</option>"
|
| 73 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
75 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
| 74 |
tempLINK = scriptName &"?FRrtag_id="& rsTemp.Fields("rtag_id") &"&FRproj_id="& NNproj_id &"&ToRtag_id="& parToRtag_id &"&"& objPMod.ComposeURL()
|
76 |
tempLINK = scriptName &"?FRrtag_id="& rsTemp.Fields("rtag_id") &"&FRproj_id="& NNproj_id &"&ToRtag_id="& parToRtag_id &"&"& objPMod.ComposeURL()
|
| 75 |
|
77 |
|
| Line 84... |
Line 86... |
| 84 |
Response.write "</select>"
|
86 |
Response.write "</select>"
|
| 85 |
|
87 |
|
| 86 |
rsTemp.Close
|
88 |
rsTemp.Close
|
| 87 |
Set rsTemp = nothing
|
89 |
Set rsTemp = nothing
|
| 88 |
End Sub
|
90 |
End Sub
|
| - |
|
91 |
|
| - |
|
92 |
Function Import_Release ( NNFromRtag_id, NNToRtag_id )
|
| - |
|
93 |
|
| - |
|
94 |
OraDatabase.Parameters.Add "FROMRTAG_ID", NNFromRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| - |
|
95 |
OraDatabase.Parameters.Add "TORTAG_ID", NNToRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| - |
|
96 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| - |
|
97 |
|
| - |
|
98 |
sMessage = NNFromRtag_id &":"& NNToRtag_id
|
| - |
|
99 |
|
| - |
|
100 |
objEH.ErrorRedirect = FALSE
|
| - |
|
101 |
objEH.TryORA ( OraSession )
|
| - |
|
102 |
On Error Resume Next
|
| - |
|
103 |
|
| - |
|
104 |
' Remove old Work in Progress Contents
|
| - |
|
105 |
OraDatabase.ExecuteSQL _
|
| - |
|
106 |
"BEGIN PK_RELEASE.IMPORT_RELEASE_CONTENTS (:FROMRTAG_ID, :TORTAG_ID, :USER_ID); END;"
|
| - |
|
107 |
|
| - |
|
108 |
objEH.CatchORA ( OraSession )
|
| - |
|
109 |
If objEH.Finally Then
|
| - |
|
110 |
Call OpenInParentWindow ("dependencies.asp?rtag_id=" & NNToRtag_id)
|
| - |
|
111 |
Call CloseWindow()
|
| - |
|
112 |
End If
|
| - |
|
113 |
|
| - |
|
114 |
OraDatabase.Parameters.Remove "FROMRTAG_ID"
|
| - |
|
115 |
OraDatabase.Parameters.Remove "TORTAG_ID"
|
| - |
|
116 |
OraDatabase.Parameters.Remove "USER_ID"
|
| - |
|
117 |
End Function
|
| - |
|
118 |
|
| 89 |
%>
|
119 |
%>
|
| 90 |
<%
|
120 |
<%
|
| 91 |
'Process submition
|
121 |
'Process submition
|
| 92 |
If CBool(QStrPar("action")) Then
|
122 |
If CBool(QStrPar("action")) Then
|
| 93 |
%>
|
- |
|
| - |
|
123 |
If NOT objAccessControl.UserLogedIn Then
|
| 94 |
<script language="JavaScript" type="text/javascript">
|
124 |
sMessage = "User is no longer logged in"
|
| 95 |
window.opener.location='_import_release.asp?FromRtag_id=<%=Request.Form("FromRtag_id")%>&ToRtag_id=<%=Request.Form("ToRtag_id")%>&<%=objPMod.ComposeURL()%>';
|
125 |
ElseIf NOT( (parFromRtag_id <> "") AND (parToRtag_id <> "")) Then
|
| 96 |
</script>
|
126 |
sMessage = "Internal: Mandatory parameters are missing"
|
| 97 |
<%
|
127 |
Else
|
| - |
|
128 |
Call Import_Release ( parFromRtag_id, parToRtag_id )
|
| - |
|
129 |
parFRproj_id = "-1"
|
| - |
|
130 |
parFRrtag_id = "-1"
|
| 98 |
Call CloseWindow
|
131 |
End If
|
| 99 |
End If
|
132 |
End If
|
| 100 |
%>
|
133 |
%>
|
| 101 |
<html>
|
134 |
<html>
|
| 102 |
<head>
|
135 |
<head>
|
| 103 |
<title>Release Manager</title>
|
136 |
<title>Release Manager</title>
|
| Line 107... |
Line 140... |
| 107 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
140 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
| 108 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
141 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
| 109 |
<script language="JavaScript" src="images/common.js"></script>
|
142 |
<script language="JavaScript" src="images/common.js"></script>
|
| 110 |
</head>
|
143 |
</head>
|
| 111 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
144 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
| 112 |
<form name="importrel" method="post" action="<%=scriptName%>">
|
145 |
<form class="form_tight" name="importrel" method="post" action="<%=scriptName%>">
|
| 113 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
146 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
| 114 |
<tr>
|
147 |
<tr>
|
| 115 |
<td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_change_group_off.gif" width="22" height="25" hspace="5"></td>
|
- |
|
| 116 |
<td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">Import
|
148 |
<td colspan="2" class="body_txt">
|
| 117 |
Release Contents</td>
|
149 |
Select the source Project and Release.
|
| 118 |
<td background="images/lbox_bg_blue.gif" align="right" width="50%">
|
150 |
<br>All packages from the selected Release will be imported into this Release.
|
| 119 |
<input type="submit" name="btn" value="Import" class="form_btn_comp" onClick="MM_validateForm('FRproj_id','Project','R','FRrtag_id','Release Name','R');return document.MM_returnValue">
|
- |
|
| 120 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
|
151 |
<p>
|
| 121 |
</td>
|
152 |
</td>
|
| 122 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
|
- |
|
| 123 |
<img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
|
- |
|
| 124 |
</tr>
|
153 |
</tr>
|
| 125 |
<tr>
|
154 |
<tr>
|
| 126 |
<td height="100%" width="1%"> </td>
|
- |
|
| 127 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
155 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
| - |
|
156 |
<!-- LOCAL MESSAGES ++++++++++++++++++++++++++++++++++++++++++++ -->
|
| - |
|
157 |
<%Call Messenger ( sMessage , 3, "100%" )%>
|
| - |
|
158 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| - |
|
159 |
<!--#include file="messages/_msg_inline.asp"-->
|
| 128 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
160 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
| 129 |
<tr>
|
161 |
<tr>
|
| 130 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
- |
|
| 131 |
<td width="1%" nowrap class="form_group" valign="bottom"></td>
|
- |
|
| 132 |
<td nowrap width="100%"> </td>
|
- |
|
| 133 |
</tr>
|
- |
|
| 134 |
<tr>
|
- |
|
| 135 |
<td width="1%"> </td>
|
- |
|
| 136 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Project</td>
|
162 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Project</td>
|
| 137 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
|
163 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
|
| 138 |
<%Call Get_Projects ( parFRproj_id )%>
|
164 |
<%Call Get_Projects ( parFRproj_id )%>
|
| 139 |
</td>
|
165 |
</td>
|
| 140 |
</tr>
|
166 |
</tr>
|
| 141 |
<tr>
|
167 |
<tr>
|
| 142 |
<td width="1%"> </td>
|
- |
|
| 143 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Release
|
168 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Release
|
| 144 |
Name </td>
|
169 |
Name </td>
|
| 145 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
|
170 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
|
| 146 |
<%Call Get_Release_Labels ( parFRproj_id, parFRrtag_id )%>
|
171 |
<%Call Get_Release_Labels ( parFRproj_id, parFRrtag_id )%>
|
| 147 |
<input type="hidden" name="ToRtag_id" value="<%=parToRtag_id%>">
|
172 |
<input type="hidden" name="ToRtag_id" value="<%=parToRtag_id%>">
|
| 148 |
<input type="hidden" name="FromRtag_id" value="<%=parFRrtag_id%>">
|
173 |
<input type="hidden" name="FromRtag_id" value="<%=parFRrtag_id%>">
|
| 149 |
<input type="hidden" name="rtag_id" value="<%=Request("rtag_id")%>">
|
174 |
<input type="hidden" name="rtag_id" value="<%=Request("rtag_id")%>">
|
| 150 |
<input type="hidden" name="action" value="true">
|
175 |
<input type="hidden" name="action" value="true">
|
| 151 |
</td>
|
176 |
</td>
|
| 152 |
</tr>
|
177 |
</tr>
|
| 153 |
<tr>
|
- |
|
| 154 |
<td width="1%"> </td>
|
- |
|
| 155 |
<td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
|
- |
|
| 156 |
<td nowrap width="100%">
|
- |
|
| 157 |
<p> </p>
|
- |
|
| 158 |
</td>
|
- |
|
| 159 |
</tr>
|
- |
|
| 160 |
</table>
|
178 |
</table>
|
| 161 |
</td>
|
179 |
</td>
|
| 162 |
</tr>
|
180 |
</tr>
|
| 163 |
<tr>
|
181 |
<tr>
|
| - |
|
182 |
<td><%=ProgressBar()%></td>
|
| - |
|
183 |
<td align="right">
|
| 164 |
<td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
|
184 |
<input type="submit" name="btn" value="Import" class="form_btn_comp" onClick="MM_validateForm('FRproj_id','Project','R','FRrtag_id','Release Name','R');return document.MM_returnValue">
|
| 165 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
|
185 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
|
| - |
|
186 |
</td>
|
| 166 |
</tr>
|
187 |
</tr>
|
| 167 |
</table>
|
188 |
</table>
|
| 168 |
</form>
|
189 |
</form>
|
| 169 |
</body>
|
190 |
</body>
|
| 170 |
</html>
|
191 |
</html>
|