protected void Page_Load(object sender, EventArgs e) { Helpers.HelperClass_Queue hcq = new Helpers.HelperClass_Queue(); Guid queueID = Guid.Parse(Request.QueryString["id"]); Queue q = hcq.GetQueue(queueID); if (!hcq.IsActive(q)) this.divAdminOptions.Visible = false; }
protected void btnQueueSelect_Click(object sender, EventArgs e) { Helpers.HelperClass_Queue hcq = new Helpers.HelperClass_Queue(); //List<Queue> lq = new List<Queue>(); // //lq.Add(hcq.GetQueue(Guid.Parse(this.DropDownList_Queues.SelectedItem.Value))); //this.DetailsView_Queue.DataSource = lq; //this.DetailsView_Queue.DataBind(); this.Response.Redirect(Page.ResolveUrl("~/queues/ShowWizard.aspx?queueId=" + this.DropDownList_Queues.SelectedItem.Value)); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Helpers.HelperClass_Queue hcq = new Helpers.HelperClass_Queue(); MembershipUser u = Membership.GetUser(User.Identity.Name); this.DropDownList_Queues.DataSource = hcq.GetQueues((Guid)Membership.GetUser().ProviderUserKey); this.DropDownList_Queues.DataValueField = "Queue_ID"; this.DropDownList_Queues.DataTextField = "Queue_Name"; this.DropDownList_Queues.DataBind(); this.QueueList.Visible = (this.DropDownList_Queues.Items.Count > 0); this.NoQueue.Visible = !(this.DropDownList_Queues.Items.Count > 0); } }
private void ProcessTicket(bool isCancel) { string qID = Request.QueryString["id"]; try { if (!string.IsNullOrEmpty(qID)) { Guid qGUI = Guid.Parse(qID); Helpers.HelperClass_Queue hcq = new Helpers.HelperClass_Queue(); hcq.ValidateCurrentTicket(qGUI, isCancel); } } catch (Exception ex) { this.divAdminOptions.InnerText = ex.Message; } }
protected void btnQueueDisable_Click(object sender, EventArgs e) { Helpers.HelperClass_Queue hcq = new Helpers.HelperClass_Queue(); hcq.DisableQueue(Guid.Parse(this.DropDownList_Queues.SelectedItem.Value)); }