Subversion Repositories DevTools

Rev

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

Rev 157 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
'              Change Group
8
'              Change Group
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/qstr.asp"-->
13
<!--#include file="common/qstr.asp"-->
14
<!--#include file="common/common_subs.asp"-->
14
<!--#include file="common/common_subs.asp"-->
15
<!--#include file="common/common_dbedit.asp"-->
15
<!--#include file="common/common_dbedit.asp"-->
16
<!--#include file="common/_popup_window_common.asp"-->
16
<!--#include file="common/_popup_window_common.asp"-->
17
<!--#include file="common/daemon_instructions.asp"-->
17
<!--#include file="common/daemon_instructions.asp"-->
18
<%
18
<%
19
'------------ ACCESS CONTROL ------------------
19
'------------ ACCESS CONTROL ------------------
20
%>
20
%>
21
<!--#include file="_access_control_login.asp"-->
21
<!--#include file="_access_control_login.asp"-->
22
<!--#include file="_access_control_general.asp"-->
22
<!--#include file="_access_control_general.asp"-->
23
<!--#include file="_access_control_project.asp"-->
23
<!--#include file="_access_control_project.asp"-->
24
<%
24
<%
25
'------------ Variable Definition -------------
25
'------------ Variable Definition -------------
26
Dim parPv_id
26
Dim parPv_id
27
Dim parProj_id
27
Dim parProj_id
28
Dim parNewRtag_id
28
Dim parNewRtag_id
29
Dim parRfile
29
Dim parRfile
30
Dim bPreventSubmit
30
Dim bPreventSubmit
31
'------------ Constants Declaration -----------
31
'------------ Constants Declaration -----------
32
'------------ Variable Init -------------------
32
'------------ Variable Init -------------------
33
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
33
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
34
parPv_id = QStrPar("pv_id")
34
parPv_id = QStrPar("pv_id")
35
parProj_id= QStrPar("proj_id")
35
parProj_id= QStrPar("proj_id")
36
parNewRtag_id = QStrPar("new_rtag_id")
36
parNewRtag_id = QStrPar("new_rtag_id")
37
parRfile = Request("rfile")
37
parRfile = Request("rfile")
38
If IsNull(parProj_id) Then parProj_id = "0"
38
If IsNull(parProj_id) Then parProj_id = "0"
39
If IsNull(parNewRtag_id) Then parNewRtag_id = "0"
39
If IsNull(parNewRtag_id) Then parNewRtag_id = "0"
40
If IsNull(parRfile) Then parRfile = "dependencies.asp"
40
If IsNull(parRfile) Then parRfile = "dependencies.asp"
41
bPreventSubmit = false
41
bPreventSubmit = false
42
 
42
 
43
'----------------------------------------------
43
'----------------------------------------------
44
%>
44
%>
45
<%
45
<%
46
Sub Get_Pkg_Info_From_Rel ( SSrtag_id, SSpv_id )
46
Sub Get_Pkg_Info_From_Rel ( SSrtag_id, SSpv_id )
47
   Dim rsTemp, Query_String
47
   Dim rsTemp, Query_String
48
 
48
 
49
   Query_String = _
49
   Query_String = _
50
   " SELECT pkg.pkg_name, pv.pkg_version, wip.view_id, vi.view_name"&_
50
   " SELECT pkg.pkg_name, pv.pkg_version, wip.view_id, vi.view_name"&_
51
   "  FROM packages pkg, package_versions pv, work_in_progress wip, views vi"&_
51
   "  FROM packages pkg, package_versions pv, work_in_progress wip, views vi"&_
52
   " WHERE     pkg.pkg_id = pv.pkg_id"&_
52
   " WHERE     pkg.pkg_id = pv.pkg_id"&_
53
   "        AND pv.pv_id = wip.pv_id"&_
53
   "        AND pv.pv_id = wip.pv_id"&_
54
   "        AND vi.view_id = wip.view_id"&_
54
   "        AND vi.view_id = wip.view_id"&_
55
   "        AND wip.rtag_id = "& SSrtag_id &_
55
   "        AND wip.rtag_id = "& SSrtag_id &_
56
   "        AND wip.pv_id = "& SSpv_id
56
   "        AND wip.pv_id = "& SSpv_id
57
 
57
 
58
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
58
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
59
 
59
 
60
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
60
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
61
      pkgInfoHash.Add "pkg_name", (rsTemp.Fields("pkg_name"))
61
      pkgInfoHash.Add "pkg_name", (rsTemp.Fields("pkg_name"))
62
      pkgInfoHash.Add "pkg_version", (rsTemp.Fields("pkg_version"))
62
      pkgInfoHash.Add "pkg_version", (rsTemp.Fields("pkg_version"))
63
      pkgInfoHash.Add "view_id", (rsTemp.Fields("view_id"))
63
      pkgInfoHash.Add "view_id", (rsTemp.Fields("view_id"))
64
      pkgInfoHash.Add "view_name", (rsTemp.Fields("view_name"))
64
      pkgInfoHash.Add "view_name", (rsTemp.Fields("view_name"))
65
   End If
65
   End If
66
 
66
 
67
   rsTemp.Close
67
   rsTemp.Close
68
   Set rsTemp = nothing
68
   Set rsTemp = nothing
69
End Sub
69
End Sub
70
 
70
 
71
 
71
 
72
 
72
 
73
'------------------------------------------------------------------------------------------------------------------------------------------
73
'------------------------------------------------------------------------------------------------------------------------------------------
74
' Formulate the HTML for a combo box listing all the Projects, and select the one that matches
74
' Formulate the HTML for a combo box listing all the Projects, and select the one that matches
75
' the proj-id passed in as a parameter. If the parameter value could not be found, correct it to the first valid proj-id
75
' the proj-id passed in as a parameter. If the parameter value could not be found, correct it to the first valid proj-id
76
' in the list.
76
' in the list.
77
'------------------------------------------------------------------------------------------------------------------------------------------
77
'------------------------------------------------------------------------------------------------------------------------------------------
78
Function Get_Projects ( NNproj_id )
78
Function Get_Projects ( NNproj_id )
79
   Dim rsTemp, Query_String, projName, tempLINK, selectedFound, s
79
   Dim rsTemp, Query_String, projName, tempLINK, selectedFound, s
80
 
80
 
81
   selectedFound = False
81
   selectedFound = False
82
   Query_String = "SELECT * FROM projects ORDER BY  UPPER( proj_name )"
82
   Query_String = "SELECT * FROM projects ORDER BY  UPPER( proj_name )"
83
 
83
 
84
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
84
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
85
 
85
 
86
   s = "<td class='form_field' background='images/bg_form_lightbluedark.gif' >Project</td>"
86
   s = "<td class='form_field' background='images/bg_form_lightbluedark.gif' >Project</td>"
87
   s = s + "<td background='images/bg_form_lightbluedark.gif'><select id='proj_id_list' name='proj_id_list' class='form_item' onChange=""MM_jumpMenu('parent',this,0)"">"
87
   s = s + "<td background='images/bg_form_lightbluedark.gif'><select id='proj_id_list' name='proj_id_list' class='form_item' onChange=""MM_jumpMenu('parent',this,0)"">"
88
 
88
 
89
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
89
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
90
      projName = UCase(rsTemp.Fields("proj_name"))
90
      projName = UCase(rsTemp.Fields("proj_name"))
91
 
91
 
92
      tempLINK = scriptName & "?proj_id=" & rsTemp.Fields("proj_id") &_
92
      tempLINK = scriptName & "?proj_id=" & rsTemp.Fields("proj_id") &_
93
                              "&rtag_id="& parRtag_id &_
93
                              "&rtag_id="& parRtag_id &_
94
                              "&new_rtag_id="& parNewRtag_id &_
94
                              "&new_rtag_id="& parNewRtag_id &_
95
                              "&pv_id="& parPv_id &_
95
                              "&pv_id="& parPv_id &_
96
                              "&rfile="& parRfile
96
                              "&rfile="& parRfile
97
 
97
 
98
      If ((NNproj_id = Cstr(rsTemp.Fields("proj_id"))) OR (NNproj_id = "0")) AND (selectedFound = False) Then
98
      If ((NNproj_id = Cstr(rsTemp.Fields("proj_id"))) OR (NNproj_id = "0")) AND (selectedFound = False) Then
99
         s = s + "<option value='"& tempLINK &"' selected>"& projName &"</option>"
99
         s = s + "<option value='"& tempLINK &"' selected>"& projName &"</option>"
100
         selectedFound = True
100
         selectedFound = True
101
         NNproj_id = CStr(rsTemp.Fields("proj_id"))
101
         NNproj_id = CStr(rsTemp.Fields("proj_id"))
102
      Else
102
      Else
103
         s = s + "<option value='"& tempLINK &"'>"& projName &"</option>"
103
         s = s + "<option value='"& tempLINK &"'>"& projName &"</option>"
104
      End If
104
      End If
105
 
105
 
106
      rsTemp.MoveNext
106
      rsTemp.MoveNext
107
   WEnd
107
   WEnd
108
   s = s + "</select>"
108
   s = s + "</select>"
109
 
109
 
110
   ' Correct for a situation where selectedFound is still FALSE.
110
   ' Correct for a situation where selectedFound is still FALSE.
111
   If NOT selectedFound Then
111
   If NOT selectedFound Then
112
      rsTemp.MoveFirst
112
      rsTemp.MoveFirst
113
      If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
113
      If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
114
         NNproj_id = CStr(rsTemp.Fields("proj_id"))
114
         NNproj_id = CStr(rsTemp.Fields("proj_id"))
115
      Else
115
      Else
116
         NNproj_id = "0"
116
         NNproj_id = "0"
117
      End If
117
      End If
118
   End If
118
   End If
119
 
119
 
120
   rsTemp.Close
120
   rsTemp.Close
121
   Set rsTemp = nothing
121
   Set rsTemp = nothing
122
 
122
 
123
   s = s + "</td>"
123
   s = s + "</td>"
124
 
124
 
125
   Get_Projects = s
125
   Get_Projects = s
126
End Function
126
End Function
127
 
127
 
128
 
128
 
129
'------------------------------------------------------------------------------------------------------------------------------------------
129
'------------------------------------------------------------------------------------------------------------------------------------------
130
' Formulate the HTML for a combo box listing all the Release for a specified project, and select the one that matches
130
' Formulate the HTML for a combo box listing all the Release for a specified project, and select the one that matches
131
' the release-tag passed in as a parameter. If the parameter value could not be found, correct it to the first valid release-tag
131
' the release-tag passed in as a parameter. If the parameter value could not be found, correct it to the first valid release-tag
132
' in the list.
132
' in the list.
133
'------------------------------------------------------------------------------------------------------------------------------------------
133
'------------------------------------------------------------------------------------------------------------------------------------------
134
Function Get_Releases ( NNproj_id, NNrtag_id )
134
Function Get_Releases ( NNproj_id, NNrtag_id )
135
   Dim rsTemp, Query_String, releaseName, tempLINK, selectedFound, s, numReleases
135
   Dim rsTemp, Query_String, releaseName, tempLINK, selectedFound, s, numReleases
136
 
136
 
137
   selectedFound = False
137
   selectedFound = False
138
 
138
 
139
   numReleases = 0
139
   numReleases = 0
140
 
140
 
141
   Query_String = "SELECT rtag_id, rtag_name "&_
141
   Query_String = "SELECT rtag_id, rtag_name "&_
142
                  "  FROM release_tags rt"&_
142
                  "  FROM release_tags rt"&_
143
                  " WHERE rt.proj_id = "& NNproj_id &_
143
                  " WHERE rt.proj_id = "& NNproj_id &_
144
                  "   AND ((rt.official = 'N') OR (rt.official = 'C') OR (rt.official = 'R'))"&_
144
                  "   AND ((rt.official = 'N') OR (rt.official = 'C') OR (rt.official = 'R'))"&_
145
                  " ORDER BY UPPER(rtag_name)"
145
                  " ORDER BY UPPER(rtag_name)"
146
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
146
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
147
 
147
 
148
   s = "<td class='form_field'  background='images/bg_form_lightbluedark.gif' >Release</td>"
148
   s = "<td class='form_field'  background='images/bg_form_lightbluedark.gif' >Release</td>"
149
   s = s + "<td background='images/bg_form_lightbluedark.gif' ><select id='rtag_id_list' name='rtag_id_list' class='form_item' onChange=""MM_jumpMenu('parent',this,0)"">"
149
   s = s + "<td background='images/bg_form_lightbluedark.gif' ><select id='rtag_id_list' name='rtag_id_list' class='form_item' onChange=""MM_jumpMenu('parent',this,0)"">"
150
 
150
 
151
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
151
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
152
      releaseName = rsTemp.Fields("rtag_name")
152
      releaseName = rsTemp.Fields("rtag_name")
153
 
153
 
154
      tempLINK = scriptName & "?proj_id="& NNproj_id &_
154
      tempLINK = scriptName & "?proj_id="& NNproj_id &_
155
                              "&rtag_id="& parRtag_id &_
155
                              "&rtag_id="& parRtag_id &_
156
                              "&new_rtag_id="& rsTemp.Fields("rtag_id") &_
156
                              "&new_rtag_id="& rsTemp.Fields("rtag_id") &_
157
                              "&pv_id="& parPv_id &_
157
                              "&pv_id="& parPv_id &_
158
                              "&rfile="& parRfile
158
                              "&rfile="& parRfile
159
 
159
 
160
      If ((NNrtag_id = CStr(rsTemp.Fields("rtag_id"))) OR (NNrtag_id = "0")) AND (selectedFound = False) Then
160
      If ((NNrtag_id = CStr(rsTemp.Fields("rtag_id"))) OR (NNrtag_id = "0")) AND (selectedFound = False) Then
161
            s = s + "<option value='"& tempLINK &"' selected>"& releaseName &"</option>"
161
            s = s + "<option value='"& tempLINK &"' selected>"& releaseName &"</option>"
162
         selectedFound = True
162
         selectedFound = True
163
         NNrtag_id = Cstr(rsTemp.Fields("rtag_id"))
163
         NNrtag_id = Cstr(rsTemp.Fields("rtag_id"))
164
      Else
164
      Else
165
         s = s + "<option value='"& tempLINK &"'>"& releaseName &"</option>"
165
         s = s + "<option value='"& tempLINK &"'>"& releaseName &"</option>"
166
      End If
166
      End If
167
 
167
 
168
      numReleases = numReleases + 1
168
      numReleases = numReleases + 1
169
 
169
 
170
      rsTemp.MoveNext
170
      rsTemp.MoveNext
171
   WEnd
171
   WEnd
172
   s = s + "</select>"
172
   s = s + "</select>"
173
 
173
 
174
   ' Correct for a situation where selectedFound is still FALSE.
174
   ' Correct for a situation where selectedFound is still FALSE.
175
   If NOT selectedFound Then
175
   If NOT selectedFound Then
176
      rsTemp.MoveFirst
176
      rsTemp.MoveFirst
177
      If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
177
      If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
178
         NNrtag_id = CStr(rsTemp.Fields("rtag_id"))
178
         NNrtag_id = CStr(rsTemp.Fields("rtag_id"))
179
      Else
179
      Else
180
         NNrtag_id = "0"
180
         NNrtag_id = "0"
181
      End If
181
      End If
182
   End If
182
   End If
183
 
183
 
184
   ' If no releases were found then replace drop down list with some warning text and disable form submission
184
   ' If no releases were found then replace drop down list with some warning text and disable form submission
185
   If numReleases = 0 Then
185
   If numReleases = 0 Then
186
      bPreventSubmit = True
186
      bPreventSubmit = True
187
      s = "<td>Release</td><td><a style=color:Red>WARNING: No active releases found. The operation cannot be performed.</a></td>"
187
      s = "<td>Release</td><td><a style=color:Red>WARNING: No active releases found. The operation cannot be performed.</a></td>"
188
   End If
188
   End If
189
 
189
 
190
   rsTemp.Close
190
   rsTemp.Close
191
   Set rsTemp = nothing
191
   Set rsTemp = nothing
192
 
192
 
193
   s = s + "</td>"
193
   s = s + "</td>"
194
 
194
 
195
   Get_Releases = s
195
   Get_Releases = s
196
End Function
196
End Function
197
 
197
 
198
'-------------------------------------------------------------------------------------------------------
198
'-------------------------------------------------------------------------------------------------------
199
' Call stored procedures to move the WIP from the source release to the destination release
199
' Call stored procedures to move the WIP from the source release to the destination release
200
'-------------------------------------------------------------------------------------------------------
200
'-------------------------------------------------------------------------------------------------------
201
Sub MoveWip(source_RtagId, destination_RtagId, pvId, viewId)
201
Sub MoveWip(source_RtagId, destination_RtagId, pvId, viewId)
202
 
202
 
203
   OraDatabase.Parameters.Add "RTAG_ID", source_RtagId,           ORAPARM_INPUT, ORATYPE_NUMBER
203
   OraDatabase.Parameters.Add "RTAG_ID", source_RtagId,           ORAPARM_INPUT, ORATYPE_NUMBER
204
   OraDatabase.Parameters.Add "PV_ID",   pvId,                    ORAPARM_INPUT, ORATYPE_VARCHAR2
204
   OraDatabase.Parameters.Add "PV_ID",   pvId,                    ORAPARM_INPUT, ORATYPE_VARCHAR2
205
   OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
205
   OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
206
   OraDatabase.Parameters.Add "VIEW_ID", viewId,                  ORAPARM_INPUT, ORATYPE_NUMBER
206
   OraDatabase.Parameters.Add "VIEW_ID", viewId,                  ORAPARM_INPUT, ORATYPE_NUMBER
207
 
207
 
208
   objEH.TryORA ( OraSession )
208
   objEH.TryORA ( OraSession )
209
 
209
 
210
   OraDatabase.ExecuteSQL _
210
   OraDatabase.ExecuteSQL _
211
   "BEGIN   PK_WORK_IN_PROGRESS.REMOVE_PACKAGE ( :PV_ID, :RTAG_ID, :USER_ID );   END;"
211
   "BEGIN   PK_WORK_IN_PROGRESS.REMOVE_PACKAGE ( :PV_ID, :RTAG_ID, :USER_ID );   END;"
212
 
212
 
213
   If Err.Number = 0 Then
213
   If Err.Number = 0 Then
214
      OraDatabase.Parameters.Remove "RTAG_ID"
214
      OraDatabase.Parameters.Remove "RTAG_ID"
215
      OraDatabase.Parameters.Add "RTAG_ID", destination_RtagId, ORAPARM_INPUT, ORATYPE_NUMBER
215
      OraDatabase.Parameters.Add "RTAG_ID", destination_RtagId, ORAPARM_INPUT, ORATYPE_NUMBER
216
 
216
 
217
      OraDatabase.ExecuteSQL _
217
      OraDatabase.ExecuteSQL _
218
      "BEGIN   PK_WORK_IN_PROGRESS.ADD_PACKAGE ( :PV_ID, :VIEW_ID, :RTAG_ID, :USER_ID );   END;"
218
      "BEGIN   PK_WORK_IN_PROGRESS.ADD_PACKAGE ( :PV_ID, :VIEW_ID, :RTAG_ID, :USER_ID );   END;"
219
   End If
219
   End If
220
 
220
 
221
   objEH.CatchORA ( OraSession )
221
   objEH.CatchORA ( OraSession )
222
 
222
 
223
   OraDatabase.Parameters.Remove "RTAG_ID"
223
   OraDatabase.Parameters.Remove "RTAG_ID"
224
   OraDatabase.Parameters.Remove "PV_ID"
224
   OraDatabase.Parameters.Remove "PV_ID"
225
   OraDatabase.Parameters.Remove "USER_ID"
225
   OraDatabase.Parameters.Remove "USER_ID"
226
   OraDatabase.Parameters.Remove "VIEW_ID"
226
   OraDatabase.Parameters.Remove "VIEW_ID"
227
 
227
 
228
End Sub
228
End Sub
229
 
229
 
230
%>
230
%>
231
<%
231
<%
232
' get pkgInfoHash items for the source WIP
232
' get pkgInfoHash items for the source WIP
233
Call Get_Pkg_Info_From_Rel ( parRtag_id, parPv_id )
233
Call Get_Pkg_Info_From_Rel ( parRtag_id, parPv_id )
234
 
234
 
235
' Make sure this WIP can be moved - prevent if it has a pending test build instruction, etc
235
' Make sure this WIP can be moved - prevent if it has a pending test build instruction, etc
236
If (DaemonInstructionPreventsEditing(Request("rtag_id"), Request("pv_id"))) Then
236
If (DaemonInstructionPreventsEditing(Request("rtag_id"), Request("pv_id"))) Then
237
   Call RaiseMsgInParent(enum_MSG_ERROR, "This WIP has one or more daemon instructions present.<br><br>"&_
237
   Call RaiseMsgInParent(enum_MSG_ERROR, "This WIP has one or more daemon instructions present.<br><br>"&_
238
                                         "Please delete them or allow them to be consumed before attempting to move the WIP.")
238
                                         "Please delete them or allow them to be consumed before attempting to move the WIP.")
239
   Call CloseWindow
239
   Call CloseWindow
240
Else
240
Else
241
   ' check for form submission
241
   ' check for form submission
242
   If CBool(QStrPar("action")) AND (QStrPar("btn") = "Move") AND objAccessControl.UserLogedIn Then
242
   If CBool(QStrPar("action")) AND (QStrPar("btn") = "Move") AND objAccessControl.UserLogedIn Then
243
      'Process submition
243
      'Process submition
244
      Call MoveWip(parRtag_id, parNewRtag_id, parPv_id, pkgInfoHash.Item("view_id"))
244
      Call MoveWip(parRtag_id, parNewRtag_id, parPv_id, pkgInfoHash.Item("view_id"))
245
      Call OpenInParentWindow (parRfile &"?pv_id="& parPv_id &"&rtag_id="& parNewRtag_id )
245
      Call OpenInParentWindow (parRfile &"?pv_id="& parPv_id &"&rtag_id="& parNewRtag_id )
246
      Call CloseWindow
246
      Call CloseWindow
247
   Else
247
   Else
248
      ' Call HTML rendering functions, but throw away the strings returned since we only want to ensure that
248
      ' Call HTML rendering functions, but throw away the strings returned since we only want to ensure that
249
      ' the current state of the bPreventSubmit flag has been acquired in order to show/hide the submit button
249
      ' the current state of the bPreventSubmit flag has been acquired in order to show/hide the submit button
250
      Call Get_Projects(parProj_id)
250
      Call Get_Projects(parProj_id)
251
      Call Get_Releases(parProj_id, parNewRtag_id)
251
      Call Get_Releases(parProj_id, parNewRtag_id)
252
   End If
252
   End If
253
End If
253
End If
254
 
254
 
255
%>
255
%>
256
 
256
 
257
<html>
257
<html>
258
<head>
258
<head>
259
<title>Release Manager</title>
259
<title>Release Manager</title>
260
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
260
<link rel="shortcut icon" href="<%=FavIcon%>"/>
261
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
261
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
262
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
262
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
263
<link rel="stylesheet" href="images/navigation.css" type="text/css">
263
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
264
<script language="JavaScript" src="images/tipster.js"></script>
264
<link rel="stylesheet" href="images/navigation.css" type="text/css">
265
<script language="JavaScript" src="images/_help_tips.js"></script>
265
<script language="JavaScript" src="images/tipster.js"></script>
266
<script language="JavaScript" src="images/common.js"></script>
266
<script language="JavaScript" src="images/_help_tips.js"></script>
267
</head>
267
<script language="JavaScript" src="images/common.js"></script>
268
 
268
</head>
269
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
269
 
270
<form name="chgroup" method="post" action="<%=scriptName%>">
270
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
271
   <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
271
<form name="chgroup" method="post" action="<%=scriptName%>">
272
      <tr>
272
   <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
273
         <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>
273
      <tr>
274
         <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;Move WIP To Another Release</td>
274
         <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>
275
         <td background="images/lbox_bg_blue.gif" align="right" width="50%">
275
         <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;Move WIP To Another Release</td>
276
            <%If NOT bPreventSubmit Then%>
276
         <td background="images/lbox_bg_blue.gif" align="right" width="50%">
277
               <input type="submit" name="btn" value="Move" class="form_btn_comp">
277
            <%If NOT bPreventSubmit Then%>
278
            <%End If%>
278
               <input type="submit" name="btn" value="Move" class="form_btn_comp">
279
            <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
279
            <%End If%>
280
         </td>
280
            <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
281
         <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
281
         </td>
282
            <img src="images/h_trsp_dot.gif" width="5" height="22">
282
         <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
283
         </td>
283
            <img src="images/h_trsp_dot.gif" width="5" height="22">
284
      </tr>
284
         </td>
285
      <tr>
285
      </tr>
286
         <td height="100%" width="1%">&nbsp;</td>
286
      <tr>
287
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
287
         <td height="100%" width="1%">&nbsp;</td>
288
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
288
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
289
               <tr>
289
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
290
                  <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
290
               <tr>
291
                  <td width="1%" nowrap class="form_group" valign="bottom">WIP Details</td>
291
                  <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
292
                  <td nowrap width="100%">&nbsp; </td>
292
                  <td width="1%" nowrap class="form_group" valign="bottom">WIP Details</td>
293
               </tr>
293
                  <td nowrap width="100%">&nbsp; </td>
294
               <tr>
294
               </tr>
295
                  <td width="1%">&nbsp;</td>
295
               <tr>
296
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package<a href="#" onMouseOver="formTips.show('group')" onMouseOut="formTips.hide()"></a></td>
296
                  <td width="1%">&nbsp;</td>
297
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
297
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package<a href="#" onMouseOver="formTips.show('group')" onMouseOut="formTips.hide()"></a></td>
298
                     <%=pkgInfoHash.Item("pkg_name")%>
298
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
299
                  </td>
299
                     <%=pkgInfoHash.Item("pkg_name")%>
300
               </tr>
300
                  </td>
301
               <tr>
301
               </tr>
302
                  <td width="1%">&nbsp;</td>
302
               <tr>
303
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Version<a href="#" onMouseOver="formTips.show('group')" onMouseOut="formTips.hide()"></a></td>
303
                  <td width="1%">&nbsp;</td>
304
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
304
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Version<a href="#" onMouseOver="formTips.show('group')" onMouseOut="formTips.hide()"></a></td>
305
                     <%=pkgInfoHash.Item("pkg_version")%>
305
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
306
                  </td>
306
                     <%=pkgInfoHash.Item("pkg_version")%>
307
               </tr>
307
                  </td>
308
               <tr>
308
               </tr>
309
                  <td width="1%">&nbsp;</td>
309
               <tr>
310
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">View<a href="#" onMouseOver="formTips.show('group')" onMouseOut="formTips.hide()"></a></td>
310
                  <td width="1%">&nbsp;</td>
311
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
311
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">View<a href="#" onMouseOver="formTips.show('group')" onMouseOut="formTips.hide()"></a></td>
312
                     <%=pkgInfoHash.Item("view_name")%>
312
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
313
                  </td>
313
                     <%=pkgInfoHash.Item("view_name")%>
314
               </tr>
314
                  </td>
315
 
315
               </tr>
316
               <tr>
316
 
317
                  <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
317
               <tr>
318
                  <td width="1%" nowrap class="form_group" valign="bottom">Select Destination Release</td>
318
                  <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
319
                  <td nowrap width="100%">&nbsp; </td>
319
                  <td width="1%" nowrap class="form_group" valign="bottom">Select Destination Release</td>
320
               </tr>
320
                  <td nowrap width="100%">&nbsp; </td>
321
               <tr>
321
               </tr>
322
                  <td width="1%">&nbsp;</td>
322
               <tr>
323
                  <%=Get_Projects(parProj_id)%>
323
                  <td width="1%">&nbsp;</td>
324
                  <td nowrap width="100%">&nbsp; </td>
324
                  <%=Get_Projects(parProj_id)%>
325
               </tr>
325
                  <td nowrap width="100%">&nbsp; </td>
326
               <tr>
326
               </tr>
327
                  <td width="1%">&nbsp;</td>
327
               <tr>
328
                  <%=Get_Releases(parProj_id, parNewRtag_id)%>
328
                  <td width="1%">&nbsp;</td>
329
                  <td nowrap width="100%">&nbsp; </td>
329
                  <%=Get_Releases(parProj_id, parNewRtag_id)%>
330
               </tr>
330
                  <td nowrap width="100%">&nbsp; </td>
331
 
331
               </tr>
332
               <tr>
332
 
333
                  <td width="1%">&nbsp;</td>
333
               <tr>
334
                  <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
334
                  <td width="1%">&nbsp;</td>
335
                  <td nowrap width="100%">&nbsp; </td>
335
                  <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
336
                  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
336
                  <td nowrap width="100%">&nbsp; </td>
337
                  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
337
                  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
338
                  <input type="hidden" name="new_rtag_id" value="<%=parNewRtag_id%>">
338
                  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
339
                  <input type="hidden" name="view_id" value="<%=pkgInfoHash.Item("view_id")%>">
339
                  <input type="hidden" name="new_rtag_id" value="<%=parNewRtag_id%>">
340
                  <input type="hidden" name="rfile" value="<%=parRfile%>">
340
                  <input type="hidden" name="view_id" value="<%=pkgInfoHash.Item("view_id")%>">
341
                  <input type="hidden" name="action" value="true">
341
                  <input type="hidden" name="rfile" value="<%=parRfile%>">
342
               </tr>
342
                  <input type="hidden" name="action" value="true">
343
            </table>
343
               </tr>
344
         </td>
344
            </table>
345
      </tr>
345
         </td>
346
      <tr>
346
      </tr>
347
         <td height="100%" width="1%">&nbsp;</td>
347
      <tr>
348
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
348
         <td height="100%" width="1%">&nbsp;</td>
349
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
349
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
350
               <tr>
350
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
351
                  <td width="1%" wrap class="form_group" valign="bottom">
351
               <tr>
352
                     WARNING:<br>
352
                  <td width="1%" wrap class="form_group" valign="bottom">
353
                     The destination release may not satisfy any or all the dependencies that come with
353
                     WARNING:<br>
354
                     the WIP you are about to move. It is your responsibility to rectify this in the
354
                     The destination release may not satisfy any or all the dependencies that come with
355
                     destination release.
355
                     the WIP you are about to move. It is your responsibility to rectify this in the
356
                  </td>
356
                     destination release.
357
               </tr>
357
                  </td>
358
            </table>
358
               </tr>
359
         </td>
359
            </table>
360
      </tr>
360
         </td>
361
 
361
      </tr>
362
      <tr>
362
 
363
         <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
363
      <tr>
364
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
364
         <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
365
      </tr>
365
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
366
   </table>
366
      </tr>
367
</form>
367
   </table>
368
<!-- TIPS LAYERS -------------------------------------->
368
</form>
369
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
369
<!-- TIPS LAYERS -------------------------------------->
370
<!----------------------------------------------------->
370
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
371
</body>
371
<!----------------------------------------------------->
372
</html>
372
</body>
373
 
373
</html>
374
 
374
 
375
<!-- DESTRUCTOR ------->
375
 
376
<!--#include file="common/destructor.asp"-->
376
<!-- DESTRUCTOR ------->
-
 
377
<!--#include file="common/destructor.asp"-->