public ActionResult CXC_003() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdCliente = 0, IdCobro_tipo = "", mostrarAnulados = false }; cargar_combos(model.IdEmpresa); CXC_003_Rpt report = new CXC_003_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "CXC_003"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente; report.p_Fecha_ini.Value = model.fecha_ini; report.p_Fecha_fin.Value = model.fecha_fin; report.p_MostrarSinRetencion.Value = model.mostrarAnulados; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_003(cl_filtros_facturacion_Info model) { CXC_003_Rpt report = new CXC_003_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente; 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; cargar_combos(model.IdEmpresa); ViewBag.Report = report; return(View(model)); }