예제 #1
0
        public ActionResult CXP_007(cl_filtros_Info model)
        {
            CXP_007_Rpt report = new CXP_007_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "CXP_007");
            if (reporte != null)
            {
                System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio);
                report.LoadLayout(RootReporte);
            }
            #endregion
            report.IntArray                 = model.IntArray;
            report.p_IdEmpresa.Value        = model.IdEmpresa;
            report.p_IdSucursal.Value       = model.IdSucursal;
            report.p_fecha_ini.Value        = model.fecha_ini;
            report.p_fecha_fin.Value        = model.fecha_fin;
            report.p_mostrar_agrupado.Value = model.mostrar_agrupado;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            ViewBag.Report = report;
            return(View(model));
        }
        public ActionResult CXP_007(cl_filtros_Info model)
        {
            CXP_007_Rpt report = new CXP_007_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_mostrar_agrupado.Value = model.mostrar_agrupado;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;
            return(View(model));
        }
예제 #3
0
        public ActionResult CXP_007(cl_filtros_Info model)
        {
            CXP_007_Rpt report = new CXP_007_Rpt();

            report.p_IdEmpresa.Value        = model.IdEmpresa;
            report.p_IdSucursal.Value       = model.IdSucursal;
            report.p_fecha_ini.Value        = model.fecha_ini;
            report.p_fecha_fin.Value        = model.fecha_fin;
            report.p_mostrar_agrupado.Value = model.mostrar_agrupado;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            cargar_combos();
            ViewBag.Report = report;
            return(View(model));
        }
예제 #4
0
        public ActionResult CXP_007()
        {
            cl_filtros_Info model = new cl_filtros_Info
            {
                IdEmpresa  = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal)
            };

            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            CXP_007_Rpt report = new CXP_007_Rpt();

            report.IntArray                 = model.IntArray;
            report.p_IdEmpresa.Value        = model.IdEmpresa;
            report.p_IdSucursal.Value       = model.IdSucursal;
            report.p_fecha_ini.Value        = model.fecha_ini;
            report.p_fecha_fin.Value        = model.fecha_fin;
            report.p_mostrar_agrupado.Value = model.mostrar_agrupado;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            ViewBag.Report = report;
            return(View(model));
        }