Subversion Repositories DevTools

Rev

Rev 5590 | Rev 5638 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5590 Rev 5636
Line 84... Line 84...
84
        
84
        
85
        objEH.TryORA ( OraSession )
85
        objEH.TryORA ( OraSession )
86
        
86
        
87
        OraDatabase.ExecuteSQL _
87
        OraDatabase.ExecuteSQL _
88
           "BEGIN PK_BUILDAPI.Insert_Schedule_Info ( " &_
88
           "BEGIN PK_BUILDAPI.Insert_Schedule_Info ( " &_
89
                "TO_DATE(:SCHEDULED_PAUSE,'DD-MM-YYYY HH24:MI:SS'), " &_
89
                "TO_DATE(:SCHEDULED_PAUSE,'DY DD-MM-YYYY HH24:MI'), " &_
90
                "TO_DATE(:SCHEDULED_RESUME,'DD-MM-YYYY HH24:MI:SS'), " &_
90
                "TO_DATE(:SCHEDULED_RESUME,'DY DD-MM-YYYY HH24:MI'), " &_
91
                ":REPEAT, " &_
91
                ":REPEAT, " &_
92
                ":INDEFINITE_PAUSE );" &_
92
                ":INDEFINITE_PAUSE );" &_
93
            "END;"
93
            "END;"
94
        
94
        
95
        objEH.CatchORA ( OraSession )
95
        objEH.CatchORA ( OraSession )
Line 100... Line 100...
100
        OraDatabase.Parameters.Remove "INDEFINITE_PAUSE"
100
        OraDatabase.Parameters.Remove "INDEFINITE_PAUSE"
101
 
101
 
102
        If objEH.Finally Then
102
        If objEH.Finally Then
103
            Call OpenInParentWindow ("admin_build_service.asp")
103
            Call OpenInParentWindow ("admin_build_service.asp")
104
            Call CloseWindow()
104
            Call CloseWindow()
-
 
105
            Response.End
105
        End If
106
        End If
106
 
107
 
107
        rsQry.Close()
108
        rsQry.Close()
108
        Set rsQry = nothing
109
        Set rsQry = nothing
109
    End If
110
    End If
Line 119... Line 120...
119
        <link rel="shortcut icon" href="<%=FavIcon%>"/>
120
        <link rel="shortcut icon" href="<%=FavIcon%>"/>
120
        <meta http-equiv="Pragma" content="no-cache">
121
        <meta http-equiv="Pragma" content="no-cache">
121
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
122
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
122
        <link href="images/release_manager_style.css" rel="stylesheet" type="text/css">
123
        <link href="images/release_manager_style.css" rel="stylesheet" type="text/css">
123
        <script language="JavaScript" src="scripts/common.js"></script>
124
        <script language="JavaScript" src="scripts/common.js"></script>
-
 
125
        <%bJqueryTimePicker = TRUE%>
-
 
126
        <!--#include file="_jquery_includes.asp"-->
-
 
127
        <script>
-
 
128
        $(document).ready(function(){
-
 
129
            $('#scheduled_pause').datetimepicker({
-
 
130
        		timeFormat: "HH:mm",
-
 
131
                dateFormat: "D dd-M-yy",
-
 
132
        		controlType: 'select',
-
 
133
        		oneLine: true,
-
 
134
        		timeInput: true,
-
 
135
                constrainInput: true,
-
 
136
                showOn: 'both',
-
 
137
                buttonImageOnly : true,
-
 
138
                buttonImage: "images/cal.gif",
-
 
139
                buttonText: "Select Date and Time",
-
 
140
                minDate : 0,
-
 
141
                changeYear : true, 
-
 
142
                yearRange : "0000:2099",
-
 
143
                changeMonth: true,
-
 
144
        		onClose : function(p1,p2){
-
 
145
                    checkForm();
-
 
146
        			 //console.log("scheduled_time", p1 );
-
 
147
        			},
-
 
148
        	    });
-
 
149
 
-
 
150
            $('#scheduled_resume').datetimepicker({
-
 
151
        		timeFormat: "HH:mm",
-
 
152
                dateFormat: "D dd-M-yy",
-
 
153
        		controlType: 'select',
-
 
154
        		oneLine: true,
-
 
155
        		timeInput: true,
-
 
156
                constrainInput: true,
-
 
157
                showOn: 'both',
-
 
158
                buttonImageOnly : true,
-
 
159
                buttonImage: "images/cal.gif",
-
 
160
                buttonText: "Select Date and Time",
-
 
161
                minDate : 0,
-
 
162
                changeYear : true, 
-
 
163
                yearRange : "0000:2099",
-
 
164
                changeMonth: true,
-
 
165
        		onClose : function(p1,p2){
-
 
166
                    checkForm();
-
 
167
        			 //console.log("scheduled_time", p1 );
-
 
168
        			},
-
 
169
        	    });
-
 
170
 
-
 
171
                checkForm();
-
 
172
 
-
 
173
        	});
-
 
174
 
-
 
175
        function checkForm() {
-
 
176
            var resume = $('#scheduled_resume').val().length;
124
        <script language="JavaScript" src="images/ts_picker.js"></script>
177
            var pause = $('#scheduled_pause').val().length;
-
 
178
            var ok = ( resume > 0 && pause > 0);
-
 
179
 
-
 
180
            var but = $("#formSubmit");
-
 
181
            but.toggleClass("form_btn", ok);
-
 
182
            but.toggleClass("form_btn_disabled", !ok);
-
 
183
            but.prop("disabled", !ok );
-
 
184
        }
-
 
185
 
-
 
186
        </script>
-
 
187
        <style>
-
 
188
            #ui-datepicker-div {
-
 
189
                position: absolute !important;
-
 
190
                top: 0px !important;
-
 
191
                left: 0px !important;
-
 
192
                }
-
 
193
        </style>
125
    </head>
194
    </head>
126
    <body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0" onload="self.focus();">
195
    <body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0" onload="self.focus();">
127
        <table width="100%" border="0" cellspacing="0" cellpadding="10">
196
        <table width="100%" border="0" cellspacing="0" cellpadding="10">
128
            <%
197
            <%
129
            '-- FROM START --------------------------------------------------------------------------------------------------------------
198
            '-- FROM START --------------------------------------------------------------------------------------------------------------
Line 138... Line 207...
138
                    <!-- NEW SCHEDULE ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  -->
207
                    <!-- NEW SCHEDULE ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  -->
139
                    <%Call Messenger ( sMessage , 3, "100%" )%>
208
                    <%Call Messenger ( sMessage , 3, "100%" )%>
140
                    <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
209
                    <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
141
                    <!--#include file="messages/_msg_inline.asp"-->
210
                    <!--#include file="messages/_msg_inline.asp"-->
142
                    <br>
211
                    <br>
143
                    <table width="50%" border="0">
212
                    <table border="0">
144
                        <tr>
213
                        <tr>
145
                            <td nowrap class="form_iname">SCHEDULED PAUSE</td>
214
                            <td nowrap class="form_iname">Scheduled Pause</td>
146
                            <td class="form_item"><%=objFormComponent.TextBox ("scheduled_pause", "", "size='20' class='form_ivalue'" )%></td>
215
                            <td nowrap class="form_item"><%=objFormComponent.TextBox ("scheduled_pause", "", "size='20' class='form_ivalue' id='scheduled_pause'" )%></td>
147
                            <td class="form_item" width="1">
-
 
148
                                <a href="javascript:show_calendar('document.run_level_schedule.scheduled_pause', document.run_level_schedule.scheduled_pause.value);">
-
 
149
                                    <img src="images/cal.gif" width="16" height="16" border="0" alt="Click here to select the time to pause">
-
 
150
                                </a>
-
 
151
                            </td>
-
 
152
                        </tr>
216
                        </tr>
153
                        <tr>
217
                        <tr>
154
                            <td nowrap class="form_iname">SCHEDULED RESUME</td>
218
                            <td nowrap class="form_iname">Scheduled Resume</td>
155
                            <td class="form_item"><%=objFormComponent.TextBox ("scheduled_resume", "", "size='20' class='form_ivalue'" )%></td>
219
                            <td nowrap class="form_item"><%=objFormComponent.TextBox ("scheduled_resume", "", "size='20' class='form_ivalue' id='scheduled_resume'" )%></td>
156
                            <td class="form_item">
-
 
157
                                <a href="javascript:show_calendar('document.run_level_schedule.scheduled_resume', document.run_level_schedule.scheduled_resume.value);">
-
 
158
                                    <img src="images/cal.gif" width="16" height="16" border="0" alt="Click Here to select the time to resume">
-
 
159
                                </a>
-
 
160
                            </td>
220
                            </td>
161
                        </tr>
221
                        </tr>
162
                        <tr>
222
                        <tr>
163
                            <td nowrap class="form_iname">REPEAT SCHEDULED DOWNTIME</td>
223
                            <td nowrap class="form_iname">Repeat</td>
164
                            <td colspan="2"><% Call RenderRepeatCombo("")%></td>
224
                            <td nowrap class="form_item"><% Call RenderRepeatCombo("")%></td>
165
                        </tr>
225
                        </tr>
166
                    </table>
226
                    </table>
167
                </td>
227
                </td>
168
            </tr>
228
            </tr>
169
            <%=objPMod.ComposeHiddenTags()%>
229
            <tr>
170
            <input type="hidden" name="action" value="true">
230
                <td style="height:100px">
171
            <%
231
                </td>
172
            Call objFormComponent.FormEnd()
-
 
173
            '-- FROM END ----------------------------------------------------------------------------------------------------------------
-
 
174
            %>
232
            </tr>
175
            <tr>
233
            <tr>
176
                <td background="images/bg_login.gif">
234
                <td background="images/bg_login.gif">
177
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
235
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
178
                        <tr>
236
                        <tr>
179
                            <td><%=ProgressBar()%></td>
237
                            <td><%=ProgressBar()%></td>
180
                            <td align="right">
238
                            <td align="right">
181
                                <input name="btn" type="submit" class="form_btn" value="Add">
239
                                <input name="btn" type="submit" class="form_btn" value="Add" id="formSubmit">
182
                                <input name="btn" type="reset" class="form_btn" value="Cancel" onclick="parent.closeIFrame();"></td>
240
                                <input name="btn" type="reset" class="form_btn" value="Cancel" onclick="parent.closeIFrame();">
-
 
241
                            </td>
183
                        </tr>
242
                        </tr>
184
                    </table>
243
                    </table>
185
                </td>
244
                </td>
186
            </tr>
245
            </tr>
-
 
246
            <%=objPMod.ComposeHiddenTags()%>
-
 
247
            <input type="hidden" name="action" value="true">
-
 
248
            <%
-
 
249
            Call objFormComponent.FormEnd()
-
 
250
            '-- FROM END ----------------------------------------------------------------------------------------------------------------
-
 
251
            %>
187
        </table>
252
        </table>
188
    </body>
253
    </body>
189
</html>
254
</html>
190
<%
255
<%
191
'------------ RUN AFTER PAGE RENDER -----------
256
'------------ RUN AFTER PAGE RENDER -----------