コード例 #1
0
        public ActionResult CXP_009(cl_filtros_Info model)
        {
            CXP_009_Rpt report = new CXP_009_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "CXP_009");
            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_anulados.Value = model.mostrarAnulados;
            report.p_TipoRetencion.Value    = model.CodDocumentoTipo;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            ViewBag.Report = report;
            return(View(model));
        }
コード例 #2
0
        public ActionResult CXP_009(cl_filtros_Info model)
        {
            CXP_009_Rpt report = new CXP_009_Rpt();

            report.p_IdEmpresa.Value = model.IdEmpresa;
            report.p_Fecha_ini.Value = model.fecha_ini;
            report.p_Fecha_fin.Value = model.fecha_fin;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;

            report.RequestParameters = false;
            ViewBag.Report           = report;
            return(View(model));
        }
コード例 #3
0
        public ActionResult CXP_009(cl_filtros_Info model)
        {
            CXP_009_Rpt report = new CXP_009_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_anulados.Value = model.mostrarAnulados;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            cargar_combos();
            ViewBag.Report = report;
            return(View(model));
        }
コード例 #4
0
        public ActionResult CXP_009()
        {
            cl_filtros_Info model = new cl_filtros_Info
            {
                IdEmpresa  = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal)
            };

            cargar_combos();
            CXP_009_Rpt report = new CXP_009_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_anulados.Value = model.mostrarAnulados;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;
            return(View(model));
        }