public ActionResult CXC_004(cl_filtros_facturacion_Info model) { CXC_004_Rpt report = new CXC_004_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "CXC_004"); 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_IdCliente.Value = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente); report.p_MostrarSaldo0.Value = model.mostrarSaldo0; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; cargar_combos(model.IdEmpresa); report.RequestParameters = false; ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_004(cl_filtros_facturacion_Info model) { CXC_004_Rpt report = new CXC_004_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente; report.p_IdContacto.Value = model.IdClienteContacto; report.p_fecha_corte.Value = model.fecha_corte; report.p_MostrarSaldo0.Value = model.Check1; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; cargar_cliente_contacto(model); ViewBag.Report = report; return(View(model)); }