Subversion Repositories DevTools

Rev

Rev 5357 | Rev 5590 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
4
Response.Expires = 0	' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'					Import Release
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/qstr.asp"-->
14
<!--#include file="common/common_subs.asp"-->
15
<!--#include file="common/common_dbedit.asp"-->
16
<!--#include file="common/_popup_window_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_login.asp"-->
21
<!--#include file="_access_control_general.asp"-->
22
<!--#include file="_access_control_project.asp"-->
23
<%
24
'------------ Variable Definition -------------
25
Dim parFRpkg_id                     ' Currently selected Package
26
Dim parFRpv_id                      ' Currently selected Package-Version
27
'------------ Constants Declaration -----------
28
'------------ Variable Init -------------------
29
parFRpkg_id = QStrPar("FRpkg_id")
30
parFRpv_id = QStrPar("FRpv_id")
31
If parFRpkg_id = "" Then parFRpkg_id = "-1"
32
If parFRpv_id = "" Then parFRpv_id = "-1"
33
'----------------------------------------------
34
%>
35
<%
36
'-------------------------------------------------
37
' Function:         Get_Packages   
38
' Description:      Generate a List Box of all package names in the system
39
'                   Select the 'current' package
40
' Arguments:        NNpkg_id - Currently selected pkg_id
41
'
42
Sub Get_Packages ( NNpkg_id )
43
	Dim rsTemp, Query_String, tempLINK
44
	Query_String = _
45
	"SELECT * FROM packages ORDER BY pkg_name ASC"
46
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
47
 
48
	Response.write "<select name='FRpkg_id' onChange=""MM_jumpMenu('parent',this,0)"" class='form_item'>"
49
		Response.write "<option value=''>Select Package</option>"
50
		While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
51
			tempLINK = scriptName &"?FRpkg_id="& rsTemp.Fields("pkg_id") & "&"& objPMod.ComposeURL()
52
			If NNpkg_id = Cstr(rsTemp.Fields("pkg_id")) Then
53
	        	Response.write "<option value='"& tempLINK &"' selected>"& (rsTemp.Fields("pkg_name")) &"</option>"
54
	        Else
55
				Response.write "<option value='"& tempLINK &"'>"& (rsTemp.Fields("pkg_name")) &"</option>"
56
            End If
57
			rsTemp.MoveNext
58
		WEnd
59
	Response.write "</select>"
60
 
61
	rsTemp.Close
62
	Set rsTemp = nothing
63
End Sub
64
 
65
'-------------------------------------------------
66
' Function:         Get_Package_Versions
67
' Description:      Create a list box for all versions of a specified pakage
68
' Arguments:        NNpkg_id   - pkg_id of the base package
69
'                   NNrtag_id   - pv_id of the currently selected package-vesrion
70
'
71
Sub Get_Package_Versions ( NNpkg_id, NNrtag_id )
72
	Dim rsTemp, Query_String, tempLINK, productId
73
	Query_String = _
74
	"SELECT pv_id, pkg_version FROM package_versions WHERE pkg_id = "& NNpkg_id &" ORDER BY pkg_version ASC"
75
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
76
 
77
	Response.write "<select name='FRpv_id' onChange=""MM_jumpMenu('parent',this,0)"" class='form_item'>"
78
		If NNpkg_id <> "-1" Then
79
			Response.write "<option value=''>Select Package Version</option>"
80
			While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
81
				tempLINK = scriptName &"?FRpv_id="& rsTemp.Fields("pv_id") &"&FRpkg_id="& NNpkg_id &"&"& objPMod.ComposeURL()
82
 
83
				If NNrtag_id = Cstr(rsTemp.Fields("pv_id")) Then
84
		        	Response.write "<option value='"& tempLINK &"' selected>"& (rsTemp.Fields("pkg_version")) &"</option>"
85
		        Else
86
					Response.write "<option value='"& tempLINK &"'>"& (rsTemp.Fields("pkg_version")) &"</option>"
87
				End If
88
				rsTemp.MoveNext
89
			WEnd
90
		End If
91
	Response.write "</select>"
92
 
93
	rsTemp.Close
94
	Set rsTemp = nothing
95
End Sub
96
%>
97
<%
98
'Process submition
99
If CBool(QStrPar("action")) Then
100
	%>
101
	<script language="JavaScript" type="text/javascript">
102
	window.opener.location='_import_dependency.asp?FromPv_id=<%=Request.Form("FromPv_id")%>&<%=objPMod.ComposeURL()%>';
103
	</script>		
104
	<%
105
	Call CloseWindow
106
End If
107
%>
108
<html>
109
<head>
110
<title>Release Manager</title>
111
<link rel="shortcut icon" href="<%=FavIcon%>"/>
112
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
113
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
114
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
115
<link rel="stylesheet" href="images/navigation.css" type="text/css">
116
<script language="JavaScript" src="images/common.js"></script>
117
</head>
118
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
119
<form name="importrel" method="post" action="<%=scriptName%>">
120
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
121
    <tr> 
122
      <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>
123
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">Import Package Dependencies</td>
124
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
125
        <input type="submit" name="btn" value="Import" class="form_btn_comp" onClick="MM_validateForm('FRpkg_id','Package Name','R','FRpv_id','Package Version','R');return document.MM_returnValue">
126
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
127
      </td>
128
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
129
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
130
    </tr>
131
    <tr> 
132
      <td height="100%" width="1%">&nbsp;</td>
133
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
134
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
135
          <tr> 
136
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
137
            <td width="1%" nowrap class="form_group" valign="bottom"></td>
138
            <td nowrap width="100%">&nbsp; </td>
139
          </tr>
140
          <tr> 
141
            <td width="1%">&nbsp;</td>
142
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package</td>
143
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
144
              <%Call Get_Packages ( parFRpkg_id )%>
145
            </td>
146
          </tr>
147
          <tr> 
148
            <td width="1%">&nbsp;</td>
149
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package Version </td>
150
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
151
              <%Call Get_Package_Versions ( parFRpkg_id, parFRpv_id )%>
152
			  <input type="hidden" name="FromPv_id" value="<%=parFRpv_id%>">
153
			  <input type="hidden" name="rtag_id" value="<%=Request("rtag_id")%>">
154
              <input type="hidden" name="action" value="true">
155
            </td>
156
          </tr>
157
          <tr> 
158
            <td width="1%">&nbsp;</td>
159
            <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
160
            <td width="100%" class="form_txt"> 
161
              <p>Import all the dependencies of the specified package into the current Release in a recursive manner.
162
               <br>The specified package will also be import - if it is not already present.
163
               <p>Package Versions will be added to the 'Pending' tab of the Release. Duplicates <bold>MUST</bold> be removed from this list
164
                  before the versions are 'Released' into the body of the Release.
165
              </p>
166
            </td>
167
          </tr>
168
        </table>
169
      </td>
170
    </tr>
171
    <tr> 
172
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
173
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
174
    </tr>
175
  </table>
176
</form>
177
</body>
178
</html>
179
 
180
 
181
<!-- DESTRUCTOR ------->
119 ghuddy 182
<!--#include file="common/destructor.asp"-->