public ActionResult CXC_008() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdCliente = 0, IdCobro_tipo = "" }; cargar_combos(model.IdEmpresa); CXC_008_Rpt report = new CXC_008_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente ?? 0; report.p_IdCobro_tipo.Value = model.IdCobro_tipo; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_mostrar_anulados.Value = model.mostrarAnulados; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_008(cl_filtros_facturacion_Info model) { CXC_008_Rpt report = new CXC_008_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "CXC_008"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion cargar_combos(model.IdEmpresa); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente ?? 0; report.p_IdCobro_tipo.Value = model.IdCobro_tipo; cargar_tipo_cobro_check(model.StringArray); report.StringArray = model.StringArray; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_mostrar_anulados.Value = model.mostrarAnulados; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }