public ActionResult FAC_005(cl_filtros_facturacion_Info model)
        {
            FAC_005_Rpt report = new FAC_005_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_005");
            if (reporte != null)
            {
                System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio);
                report.LoadLayout(RootReporte);
            }
            #endregion
            report.p_IdEmpresa.Value  = model.IdEmpresa;
            report.p_Fecha_ini.Value  = model.fecha_ini;
            report.p_Fecha_fin.Value  = model.fecha_fin;
            report.p_IdSucursal.Value = model.IdSucursal;
            report.p_IdCliente.Value  = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente);
            report.usuario            = SessionFixed.IdUsuario;
            report.empresa            = SessionFixed.NomEmpresa;
            cargar_combos(model);
            report.RequestParameters = false;
            ViewBag.Report           = report;
            return(View(model));
        }
Ejemplo n.º 2
0
        public ActionResult FAC_005()
        {
            cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info
            {
                IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa),
                Check1    = true,
                Check2    = false
            };

            cargar_combos(model);
            FAC_005_Rpt report = new FAC_005_Rpt();

            report.p_IdEmpresa.Value        = model.IdEmpresa;
            report.p_Fecha_ini.Value        = model.fecha_ini;
            report.p_Fecha_fin.Value        = model.fecha_fin;
            report.p_IdSucursal.Value       = model.IdSucursal;
            report.p_IdCliente.Value        = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente);
            report.p_MostrarSaldo0.Value    = model.Check1;
            report.p_MostrarContactos.Value = model.Check2;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;
            return(View(model));
        }
Ejemplo n.º 3
0
        public ActionResult FAC_005(cl_filtros_facturacion_Info model)
        {
            FAC_005_Rpt report = new FAC_005_Rpt();

            report.p_IdEmpresa.Value  = model.IdEmpresa;
            report.p_Fecha_ini.Value  = model.fecha_ini;
            report.p_Fecha_fin.Value  = model.fecha_fin;
            report.p_IdSucursal.Value = model.IdSucursal;
            report.p_IdCliente.Value  = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente);
            report.usuario            = SessionFixed.IdUsuario;
            report.empresa            = SessionFixed.NomEmpresa;
            cargar_combos(model);
            report.RequestParameters = false;
            ViewBag.Report           = report;
            return(View(model));
        }