public ActionResult CXP_008(cl_filtros_Info model) { CXP_008_Rpt report = new CXP_008_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "CXP_008"); 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_mostrarGrupo.Value = model.mostrar_agrupado; report.p_fecha.Value = model.fecha_fin; report.p_IdProveedor.Value = model.IdProveedor; report.p_IdClaseProveedor.Value = model.IdClaseProveedor; report.p_no_mostrar_en_conciliacion.Value = model.no_mostrar_en_conciliacion; report.p_no_mostrar_saldo_0.Value = model.no_mostrar_saldo_en_0; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; cargar_combos(true); report.RequestParameters = false; ViewBag.Report = report; return(View(model)); }
public ActionResult CXP_008(DateTime?fecha, bool no_mostrar_en_conciliacion = false, bool no_mostrar_saldo_en_0 = false, decimal IdProveedor = 0) { cl_filtros_Info model = new cl_filtros_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), fecha = fecha == null ? DateTime.Now : Convert.ToDateTime(fecha), IdProveedor = IdProveedor, no_mostrar_en_conciliacion = no_mostrar_en_conciliacion, no_mostrar_saldo_en_0 = no_mostrar_saldo_en_0 }; cargar_combos(); CXP_008_Rpt report = new CXP_008_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_fecha.Value = model.fecha; report.p_IdProveedor.Value = model.IdProveedor; report.p_no_mostrar_en_conciliacion.Value = model.no_mostrar_en_conciliacion; report.p_no_mostrar_saldo_0.Value = model.no_mostrar_saldo_en_0; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; report.RequestParameters = false; ViewBag.Report = report; return(View(model)); }
public ActionResult CXP_008(cl_filtros_Info model) { CXP_008_Rpt report = new CXP_008_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_fecha.Value = model.fecha; report.p_IdProveedor.Value = model.IdProveedor; report.p_no_mostrar_en_conciliacion.Value = model.no_mostrar_en_conciliacion; report.p_no_mostrar_saldo_0.Value = model.no_mostrar_saldo_en_0; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; cargar_combos(); report.RequestParameters = false; ViewBag.Report = report; return(View(model)); }
public ActionResult CXP_008() { cl_filtros_Info model = new cl_filtros_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdProveedor = 0 }; cargar_combos(); CXP_008_Rpt report = new CXP_008_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_fecha.Value = model.fecha_fin; report.p_IdProveedor.Value = model.IdProveedor; report.p_no_mostrar_en_conciliacion.Value = model.no_mostrar_en_conciliacion; report.p_no_mostrar_saldo_0.Value = model.no_mostrar_saldo_en_0; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }