PageRenderTime 250ms CodeModel.GetById 246ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/managers/Cancel.aspx.cs

http://github.com/gmhawash/SSR
C# | 35 lines | 31 code | 4 blank | 0 comment | 1 complexity | cd4c3068731bc2940a84bd6f273f2dbc MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Web;
 5using System.Web.UI;
 6using System.Web.UI.WebControls;
 7using TrackerTableAdapters;
 8using System.Web.Security;
 9
10public partial class managers_Default2 : ZaytonaClasses.ZPage
11{
12  private static Guid m_ticketId;
13
14  protected void Page_Load(object sender, EventArgs e)
15  {
16    if (!IsPostBack)
17      m_ticketId = new Guid(Request.QueryString["Id"]);
18
19  }
20  protected void Yes_Click(object sender, EventArgs e)
21  {
22    TicketsBLL bll = new TicketsBLL();
23    bll.canceledBy = (Guid)Membership.GetUser().ProviderUserKey;
24    bll.cancelComment = CancelComment.Text;
25    bll.canceledOn = DateTime.Now;
26    bll.Id = m_ticketId;
27    bll.Update();
28    GoBack();
29  }
30
31  protected void No_Click(object sender, EventArgs e)
32  {
33    GoBack();
34  }
35}