public ActionResult FAC_011(cl_filtros_facturacion_Info model)
        {
            FAC_011_Rpt report = new FAC_011_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_011");
            if (reporte != null)
            {
                System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio);
                report.LoadLayout(RootReporte);
            }
            #endregion
            report.p_IdEmpresa.Value       = model.IdEmpresa;
            report.p_IdCliente.Value       = model.IdCliente;
            report.p_fechaIni.Value        = model.fecha_ini;
            report.p_fechaFin.Value        = model.fecha_fin;
            report.p_mostrarAnulados.Value = model.mostrarAnulados;
            report.p_mostrar_observacion_completa.Value = model.mostrar_observacion_completa;
            cargar_combos(model);
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            ViewBag.Report = report;
            return(View(model));
        }
示例#2
0
        public ActionResult FAC_011(cl_filtros_facturacion_Info model)
        {
            FAC_011_Rpt report = new FAC_011_Rpt();

            report.p_IdEmpresa.Value       = model.IdEmpresa;
            report.p_IdCliente.Value       = model.IdCliente;
            report.p_fechaIni.Value        = model.fecha_ini;
            report.p_fechaFin.Value        = model.fecha_fin;
            report.p_mostrarAnulados.Value = model.mostrarAnulados;
            report.p_mostrar_observacion_completa.Value = model.mostrar_observacion_completa;
            cargar_combos(model);
            report.usuario = SessionFixed.IdUsuario.ToString();
            report.empresa = SessionFixed.NomEmpresa.ToString();
            ViewBag.Report = report;
            return(View(model));
        }