Files
Base-QR-Spring-Boot/base-admin-web-configuration/src/main/resources/static/assets/js/base/print.js
T
Alejandro Lara f8468350d5 Estado base antes de integración Cognito.
Incluye admin web Spring Boot, API JWT para escáner y app Flutter qrscanner con login y escaneo de pases.
2026-06-09 15:51:44 -06:00

64 lines
1.5 KiB
JavaScript

/**
* Base.Print 1.0
*
* Requiere
* Base 1.0
*/
$(function() {
$.extend(Base, {
Print : {
//Los Datos debende vernir en un Json {id: '', label : ''}
print: function (printable, options) {
var _i18n = {
language: {}
};
if(null == options || options == undefined){
options = {};
}
_i18n = $.extend(true, _i18n, Base.i18n.print);
if (options._i18n !== undefined && options._i18n != null) {
_i18n = $.extend(true, _i18n, options._i18n);
}
var defaultOptions = {
printable: printable,
type: 'pdf',
showModal: true,
modalMessage: 'Cargando archivo ...',
properties: {mumCopies: 1}
};
var finallyOptions = $.extend(true, defaultOptions, options);
printJS(finallyOptions);
},
_qxPrint : function (print) {
return {
ver : function () {
console.log("Base.Print 1.0");
console.log("Requiere: Base 1.0");
}
}
}
}
});
$.fn.QxPrint = function () {
var print = this;
return Base.Modal._qxPrint(print);
}
});