Пример #1
0
        public ActionResult CXP_015(cl_filtros_Info model)
        {
            CXP_015_Rpt report = new CXP_015_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "CXP_015");
            if (reporte != null)
            {
                System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio);
                report.LoadLayout(RootReporte);
            }
            #endregion
            report.p_IdEmpresa.Value          = model.IdEmpresa;
            report.p_IdSucursal.Value         = model.IdSucursal;
            report.p_IdProveedor.Value        = model.IdProveedor;
            report.p_fecha_corte.Value        = model.fecha_fin;
            report.p_mostrarSaldo0.Value      = model.mostrarSaldo0;
            report.p_IdClaseProveedor.Value   = model.IdClaseProveedor;
            report.p_MostrarObservacion.Value = model.Check1;
            report.p_QuitarGrupo.Value        = model.Check2;
            cargar_combos(true);
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;
            return(View(model));
        }
Пример #2
0
        public ActionResult CXP_015(cl_filtros_Info model)
        {
            CXP_015_Rpt report = new CXP_015_Rpt();

            report.p_IdEmpresa.Value     = model.IdEmpresa;
            report.p_IdSucursal.Value    = model.IdSucursal;
            report.p_IdProveedor.Value   = model.IdProveedor;
            report.p_fecha_corte.Value   = model.fecha_fin;
            report.p_mostrarSaldo0.Value = model.mostrarSaldo0;
            cargar_combos(true);
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;
            return(View(model));
        }