Update the UI of the Default page
This commit is contained in:
parent
7288b0d68c
commit
bdb45fa70d
|
@ -8,26 +8,23 @@
|
|||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
</div>
|
||||
<asp:Button ID="ButtonGetFlights" runat="server" OnClick="ButtonGetFlights_Click" style="height: 26px" Text="Get Flights" />
|
||||
<h5>RoomType</h5>
|
||||
<asp:DropDownList ID="DropDownRoomType" runat="server" OnSelectedIndexChanged="DropDownRoomType_SelectedIndexChanged"></asp:DropDownList>
|
||||
<br />
|
||||
<a href="FormRoomType.aspx">Add a room type</a>
|
||||
<br />
|
||||
RoomType<br />
|
||||
<asp:DropDownList ID="DropDownRoomType" runat="server">
|
||||
</asp:DropDownList>
|
||||
<br />
|
||||
<h5>Hotel</h5>
|
||||
<asp:DropDownList ID="DropDownHotel" runat="server" OnSelectedIndexChanged="DropDownHotel_SelectedIndexChanged"></asp:DropDownList>
|
||||
<br />
|
||||
Hotel<br />
|
||||
<asp:TextBox ID="TextBoxHotel" runat="server"></asp:TextBox>
|
||||
<a href="FormHotel.aspx">Add a hotel</a>
|
||||
<br />
|
||||
<br />
|
||||
Availability<br />
|
||||
From<asp:Calendar ID="CalendarFrom" runat="server"></asp:Calendar>
|
||||
<br />
|
||||
To<asp:Calendar ID="CalendarTo" runat="server"></asp:Calendar>
|
||||
<h3>Availability</h3>
|
||||
<h5>From</h5>
|
||||
<asp:Calendar ID="CalendarFrom" runat="server" OnSelectionChanged="CalendarFrom_SelectionChanged"></asp:Calendar>
|
||||
<h5>To</h5>
|
||||
<asp:Calendar ID="CalendarTo" runat="server" OnSelectionChanged="CalendarTo_SelectionChanged"></asp:Calendar>
|
||||
<br />
|
||||
<asp:Button ID="ButtonAddRoom" runat="server" OnClick="ButtonAddRoom_Click" Text="Add Room" />
|
||||
<br />
|
||||
|
|
|
@ -12,20 +12,29 @@ namespace Plattform
|
|||
{
|
||||
public partial class Default: System.Web.UI.Page
|
||||
{
|
||||
public Plattform.AirlineService.AirlineServiceClient service = new Plattform.AirlineService.AirlineServiceClient();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
RoomTypeDB typeDB = new RoomTypeDB();
|
||||
var types = typeDB.GetAllRoomTypes();
|
||||
DropDownRoomType.Items.Add(types.ToString());
|
||||
}
|
||||
|
||||
protected void ButtonGetFlights_Click(object sender, EventArgs e)
|
||||
protected void DropDownRoomType_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
FlightDB dataccess = new FlightDB();
|
||||
|
||||
}
|
||||
|
||||
protected void DropDownHotel_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void CalendarFrom_SelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected void CalendarTo_SelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
protected void ButtonAddRoom_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
|
|
@ -21,15 +21,6 @@ namespace Plattform {
|
|||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// ButtonGetFlights control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button ButtonGetFlights;
|
||||
|
||||
/// <summary>
|
||||
/// DropDownRoomType control.
|
||||
/// </summary>
|
||||
|
@ -40,13 +31,13 @@ namespace Plattform {
|
|||
protected global::System.Web.UI.WebControls.DropDownList DropDownRoomType;
|
||||
|
||||
/// <summary>
|
||||
/// TextBoxHotel control.
|
||||
/// DropDownHotel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox TextBoxHotel;
|
||||
protected global::System.Web.UI.WebControls.DropDownList DropDownHotel;
|
||||
|
||||
/// <summary>
|
||||
/// CalendarFrom control.
|
||||
|
|
Loading…
Reference in New Issue