public ActionResult CXC_005() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdCliente = 0, IntArray = new int[] { Convert.ToInt32(SessionFixed.IdSucursal) } }; cargar_cliente_contacto(model); cargar_sucursal_check(model.IdEmpresa, model.IntArray); CXC_005_Rpt report = new CXC_005_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.IntArray = model.IntArray; report.p_IdCliente.Value = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente); report.p_fecha_corte.Value = model.fecha_corte; report.p_mostrarSaldo0.Value = model.mostrarSaldo0; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_005(cl_filtros_facturacion_Info model) { CXC_005_Rpt report = new CXC_005_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "CXC_005"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion cargar_cliente_contacto(model); report.IntArray = model.IntArray; report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente); report.p_fecha_corte.Value = model.fecha_corte; report.p_Idtipo_cliente.Value = model.Idtipo_cliente; report.p_mostrarSaldo0.Value = model.mostrarSaldo0; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; cargar_sucursal_check(model.IdEmpresa, model.IntArray); ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_005(cl_filtros_facturacion_Info model) { CXC_005_Rpt report = new CXC_005_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente); report.p_IdContacto.Value = model.IdClienteContacto; report.p_fecha_corte.Value = model.fecha_corte; report.p_mostrarSaldo0.Value = model.mostrarSaldo0; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; cargar_cliente_contacto(model); ViewBag.Report = report; return(View(model)); }