protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { System.Web.UI.HtmlControls.HtmlGenericControl Services = (System.Web.UI.HtmlControls.HtmlGenericControl)Master.FindControl("Li2"); Services.Attributes.Add("class", "active"); long ID = long.Parse(Request.QueryString["Id"]); CommonClassLibrary.CommonDataSet.OrderDetailDataTable collection = new CommonClassLibrary.CommonDataSetTableAdapters.OrderDetailTableAdapter().GetDataByTicketOrder(ID); if (collection.Rows.Count > 0) { foreach (CommonClassLibrary.CommonDataSet.OrderDetailRow item in collection) { CommonClassLibrary.CommonDataSet.UserAccountDataTable collection2 = new CommonClassLibrary.CommonDataSetTableAdapters.UserAccountTableAdapter().GetDataById(item.Customer); foreach (CommonClassLibrary.CommonDataSet.UserAccountRow item2 in collection2) { this.Customer_Label.Text = item2.FirstName + " " + item2.LastName; this.Confirmdatetime_Label.Text = item.CheckInDate.ToString(); } } } getdatarepeater(); getdatarepeater1(); GetDataPrint(); this.Ticket_Label.Text = "DGS - " + ID.ToString(); showbutton(); if (model.ConfirmPayments.Where(x => x.TicketOrder == ID).Count() > 0) { GetPaymentDetail(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { long ID = long.Parse(Request.QueryString["Id"]); CommonClassLibrary.CommonDataSet.OrderDetailDataTable collection = new CommonClassLibrary.CommonDataSetTableAdapters.OrderDetailTableAdapter().GetDataByTicketOrder(ID); if (collection.Rows.Count > 0) { foreach (CommonClassLibrary.CommonDataSet.OrderDetailRow item in collection) { CommonClassLibrary.CommonDataSet.UserAccountDataTable collection2 = new CommonClassLibrary.CommonDataSetTableAdapters.UserAccountTableAdapter().GetDataById(item.Customer); foreach (CommonClassLibrary.CommonDataSet.UserAccountRow item2 in collection2) { this.Customer_Label.Text = item2.FirstName + " " + item2.LastName; this.Confirmdatetime_Label.Text = item.CheckInDate.ToString(); } } } getdatarepeater(); getdatarepeater1(); this.Ticket_Label.Text = "DGS - " + ID.ToString(); showbutton(); } }