PageSourceSearch

https://saycontgt.com/vistas/js/cerrarPlanilla.js

js saycontgt.com collected 2026-10-04 06:47:43 UTC 4,730 bytes, 207 lines download raw bytes

1/*
2
3
4$(".btnCerrarPlanilla").click(function(){
5
6
7var idSerie = $(this).attr("idSerie");
8var idPlanilla = $(this).attr("idPlanilla"); 
9var idTipoPer = $(this).attr("idTipoPer"); 
10var idEmpresa = $(this).attr("idEmpresa");   
11
12  
13
14
15           $(function() {
16                  const Toast = Swal.mixin({
17                    toast: true,
18                    position: 'top-end',
19                    showConfirmButton: false,
20                    timer: 3000
21                  });
22
23								                  Swal.fire({
24								  title: 'Planilla',
25								  text: "Desea Cerrar la Planilla FIJA Actual?",
26								  icon: 'warning',
27								  showCancelButton: true,
28								  confirmButtonColor: '#3085d6',
29								  cancelButtonColor: '#d33',
30								  confirmButtonText: 'Si, Cerrar Planilla!',
31								   cancelButtonText: 'No!'
32								}).then((result) => {
33								  if (result.value) {
34
35
36
37
38							
39
40
41													var datos = new FormData(); 
42													datos.append("idSerie", idSerie); 
43													datos.append("idPlanilla", idPlanilla);
44													datos.append("idTipoPer", idTipoPer);
45													datos.append("idEmpresa", idEmpresa);
46
47
48													$.ajax({
49													url:"ajax/cerrarPlanilla.ajax.php", 
50													method:"POST", 
51													data: datos, 
52													cache: false,
53													contentType: false,
54													processData: false, 
55													dataType:"json", 
56													success: function(respuesta){
57
58														console.log(respuesta); 
59
60
61
62
63
64													} 
65
66
67													});
68
69
70														    Swal.fire(
71								      'Planilla cerrada!',
72								      'Planilla cerrada con exito.',
73								      'success'
74								    ).then((result) =>{
75
76						var idAcp=0; 
77									
78  					window.location = "index.php?ruta=menurrhh&idAccionPlantilla="+idAcp+"&idTipoPersonal="+idAcp+"&idSerie="+idAcp;
79
80												 })
81
82								  }
83								})
84
85                });
86
87
88
89
90})
91
92
93*/
94$(".btnCerrarPlanillaTemporal").click(function(){
95
96
97var idSerie = $(this).attr("idSerie");
98var idPlanilla = $(this).attr("idPlanilla"); 
99var idTipoPer = $(this).attr("idTipoPer"); 
100var idEmpresa = $(this).attr("idEmpresa");   
101
102  
103
104
105           $(function() {
106                  const Toast = Swal.mixin({
107                    toast: true,
108                    position: 'top-end',
109                    showConfirmButton: false,
110                    timer: 3000
111                  });
112
113								                  Swal.fire({
114								  title: 'Planilla',
115								  text: "Desea Cerrar la Planilla Actual?",
116								  icon: 'warning',
117								  showCancelButton: true,
118								  confirmButtonColor: '#3085d6',
119								  cancelButtonColor: '#d33',
120								  confirmButtonText: 'Si, Cerrar Planilla!',
121								   cancelButtonText: 'No!'
122								}).then((result) => {
123								  if (result.value) {
124
125
126
127
128							
129
130
131													var datos = new FormData(); 
132													datos.append("idSerie", idSerie); 
133													datos.append("idPlanilla", idPlanilla);
134													datos.append("idTipoPer", idTipoPer);
135													datos.append("idEmpresa", idEmpresa);
136
137
138													$.ajax({
139													url:"ajax/cerrarPlanillaTemporal.ajax.php", 
140													method:"POST", 
141													data: datos, 
142													cache: false,
143													contentType: false,
144													processData: false, 
145													dataType:"json", 
146													success: function(respuesta){
147
148														console.log(respuesta); 
149
150
151
152
153
154													} 
155
156
157													});
158
159
160														    Swal.fire(
161								      'Planilla cerrada!',
162								      'Planilla cerrada con exito.',
163								      'success'
164								    ).then((result) =>{
165
166						var idAcp=0; 
167									
168  						window.location = "index.php?ruta=menurrhh&idAccionPlantilla="+idAcp+"&idTipoPersonal="+idAcp+"&idSerie="+idAcp;
169
170  							     })
171
172
173								  }
174								})
175
176                });
177
178
179
180
181}) 
182/*
183
184$(document).on('click', 'button.btnImprimirPrevia', function(){
185  var idStockMes = "0";
186
187  var idPlanilla = $(this).attr("idPlanilla");
188  var idSerie =$(this).attr("idSerie");
189  var idEmpresa=$(this).attr("idEmpresa");
190  var tipoPer=$(this).attr("idTipoPer");
191
192  window.open("extensiones/tcpdf/pdf/imprimirPreviaPlanilla.php?idPlanilla="+idPlanilla+"&idSerie="+idSerie+"&idEmpresa="+idEmpresa+"&tipoPer="+tipoPer, "_blank");
193});
194
195*/
196     
197$(document).on('click', 'button.btnImprimirPreviaTemporal', function(){
198  var idStockMes = "0";
199
200  var idPlanilla = $(this).attr("idPlanilla");
201  var idSerie =$(this).attr("idSerie");
202  var idEmpresa=$(this).attr("idEmpresa");
203  var tipoPer=$(this).attr("idTipoPer");
204
205  window.open("extensiones/tcpdf/pdf/imprimirPreviaPlanillaTemporal.php?idPlanilla="+idPlanilla+"&idSerie="+idSerie+"&idEmpresa="+idEmpresa+"&tipoPer="+tipoPer, "_blank");
206});
207     

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.