Commit 1769a0c7 by Billy Larru

pasando a consumir servicios rest

parent 204e9bcf
/* axios v0.18.0 | (c) 2018 by Matt Zabriskie */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.axios=t():e.axios=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){var t=new s(e),n=i(s.prototype.request,t);return o.extend(n,s.prototype,t),o.extend(n,t),n}var o=n(2),i=n(3),s=n(5),u=n(6),a=r(u);a.Axios=s,a.create=function(e){return r(o.merge(u,e))},a.Cancel=n(23),a.CancelToken=n(24),a.isCancel=n(20),a.all=function(e){return Promise.all(e)},a.spread=n(25),e.exports=a,e.exports.default=a},function(e,t,n){"use strict";function r(e){return"[object Array]"===R.call(e)}function o(e){return"[object ArrayBuffer]"===R.call(e)}function i(e){return"undefined"!=typeof FormData&&e instanceof FormData}function s(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function u(e){return"string"==typeof e}function a(e){return"number"==typeof e}function c(e){return"undefined"==typeof e}function f(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===R.call(e)}function d(e){return"[object File]"===R.call(e)}function l(e){return"[object Blob]"===R.call(e)}function h(e){return"[object Function]"===R.call(e)}function m(e){return f(e)&&h(e.pipe)}function y(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function g(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function v(e,t){if(null!==e&&"undefined"!=typeof e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function x(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=x(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)v(arguments[n],e);return t}function b(e,t,n){return v(t,function(t,r){n&&"function"==typeof t?e[r]=E(t,n):e[r]=t}),e}var E=n(3),C=n(4),R=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:o,isBuffer:C,isFormData:i,isArrayBufferView:s,isString:u,isNumber:a,isObject:f,isUndefined:c,isDate:p,isFile:d,isBlob:l,isFunction:h,isStream:m,isURLSearchParams:y,isStandardBrowserEnv:g,forEach:v,merge:x,extend:b,trim:w}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new s,response:new s}}var o=n(6),i=n(2),s=n(17),u=n(18);r.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[u,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";function r(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function o(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(8):"undefined"!=typeof process&&(e=n(8)),e}var i=n(2),s=n(7),u={"Content-Type":"application/x-www-form-urlencoded"},a={adapter:o(),transformRequest:[function(e,t){return s(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){a.headers[e]={}}),i.forEach(["post","put","patch"],function(e){a.headers[e]=i.merge(u)}),e.exports=a},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(2),o=n(9),i=n(12),s=n(13),u=n(14),a=n(10),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(15);e.exports=function(e){return new Promise(function(t,f){var p=e.data,d=e.headers;r.isFormData(p)&&delete d["Content-Type"];var l=new XMLHttpRequest,h="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in l||u(e.url)||(l=new window.XDomainRequest,h="onload",m=!0,l.onprogress=function(){},l.ontimeout=function(){}),e.auth){var y=e.auth.username||"",w=e.auth.password||"";d.Authorization="Basic "+c(y+":"+w)}if(l.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,l[h]=function(){if(l&&(4===l.readyState||m)&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in l?s(l.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?l.response:l.responseText,i={data:r,status:1223===l.status?204:l.status,statusText:1223===l.status?"No Content":l.statusText,headers:n,config:e,request:l};o(t,f,i),l=null}},l.onerror=function(){f(a("Network Error",e,null,l)),l=null},l.ontimeout=function(){f(a("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",l)),l=null},r.isStandardBrowserEnv()){var g=n(16),v=(e.withCredentials||u(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in l&&r.forEach(d,function(e,t){"undefined"==typeof p&&"content-type"===t.toLowerCase()?delete d[t]:l.setRequestHeader(t,e)}),e.withCredentials&&(l.withCredentials=!0),e.responseType)try{l.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){l&&(l.abort(),f(e),l=null)}),void 0===p&&(p=null),l.send(p)})}},function(e,t,n){"use strict";var r=n(10);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},function(e,t){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(2);e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))}))}),i=s.join("&")}return i&&(e+=(e.indexOf("?")===-1?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;"set-cookie"===t?s[t]=(s[t]?s[t]:[]).concat([n]):s[t]=s[t]?s[t]+", "+n:n}}),s):s}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t){"use strict";function n(){this.message="String contains an invalid character"}function r(e){for(var t,r,i=String(e),s="",u=0,a=o;i.charAt(0|u)||(a="=",u%1);s+=a.charAt(63&t>>8-u%1*8)){if(r=i.charCodeAt(u+=.75),r>255)throw new n;t=t<<8|r}return s}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",e.exports=r},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,s){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(2);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(2),i=n(19),s=n(20),u=n(6),a=n(21),c=n(22);e.exports=function(e){r(e),e.baseURL&&!a(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||u.adapter;return t(e).then(function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return s(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(23);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])});
//# sourceMappingURL=axios.min.map
\ No newline at end of file
let data = [];
function initilizeData() {
data = [
{dni: '47063443', nombres: 'CUYA OLIVARES ANTONY FRANCISCO', horario: '24:0 - 17:30', cargo: 'AJEDREZ'},
{dni: '44992755', nombres: 'TRUJILLO RODRIGUEZ MARIO ALONSO', horario: '7:20 - 17:30', cargo: 'LOGICO MATEMATICO'},
{dni: '00040611', nombres: 'ZAPATA LLOVERA CARLOS DANIEL', horario: '24:0 - 17:30', cargo: 'AJEDREZ'},
{dni: '72972020', nombres: 'CUAREZ VALLEJOS BRENDA CAROL', horario: '24:0 - 17:30', cargo: 'BIOLOGIA'},
{dni: '41979574', nombres: 'SANCHEZ BELL PATRICIA', horario: '7:25 - 17:30', cargo: '2DO GRADO'},
{dni: '44543829', nombres: 'GRADOS SARAVIA PAULO JESUS', horario: '24:0 - 17:30', cargo: 'FISICA'},
{dni: '70511922', nombres: 'LUQUE CONDORI ROMAN', horario: '7:35 - 17:30', cargo: 'PROGRAMADOR'},
{dni: '08168625', nombres: 'TORRES VALLEJOS MIGUEL CHRISTIAN', horario: '24:0 - 17:30', cargo: 'ARITMETICA'},
{dni: '46114296', nombres: 'MARTINEZ CHACON JORGE LUIS', horario: '24:0 - 17:30', cargo: 'GEOGRAFIA'},
{dni: '70858844', nombres: 'COCHACHIN FLORES ESTEFANNY JESMIN', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '43678566', nombres: 'ALBINO RAMOS KATERIN JOHANA', horario: '13:5 - 17:30', cargo: 'SECRETARIA'},
{dni: '08171413', nombres: 'ROSALES RODRIGUEZ RODOLFO', horario: '24:0 - 17:30', cargo: 'GEOGRAFIA'},
{dni: '07053008', nombres: 'BELLIDO HERMOZA MIGUEL ANGEL', horario: '7:35 - 17:30', cargo: 'ELECTRICISTA'},
{dni: '40018103', nombres: 'CORNEJO CHAVEZ RONALD ADRIAN', horario: '7:35 - 17:30', cargo: 'APOYO'},
{dni: '08498670', nombres: 'VELASQUEZ CHUQUICAHUANA HUGO', horario: '24:0 - 17:30', cargo: 'EDUC. FISICA'},
{dni: '47823228', nombres: 'ROMERO MENDOZA ERIK BRAYAN', horario: '7:30 - 17:30', cargo: 'APOYO'},
{dni: '72398390', nombres: 'MENDOCILLA VARGAS NAYSSA ELIZABETH', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '13196868', nombres: 'ORTEGA OLIVARES ROBINSON RAFAEL', horario: '7:35 - 17:30', cargo: 'ALMACENERO'},
{dni: '44531081', nombres: 'CAMPOS CAMACHO ROSARIO DEL PILAR', horario: '7:20 - 17:30', cargo: 'TUTOR'},
{dni: '09498051', nombres: 'VALERO SALAS ZOILA SARA', horario: '7:20 - 17:30', cargo: 'TUTOR'},
{dni: '45687728', nombres: 'CABEZAS MEZA KATHERINE JUDITH', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '47566592', nombres: 'TABOADA ROSELLO HELEN', horario: '24:0 - 17:30', cargo: 'LITERATURA'},
{dni: '48344978', nombres: 'LUQUE GOMEZ JORGE LUIS', horario: '24:0 - 17:30', cargo: 'QUIMICA'},
{dni: '47261974', nombres: 'BARROSO QUISPE INGRID ESTEFANY', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '42615720', nombres: 'VALDERRAMA ANGULO LIZ', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '47523018', nombres: 'SANTILLAN ASTECKER JOHN', horario: '7:20 - 17:30', cargo: 'TUTOR'},
{dni: '09148427', nombres: 'HERNANDEZ RIVERA DE ANGULO ROSA ALBINA', horario: '7:20 - 17:30', cargo: 'APOYO'},
{dni: '73892508', nombres: 'MENDOZA WITTING LIZKA YVETTE', horario: '24:0 - 17:30', cargo: 'LENGUA'},
{dni: '76132441', nombres: 'SALVATIERRA JULCA NOELIA MERY ANA', horario: '8:0 - 17:30', cargo: 'INTERNA-PSICOLOGA'},
{dni: '42876585', nombres: 'REBAZA GONZALES CRISTHIAN RONNY', horario: '24:0 - 17:30', cargo: 'ASESOR'},
{dni: '43064081', nombres: 'ESTACIO DURAND KAREN HAYDEE', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '47771878', nombres: 'DAMIAN LLANOS GABRIELA ANA', horario: '7:20 - 17:30', cargo: 'TUTOR'},
{dni: '71737318', nombres: 'CERRON PAIPAY CLAUDIA NATALIA', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '47527367', nombres: 'CAYCHO CCOPA DANA MILAGROS', horario: '7:20 - 17:30', cargo: 'TUTOR'},
{dni: '08660974', nombres: 'HIDALGO TUPIA VIOLETA DJENANNA', horario: '7:35 - 17:30', cargo: 'APOYO'},
{dni: '44584572', nombres: 'RASCO PLASENCIA LUCY ANALY', horario: '7:25 - 17:30', cargo: 'PSICOLOGIA'},
{dni: '74915341', nombres: 'SIU FLORES SILVANA', horario: '7:35 - 17:30', cargo: 'AUXILIAR CONTABLE'},
{dni: '09453184', nombres: 'MEZA SANCHEZ GENARO VICTOR', horario: '7:0 - 17:30', cargo: 'POLICIA'},
{dni: '76616325', nombres: 'NICHO FALLA LUCIANA PAMELA', horario: '7:20 - 17:30', cargo: 'AUXILIAR'},
{dni: '75278943', nombres: 'VERA MONTOYA MARJORIE JHOANA', horario: '7:20 - 17:30', cargo: 'AUXILIAR'},
{dni: '74308155', nombres: 'GONZALES ESQUIVEL JOSELIN NURIA', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '07305918', nombres: 'CASTILLA SALAS VICTOR SALVADOR', horario: '7:25 - 17:30', cargo: 'LOGICO MATEMATICO'},
{dni: '09680101', nombres: 'VERA ANTIALON ARTURO JORGE', horario: '7:50 - 17:30', cargo: 'GEOGRAFIA'},
{dni: '47411997', nombres: 'PINARES VARGAS YURIKO DEL CARMEN', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '43093290', nombres: 'LAZO HUAYNA FIORELLA ANGELICA', horario: '13:5 - 17:30', cargo: 'SECRETARIA'},
{dni: '71998370', nombres: 'CARRANZA CHAVARRIA MIDORI BEATRIZ', horario: '8:30 - 17:30', cargo: 'PRACTICANTE'},
{dni: '70664280', nombres: 'SUAREZ RAMOS GABRIELA', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '75615559', nombres: 'ACUÑA LAZO CINTHYA ESTEFANI', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '74136406', nombres: 'DE LA VEGA ALVA ALEJANDRA SOFIA', horario: '7:20 - 17:30', cargo: 'SECRETARIA'},
{dni: '47470587', nombres: 'MICHUY CARRANZA LUCERO ISABEL', horario: '7:20 - 17:30', cargo: 'AUXILIAR'},
{dni: '43422485', nombres: 'AREVALO AGUIRRE XIXAO FABRIZZIO', horario: '7:0 - 17:30', cargo: 'POLICIA'},
{dni: '71969865', nombres: 'FLORES AGUILAR LUIS ANDRES', horario: '24:0 - 17:30', cargo: 'EDUC. FISICA'},
{dni: '10608693', nombres: 'URIBE PORRAS EDSON JEAN', horario: '24:0 - 17:30', cargo: 'HISTORIA DEL PERÚ'},
{dni: '76322606', nombres: 'ESCUDERO CAJAVILCA ALFONSO', horario: '24:0 - 17:30', cargo: 'QUIMICA'},
{dni: '40346556', nombres: 'ESTELA TARDILLO JANINA MARBEL', horario: '7:0 - 17:30', cargo: 'MANTENIMIENTO'},
{dni: '41025071', nombres: 'CASERES PEREZ VIOLETA YANET', horario: '7:20 - 17:30', cargo: 'TUTOR'},
{dni: '75686397', nombres: 'FERNANDEZ FAJARDO BENJAMIN JOEL', horario: '7:0 - 17:30', cargo: 'MANTENIMIENTO'},
{dni: '73111811', nombres: 'CAYOTOPA LATORRE CRISTHIAN ARMANDO', horario: '24:0 - 17:30', cargo: 'ECONOMIA'},
{dni: '00010974', nombres: 'ANDRADE BENITEZ JESUS ALEJANDRO', horario: '13:5 - 17:30', cargo: 'TUTOR'},
{dni: '40231291', nombres: 'ORTIZ COTAQUISPE YONY', horario: '24:0 - 17:30', cargo: 'ARITMETICA'},
{dni: '41565734', nombres: 'TERRASSE KALA JOSE LUIS', horario: '24:0 - 17:30', cargo: 'ECONOMIA'},
{dni: '46261834', nombres: 'PAREDES GUTIERREZ SAMUEL JONATAN', horario: '7:45 - 17:30', cargo: 'DIAGRAMADOR'},
{dni: '40485993', nombres: 'RAMON PEREZ JUAN CARLOS', horario: '7:45 - 17:30', cargo: 'DIAGRAMADOR'},
{dni: '45514177', nombres: 'MONTES DE OCA SILVA ALINA ANNIE', horario: '24:0 - 17:30', cargo: 'DANZA'},
{dni: '74177273', nombres: 'CHIROQUE ESPINOZA PATRICIA SILVANA', horario: '7:20 - 17:30', cargo: 'TUTOR'},
{dni: '07493792', nombres: 'MONCADA MENDOZA ELBER MARIO', horario: '7:0 - 17:30', cargo: 'POLICIA'},
{dni: '45594656', nombres: 'TORRES RAMOS BRANLY RUSSELL', horario: '24:0 - 17:30', cargo: 'PSICOLOGIA'},
{dni: '76354453', nombres: 'OLIVA FLORES CARLOS JONATAN', horario: '24:0 - 17:30', cargo: 'EDUC. FISICA'},
{dni: '46100982', nombres: 'AMANQUI QUISPE BEATRIZ VICTORIA', horario: '7:20 - 17:30', cargo: 'AUXILIAR'},
{dni: '74061698', nombres: 'CHAMBI GALVEZ MARIA ELIZABETH', horario: '7:20 - 17:30', cargo: 'TUTOR'},
{dni: '45905115', nombres: 'CRUZ QUIÑONEZ JAIME JOAQUIN', horario: '24:0 - 17:30', cargo: 'ARITMETICA'},
{dni: '42400453', nombres: 'SALAZAR PEREZ MIGUEL ANGEL', horario: '7:20 - 17:30', cargo: 'TUTOR'},
{dni: '71337684', nombres: 'BARRERA BENITES BARBARA', horario: '7:20 - 14:30', cargo: 'AUXILIAR'},
{dni: '70389291', nombres: 'GOIZUETA CARDENAS GUSTAVO VICENTE', horario: '24:0 - 17:30', cargo: 'ALGEBRA'},
{dni: '74840590', nombres: 'URCIA AGUILAR JOSUE ALEXANDER', horario: '24:0 - 17:30', cargo: 'QUIMICA'},
{dni: '47215103', nombres: 'GARCIA SANCHEZ LINDER JOSCARMAN', horario: '24:0 - 17:30', cargo: 'ARITMETICA'},
{dni: '41630230', nombres: 'NIETO VENTURA KAREEN PAMELA', horario: '13:5 - 20:00', cargo: 'TUTOR'},
{dni: '73893581', nombres: 'ASTOCASA CABREJOS CLAUDIA CAROLINA', horario: '7:20 - 14:30', cargo: 'AUXILIAR'},
{dni: '71460625', nombres: 'GONZALES CASTRO GABRIELA NOEMI', horario: '7:35 - 17:30', cargo: 'ASISTENTE'},
{dni: '25729094', nombres: 'INFANTE LOPEZ MIGUEL CHRISTIAN', horario: '24:0 - 17:30', cargo: 'ARITMETICA'},
{dni: '47278375', nombres: 'LUYO RODRIGUEZ GIANCARLO PAUL', horario: '24:0 - 17:30', cargo: 'GEOMETRIA'},
{dni: '42922020', nombres: 'APOLAYA SARMIENTO ALAN ALBERTO', horario: '7:25 - 14:30', cargo: 'PERSONAL SOCIAL'},
{dni: '08342977', nombres: 'GAMBOA GONZALES CARLOS ALBERTO', horario: '7:25 - 14:30', cargo: 'LOGICO MATEMATICO'},
{dni: '44260935', nombres: 'ALVAREZ CASTILLO GERALDINE ISABEL', horario: '7:35 - 17:30', cargo: 'ASISTENTE'},
{dni: '10132375', nombres: 'LARREA GOMEZ CAMILA NORMA', horario: '24:0 - 17:30', cargo: 'LENGUA'},
{dni: '42388095', nombres: 'LUQUE AMORIN JUAN CARLOS', horario: '7:20 - 17:00', cargo: 'TUTOR'},
{dni: '76809910', nombres: 'REYES SAENZ AMMY KIMBERLY', horario: '7:20 - 17:00', cargo: 'AUXILIAR'},
{dni: '45930544', nombres: 'ARRIETA JANAMPA IRMA', horario: '7:20 - 17:00', cargo: 'TUTOR'},
{dni: '25538100', nombres: 'COLONIO ORELLANA ALBERTO RICARDO', horario: '24:0 - 17:30', cargo: 'ARITMETICA'},
{dni: '45388371', nombres: 'COLLANTES ZEGARRA ALFONSO', horario: '24:0 - 17:30', cargo: 'FISICA'},
{dni: '47367984', nombres: 'PEÑA RAMOS LESLY ANGELA', horario: '7:25 - 17:30', cargo: 'PERSONAL SOCIAL'},
{dni: '48239478', nombres: 'QUISPE APCHO YASBEL MILAGROS', horario: '7:20 - 17:00', cargo: 'TUTOR'},
{dni: '48137983', nombres: 'CARDENAS RIOS BRIGITTE KATHERINE', horario: '7:20 - 17:00', cargo: 'TUTOR'},
{dni: '26674118', nombres: 'NARRO SALDAÑA OVIDIO ATTILIO', horario: '24:0 - 17:30', cargo: 'BIOLOGIA'},
{dni: '70521129', nombres: 'VALENZUELA HERNANDEZ ELIZABETH ROSARIO', horario: '7:25 - 14:30', cargo: 'AUXILIAR'},
{dni: '47428946', nombres: 'DAVILA YESQUEN AMALIA STEFANIA', horario: '7:25 - 14:30', cargo: 'INGLES'},
{dni: '76176575', nombres: 'VARGAS CUYA KATHERINE PAOLA', horario: '7:25 - 14:30', cargo: '1ER GRADO'},
{dni: '47051354', nombres: 'LOPEZ RAMIREZ EVELYN VANESSA', horario: '13:5 - 17:00', cargo: 'ASISTENTE-PSICOLOGIA'},
{dni: '43070834', nombres: 'CALONGOS TORRES GIANCARLO ALAN', horario: '24:0 - 17:30', cargo: 'HISTORIA UNIVERSAL'},
{dni: '72910258', nombres: 'PALACIOS SILVERA RONALD JOSE', horario: '7:45 - 17:30', cargo: 'CORRECTOR DE PRACTICAS'}
];
let asistencia = [
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: null, estado: null},
{fecha: '12/08/2018', hora_marcacion: '7:31', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 8},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '7:50', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 3},
{fecha: '12/08/2018', hora_marcacion: '7:58', estado: 5},
{fecha: '12/08/2018', hora_marcacion: '7:0', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '11:2', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 4},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 4},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '6:49', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '7:28', estado: 2},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 3},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 3},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 6},
{fecha: '12/08/2018', hora_marcacion: '0:0', estado: 9},
{fecha: '12/08/2018', hora_marcacion: '6:48', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:27', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:26', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:19', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:19', estado: 1},
{fecha: '12/08/2018', hora_marcacion: null, estado: null},
{fecha: '12/08/2018', hora_marcacion: '7:32', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:6', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:45', estado: 5},
{fecha: '12/08/2018', hora_marcacion: '7:18', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '6:44', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '6:15', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:3', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '6:58', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '6:54', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:16', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '6:37', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:26', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:19', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:25', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:43', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:42', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:2', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '8:4', estado: 5},
{fecha: '12/08/2018', hora_marcacion: '7:41', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:17', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:24', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:47', estado: 5},
{fecha: '12/08/2018', hora_marcacion: '7:55', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:38', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:51', estado: 5},
{fecha: '12/08/2018', hora_marcacion: '7:32', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:21', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:8', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:26', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '6:24', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '5:46', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '6:30', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:22', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:37', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:53', estado: 5},
{fecha: '12/08/2018', hora_marcacion: '7:42', estado: 5},
{fecha: '12/08/2018', hora_marcacion: '8:0', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:41', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '6:35', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:28', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:40', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:25', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:20', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:28', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:18', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:13', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:42', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:22', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:31', estado: 5},
{fecha: '12/08/2018', hora_marcacion: '6:40', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:59', estado: 1},
{fecha: '12/08/2018', hora_marcacion: '7:18', estado: 1},
];
data.forEach((value, index, array, ) => {
console.log(asistencia);
console.log(data)
value_data = array[index];
value_asistencia = asistencia[index];
Object.assign(value_data, value_asistencia);
data[index] = value_data;
});
data = _.orderBy(data, [ x => x.nombres, x => x.fecha], ['asc', 'asc']);
debugger;
// axios.get('http://172.16.2.91:3000/ServletAdministrativos/accion=listarAsistencias')
// .then(function (response) {
// // handle success
// console.log(response);
// })
// .catch(function (error) {
// // handle error
// console.log(error);
// })
// .then(function () {
// // always executed
// });
}
......@@ -271,7 +60,22 @@ function cargarDatatable() {
],
dom: '<"datatable-header"fl><"datatable-scroll-wrap"t><"datatable-footer"ip>',
"processing": true,
data: datos,
ajax: {
contentType: 'application/json; charset=utf-8',
url: "http://172.16.2.91:3000/asistenciasPersonalAdministrativoDatatable",
// data: {
// busqueda: busqueda
// }
// ,
beforeSend: function () {
// cargando();
}, complete: function () {
// localStorage.removeItem("dniBuscar");
// dniBuscar=null;
// cerrar_cargando();
}
},
columns: [
{data: "numeroFila", className: "text-center"},
{data: "nombres"},
......
......@@ -187,6 +187,7 @@
<script src="../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js" type="text/javascript"></script>
<script src="../js/lib/bootstrap-select/bootstrap-select.min.js" type="text/javascript"></script>
<script src="../js/lib/lodash.js" type="text/javascript"></script>
<script src="../js/lib/axios.min.js" type="text/javascript"></script>
<script src="../js/pages/control_asistencia_administrativa.js" type="text/javascript"></script>
<!--js-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment