public static object listHistoriaDetalle(int jtStartIndex, int jtPageSize, string jtSorting)
        {
            filterParam[3] = formatoMoneda;
            var listCargaDetalle = new nArchivoCargado().listArchivoCargado(cabecera, historiaLinDet, filterParam, jtStartIndex, jtPageSize, jtSorting, out total);

            return(new { Result = "OK", Records = listCargaDetalle, TotalRecordCount = total });
        }
        public static object listHistoriaDetalleByArchivoObservado(int jtStartIndex, int jtPageSize, string jtSorting)
        {
            filters[2] = 0;//no cumple validacion exitoso.
            var negocio = new nArchivoCargado();

            return(new { Result = "OK", Records = negocio.listArchivoCargadoByArchivo(historiaCab, filters, jtStartIndex, jtPageSize, out total), TotalRecordCount = total });
        }
        protected void btn_exportar_Click(object sender, ImageClickEventArgs e)
        {
            setLlenarEntiddes();
            var nombreArchivo = new nArchivoCargado().getDescargarConsulta(cabecera, nomina, historiaLinDet, filterParam);

            Response.Clear();
            Response.ContentType = "application/vnd.ms-excel";
            Response.AddHeader("Content-Disposition", string.Format("attachment;filename={0}", Path.GetFileName(nombreArchivo)));
            Response.TransmitFile(nombreArchivo);
            Response.End();
        }