-
Notifications
You must be signed in to change notification settings - Fork 0
/
BookingReport.aspx
83 lines (81 loc) · 4.96 KB
/
BookingReport.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<%@ Page Title="" Language="C#" MasterPageFile="~/BusBookingMaster.Master" AutoEventWireup="true" CodeBehind="BookingReport.aspx.cs" Inherits="BusBookingProject.BookingReport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="container" style="margin-top:6%">
<asp:GridView ID="gdTicketReport" runat="server" EmptyDataText="No Record Found...." AutoGenerateColumns="False" AllowPaging="true" PageSize="20" CssClass=""
Width="100%" Font-Size="12" OnRowCommand="gdTicketReport_RowCommand">
<Columns>
<asp:TemplateField HeaderText="Sr.No">
<ItemTemplate>
<%# Container.DataItemIndex+1 %>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="PNR No" DataField="PNRNo" />
<asp:BoundField HeaderText="Total Booked Tickets" DataField="TotalTickets" />
<asp:BoundField HeaderText="Booking Amount" DataField="TotalAmount" />
<asp:TemplateField HeaderText="Action">
<ItemTemplate>
<asp:LinkButton ID="lnkbtndownloadTicket" runat="server" CommandName="Download Ticket" CommandArgument='<%# Container.DataItemIndex %>'>Download Ticket</asp:LinkButton>
<asp:HiddenField ID="hdnPNRNo" runat="server" Value='<%# Eval("PNRNo") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<div id="ticket" runat="server" visible="false">
<h1 style="font-weight: bold">Online Bus Booking</h1>
<br />
<br />
<h2 style="font-weight: bold">PNR Details</h2>
<div class="table-bordered">
<table class="table-striped" id="tbtPNR" runat="server" style="width: 100%; color: green; font-size: large">
<tr>
<td style="font-weight: bold">PNR No</td>
<td>
<asp:Label ID="lblTransactionNo" runat="server"></asp:Label></td>
</tr>
<tr>
<td style="font-weight: bold">Total Tickets</td>
<td>
<asp:Label ID="lblTotalTickets" runat="server"></asp:Label></td>
</tr>
<tr>
<td style="font-weight: bold">Total Amount</td>
<td>
<asp:Label ID="lblTotalAmount" runat="server"></asp:Label></td>
</tr>
<tr>
<td style="font-weight: bold">Bus Name</td>
<td>
<asp:Label ID="lblBusName" runat="server"></asp:Label></td>
</tr>
</table>
</div>
<br />
<br />
<h2 style="font-weight: bold">Passenger's Details</h2>
<asp:GridView ID="gdPaxDetails" runat="server" EmptyDataText="No Record Found...." AutoGenerateColumns="False" AllowPaging="true" PageSize="25" CssClass="table table-hover table-bordered" Style="margin-top: 5%" Width="100%">
<Columns>
<asp:TemplateField HeaderText="Sr.No">
<ItemTemplate>
<%# Container.DataItemIndex+1 %>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="First Name" DataField="Fname" />
<asp:BoundField HeaderText="Last Name" DataField="Lname" />
<asp:BoundField HeaderText="Contact" DataField="Contact" />
<asp:BoundField HeaderText="SeatNo" DataField="SeatNo" />
<asp:BoundField HeaderText="Travel Date" DataField="TravelDate" />
<asp:BoundField HeaderText="From" DataField="Origin" />
<asp:BoundField HeaderText="To" DataField="Destination" />
<asp:BoundField HeaderText="Boarding Place" DataField="PlaceName" />
</Columns>
</asp:GridView>
<br />
<br />
<p style="text-align: center; font-style: italic; font-size: 10pt">
Thank you for booking Ticket with us,have a pleasant journey!!!!
</p>
</div>
</div>
</asp:Content>