1 | function Busqueda(myval) { |
---|
2 | myoperation = "operacion:Generar_gráfico_para_clave Clave: " + myval; |
---|
3 | $.post('/ajaxconsole', |
---|
4 | { operation: myoperation |
---|
5 | }, |
---|
6 | function(data) { |
---|
7 | myresult = eval("(" + data + ")" ); |
---|
8 | myfile = myresult["filename"]; |
---|
9 | $("#workflowid").attr("src","/static/tmp/" + myfile); |
---|
10 | } |
---|
11 | ); |
---|
12 | } |
---|
13 | |
---|
14 | function Detalle(id) { |
---|
15 | document.getElementById("Detalle").innerHTML = '\ |
---|
16 | <style>\ |
---|
17 | .modal .modal-dialog { width: 50%; height: 80%, };\ |
---|
18 | </style>\ |
---|
19 | <div id="myModal1" class="modal fade" role="dialog">\ |
---|
20 | <div class="modal-dialog">\ |
---|
21 | <div class="modal-content">\ |
---|
22 | <div id = "title" class="modal-header">\ |
---|
23 | <!--<button type="button" class="close" data-dismiss="modal">×</button>-->\ |
---|
24 | <h3 class="modal-title text-primary"><center>Gráfico de Vacaciones</center></h3>\ |
---|
25 | </div>\ |
---|
26 | <div id = "body" class="modal-body">\ |
---|
27 | <br> <center><img id="workflowid" name="workflowid" src="" width= "400" height= "600" / ></center><br><br>\ |
---|
28 | </div>\ |
---|
29 | <div class="modal-footer">\ |
---|
30 | <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>\ |
---|
31 | </div>\ |
---|
32 | </div>\ |
---|
33 | </div>\ |
---|
34 | </div>'; |
---|
35 | |
---|
36 | Busqueda(id); |
---|
37 | } |
---|
38 | |
---|
39 | |
---|
40 | function Busqueda_planilla(myval) { |
---|
41 | |
---|
42 | $.post('/ajaxgeneratepdf', |
---|
43 | { id_form: myval |
---|
44 | }, |
---|
45 | function(data) { |
---|
46 | document.getElementById("body_planilla").innerHTML = '\ |
---|
47 | <embed id="pdf" src="/static/tmp/'+data+'" width="700" height="500"></embed>\ |
---|
48 | '; |
---|
49 | |
---|
50 | } |
---|
51 | ); |
---|
52 | } |
---|
53 | |
---|
54 | function Detalle_Pdf(id) { |
---|
55 | document.getElementById("Detalle2").innerHTML = '\ |
---|
56 | <style>\ |
---|
57 | .modal .modal-dialog { width: 50%; height: 80%, };\ |
---|
58 | </style>\ |
---|
59 | <div id="myModal2" class="modal fade" role="dialog">\ |
---|
60 | <div class="modal-dialog">\ |
---|
61 | <div class="modal-content">\ |
---|
62 | <div id = "title" class="modal-header">\ |
---|
63 | <!--<button type="button" class="close" data-dismiss="modal">×</button>-->\ |
---|
64 | <h3 class="modal-title text-primary"><center>Planilla de Vacaciones</center></h3>\ |
---|
65 | </div>\ |
---|
66 | <div id = "body_planilla" class="modal-body">\ |
---|
67 | <br><br>\ |
---|
68 | </div>\ |
---|
69 | <div class="modal-footer">\ |
---|
70 | <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>\ |
---|
71 | </div>\ |
---|
72 | </div>\ |
---|
73 | </div>\ |
---|
74 | </div>'; |
---|
75 | |
---|
76 | Busqueda_planilla(id); |
---|
77 | } |
---|
78 | |
---|
79 | |
---|
80 | |
---|
81 | |
---|