This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.dataTable.Api.register('cellRowIndexes()', function (sSearch, iColumn) { | |
var aOut = []; | |
if ( iColumn === undefined ) { | |
this.columns().iterator( 'columns', function ( settings, columns ) { | |
for ( var i=0, ien=columns.length ; i<ien ; i++ ) { | |
this.column(i).data() | |
.filter( function ( value, index ) { | |
var result = false; | |
if(value == sSearch) { | |
result = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var idx = {}; var checkedCount = 0; | |
$('#deviceTable tbody').on( 'click', 'tr', function () { | |
$(this).toggleClass('selected'); | |
var data = oTable.fnGetData(this); | |
//var data OTable.rows('.selected').data(); | |
//console.log(data); | |
var rowIndex = oTable.fnGetPosition($(this).closest('tr')[0] ); | |
var isSelected = $(this).hasClass('selected'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- jQuery | |
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script> --> | |
<script th:src="@{/resources/plugins/jquery/1.11.2/jquery-1.11.2.min.js}"></script> | |
<script type="text/javascript" th:inline="javascript"> | |
// <![CDATA[ | |
window.jQuery || document.write('<script th:src="@{/resources/plugins/jquery/1.11.2/jquery-1.11.2.min.js}"><\/script>') | |
// ]]> | |
</script> | |
<!-- Latest compiled and minified CSS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.sql.DataSource; | |
import org.apache.commons.dbcp.BasicDataSource; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.data.jpa.repository.config.EnableJpaRepositories; | |
import org.springframework.orm.jpa.JpaTransactionManager; | |
import org.springframework.orm.jpa.JpaVendorAdapter; | |
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jelies.spring3tomcat7.config.quartz; | |
import org.quartz.spi.TriggerFiredBundle; | |
import org.springframework.beans.factory.config.AutowireCapableBeanFactory; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.ApplicationContextAware; | |
import org.springframework.scheduling.quartz.SpringBeanJobFactory; | |
/** | |
* This JobFactory autowires automatically the created quartz bean with spring @Autowired dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-app="myApp" ng-controller="myController" | |
ng-init="list=[ | |
{ name:'Computer Architecture' }, | |
{ name:'Advanced Composite Materials'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2010-2014 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
@Inject | |
BookRepository bookRepository; | |
/** | |
* DELETE /books/:id : delete the "id" book. | |
* | |
* @param books the id of the book to delete | |
* @return the ResponseEntity with status 200 (OK) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://197.210.2.132/galooliDevKitService/galooliDevKitService.svc/json/GetDailyInformation?userName=progserver&userHost=mtnn-business&userOrg=zon_mtnn_business&password=sattrak&requestedUnits=1116440&startDate=2017-01-01&endDate=2017-01-16&requestedPropertiesStr=date,unit_id,unit_name,fuel_init,fuel_final |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE vehicleparameters vp | |
SET vp.REGION_ID = 71003331 WHERE vp.VEHICLE_ID = | |
( | |
SELECT v.ID | |
FROM vehicle v | |
WHERE v.registrationno = 'BDG 384 AU' | |
); | |
UPDATE vehicleparameters vp | |
SET vp.REGION_ID = 71003331 WHERE vp.VEHICLE_ID = |
OlderNewer