private void BindSchedule(ScheduleCalendar Cale, int IDSala)
        {
            try
            {
                //Reunion objRes = new Reunion();
                ////Cale.DataSource = objRes.ObtenerReservasRec(IDSala, Cale.StartDate, Cale.StartDate.AddDays(7));
                ////Cale.DataBind();

                //DataSet ds = objRes.ObtenerReservasRec(IDSala, Cale.StartDate, Cale.StartDate.AddDays(7));

                DataSet ds = LicenciaWebex.ObtenerReservas(IDSala, Cale.StartDate, Cale.StartDate.AddDays(7));
                Cale.DataSource = ds;
                if (ds.Tables[0].Rows.Count == 0)
                {
                    DateTime dFecVacia = Fechas.crearDateTime("01/01/2000");
                    ds.Tables[0].Rows.Add(new object[5] {
                        -1, "", dFecVacia, dFecVacia, ""
                    });
                }
                Cale.DataBind();
            }
            catch (Exception ex)
            {
                sErrores += Errores.mostrarError("Error al cargar los datos de las reservas:", ex);
            }
        }
 private void BindSchedule(ScheduleCalendar Cale, int idFicepi)
 {
     try
     {
         DataSet ds = PLANIFAGENDA.CatalogoPlanificacion(idFicepi, Cale.StartDate, Cale.StartDate.AddDays(7));
         Cale.DataSource = ds;
         if (ds.Tables[0].Rows.Count == 0)
         {
             DateTime dFecVacia = Fechas.crearDateTime("01/01/2000");
             ds.Tables[0].Rows.Add(new object[4] {
                 -1, "", dFecVacia, dFecVacia
             });
         }
         Cale.DataBind();
         ds.Dispose();
     }
     catch (Exception ex)
     {
         Master.sErrores = Errores.mostrarError("Error al cargar los datos de la agenda:", ex);
     }
 }