Exemple #1
0
        public ActionResult CONTA_002()
        {
            cl_filtros_Info model = new cl_filtros_Info
            {
                IdEmpresa    = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdCtaCble    = "",
                IdCtaCbleFin = "",
                IdSucursal   = Convert.ToInt32(SessionFixed.IdSucursal)
            };

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

            report.IntArray             = model.IntArray;
            report.p_IdEmpresa.Value    = model.IdEmpresa;
            report.p_IdCtaCble.Value    = model.IdCtaCble;
            report.p_IdCtaCbleFin.Value = model.IdCtaCbleFin;
            report.p_fechaIni.Value     = model.fecha_ini;
            report.p_fechaFin.Value     = model.fecha_fin;
            report.p_IdSucursal.Value   = model.IdSucursal;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            ViewBag.Report = report;
            return(View(model));
        }
        public ActionResult CONTA_002(cl_filtros_Info model)
        {
            CONTA_002_Rpt report = new CONTA_002_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "CONTA_002");
            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_IdCtaCble.Value    = model.IdCtaCble;
            report.p_IdCtaCbleFin.Value = model.IdCtaCbleFin;
            report.p_fechaIni.Value     = model.fecha_ini;
            report.p_fechaFin.Value     = model.fecha_fin;
            report.p_IdSucursal.Value   = model.IdSucursal;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            report.p_IdPuntoCargo.Value = model.IdPunto_cargo;
            report.p_IdGrupo.Value      = model.IdPunto_cargo_grupo;
            SessionFixed.IdDivision_IC  = model.IdPunto_cargo_grupo.ToString();
            //cargar_combos(model.IdEmpresa);
            cargar_combos_punto_cargo(model);
            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            ViewBag.Report = report;
            return(View(model));
        }
        public ActionResult CONTA_002(cl_filtros_Info model)
        {
            CONTA_002_Rpt report = new CONTA_002_Rpt();

            report.p_IdEmpresa.Value = model.IdEmpresa;
            report.p_IdCtaCble.Value = model.IdCtaCble;
            report.p_fechaIni.Value  = model.fecha_ini;
            report.p_fechaFin.Value  = model.fecha_fin;
            report.usuario           = SessionFixed.IdUsuario.ToString();
            report.empresa           = SessionFixed.NomEmpresa.ToString();
            cargar_combos(model.IdEmpresa);
            ViewBag.Report = report;
            return(View(model));
        }