Subversion Repositories DevTools

Rev

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

Rev 7293 Rev 7572
Line 42... Line 42...
42
        OraDatabase.Parameters.Remove "PV_ID"
42
        OraDatabase.Parameters.Remove "PV_ID"
43
        OraDatabase.Parameters.Remove "RTAG_ID"
43
        OraDatabase.Parameters.Remove "RTAG_ID"
44
        If rsTemp.RecordCount > 0 Then 
44
        If rsTemp.RecordCount > 0 Then 
45
            TotalBuildTime = NiceCLng (rsTemp("Total_BuildTime"), 0)
45
            TotalBuildTime = NiceCLng (rsTemp("Total_BuildTime"), 0)
46
            BuildTime = NiceCLng (rsTemp("BuildTime"), 0)
46
            BuildTime = NiceCLng (rsTemp("BuildTime"), 0)
47
			If TotalBuildTime > 2 * 60 * 60 Then
47
            If TotalBuildTime > 2 * 60 * 60 Then
48
                bLongBuild = TRUE
48
                bLongBuild = TRUE
49
            End If
49
            End If
50
        End If
50
        End If
51
        rsTemp.Close()
51
        rsTemp.Close()
52
        Set rsTemp = nothing
52
        Set rsTemp = nothing
53
 
53
 
54
		If err.Number <> 0 Then
54
        If err.Number <> 0 Then
55
            Call sMessageAdd(2,"Error calculating build time")
55
            Call sMessageAdd(2,"Error calculating build time")
56
		End If
56
        End If
57
 
57
 
58
'------------------------------------------------------------------------------------------------------------------------------------------
58
'------------------------------------------------------------------------------------------------------------------------------------------
59
' Add a line of text to the System Message
59
' Add a line of text to the System Message
60
'
60
'
61
Sub sMessageAdd(eLevel, text)
61
Sub sMessageAdd(eLevel, text)
Line 147... Line 147...
147
                     getScheduledTime();
147
                     getScheduledTime();
148
                    },
148
                    },
149
                });
149
                });
150
 
150
 
151
            //  Set default time to be midnight - Perth Time (UTC+8)
151
            //  Set default time to be midnight - Perth Time (UTC+8)
152
			var midnight = new Date();
152
            var midnight = new Date();
153
            midnight.setUTCHours(24-8,0,0,0); 
153
            midnight.setUTCHours(24-8,0,0,0); 
154
            myDateTimePicker.datetimepicker('setDate', midnight);
154
            myDateTimePicker.datetimepicker('setDate', midnight);
155
            getScheduledTime();
155
            getScheduledTime();
156
 
156
 
157
        } else {
157
        } else {
Line 201... Line 201...
201
       <!--#include file="messages/_msg_inline.asp"-->
201
       <!--#include file="messages/_msg_inline.asp"-->
202
   </div>
202
   </div>
203
   <div class='textPanel PanelPad'>
203
   <div class='textPanel PanelPad'>
204
       <img class=PanelCell src="images/i_warning.gif" style="margin:0 7px 20px 0;">
204
       <img class=PanelCell src="images/i_warning.gif" style="margin:0 7px 20px 0;">
205
       <span class=PanelCell>Approve this package for autobuild
205
       <span class=PanelCell>Approve this package for autobuild
206
	        <p>Estimated build duration: <%=IIF(BuildTime > 0, NiceDuration(BuildTime), "Unknown")%>
206
            <p>Estimated build duration: <%=IIF(BuildTime > 0, NiceDuration(BuildTime), "Unknown")%>
207
			<br>Estimated duration of complete ripple: <%=IIF(TotalBuildTime, NiceDuration(TotalBuildTime), "Unknown")%>
207
            <br>Estimated duration of complete ripple: <%=IIF(TotalBuildTime, NiceDuration(TotalBuildTime), "Unknown")%>
208
	   </span>
208
       </span>
209
   </div>
209
   </div>
210
<%If bLongBuild Then%>
210
<%If bLongBuild Then%>
211
   <div class='textPanel PanelPad informPanel'>
211
   <div class='textPanel PanelPad informPanel'>
212
       <img class=PanelCell src="images/s_critical.gif">
212
       <img class=PanelCell src="images/s_critical.gif">
213
	   <span class=PanelCell>This package will cause a significant ripple.<br>Consider scheduling it for a time to minimise dev impact.</span>
213
       <span class=PanelCell>This package will cause a significant ripple.<br>Consider scheduling it for a time to minimise dev impact.</span>
214
   </div>
214
   </div>
215
<%End If%>
215
<%End If%>
216
    <div id=showdate class=display-none>
216
    <div id=showdate class=display-none>
217
       <div class='textPanel PanelPad' id=datetime></div>
217
       <div class='textPanel PanelPad' id=datetime></div>
218
       <div>Perth Time: <span id=otime></span></div>
218
       <div>Perth Time: <span id=otime></span></div>
219
       <div>In: <span id=ofuture></span></div>
219
       <div>In: <span id=ofuture></span></div>
220
    </div>
220
    </div>
221
   <div class='PanelSep'></div>
221
   <div class='PanelSep'></div>
222
   <div class='buttonPanelWhite' id=schedule>
222
   <div class='buttonPanelWhite' id=schedule>
223
	   <div class=nowrap>
223
       <div class=nowrap>
224
			<input name=sched type=radio value='sched' <%=IIF(bLongBuild, "checked","")%>>Schedule
224
            <input name=sched type=radio value='sched' <%=IIF(bLongBuild, "checked","")%>>Schedule
225
			<input name=sched type=radio value='now'   <%=IIF(bLongBuild, "","checked")%>>Include immediately
225
            <input name=sched type=radio value='now'   <%=IIF(bLongBuild, "","checked")%>>Include immediately
226
			<span style='margin-left:4em'></span>
226
            <span style='margin-left:4em'></span>
227
			<button id=release>Release</button>
227
            <button id=release>Release</button>
228
			<button id=cancel>Cancel</button>
228
            <button id=cancel>Cancel</button>
229
	   </div>
229
       </div>
230
   </div>
230
   </div>
231
	<div id='ProgressBar' class='vixSpinner' style='visibility:hidden;'></div>
231
    <div id='ProgressBar' class='vixSpinner' style='visibility:hidden;'></div>
232
   <div id=errorPane class='display-none errorPanel PanelPadTop'></div>
232
   <div id=errorPane class='display-none errorPanel PanelPadTop'></div>
233
</div>
233
</div>
234
<!-- DESTRUCTOR ------->
234
<!-- DESTRUCTOR ------->
235
<!--#include file="common/destructor.asp"-->
235
<!--#include file="common/destructor.asp"-->