public ActionResult CONTA_004()
        {
            cl_filtros_contabilidad_Info model = new cl_filtros_contabilidad_Info
            {
                IdEmpresa    = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal   = Convert.ToInt32(SessionFixed.IdSucursal),
                IdNivel      = 6,
                balance      = "ER",
                IdPeriodoFin = Convert.ToInt32(DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString("00")),
                IdPeriodoIni = Convert.ToInt32(DateTime.Now.AddMonths(-1).Year.ToString() + DateTime.Now.AddMonths(-1).Month.ToString("00")),
                IntArray     = new int[] { Convert.ToInt32(SessionFixed.IdSucursal) }
            };

            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            model.IdAnio = Convert.ToInt32(model.IdPeriodoFin.ToString().Substring(0, 4));
            model.MostrarSaldoAcumulado = false;
            CONTA_004_ER_Rpt report = new CONTA_004_ER_Rpt();

            report.IntArray                 = model.IntArray;
            report.p_IdEmpresa.Value        = model.IdEmpresa;
            report.p_IdAnio.Value           = model.IdAnio;
            report.p_IdPeriodoIni.Value     = model.IdPeriodoIni;
            report.p_IdPeriodoFin.Value     = model.IdPeriodoFin;
            report.p_IdUsuario.Value        = model.IdUsuario;
            report.p_IdNivel.Value          = model.IdNivel;
            report.p_mostrarSaldo0.Value    = model.mostrar_saldos_en_0;
            report.p_balance.Value          = model.balance;
            report.p_mostrarAcumulado.Value = model.MostrarSaldoAcumulado;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            ViewBag.Report = report;

            cargar_nivel_CONTA006();
            return(View(model));
        }
Esempio n. 2
0
        public ActionResult Nuevo()
        {
            cl_filtros_contabilidad_Info model = new cl_filtros_contabilidad_Info();

            cargar_combos();
            return(View(model));
        }
        public ActionResult CONTA_006()
        {
            cl_filtros_contabilidad_Info model = new cl_filtros_contabilidad_Info
            {
                IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdNivel   = 6,
                balance   = "ER",
                IntArray  = new int[] { Convert.ToInt32(SessionFixed.IdSucursal) }
            };

            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            model.IdAnio = model.fecha_fin.Year;
            model.MostrarSaldoAcumulado = false;
            CONTA_006_ER_Rpt report = new CONTA_006_ER_Rpt();

            report.IntArray                 = model.IntArray;
            report.p_IdEmpresa.Value        = model.IdEmpresa;
            report.p_IdAnio.Value           = model.IdAnio;
            report.p_IdUsuario.Value        = model.IdUsuario;
            report.p_IdNivel.Value          = model.IdNivel;
            report.p_mostrarSaldo0.Value    = model.mostrar_saldos_en_0;
            report.p_balance.Value          = model.balance;
            report.p_mostrarAcumulado.Value = model.MostrarSaldoAcumulado;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            ViewBag.Report = report;

            cargar_nivel_CONTA006();
            return(View(model));
        }
        public ActionResult CONTA_005(cl_filtros_contabilidad_Info model)
        {
            CONTA_005_Rpt report = new CONTA_005_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "CONTA_005");
            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_IdPunto_cargo_grupo.Value = model.IdPunto_cargo_grupo;
            report.p_IdUsuario.Value           = SessionFixed.IdUsuario;
            report.p_mostrarSaldo0.Value       = model.mostrar_saldos_en_0;
            report.p_fechaIni.Value            = model.fecha_ini;
            report.p_fechaFin.Value            = model.fecha_fin;
            report.usuario = SessionFixed.IdUsuario;
            report.empresa = SessionFixed.NomEmpresa;
            cargar_combos(model.IdEmpresa);
            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            ViewBag.Report = report;
            return(View(model));
        }
        public ActionResult CONTA_007()
        {
            cl_filtros_contabilidad_Info model = new cl_filtros_contabilidad_Info
            {
                IdEmpresa             = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal            = Convert.ToInt32(SessionFixed.IdSucursal),
                IntArray              = new int[] { Convert.ToInt32(SessionFixed.IdSucursal) },
                MostrarSaldoAcumulado = false,
                MostrarSaldoDetallado = false
            };

            cargar_sucursal_check(model.IdEmpresa, model.IntArray);

            CONTA_007_Rpt report = new CONTA_007_Rpt();

            report.IntArray                 = model.IntArray;
            report.p_IdEmpresa.Value        = model.IdEmpresa;
            report.p_fechaini.Value         = model.fecha_ini;
            report.p_fechafin.Value         = model.fecha_fin;
            report.p_IdUsuario.Value        = SessionFixed.IdUsuario;
            report.p_MostrarAcumulado.Value = model.MostrarSaldoAcumulado;
            report.p_MostrarDetallado.Value = model.MostrarSaldoDetallado;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;

            cargar_nivel();
            return(View(model));
        }
        public ActionResult CONTA_009()
        {
            cl_filtros_contabilidad_Info model = new cl_filtros_contabilidad_Info
            {
                IdEmpresa     = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal    = Convert.ToInt32(SessionFixed.IdSucursal),
                IdNivel       = 6,
                balance       = "ER",
                IntArray      = new int[] { Convert.ToInt32(SessionFixed.IdSucursal) },
                IdCentroCosto = ""
            };

            model.IdAnio = model.fecha_fin.Year;
            model.MostrarSaldoAcumulado = false;
            CONTA_009_Rpt report = new CONTA_009_Rpt();

            report.IntArray                      = model.IntArray;
            report.p_IdEmpresa.Value             = model.IdEmpresa;
            report.p_fechaIni.Value              = model.fecha_ini;
            report.p_fechaFin.Value              = model.fecha_fin;
            report.p_IdUsuario.Value             = SessionFixed.IdUsuario;
            report.p_IdCentroCosto.Value         = model.IdCentroCosto;
            report.p_mostrarSaldo0.Value         = model.mostrar_saldos_en_0;
            report.p_MostrarSaldoAcumulado.Value = model.MostrarSaldoAcumulado;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;

            cargar_nivel();
            cargar_cc(model.IdEmpresa);
            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            return(View(model));
        }
        public ActionResult CONTA_009(cl_filtros_contabilidad_Info model)
        {
            model.IdAnio = model.fecha_fin.Year;


            CONTA_009_Rpt report = new CONTA_009_Rpt();

            report.IntArray                      = model.IntArray;
            report.p_IdEmpresa.Value             = model.IdEmpresa;
            report.p_fechaIni.Value              = model.fecha_ini;
            report.p_fechaFin.Value              = model.fecha_fin;
            report.p_IdCentroCosto.Value         = model.IdCentroCosto;
            report.p_IdUsuario.Value             = SessionFixed.IdUsuario;
            report.p_mostrarSaldo0.Value         = model.mostrar_saldos_en_0;
            report.p_MostrarSaldoAcumulado.Value = model.MostrarSaldoAcumulado;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;

            cargar_nivel();
            cargar_cc(model.IdEmpresa);
            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            return(View(model));
        }
Esempio n. 8
0
        public FileResult Nuevo(cl_filtros_contabilidad_Info model)
        {
            int    IdEmpresa       = Convert.ToInt32(SessionFixed.IdEmpresa);
            var    info_empresa    = bus_empresa.get_info(IdEmpresa);
            var    info_periodo    = bus_periodo.get_info(IdEmpresa, model.IdPeriodoIni);
            var    FechaFinPeriodo = info_periodo.pe_FechaFin.ToString().Substring(0, 10).Replace("/", "");
            string nombre_file     = info_empresa.em_ruc.ToString() + FechaFinPeriodo.ToString();

            byte[] archivo;
            List <DinardapData_Info> lst_archivo      = new List <DinardapData_Info>();
            List <Dinardap_Info>     ListInfoDinardap = new List <Dinardap_Info>();

            if (model.IntArray.Count() > 0 && model.IdPeriodoIni != 0)
            {
                foreach (var item in model.IntArray)
                {
                    lst_archivo.AddRange(bus_dinardap.get_info(IdEmpresa, model.IdPeriodoIni, Convert.ToInt32(item)));
                }
            }

            var lst_dinardarp = set_dinardap_info(lst_archivo, model.IdPeriodoIni);

            archivo = GetArchivo(lst_dinardarp, nombre_file);
            return(File(archivo, "application/text", nombre_file + ".txt"));
        }
        public ActionResult CONTA_003()
        {
            cl_filtros_contabilidad_Info model = new cl_filtros_contabilidad_Info
            {
                IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa),
                IdNivel   = 6,
                balance   = "ER"
            };

            model.IdAnio = model.fecha_fin.Year;

            CONTA_003_ER_Rpt report = new CONTA_003_ER_Rpt();

            report.p_IdEmpresa.Value     = model.IdEmpresa;
            report.p_IdAnio.Value        = model.IdAnio;
            report.p_fechaIni.Value      = model.fecha_ini;
            report.p_fechaFin.Value      = model.fecha_fin;
            report.p_IdUsuario.Value     = SessionFixed.IdUsuario;
            report.p_IdNivel.Value       = model.IdNivel;
            report.p_mostrarSaldo0.Value = model.mostrar_saldos_en_0;
            report.p_balance.Value       = model.balance;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;

            cargar_nivel();
            return(View(model));
        }
        public ActionResult CONTA_003(cl_filtros_contabilidad_Info model)
        {
            model.IdAnio = model.fecha_fin.Year;
            if (model.balance == "BG")
            {
                CONTA_003_BG_Rpt report = new CONTA_003_BG_Rpt();
                report.p_IdEmpresa.Value     = model.IdEmpresa;
                report.p_IdAnio.Value        = model.IdAnio;
                report.p_fechaIni.Value      = model.fecha_ini;
                report.p_fechaFin.Value      = model.fecha_fin;
                report.p_IdUsuario.Value     = SessionFixed.IdUsuario;
                report.p_IdNivel.Value       = model.IdNivel;
                report.p_mostrarSaldo0.Value = model.mostrar_saldos_en_0;
                report.p_balance.Value       = model.balance;
                report.p_IdSucursal.Value    = model.IdSucursal;
                report.usuario           = SessionFixed.IdUsuario;
                report.empresa           = SessionFixed.NomEmpresa;
                report.RequestParameters = false;
                ViewBag.Report           = report;
            }
            if (model.balance == "ER")
            {
                CONTA_003_ER_Rpt report = new CONTA_003_ER_Rpt();
                report.p_IdEmpresa.Value     = model.IdEmpresa;
                report.p_IdAnio.Value        = model.IdAnio;
                report.p_fechaIni.Value      = model.fecha_ini;
                report.p_fechaFin.Value      = model.fecha_fin;
                report.p_IdUsuario.Value     = SessionFixed.IdUsuario;
                report.p_IdNivel.Value       = model.IdNivel;
                report.p_mostrarSaldo0.Value = model.mostrar_saldos_en_0;
                report.p_balance.Value       = model.balance;
                report.p_IdSucursal.Value    = model.IdSucursal;
                report.usuario           = SessionFixed.IdUsuario;
                report.empresa           = SessionFixed.NomEmpresa;
                report.RequestParameters = false;
                ViewBag.Report           = report;
            }

            if (string.IsNullOrEmpty(model.balance))
            {
                CONTA_003_BC_Rpt report = new CONTA_003_BC_Rpt();
                report.p_IdEmpresa.Value     = model.IdEmpresa;
                report.p_IdAnio.Value        = model.IdAnio;
                report.p_fechaIni.Value      = model.fecha_ini;
                report.p_fechaFin.Value      = model.fecha_fin;
                report.p_IdUsuario.Value     = SessionFixed.IdUsuario;
                report.p_IdNivel.Value       = model.IdNivel;
                report.p_IdSucursal.Value    = model.IdSucursal;
                report.p_mostrarSaldo0.Value = model.mostrar_saldos_en_0;
                report.p_balance.Value       = model.balance;
                report.usuario           = SessionFixed.IdUsuario;
                report.empresa           = SessionFixed.NomEmpresa;
                report.RequestParameters = false;
                ViewBag.Report           = report;
            }
            cargar_combos(model.IdEmpresa);
            cargar_nivel();
            return(View(model));
        }
Esempio n. 11
0
        public ActionResult Nuevo()
        {
            #region Permisos
            seg_Menu_x_Empresa_x_Usuario_Info info = bus_permisos.get_list_menu_accion(Convert.ToInt32(SessionFixed.IdEmpresa), SessionFixed.IdUsuario, "Contabilidad", "Dinardap", "Nuevo");
            if (!info.Nuevo)
            {
                return(RedirectToAction("Index"));
            }
            #endregion

            cl_filtros_contabilidad_Info model = new cl_filtros_contabilidad_Info();
            cargar_combos();
            return(View(model));
        }
        public ActionResult CONTA_012(cl_filtros_contabilidad_Info model)
        {
            CONTA_012_Rpt report = new CONTA_012_Rpt();

            report.IntArray          = model.IntArray;
            report.p_IdEmpresa.Value = model.IdEmpresa;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;

            cargar_periodo_check(model.IdEmpresa, model.IntArray);
            return(View(model));
        }
        public ActionResult CONTA_013(cl_filtros_contabilidad_Info model)
        {
            CONTA_013_Rpt report = new CONTA_013_Rpt();

            report.p_IdEmpresa.Value           = model.IdEmpresa;
            report.p_fechaini.Value            = model.fecha_ini;
            report.p_fechafin.Value            = model.fecha_fin;
            report.p_IdPunto_cargo_grupo.Value = model.IdPunto_cargo_grupo;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;
            cargar_combos(model.IdEmpresa);
            return(View(model));
        }
        public ActionResult CONTA_007(cl_filtros_contabilidad_Info model)
        {
            cargar_sucursal_check(model.IdEmpresa, model.IntArray);

            CONTA_007_Rpt report = new CONTA_007_Rpt();

            report.IntArray                 = model.IntArray;
            report.p_IdEmpresa.Value        = model.IdEmpresa;
            report.p_fechaini.Value         = model.fecha_ini;
            report.p_fechafin.Value         = model.fecha_fin;
            report.p_IdUsuario.Value        = SessionFixed.IdUsuario;
            report.p_MostrarAcumulado.Value = model.MostrarSaldoAcumulado;
            report.p_MostrarDetallado.Value = model.MostrarSaldoDetallado;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;

            return(View(model));
        }
 public ActionResult CONTA_004(cl_filtros_contabilidad_Info model)
 {
     cargar_sucursal_check(model.IdEmpresa, model.IntArray);
     model.IdAnio = Convert.ToInt32(model.IdPeriodoFin.ToString().Substring(0, 4));
     if (model.balance == "BG")
     {
         CONTA_004_BG_Rpt report = new CONTA_004_BG_Rpt();
         report.IntArray                 = model.IntArray;
         report.p_IdEmpresa.Value        = model.IdEmpresa;
         report.p_IdAnio.Value           = model.IdAnio;
         report.p_IdPeriodoIni.Value     = model.IdPeriodoIni;
         report.p_IdPeriodoFin.Value     = model.IdPeriodoFin;
         report.p_IdUsuario.Value        = model.IdUsuario;
         report.p_IdNivel.Value          = model.IdNivel;
         report.p_mostrarSaldo0.Value    = model.mostrar_saldos_en_0;
         report.p_balance.Value          = model.balance;
         report.p_mostrarAcumulado.Value = model.MostrarSaldoAcumulado;
         report.usuario = SessionFixed.IdUsuario;
         report.empresa = SessionFixed.NomEmpresa;
         ViewBag.Report = report;
     }
     if (model.balance == "ER")
     {
         CONTA_004_ER_Rpt report = new CONTA_004_ER_Rpt();
         report.IntArray                 = model.IntArray;
         report.p_IdEmpresa.Value        = model.IdEmpresa;
         report.p_IdAnio.Value           = model.IdAnio;
         report.p_IdPeriodoIni.Value     = model.IdPeriodoIni;
         report.p_IdPeriodoFin.Value     = model.IdPeriodoFin;
         report.p_IdUsuario.Value        = model.IdUsuario;
         report.p_IdNivel.Value          = model.IdNivel;
         report.p_mostrarSaldo0.Value    = model.mostrar_saldos_en_0;
         report.p_balance.Value          = model.balance;
         report.p_mostrarAcumulado.Value = model.MostrarSaldoAcumulado;
         report.usuario = SessionFixed.IdUsuario;
         report.empresa = SessionFixed.NomEmpresa;
         ViewBag.Report = report;
     }
     cargar_nivel_CONTA006();
     return(View(model));
 }
        public ActionResult CONTA_011(cl_filtros_contabilidad_Info model)
        {
            model.IdAnio = model.fecha_fin.Year;


            CONTA_011_Rpt report = new CONTA_011_Rpt();

            report.IntArray.Value    = model.IntArray;
            report.p_IdEmpresa.Value = model.IdEmpresa;
            report.p_fechaIni.Value  = model.fecha_ini;
            report.p_fechaFin.Value  = model.fecha_fin;
            report.p_IdUsuario.Value = SessionFixed.IdUsuario;

            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;

            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            return(View(model));
        }
        public ActionResult CONTA_006(cl_filtros_contabilidad_Info model)
        {
            model.IdAnio = model.fecha_fin.Year;
            cargar_sucursal_check(model.IdEmpresa, model.IntArray);

            if (model.balance == "BG")
            {
                CONTA_006_BG_Rpt report = new CONTA_006_BG_Rpt();
                report.IntArray                 = model.IntArray;
                report.p_IdEmpresa.Value        = model.IdEmpresa;
                report.p_FechaIni.Value         = model.fecha_ini;
                report.p_FechaFin.Value         = model.fecha_fin;
                report.p_IdUsuario.Value        = model.IdUsuario;
                report.p_IdNivel.Value          = model.IdNivel;
                report.p_mostrarSaldo0.Value    = model.mostrar_saldos_en_0;
                report.p_balance.Value          = model.balance;
                report.p_mostrarAcumulado.Value = model.MostrarSaldoAcumulado;
                report.usuario = SessionFixed.IdUsuario;
                report.empresa = SessionFixed.NomEmpresa;
                ViewBag.Report = report;
            }
            if (model.balance == "ER")
            {
                CONTA_006_ER_Rpt report = new CONTA_006_ER_Rpt();
                report.IntArray                 = model.IntArray;
                report.p_IdEmpresa.Value        = model.IdEmpresa;
                report.p_FechaIni.Value         = model.fecha_ini;
                report.p_FechaFin.Value         = model.fecha_fin;
                report.p_IdUsuario.Value        = model.IdUsuario;
                report.p_IdNivel.Value          = model.IdNivel;
                report.p_mostrarSaldo0.Value    = model.mostrar_saldos_en_0;
                report.p_balance.Value          = model.balance;
                report.p_mostrarAcumulado.Value = model.MostrarSaldoAcumulado;
                report.usuario = SessionFixed.IdUsuario;
                report.empresa = SessionFixed.NomEmpresa;
                ViewBag.Report = report;
            }
            cargar_nivel_CONTA006();
            return(View(model));
        }
        public ActionResult CONTA_013()
        {
            cl_filtros_contabilidad_Info model = new cl_filtros_contabilidad_Info
            {
                IdEmpresa           = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal          = Convert.ToInt32(SessionFixed.IdSucursal),
                IdPunto_cargo_grupo = 0
            };

            CONTA_013_Rpt report = new CONTA_013_Rpt();

            report.p_IdEmpresa.Value           = model.IdEmpresa;
            report.p_fechaini.Value            = model.fecha_ini;
            report.p_fechafin.Value            = model.fecha_fin;
            report.p_IdPunto_cargo_grupo.Value = model.IdPunto_cargo_grupo;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;
            cargar_combos(model.IdEmpresa);
            return(View(model));
        }
        public ActionResult CONTA_012()
        {
            int anio = DateTime.Now.Date.Year;
            cl_filtros_contabilidad_Info model = new cl_filtros_contabilidad_Info
            {
                IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa),
                IntArray  = new int[] { Convert.ToInt32(anio.ToString() + "01"), Convert.ToInt32(anio.ToString() + "02"), Convert.ToInt32(anio.ToString() + "03"), Convert.ToInt32(anio.ToString() + "04"),
                                        Convert.ToInt32(anio.ToString() + "05"), Convert.ToInt32(anio.ToString() + "06"), Convert.ToInt32(anio.ToString() + "07"), Convert.ToInt32(anio.ToString() + "08"),
                                        Convert.ToInt32(anio.ToString() + "09"), Convert.ToInt32(anio.ToString() + "10"), Convert.ToInt32(anio.ToString() + "11"), Convert.ToInt32(anio.ToString() + "12") },
            };

            CONTA_012_Rpt report = new CONTA_012_Rpt();

            report.IntArray          = model.IntArray;
            report.p_IdEmpresa.Value = model.IdEmpresa;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;
            cargar_periodo_check(model.IdEmpresa, model.IntArray);
            return(View(model));
        }
        public ActionResult CONTA_011()
        {
            cl_filtros_contabilidad_Info model = new cl_filtros_contabilidad_Info
            {
                IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa),
                IntArray  = new int[] { Convert.ToInt32(SessionFixed.IdSucursal) },
            };

            CONTA_011_Rpt report = new CONTA_011_Rpt();

            report.IntArray.Value    = model.IntArray;
            report.p_IdEmpresa.Value = model.IdEmpresa;
            report.p_fechaIni.Value  = model.fecha_ini;
            report.p_fechaFin.Value  = model.fecha_fin;
            report.p_IdUsuario.Value = SessionFixed.IdUsuario;
            report.usuario           = SessionFixed.IdUsuario;
            report.empresa           = SessionFixed.NomEmpresa;
            report.RequestParameters = false;
            ViewBag.Report           = report;

            cargar_sucursal_check(model.IdEmpresa, model.IntArray);
            return(View(model));
        }