Changeset 9be8a48 in prototipo_portal_2018 for prototipo/static/js/functions
- Timestamp:
- Nov 14, 2017, 11:57:45 AM (7 years ago)
- Branches:
- master
- Children:
- 4f077af
- Parents:
- a210970
- Location:
- prototipo/static/js/functions
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
prototipo/static/js/functions/CheckSign/myInfoDataTableCheckBDOC.js
ra210970 r9be8a48 159 159 160 160 var columns = ColumnsDataTableBDOC(); 161 var table = $( '#myCkeckBDOC').DataTable({161 var table = $("#myCkeckBDOC").DataTable({ 162 162 163 163 language: { -
prototipo/static/js/functions/PDF/myInfoDataTablePDF.js
r68a964b r9be8a48 122 122 <div id = "title" class="modal-header">\ 123 123 <!--<button type="button" class="close" data-dismiss="modal">×</button>-->\ 124 <h4 class="modal-title text-primary"><center>Información de la Sign('+id+')</center></h4>\124 <h4 class="modal-title text-primary"><center>Información de la Firma('+id+')</center></h4>\ 125 125 </div>\ 126 126 <div id = "body" class="modal-body">\ -
prototipo/static/js/functions/firmarDocumentoBDOC.js
ra210970 r9be8a48 1 2 //Obtenemos la informacion de documento 3 function InfoSignDocumentDataTableBDOC(signedFileId){ 4 5 $.ajax({ 6 url: "https://murachi.cenditel.gob.ve/Murachi/0.1/archivos/"+signedFileId, 7 type: "get", 8 dataType: "json", 9 headers: {"Authorization":"Basic YWRtaW46YWRtaW4="}, 10 success: function(response) { 11 12 INFO_SIGN_BDOC = SerealizeMyJsonBDOC(response); 13 CONT_SIGN_BDOC += 1; 14 15 if (CONT_SIGN_BDOC == 1){ 16 INFO_DATATABLE_SIGN_BDOC = DataTableSignBDOC(response); 17 } 18 if (CONT_SIGN_BDOC > 1){ 19 INFO_DATATABLE_SIGN_BDOC.destroy(); 20 INFO_DATATABLE_SIGN_BDOC = DataTableSignBDOC(response); 21 } 22 }, 23 error: function(jqXHR, textStatus, errorThrown){ 24 alert(textStatus+", "+ errorThrown+" el documento BDOC para mostrar la info de la sign"); 25 } 26 }); 27 } 28 1 29 function FinalizarFirmaBDOC(signature, fileId){ 2 30 … … 20 48 //var linkToDownload = "<a href=\"https://172.16.137.11:8443/Murachi/murachi/archivos/descargas/" + data['signedFileId'] +"\">descargar archivo firmado</a>"; 21 49 var linkToDownload = "<a href=\"https://murachi.cenditel.gob.ve/Murachi/0.1/archivos/descargas/" + data['signedFileId'] +"\">descargar archivo firmado</a>"; 22 document.getElementById("respuesta").innerHTML = 'Archivo firmado correctamente: ' + data['signedFileId'] +'<br>'+linkToDownload; 23 50 document.getElementById("respuesta").innerHTML = '<h2>Archivo firmado correctamente:</h2> <br>'+linkToDownload; 51 52 InfoSignDocumentDataTableBDOC(data['signedFileId']); 24 53 }, 25 54 error: function(jqXHR, textStatus, errorThrown){ … … 161 190 162 191 163 $("#Form-sign-bdoc").on('submit', function(even t) {164 even t.preventDefault();165 192 $("#Form-sign-bdoc").on('submit', function(even) { 193 even.preventDefault(); 194 166 195 var formData = new FormData(); 167 168 196 for (var i=0; i<$("#file-sign-bdoc")[0].files.length; i++){ 169 197 formData.append("upload", $("#file-sign-bdoc")[0].files[i]); … … 171 199 172 200 SubirDocumentServerBdoc(formData); 173 174 201 }); 175 202 … … 178 205 $("#button_SignBDOC").on('click', function() { 179 206 $("#file-sign-bdoc").trigger('click'); 180 181 207 }); 182 208 183 209 184 210 $("#file-sign-bdoc").on('change', function() { 185 186 211 $("#sign_bdoc").show(); 187 212 -
prototipo/static/js/functions/firmarDocumentoPdf.js
ra210970 r9be8a48 32 32 headers: {"Authorization":"Basic YWRtaW46YWRtaW4="}, 33 33 success: function(response) { 34 35 INFO_DATATABLE = SerealizeMyJson(response); 36 37 CONT += 1; 38 if (CONT == 1){ 39 DATATABLE_SIGN_VISIBLE = DataTablePDF(response); 40 } 41 if (CONT > 1){ 42 DATATABLE_SIGN_VISIBLE.destroy(); 43 DATATABLE_SIGN_VISIBLE = DataTablePDF(response); 44 } 45 46 $('table#myJson_wrapper').show(); 34 35 if (FIRMA_VISIBLE == true){ 36 37 INFO_DATATABLE = SerealizeMyJson(response); 38 39 CONT += 1; 40 if (CONT == 1){ 41 DATATABLE_SIGN_VISIBLE = DataTablePDF(response); 42 43 } 44 if (CONT > 1){ 45 DATATABLE_SIGN_VISIBLE.destroy(); 46 DATATABLE_SIGN_VISIBLE = DataTablePDF(response); 47 } 48 49 CONTAINER = false; 50 $("#firmar-documento").hide(); 51 $("#pdf-main-container").hide(); 52 $("#myJson_wrapper").show(); 53 } 54 else{ 55 56 57 INFO_DATATABLE_NO_VISIBLE = SerealizeMyJson(response); 58 59 CONT_NO_VISIBLE += 1; 60 if (CONT_NO_VISIBLE == 1){ 61 DATATABLE_SIGN_NO_VISIBLE = DataTablePDFNoVisible(response); 62 63 } 64 if (CONT_NO_VISIBLE > 1){ 65 DATATABLE_SIGN_NO_VISIBLE.destroy(); 66 DATATABLE_SIGN_NO_VISIBLE = DataTablePDFNoVisible(response); 67 } 68 69 CONTAINER2 = false; 70 $("#firmar-doc-noVisible").hide(); 71 $("#pdf-main-container2").hide(); 72 $("#myJsonPDF_NO_VISIBLE_wrapper").show(); 73 74 75 } 76 47 77 }, 48 78 error: function(jqXHR, textStatus, errorThrown){ … … 69 99 var linkToDownload = "<a href=\"https://murachi.cenditel.gob.ve/Murachi/0.1/archivos/descargas/" + data['signedFileId'] +"\">descargar archivo firmado</a>"; 70 100 document.getElementById("respuesta").innerHTML = 'Archivo firmado correctamente: ' + data['signedFileId']+ '<br>' +linkToDownload; 71 72 $("#firmar-documento").hide();73 $("#pdf-main-container").hide();74 101 75 102 InfoDocumentDataTablePDF(data['signedFileId']); … … 163 190 "contact":"582746574336", 164 191 "signatureVisible":"true" 165 //"page": VALOR_PAGE,166 //"coord_x": VALOR_X,167 //"coord_y": VALOR_Y192 "page": VALOR_PAGE, 193 "coord_x": VALOR_X, 194 "coord_y": VALOR_Y 168 195 }); 169 196 } … … 242 269 formData.append("upload", $("#file-sign-ft_Vble")[0].files[0]); 243 270 244 $('#myJson ').hide();271 $('#myJson_wrapper').hide(); 245 272 FIRMA_VISIBLE = true; 246 273 SubirDocumentServer(formData); -
prototipo/static/js/functions/firmarDocumentoPdfNoVisible.js
r025e022 r9be8a48 10 10 FIRMA_VISIBLE = false; 11 11 SubirDocumentServer(formData); 12 12 13 13 });
Note: See TracChangeset
for help on using the changeset viewer.