protected void RadScheduler1_AppointmentDelete(object sender, AppointmentDeleteEventArgs e) { int CalendarID = int.Parse(e.Appointment.ID.ToString()); BCalendar BobjCalendar = new BCalendar(); BobjCalendar.Delete(CalendarID); }
protected void ScheduleList_AppointmentDelete(object sender, AppointmentDeleteEventArgs e) { var existingProjectDetailActivitySchedule = new UpdateProjectDetailActivityScheduleDTO(); existingProjectDetailActivitySchedule.ProjectDetailActivityScheduleId = Convert.ToInt64(e.Appointment.ID.ToString()); existingProjectDetailActivitySchedule.OperationTypeId = (int)EnumProjectDetailActivityScheduleOperationType.Delete; try { ServiceResult <bool> serviceResult = new ServiceResult <bool>(); var queryString = new Dictionary <string, string>(); var response = ApiHelper.CallSendApiMethod(ApiKeys.ProjectApiUrl, "UpdateProjectDetailActivitySchedule", queryString, existingProjectDetailActivitySchedule); if (!response.IsSuccessStatusCode) { throw new Exception("Hata oluştu!"); } var data = response.Content.ReadAsStringAsync().Result; serviceResult = JsonConvert.DeserializeObject <ServiceResult <bool> >(data); if (serviceResult.ServiceResultType != EnumServiceResultType.Success) { throw new Exception(serviceResult.ErrorMessage); } } catch (Exception ex) { } }
protected void RadScheduler1_AppointmentDelete(object sender, AppointmentDeleteEventArgs e) { if (e.Appointment.Attributes["Annotations"] != "Appointment") { e.Cancel = true; return; } }
protected void EventScheduler_AppointmentDelete(object sender, AppointmentDeleteEventArgs e) { if (Session["User"] != null) { if (Utility.LoggedUserRole == "User" && !e.Appointment.Attributes["BookedBy"].Equals(Utility.LoggedUserEmp)) { e.Cancel = true; ShowErrorMessage("You cannot delete other user's created events."); } } else { e.Cancel = true; ShowErrorMessage("Only logged in user can delete events."); } }
protected void RadScheduler1_AppointmentDelete(object sender, AppointmentDeleteEventArgs e) { string UserID = (string)Session["UserID"].ToString(); //string UserID = "27276"; string CongTy = "LTY"; if (UserID == null) { Response.Redirect("http://portal.footgear.com.vn/"); } else { int ID = int.Parse(e.Appointment.ID.ToString()); dal.XoaLich(UserID, CongTy, ID); RaScheduler_Load1(); } }
public void VaaScheduler_AppointmentDelete(object sender, AppointmentDeleteEventArgs e) { try { var appointmentId = Convert.ToInt16(e.Appointment.ID); if (appointmentId != null) { bool isdeleted = _scheduleManagement.DeleteSchedule(appointmentId); } BindSchedules(); } catch (Exception ex) { //write to Elma ErrorSignal.FromCurrentContext().Raise(ex); } }
protected void radcalendar_AppointmentDelete(object sender, AppointmentDeleteEventArgs e) { int _eid = 0; _eid = e.Appointment.ID.ToString() != "" ? Convert.ToInt32(e.Appointment.ID.ToString()) : 0; /*switch (e.Appointment.Attributes["EventTypeID"].ToString()) * { * case "999": * ach.DeleteActivity(_eid, "MANUAL"); * Appointments.Remove(FindById(e.Appointment.ID.ToString())); * break; * case "7": * case "8": * Application_Database_Helper.InsertEventRecurrence(_eid, null, ""); * Appointments.Remove(FindById(e.Appointment.RecurrenceParentID.ToString())); * break; * }*/ this.radcalendar.Rebind(); }
protected void RadScheduler1_AppointmentDelete(object sender, AppointmentDeleteEventArgs e) { }
/// <summary> /// Handles the OnAppointmentDelete event of the rScheduler control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Telerik.Web.UI.AppointmentDeleteEventArgs"/> instance containing the event data.</param> protected void rScheduler_OnAppointmentDelete(object sender, AppointmentDeleteEventArgs e) { ((List <TaskDurationMap>)ViewState["TaskDurations"]).Remove(((List <TaskDurationMap>)ViewState["TaskDurations"]).Where(tdm => tdm.ID == (Guid)e.Appointment.ID).SingleOrDefault()); BindData(); }
protected void RadScheduler1_AppointmentDelete(object sender, AppointmentDeleteEventArgs e) { ScriptManager.RegisterStartupScript(this, this.GetType(), "", "toastr.success('Event Deleted', 'Success');", true); }
protected void RadScheduler1_AppointmentDelete(object sender, AppointmentDeleteEventArgs e) { e.Cancel = true; }