Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 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 -------------
4301 dpurdie 25
Dim parFRpkg_id                     ' Currently selected Package
26
Dim parFRpv_id                      ' Currently selected Package-Version
119 ghuddy 27
'------------ Constants Declaration -----------
28
'------------ Variable Init -------------------
29
parFRpkg_id = QStrPar("FRpkg_id")
4301 dpurdie 30
parFRpv_id = QStrPar("FRpv_id")
119 ghuddy 31
If parFRpkg_id = "" Then parFRpkg_id = "-1"
4301 dpurdie 32
If parFRpv_id = "" Then parFRpv_id = "-1"
119 ghuddy 33
'----------------------------------------------
34
%>
35
<%
4301 dpurdie 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 )
119 ghuddy 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
 
4301 dpurdie 48
	Response.write "<select name='FRpkg_id' onChange=""MM_jumpMenu('parent',this,0)"" class='form_item'>"
119 ghuddy 49
		Response.write "<option value=''>Select Package</option>"
50
		While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
4301 dpurdie 51
			tempLINK = scriptName &"?FRpkg_id="& rsTemp.Fields("pkg_id") & "&"& objPMod.ComposeURL()
52
			If NNpkg_id = Cstr(rsTemp.Fields("pkg_id")) Then
119 ghuddy 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>"
4301 dpurdie 56
            End If
119 ghuddy 57
			rsTemp.MoveNext
58
		WEnd
59
	Response.write "</select>"
60
 
61
	rsTemp.Close
62
	Set rsTemp = nothing
63
End Sub
64
 
4301 dpurdie 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 )
119 ghuddy 72
	Dim rsTemp, Query_String, tempLINK, productId
73
	Query_String = _
4301 dpurdie 74
	"SELECT pv_id, pkg_version FROM package_versions WHERE pkg_id = "& NNpkg_id &" ORDER BY pkg_version ASC"
119 ghuddy 75
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
76
 
4301 dpurdie 77
	Response.write "<select name='FRpv_id' onChange=""MM_jumpMenu('parent',this,0)"" class='form_item'>"
78
		If NNpkg_id <> "-1" Then
119 ghuddy 79
			Response.write "<option value=''>Select Package Version</option>"
80
			While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
4301 dpurdie 81
				tempLINK = scriptName &"?FRpv_id="& rsTemp.Fields("pv_id") &"&FRpkg_id="& NNpkg_id &"&"& objPMod.ComposeURL()
119 ghuddy 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">
4301 dpurdie 102
	window.opener.location='_import_dependency.asp?FromPv_id=<%=Request.Form("FromPv_id")%>&<%=objPMod.ComposeURL()%>';
119 ghuddy 103
	</script>		
104
	<%
105
	Call CloseWindow
106
End If
107
%>
108
<html>
109
<head>
110
<title>Release Manager</title>
111
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
112
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
113
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
114
<link rel="stylesheet" href="images/navigation.css" type="text/css">
115
<script language="JavaScript" src="images/common.js"></script>
116
</head>
117
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
118
<form name="importrel" method="post" action="<%=scriptName%>">
119
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
120
    <tr> 
121
      <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>
4301 dpurdie 122
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">Import Package Dependencies</td>
119 ghuddy 123
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
4301 dpurdie 124
        <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">
119 ghuddy 125
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
126
      </td>
127
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
128
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
129
    </tr>
130
    <tr> 
131
      <td height="100%" width="1%">&nbsp;</td>
132
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
133
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
134
          <tr> 
135
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
136
            <td width="1%" nowrap class="form_group" valign="bottom"></td>
137
            <td nowrap width="100%">&nbsp; </td>
138
          </tr>
139
          <tr> 
140
            <td width="1%">&nbsp;</td>
141
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package</td>
142
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
4301 dpurdie 143
              <%Call Get_Packages ( parFRpkg_id )%>
119 ghuddy 144
            </td>
145
          </tr>
146
          <tr> 
147
            <td width="1%">&nbsp;</td>
148
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package Version </td>
149
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
4301 dpurdie 150
              <%Call Get_Package_Versions ( parFRpkg_id, parFRpv_id )%>
151
			  <input type="hidden" name="FromPv_id" value="<%=parFRpv_id%>">
119 ghuddy 152
			  <input type="hidden" name="rtag_id" value="<%=Request("rtag_id")%>">
153
              <input type="hidden" name="action" value="true">
154
            </td>
155
          </tr>
156
          <tr> 
157
            <td width="1%">&nbsp;</td>
158
            <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
4301 dpurdie 159
            <td width="100%" class="form_txt"> 
160
              <p>Import all the dependencies of the specified package into the current Release in a recursive manner.
161
               <br>The specified package will also be import - if it is not already present.
162
               <p>Package Versions will be added to the 'Pending' tab of the Release. Duplicates <bold>MUST</bold> be removed from this list
163
                  before the versions are 'Released' into the body of the Release.
164
              </p>
119 ghuddy 165
            </td>
166
          </tr>
167
        </table>
168
      </td>
169
    </tr>
170
    <tr> 
171
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
172
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
173
    </tr>
174
  </table>
175
</form>
176
</body>
177
</html>
178
 
179
 
180
<!-- DESTRUCTOR ------->
181
<!--#include file="common/destructor.asp"-->