add a form for a RoomType and a Hotel

This commit is contained in:
Andreas Zweili 2018-08-23 21:20:56 +02:00
parent 02cf835575
commit 89f57ccbb7
8 changed files with 258 additions and 0 deletions

View File

@ -12,6 +12,7 @@
</div>
<asp:Button ID="ButtonGetFlights" runat="server" OnClick="ButtonGetFlights_Click" style="height: 26px" Text="Get Flights" />
<br />
<a href="FormRoomType.aspx">Add a room type</a>
<br />
RoomType<br />
<asp:DropDownList ID="DropDownRoomType" runat="server">
@ -20,6 +21,7 @@
<br />
Hotel<br />
<asp:TextBox ID="TextBoxHotel" runat="server"></asp:TextBox>
<a href="FormHotel.aspx">Add a hotel</a>
<br />
<br />
Availability<br />

View File

@ -0,0 +1,23 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormHotel.aspx.cs" Inherits="Plattform.FormHotel" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<h1>Add a new hotel</h1>
<h5>Name</h5>
<asp:TextBox ID="TextBoxHotelName" runat="server" OnTextChanged="TextBoxHotelName_TextChanged"></asp:TextBox>
<h5>Zip Code</h5>
<asp:TextBox ID="TextBoxZipCode" runat="server" OnTextChanged="TextBoxZipCode_TextChanged"></asp:TextBox>
<h5>City</h5>
<asp:TextBox ID="TextBoxCityName" runat="server" OnTextChanged="TextBoxCityName_TextChanged"></asp:TextBox>
<br />
<br />
<asp:Button ID="ButtonAddHotel" runat="server" Text="Add Hotel" OnClick="ButtonAddHotel_Click" />
</form>
</body>
</html>

View File

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Plattform
{
public partial class FormHotel : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void TextBoxHotelName_TextChanged(object sender, EventArgs e)
{
}
protected void TextBoxZipCode_TextChanged(object sender, EventArgs e)
{
}
protected void TextBoxCityName_TextChanged(object sender, EventArgs e)
{
}
protected void ButtonAddHotel_Click(object sender, EventArgs e)
{
}
}
}

View File

@ -0,0 +1,60 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Plattform {
public partial class FormHotel {
/// <summary>
/// form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// TextBoxHotelName 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 TextBoxHotelName;
/// <summary>
/// TextBoxZipCode 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 TextBoxZipCode;
/// <summary>
/// TextBoxCityName 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 TextBoxCityName;
/// <summary>
/// ButtonAddHotel 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 ButtonAddHotel;
}
}

View File

@ -0,0 +1,23 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormRoomType.aspx.cs" Inherits="Plattform.FormRoomType" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<h1>Add a new room type</h1>
<h5>Name</h5>
<asp:TextBox ID="TextBoxRoomType" runat="server" OnTextChanged="TextBoxRoomType_TextChanged"></asp:TextBox>
<h5>Capacity</h5>
<asp:TextBox ID="TextBoxCapacity" type="number" runat="server" OnTextChanged="TextBoxCapacity_TextChanged"></asp:TextBox>
<h5>Intentory</h5>
<asp:TextBox ID="TextBoxInventory" runat="server" OnTextChanged="TextBoxInventory_TextChanged"></asp:TextBox>
<br />
<br />
<asp:Button ID="ButtonAddRoomType" runat="server" Text="Add Room Type" OnClick="ButtonAddRoomType_Click" />
</form>
</body>
</html>

View File

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Plattform
{
public partial class FormRoomType: System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void TextBoxRoomType_TextChanged(object sender, EventArgs e)
{
}
protected void TextBoxCapacity_TextChanged(object sender, EventArgs e)
{
}
protected void TextBoxInventory_TextChanged(object sender, EventArgs e)
{
}
protected void ButtonAddRoomType_Click(object sender, EventArgs e)
{
}
}
}

View File

@ -0,0 +1,60 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Plattform {
public partial class FormRoomType {
/// <summary>
/// form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// TextBoxRoomType 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 TextBoxRoomType;
/// <summary>
/// TextBoxCapacity 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 TextBoxCapacity;
/// <summary>
/// TextBoxInventory 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 TextBoxInventory;
/// <summary>
/// ButtonAddRoomType 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 ButtonAddRoomType;
}
}

View File

@ -109,7 +109,9 @@
</None>
<Content Include="Global.asax" />
<Content Include="Default.aspx" />
<Content Include="FormHotel.aspx" />
<Content Include="PlattformService.svc" />
<Content Include="FormRoomType.aspx" />
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
@ -143,6 +145,13 @@
<Compile Include="Default.aspx.designer.cs">
<DependentUpon>Default.aspx</DependentUpon>
</Compile>
<Compile Include="FormHotel.aspx.cs">
<DependentUpon>FormHotel.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="FormHotel.aspx.designer.cs">
<DependentUpon>FormHotel.aspx</DependentUpon>
</Compile>
<Compile Include="IPlattformService.cs" />
<Compile Include="Models\Airline.cs" />
<Compile Include="Models\Airport.cs" />
@ -160,6 +169,13 @@
<DependentUpon>PlattformService.svc</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="FormRoomType.aspx.cs">
<DependentUpon>FormRoomType.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="FormRoomType.aspx.designer.cs">
<DependentUpon>FormRoomType.aspx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />