コード例 #1
0
    protected void DayPilotCalendar1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e)
    {
        cSchemeReservation scheme = new cSchemeReservation();
        dataACC            dacc   = new dataACC();

        scheme          = dacc.getDataOnScheme(Convert.ToInt16(e.Id));
        tb.Text         = scheme.InformationBox.ToString();
        tb1.Text        = scheme.SchemeStartDate.ToString();
        tb2.Text        = scheme.SchemeEndDate.ToString();
        tb3.Text        = scheme.ArtistName.ToString();
        tbSchemaId.Text = scheme.SchemeID.ToString();


        if (scheme.ReservationID != 0)
        {
            btnSubmit.Enabled = false;
        }
        else if (scheme.TimeType == 2)
        {
            btnSubmit.Enabled = false;
        }
        else
        {
            btnSubmit.Enabled = true;
        }
    }
コード例 #2
0
    protected void DayPilotScheduler1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e)
    {
        LoadResources();
        DayPilotScheduler1.DataSource = DbGetEvents(DayPilotScheduler1.StartDate, DayPilotScheduler1.Days);           //DbSelectEvents(DayPilotScheduler1.StartDate, DayPilotScheduler1.EndDate.AddDays(1));
        DayPilotScheduler1.DataBind();

        UpdatePanelScheduler.Update();
    }
コード例 #3
0
 protected void DayPilotScheduler1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e)
 {
     setDataSourceAndBind();
     DayPilotScheduler1.UpdateWithMessage(String.Format("Event {0} clicked.", e.Id));
     //throw new Exception("ScrollX: " + DayPilotScheduler1.ScrollX);
 }
コード例 #4
0
 protected void DayPilotScheduler1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e)
 {
     setDataSourceAndBind();
     DayPilotScheduler1.Update(String.Format("Event {0} clicked.", e.Id));
 }