Consulta tu Trámite

0
232

Desde el siguiente módulo usted podrá consultar y visualizar el listado histórico de expedientes que tramitó y el estado en el que se encuentran.

También podrá consultar información sobre los trámites, plazos, requisitos y tarifarios.

CONSULTA DE ESTADO POR NÚMERO DE EXPEDIENTE

Por favor ingrese en el recuadro inferior el número del expediente.

El número de expediente es un número de 9 dígitos que le fue entregado por el personal de Mesa de Partes al momento de realizar su trámite.

CONSULTA DE EXPEDIENTES POR DNI

Por favor ingrese en el recuadro inferior su número de DNI.

CONSULTA DE REQUISITOS Y TARIFARIOS 2018

Por favor seleccione el tipo de trámite.

function genera_html_hdr(data) {

// generar cuadro de datos
let informacion = `Imprimir

`+data[0].idExpediente+`

ASUNTO DEL EXPEDIENTE

`+data[0].asuntoInicial+`

DATOS DEL ADMINISTRADO

`+data[0].docIdentidad+`

`+data[0].nroDoc+`

`+data[0].administrado+`

DETALLES

FECHA DE INGRESO

`;

informacion += moment(data[0].fechaRegistro).format(‘DD/MM/YYYY hh:mm:ss’);

informacion += `

ÁREA ACTUAL EN LA QUE SE ENCUENTRA

`+data[0].areaActual+`

FECHA DE DERIVACIÓN

`;

informacion += moment(data[0].fechaDerivacion).format(‘DD/MM/YYYY hh:mm:ss’);

informacion += `

Para dudas o consultas por favor comunicarse al teléfono : (+51 84) 582030

`;

return informacion;

}

function genera_data_hdr(codigo) {

$.ajax({
url: ‘http://siga.culturacusco.gob.pe/webservice/rest/tramite/estadoexpediente/’+codigo+’/null/’,
dataType: ‘json’,
beforeSend: function() {

},
success: function( data ) {

let info_html = genera_html_hdr(data);

let myNode = document.getElementById(«dynamicTable»);
while (myNode.firstChild) myNode.removeChild(myNode.firstChild);

$(‘#dynamicTable’).append(info_html);

},
complete: function() {

},
error: function(jqXHR, textStatus) {
alert(‘Ocurrio un error interno, por favor intente nuevamente en unos minutos.’);
}
});

}

function generaHojaSeleccion(codigo) {

// activar Tab Hoja de Ruta

$(‘#dni’).removeClass(«in active»);
$(‘#hdr’).addClass(«in active»);

$(‘#tab_dni’).removeClass(«active»);
$(‘#tab_hdr’).addClass(«active»);

// generar data de hoja de ruta
genera_data_hdr(codigo);

}

function generainformacion(data) {

if (data.length > 0) {

// generar cuadro de datos
let informacion = genera_html_hdr(data);

// inserta_html(informacion);
var myNode = document.getElementById(‘dynamicTable’);

// Limpia Hijos
while (myNode.firstChild) myNode.removeChild(myNode.firstChild);

// Incrustar bloque html
$(‘#dynamicTable’).append(informacion);

}
else {

var myNode = document.getElementById(‘dynamicTable’);

// Limpia Hijos
while (myNode.firstChild) myNode.removeChild(myNode.firstChild);

// Incrustar bloque html
$(‘#dynamicTable’).append(`

No se encontraron datos referentes a ese número de expediente.

`);
}

}

function generainformacion2(data) {

if (data.length > 0) {

let hojas = »;

hojas += `

DATOS DEL ADMINISTRADO

`+data[0].docIdentidad+`

`+data[0].nroDoc+`

`+data[0].administrado+`

`;

hojas += `

HISTORIAL DE EXPEDIENTES

`;

let fechai = »;

for (let i = 0; i < data.length; i++) {

let stylee = '';

if ( i % 2 === 0) stylee = 'left; clear: both';
else stylee = 'right';

hojas += `

`+data[i].idExpediente+`

`;

if (data[i].asuntoInicial.length <= 100) {
hojas += data[i].asuntoInicial+`

`;
}
else {
hojas += (data[i].asuntoInicial).substring(0, 100)+`…

`;
}

hojas +=`

Área Actual : `+data[i].areaActual+`

`;
}

hojas += `

`;

var myNode = document.getElementById(‘dynamicTable2’);

// Limpia Hijos
while (myNode.firstChild) myNode.removeChild(myNode.firstChild);

// Incrustar bloque html
$(‘#dynamicTable2’).append(hojas);

}
else {
var myNode = document.getElementById(‘dynamicTable2’);

// Limpia Hijos
while (myNode.firstChild) myNode.removeChild(myNode.firstChild);

// Incrustar bloque html
$(‘#dynamicTable2’).append(`

No se encontraron datos referentes a ese DNI.

`);
}

}

function consultaHDR() {

let codigo = document.getElementById(«codigo»).value;
// let dni = document.getElementById(«dni»).value;

if (codigo !== null && codigo !== ») {

$.ajax({
url: ‘http://siga.culturacusco.gob.pe/webservice/rest/tramite/estadoexpediente/’+codigo+’/null/’,
dataType: ‘json’,
beforeSend: function() {

$(‘#btnconsultar’).prop(‘disabled’, true);
$(‘#codigo’).prop(‘disabled’, true);

},
success: function( data ) {

generainformacion(data);

},
complete: function() {

$(‘#btnconsultar’).prop(‘disabled’, false);
$(‘#codigo’).prop(‘disabled’, false);

},
error: function(jqXHR, textStatus) {
alert(‘Ocurrio un error interno, por favor intente nuevamente en unos minutos.’);
}
});
}
}

function consultaDNI() {

let dni = document.getElementById(«dni_i»).value;

if (dni !== null && dni !== ») {

$.ajax({
url: ‘http://siga.culturacusco.gob.pe/webservice/rest/tramite/estadoexpediente/null/’+dni+’/’,
dataType: ‘json’,
beforeSend: function() {

$(‘#btnconsultar_dni’).prop(‘disabled’, true);
$(‘#dni_i’).prop(‘disabled’, true);

},
success: function( data ) {

generainformacion2(data);

},
complete: function() {

$(‘#btnconsultar_dni’).prop(‘disabled’, false);
$(‘#dni_i’).prop(‘disabled’, false);

},
error: function(jqXHR, textStatus) {
alert(‘Ocurrio un error interno, por favor intente nuevamente en unos minutos.’);
}
});

}

}

$(‘#form_expediente’).on(‘keypress’, function(e) {
var keyCode = e.keyCode || e.which;
if (keyCode === 13) {
e.preventDefault();

consultaHDR();
}
});

$(‘#form_dni’).on(‘keypress’, function(e) {
var keyCode = e.keyCode || e.which;
if (keyCode === 13) {
e.preventDefault();

consultaDNI();
}
});

$(‘#btnconsultar’).click(function (event) {

event.preventDefault();

consultaHDR();

});

$(‘#btnconsultar_dni’).click(function (event) {

event.preventDefault();

consultaDNI();
});

function imprime_hdr () {

var prtContent = document.getElementById(«dynamicTable»);
var WinPrint = window.open(», », ‘left=0,top=0,width=800,height=900,toolbar=0,scrollbars=0,status=0’);
WinPrint.document.write(»);
WinPrint.document.write(»);
WinPrint.document.write(prtContent.innerHTML);

let fecha = new moment();
let fecha_actual = moment(fecha).format(‘DD/MM/YYYY hh:mm:ss’);

var d = new Date();
// WinPrint.document.write(‘

Fecha y Hora de emisión del Reporte: ‘+d.getDate()+’/’+(d.getMonth()+1)+’/’+d.getFullYear()+’ ‘+d.getHours()+’:’+d.getMinutes()+’:’+d.getSeconds()+’

‘);
WinPrint.document.write(‘

Fecha y Hora de emisión del Reporte: ‘+fecha_actual+’

‘);
WinPrint.document.close();
WinPrint.focus();
setTimeout(function(){
WinPrint.print();
},
100
);
}