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
'					Build Standard
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/common_dbedit.asp"-->
17
<!--#include file="common/_popup_window_common.asp"-->
18
<%
19
' Set rfile parameter. This is a return page after Login
20
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
21
'------------ ACCESS CONTROL ------------------
22
%>
23
<!--#include file="_access_control_login.asp"-->
24
<!--#include file="_access_control_general.asp"-->
25
<!--#include file="_access_control_project.asp"-->
26
<%
27
'------------ Variable Definition -------------
28
Dim parPv_id
29
Dim BuildStandard
30
Dim rsQry, query
31
'------------ Constants Declaration -----------
32
'------------ Variable Init -------------------
33
parPv_id = QStrPar("pv_id")
34
'----------------------------------------------
35
%>
36
<%
37
'------------------------------------------------------------------------------------------------------------------------------------
38
Function GetCurrentBuildStandard ()
39
	Dim rsTemp, Query_String
40
	Query_String = _
41
	" SELECT bs_id"&_
42
	" FROM package_versions"&_
43
	" WHERE pv_id = "& Request("pv_id")
44
	Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
45
 
46
	If (NOT rsTemp.EOF) AND (NOT rsTemp.BOF) Then
47
		GetCurrentBuildStandard = rsTemp("bs_id")
48
	End If
49
 
50
	rsTemp.Close
51
	Set rsTemp = Nothing
52
End Function
53
'------------------------------------------------------------------------------------------------------------------------------------
54
Sub UpdateChangeType ( )
55
	Dim rsTemp, Query_String
56
	Query_String = _
57
	" SELECT bs_id, is_build_env_required"&_
58
	" FROM package_versions"&_
59
	" WHERE pv_id = "& Request("pv_id")
60
	Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
61
	'update fields
62
	rsTemp.Edit
63
	rsTemp.Fields("bs_id").Value = Request("bs_id")
64
 
65
	If Request("bs_id") = 3 Then
66
		rsTemp.Fields("is_build_env_required").Value = "N"
67
	Else
68
		rsTemp.Fields("is_build_env_required").Value = ""
69
	End If	
70
	rsTemp.Update
71
 
72
	OraSession.BeginTrans
73
 
74
	OraDatabase.ExecuteSQL _
75
	"DELETE	FROM PACKAGE_BUILD_INFO WHERE PV_ID ="&Request("pv_id")
76
 
77
	OraDatabase.ExecuteSQL _
78
	"DELETE	FROM PACKAGE_BUILD_ENV WHERE PV_ID ="&Request("pv_id")
79
 
80
	OraSession.CommitTrans	
81
 
82
	rsTemp.Close
83
	Set rsTemp = nothing
84
 
85
 
86
	'/* Log Action */
87
	If Request("bs_id") = "1" Then
88
		Call Log_Action ( Request("pv_id"), "build_standard_update", "Build Standard Update: JATS" )
89
 
90
	ElseIf Request("bs_id") = "2" Then
91
		Call Log_Action ( Request("pv_id"), "build_standard_update", "Build Standard Update: ANT" )
92
 
93
	ElseIf Request("bs_id") = "3" Then
94
		Call Log_Action ( Request("pv_id"), "build_standard_update", "Build Standard Update: NONE" )
95
 
96
	End If
97
 
98
End Sub
99
'------------------------------------------------------------------------------------------------------------------------------------
100
%>
101
<%
102
'Process submition
103
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
104
	Call UpdateChangeType ( )
105
	Call OpenInParentWindow ("fixed_issues.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id") )
106
	Call CloseWindow
107
Else
108
	BuildStandard = GetCurrentBuildStandard ()
109
End If
110
%>
111
<html>
112
<head>
113
<title>Release Manager</title>
114
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
115
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
116
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
117
<link rel="stylesheet" href="images/navigation.css" type="text/css">
118
<script language="JavaScript" src="images/common.js"></script>
119
</head>
120
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
121
<form name="reason" method="post" action="<%=scriptName%>" >
122
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
123
    <tr> 
124
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/s_notes_off.gif" width="20" height="24" hspace="5" border="0"></td>
125
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;Build Standard </td>
126
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
127
        <input type="submit" name="btn" value="Submit" class="form_btn_comp">
128
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
129
      </td>
130
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
131
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
132
    </tr>
133
    <tr> 
134
      <td height="100%" width="1%">&nbsp;</td>
135
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
136
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
137
          <tr> 
138
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
139
            <td nowrap width="100%">&nbsp; </td>
140
          </tr>
141
          <tr> 
142
            <td width="1%">&nbsp;</td>
143
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
144
              <table width="100%"  border="0" cellspacing="0" cellpadding="3">
145
                <tr>
146
                  <td width="1"><input name="bs_id" type="radio" value="1" <%If BuildStandard = "1" Then%>checked<%End If%>></td>
147
                  <td width="100%" class="form_field">JATS</td>
148
                </tr>
149
                <tr>
150
                  <td>&nbsp;</td>
151
                  <td class="form_txt">&nbsp;</td>
152
                </tr>
153
                <tr>
154
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
155
                </tr>
156
                <tr>
157
                  <td><input name="bs_id" type="radio" value="2" <%If BuildStandard = "2" Then%>checked<%End If%>></td>
158
                  <td class="form_field">ANT</td>
159
                </tr>
160
                <tr>
161
                  <td>&nbsp;</td>
162
                  <td class="form_txt">&nbsp;</td>
163
                </tr>
164
                <tr>
165
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
166
                </tr>
167
<%
168
 
169
query = "	select * from"&_ 
170
		"	package_versions"&_ 
171
		"	where pkg_id =	(select pv.pkg_id from package_versions pv, packages pkg"&_
172
		"	where pkg.pkg_id = pv.pkg_id and pv.pv_id ="&Request("pv_id")&")"
173
 
174
Set rsQry = OraDatabase.CreateDynaset( query, cint(0))
175
 
176
 
177
If objAccessControl.IsActive("CheckNoneOnNewPackage") And rsQry.RecordCount = 1 Then
178
 
179
%>				
180
                <tr>
181
                  <td><input name="bs_id" type="radio" value="3" <%If BuildStandard = "3" Then%>checked<%End If%>></td>
182
                  <td class="form_field">NONE</td>
183
                </tr>
184
                <tr>
185
                  <td>&nbsp;</td>
186
                  <td class="form_txt">&nbsp;</td>
187
                </tr>				
188
                <tr>
189
                  <td colspan="2"><hr width="100%" size="1" noshade></td>
190
                </tr>				
191
<%
192
End If
193
 
194
rsQry.Close()
195
Set rsQry = Nothing
196
 
197
%>				
198
 
199
 
200
              </table>			  
201
              <input type="hidden" name="pv_id" value="<%=parPv_id%>">
202
			  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
203
            <input type="hidden" name="action" value="true">            </td>
204
          </tr>
205
          <tr> 
206
            <td width="1%">&nbsp;</td>
207
            <td nowrap width="100%"> 
208
              <p>&nbsp;</p>
209
            </td>
210
          </tr>
211
        </table>
212
      </td>
213
    </tr>
214
    <tr>
215
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
216
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
217
    </tr>
218
  </table>
219
</form>
220
</body>
221
</html>
222
 
223
 
224
<!-- DESTRUCTOR ------->
225
<!--#include file="common/destructor.asp"-->