コード例 #1
0
        public ActionResult BAN_008()
        {
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            cl_filtros_banco_Info model = new cl_filtros_banco_Info
            {
                IdEmpresa  = IdEmpresa,
                IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal)
            };

            cargar_banco(model.IdEmpresa);
            BAN_008_Rpt report = new BAN_008_Rpt();

            #region Cargo diseño desde base
            var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "BAN_008");
            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_fecha_ini.Value  = model.fecha_ini;
            report.p_fecha_fin.Value  = model.fecha_fin;
            report.usuario            = SessionFixed.IdUsuario.ToString();
            report.empresa            = SessionFixed.NomEmpresa.ToString();
            ViewBag.Report            = report;
            return(View(model));
        }
コード例 #2
0
 public ActionResult BAN_009(cl_filtros_banco_Info model)
 {
     if (!model.mostrar_agrupado)
     {
         BAN_009_Rpt report = new BAN_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_agrupado.Value = model.mostrar_agrupado;
         report.usuario = SessionFixed.IdUsuario.ToString();
         report.empresa = SessionFixed.NomEmpresa.ToString();
         cargar_banco(model.IdEmpresa);
         ViewBag.Report = report;
     }
     else
     {
         BAN_009_Flujo_Rpt report_flujo = new BAN_009_Flujo_Rpt();
         report_flujo.p_IdEmpresa.Value        = model.IdEmpresa;
         report_flujo.p_IdSucursal.Value       = model.IdSucursal;
         report_flujo.p_fecha_fin.Value        = model.fecha_fin;
         report_flujo.p_mostrar_agrupado.Value = model.mostrar_agrupado;
         report_flujo.usuario = SessionFixed.IdUsuario.ToString();
         report_flujo.empresa = SessionFixed.NomEmpresa.ToString();
         cargar_banco(model.IdEmpresa);
         ViewBag.Report = report_flujo;
     }
     return(View(model));
 }
コード例 #3
0
        public ActionResult BAN_005_Masivo()
        {
            cl_filtros_banco_Info model = new cl_filtros_banco_Info
            {
                IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdBanco   = 0,
                NumDesde  = 0,
                NumHasta  = 0
            };
            BAN_006_Rpt report = new BAN_006_Rpt();

            #region Cargo diseño desde base
            if (model.IdBanco != 0)
            {
                var banco = bus_banco.get_info(model.IdEmpresa, model.IdBanco);
                System.IO.File.WriteAllBytes(RootReporte, banco.ReporteChequeComprobante);
                report.LoadLayout(RootReporte);
            }
            #endregion
            report.p_IdEmpresa.Value  = Convert.ToInt32(SessionFixed.IdEmpresa);
            report.p_IdTipoCbte.Value = 0;
            report.p_IdCbteCble.Value = 0;
            report.p_NumDesde.Value   = model.NumDesde;
            report.p_NumHasta.Value   = model.NumHasta;
            report.p_IdBanco.Value    = model.IdBanco;
            cargar_banco(Convert.ToInt32(SessionFixed.IdEmpresa));
            bus_cbte.modificarDB_EstadoCheque(Convert.ToInt32(SessionFixed.IdEmpresa), 0, 0, "ESTCBENT");

            ViewBag.Report = report;
            return(View(model));
        }
コード例 #4
0
        public ActionResult BAN_014()
        {
            cl_filtros_banco_Info model = new cl_filtros_banco_Info
            {
                IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdPersona = 0
            };

            cargar_banco(model.IdEmpresa);
            BAN_014_Rpt report = new BAN_014_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "BAN_014");
            if (reporte != null)
            {
                System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio);
                report.LoadLayout(RootReporte);
            }
            #endregion
            report.p_IdEmpresa.Value = model.IdEmpresa;
            report.p_IdPersona.Value = model.IdPersona;
            report.p_IdBanco.Value   = model.IdBanco;
            report.p_FechaIni.Value  = model.fecha_ini;
            report.p_FechaFin.Value  = model.fecha_fin;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            ViewBag.Report           = report;
            return(View(model));
        }
コード例 #5
0
        public ActionResult BAN_012(cl_filtros_banco_Info model)
        {
            cargar_banco(model.IdEmpresa);
            BAN_012_Rpt report = new BAN_012_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "BAN_012");
            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_IdUsuario.Value     = model.IdUsuario;
            report.p_IdSucursal.Value    = model.IdSucursal;
            report.p_fecha_ini.Value     = model.fecha_ini;
            report.p_fecha_fin.Value     = model.fecha_fin;
            report.p_mostrarSaldo0.Value = model.mostrarSaldo0;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            ViewBag.Report = report;
            return(View(model));
        }
コード例 #6
0
        public ActionResult BAN_009(bool mostrar_agrupado = false)
        {
            cl_filtros_banco_Info model = new cl_filtros_banco_Info
            {
                IdEmpresa  = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal)
            };

            cargar_banco(model.IdEmpresa);
            if (!mostrar_agrupado)
            {
                BAN_009_Rpt report = new BAN_009_Rpt();
                #region Cargo diseño desde base
                int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
                var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "BAN_009");
                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_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.ToString();
                report.empresa = SessionFixed.NomEmpresa.ToString();
                ViewBag.Report = report;
            }
            else
            {
                BAN_009_Flujo_Rpt report_flujo = new BAN_009_Flujo_Rpt();
                #region Cargo diseño desde base
                int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
                var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "BAN_009");
                if (reporte != null)
                {
                    System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio);
                    report_flujo.LoadLayout(RootReporte);
                }
                #endregion
                report_flujo.p_IdEmpresa.Value        = model.IdEmpresa;
                report_flujo.p_IdSucursal.Value       = model.IdSucursal;
                report_flujo.p_fecha_ini.Value        = model.fecha_ini;
                report_flujo.p_fecha_fin.Value        = model.fecha_fin;
                report_flujo.p_mostrar_agrupado.Value = model.mostrar_agrupado;
                report_flujo.usuario = SessionFixed.IdUsuario.ToString();
                report_flujo.empresa = SessionFixed.NomEmpresa.ToString();
                ViewBag.Report       = report_flujo;
            }
            return(View(model));
        }
コード例 #7
0
        public ActionResult BAN_008(cl_filtros_banco_Info model)
        {
            BAN_008_Rpt report = new BAN_008_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.usuario            = SessionFixed.IdUsuario.ToString();
            report.empresa            = SessionFixed.NomEmpresa.ToString();
            cargar_banco(model.IdEmpresa);
            ViewBag.Report = report;
            return(View(model));
        }
コード例 #8
0
        public ActionResult BAN_007()
        {
            cl_filtros_banco_Info model = new cl_filtros_banco_Info
            {
                Estado    = "",
                IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdPersona = 0,
                IdBanco   = 0
            };

            cargar_banco(model.IdEmpresa);
            BAN_007_Rpt report = new BAN_007_Rpt();

            report.p_IdEmpresa.Value = model.IdEmpresa;
            report.p_IdBanco.Value   = model.IdBanco;
            report.p_IdPersona.Value = model.IdPersona;
            report.p_fecha_ini.Value = model.fecha_ini;
            report.p_fecha_fin.Value = model.fecha_fin;
            report.p_Estado.Value    = model.Estado;
            report.usuario           = SessionFixed.IdUsuario.ToString();
            report.empresa           = SessionFixed.NomEmpresa.ToString();
            ViewBag.Report           = report;
            return(View(model));
        }
コード例 #9
0
        public ActionResult CmbPersona_Banco()
        {
            cl_filtros_banco_Info model = new cl_filtros_banco_Info();

            return(PartialView("_CmbPersona_Banco", model));
        }