Subversion Repositories DevTools

Rev

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

Rev 5636 Rev 5638
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,'DY DD-MM-YYYY HH24:MI'), " &_
89
                "TO_DATE(:SCHEDULED_PAUSE,'DY DD-MON-YYYY HH24:MI'), " &_
90
                "TO_DATE(:SCHEDULED_RESUME,'DY DD-MM-YYYY HH24:MI'), " &_
90
                "TO_DATE(:SCHEDULED_RESUME,'DY DD-MON-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 124... Line 124...
124
        <script language="JavaScript" src="scripts/common.js"></script>
124
        <script language="JavaScript" src="scripts/common.js"></script>
125
        <%bJqueryTimePicker = TRUE%>
125
        <%bJqueryTimePicker = TRUE%>
126
        <!--#include file="_jquery_includes.asp"-->
126
        <!--#include file="_jquery_includes.asp"-->
127
        <script>
127
        <script>
128
        $(document).ready(function(){
128
        $(document).ready(function(){
-
 
129
            // Set common defaults
129
            $('#scheduled_pause').datetimepicker({
130
            $.timepicker.setDefaults({
130
        		timeFormat: "HH:mm",
131
        		timeFormat: "HH:mm",
131
                dateFormat: "D dd-M-yy",
132
                dateFormat: "D dd-M-yy",
132
        		controlType: 'select',
133
        		controlType: 'select',
133
        		oneLine: true,
134
        		oneLine: true,
134
        		timeInput: true,
135
        		timeInput: true,
Line 138... Line 139...
138
                buttonImage: "images/cal.gif",
139
                buttonImage: "images/cal.gif",
139
                buttonText: "Select Date and Time",
140
                buttonText: "Select Date and Time",
140
                minDate : 0,
141
                minDate : 0,
141
                changeYear : true, 
142
                changeYear : true, 
142
                yearRange : "0000:2099",
143
                yearRange : "0000:2099",
143
                changeMonth: true,
144
                changeMonth: true
144
        		onClose : function(p1,p2){
-
 
145
                    checkForm();
-
 
146
        			 //console.log("scheduled_time", p1 );
-
 
147
        			},
-
 
148
        	    });
145
            });
149
 
146
 
150
            $('#scheduled_resume').datetimepicker({
147
            //  Set up two linked pickers
151
        		timeFormat: "HH:mm",
148
        	var startTime =  $('#scheduled_pause');
152
                dateFormat: "D dd-M-yy",
149
        	var endTime =  $('#scheduled_resume');
153
        		controlType: 'select',
150
        	$.timepicker.datetimeRange(
154
        		oneLine: true,
151
        	    startTime,
155
        		timeInput: true,
152
        	    endTime,
156
                constrainInput: true,
-
 
157
                showOn: 'both',
153
        	    {
158
                buttonImageOnly : true,
154
        		start: {             // start picker options
159
                buttonImage: "images/cal.gif",
155
                    onClose : function(p1,p2){
160
                buttonText: "Select Date and Time",
156
                        checkForm();
161
                minDate : 0,
157
            			}
162
                changeYear : true, 
158
                },
163
                yearRange : "0000:2099",
159
        		end: {               // end picker options
164
                changeMonth: true,
-
 
165
        		onClose : function(p1,p2){
160
                    onClose : function(p1,p2){
166
                    checkForm();
161
                        checkForm();
167
        			 //console.log("scheduled_time", p1 );
162
            			}
168
        			},
163
                }					
169
        	    });
164
        	    });
170
 
165
 
-
 
166
            // Update form controls before display
171
                checkForm();
167
            checkForm();
172
 
168
 
173
        	});
169
        	});
174
 
170
 
-
 
171
        // Enable / Disable the forms submit button
-
 
172
        // Enable when both dates are not empty
175
        function checkForm() {
173
        function checkForm() {
176
            var resume = $('#scheduled_resume').val().length;
174
            var resume = $('#scheduled_resume').val().length;
177
            var pause = $('#scheduled_pause').val().length;
175
            var pause = $('#scheduled_pause').val().length;
178
            var ok = ( resume > 0 && pause > 0);
176
            var ok = ( resume > 0 && pause > 0);
179
 
177