This file contains hidden or 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 Campos = Backbone.Model.extend({ | |
schema: { | |
idDocente:{ type: 'Hidden' , title: ''}, | |
nombreDocente: { type: 'TextButton'}, | |
fechaReasignacion : { type: 'DatePicker'} | |
} | |
}); | |
var campos = new Campos(); | |
This file contains hidden or 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 jobs; | |
import java.util.List; | |
import models.Producto; | |
import play.jobs.*; | |
@Every("1mn") | |
public class VerificarCantidadDeProductos extends Job { | |
This file contains hidden or 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 models; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.persistence.Entity; | |
import javax.persistence.ManyToMany; | |
import javax.persistence.OneToMany; | |
import javax.persistence.Transient; |
This file contains hidden or 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
#{extends 'CRUD/index.html'/} | |
#{get 'moreScripts'} | |
<script type="text/javascript" src="@{generateForm('', true)}"></script> | |
#{/get} | |
<div id="formtipoEventualidades" data-backdrop="static" class="modelcustom2 hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">ร</button> | |
<h3 id="myModalLabel">Agregar Concepto de Planilla</h3> | |
</div> |
This file contains hidden or 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
#{extends 'main.html' /} | |
#{set 'moreStyles'} | |
#{stylesheet 'backgrid.css'/} | |
#{stylesheet 'backgrid-filter.css'/} | |
#{if pagination} | |
#{stylesheet 'extensions/paginator/backgrid-paginator.css'/} | |
#{/if} | |
This file contains hidden or 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 centro = Backbone.Model.extend({ | |
toString: function(){ return this.get("descripcion"); } | |
}); | |
var centroCollection = Backbone.Collection.extend({ | |
model: centro, | |
url: 'http://localhost:9000/Centros/lista' | |
}); | |
var tipoDePlanilla = Backbone.Model.extend({ |
This file contains hidden or 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 Eventualidad = Backbone.Model.extend({}); | |
var Eventualidades = Backbone.PageableCollection.extend({ | |
mode: "client", | |
state: { | |
firstPage: 0, | |
currentPage: 0, | |
totalRecords: 20, | |
pageSize: 10, | |
sortKey: "updated", |
This file contains hidden or 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 horas = ['07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21']; | |
var minutos = [':00',':05',':10',':15',':20',':25',':30',':35',':40',':45',':50',':55'] | |
var merged | |
var resultados = []; | |
for(h = 0; h < horas.length; h++){ | |
for(i = 0; i < minutos.length; i++){ | |
merged = horas[h].concat(minutos[i]); | |
resultados.push([merged,merged]); |
This file contains hidden or 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 conceptoDePlanilla = Backbone.Model.extend({ | |
toString: function(){ return this.get("descripcion"); } | |
}); | |
var conceptoDePlanillaCollection = Backbone.Collection.extend({ | |
model: conceptoDePlanilla, | |
url: 'conceptodeplanillas/lista/' | |
}); | |
var chosen = _.template('<div class="control-group" data-editor><label class="control-label" for="<%= editorId %>"><%= title %></label></div>'); |
This file contains hidden or 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
Number.prototype.pad = function (len) { | |
return (new Array(len+1).join("0") + this).slice(-len); | |
} | |
var rumboAGrau = new Date('1988','01','01',''+result.GRAU[i].substr(0,2)+'',''+result.GRAU[i].substr(3,5)+'') | |
var rumboAGrauHora = rumboAGrau.getHours().pad(2) + ":" | |
+ rumboAGrau.getMinutes().pad(2); |