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)); }
public ActionResult CONTA_003() { 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", QuebrarPagina = true, IntArray = new int[] { Convert.ToInt32(SessionFixed.IdSucursal) } }; cargar_sucursal_check(model.IdEmpresa, model.IntArray); model.IdAnio = model.fecha_fin.Year; model.MostrarSaldoAcumulado = false; CONTA_003_ER_Rpt report = new CONTA_003_ER_Rpt(); report.IntArray = model.IntArray; 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.p_MostrarSaldoAcumulado.Value = model.MostrarSaldoAcumulado; report.p_QuebrarPagina.Value = model.QuebrarPagina; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; report.RequestParameters = false; ViewBag.Report = report; cargar_nivel(); return(View(model)); }