46 lines
923 B
JavaScript
Executable File
46 lines
923 B
JavaScript
Executable File
function Generar(){
|
|
|
|
new Ajax.Request(WEB_ROOT+'/ajax/reportes-devcedis.php',
|
|
{
|
|
method:'post',
|
|
parameters: $('frmDevCedis').serialize(),
|
|
onLoading: function(){
|
|
$("loader").innerHTML = LOADER2;
|
|
},
|
|
onSuccess: function(transport){
|
|
var response = transport.responseText || "no response text";
|
|
var splitResponse = response.split("[#]");
|
|
console.log(response);
|
|
$("loader").innerHTML = '';
|
|
|
|
if(splitResponse[0] == "fail"){
|
|
ShowStatus(splitResponse[1]);
|
|
HideFview();
|
|
}else{
|
|
$('contenido').innerHTML = splitResponse[1];
|
|
HideFview();
|
|
}
|
|
},
|
|
|
|
onFailure: function(){ alert('Something went wrong...') }
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function ViewProducts(id){
|
|
|
|
var obj = $('listProds_'+id);
|
|
|
|
if(obj.style.display == "none")
|
|
obj.style.display = "";
|
|
else
|
|
obj.style.display = "none";
|
|
|
|
}
|
|
|
|
function ExportRep(){
|
|
|
|
$("frmDevCedis").submit();
|
|
|
|
} |