public ActionResult CXC_006(cl_filtros_facturacion_Info model) { CXC_006_Rpt report = new CXC_006_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "CXC_006"); 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_IdVendedor.Value = model.IdVendedor; 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.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_006(decimal IdLiquidacion = 0) { CXC_006_Rpt report = new CXC_006_Rpt(); report.p_IdEmpresa.Value = Convert.ToInt32(SessionFixed.IdEmpresa); report.p_IdLiquidacion.Value = IdLiquidacion; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(report)); }