<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" CodeBehind="CustomerTicketBookin.aspx.cs" Inherits="PirTickets.CustomerTicketBookin" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <h2>Book in New Repair</h2>
    <table cellpadding="2" border="0">
        <tr>
            <td>Date Received:</td>
            <td>           </td>
            <td colspan="4">
                <asp:Label ID="lblDate" runat="server" Text="Label"></asp:Label>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>Customer:</td>
            <td>          </td>
            <td colspan="4">
                <asp:Label ID="lblCustomer" runat="server" Text="Label"></asp:Label>
            </td>
            <td></td>
        </tr>
         <tr>
            <td colspan="6"><h6>Equipment Details - </h6></td>
            <td></td>
        </tr>
 
 
         <tr>
            <td valign="top">Manufacturer Name:</td>
            <td></td>
            <td colspan="4">
              <asp:UpdatePanel ID="UpdatePanel1" runat="server">
               <ContentTemplate>
                <asp:DropDownList ID="ddManufacturer" runat="server" 
                    DataSourceID="SqlDataManufacturer" DataTextField="manufacturer" 
                    DataValueField="id" 
                    onselectedindexchanged="ddManufacturer_SelectedIndexChanged" 
                       AutoPostBack="True">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataManufacturer" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:PirTickets %>" 
                    SelectCommand="SELECT [id], [manufacturer] FROM [Manufacturers] order by [manufacturer]">
                </asp:SqlDataSource>
                </ContentTemplate>
                </asp:UpdatePanel>
             </td>
            <td></td>
        </tr>
         <tr>
            <td valign="top">Unlisted Manufacturer:</td>
            <td>&nbsp;</td>
            <td colspan="4">
                <asp:TextBox ID="txtOtherMan" runat="server" MaxLength="50"></asp:TextBox>
             </td>
            <td>&nbsp;</td>
        </tr>
         <tr>
            <td valign="top">Model:<br />
             </td>
            <td></td>
            <td colspan="4">                
            <asp:UpdatePanel ID="UpdatePanel6" runat="server">
               <ContentTemplate>
                <asp:DropDownList ID="DDLModel" runat="server" DataSourceID="SqlDataModel" 
                    DataTextField="ModelName" DataValueField="modelid" 
                       onselectedindexchanged="DDLModel_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataModel" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:PirTickets %>" 
                    SelectCommand="SELECT [modelid], [ModelName] FROM [Models] WHERE ([manufacturerID] = @manufacturerID) order by [ModelName]">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddManufacturer" Name="manufacturerID" 
                            PropertyName="SelectedValue" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
                </ContentTemplate>
                </asp:UpdatePanel></td>
            <td></td>
        </tr> 
         <tr>
            <td valign="top">Unlisted Model:</td>
            <td>&nbsp;</td>
            <td colspan="4"><asp:TextBox ID="TxtModelNew" MaxLength="50" runat="server" 
                    Width="230px" /></td>
            <td>&nbsp;</td>
        </tr> 
        <tr>
            <td valign="top">Serial Number:</td>
            <td>&nbsp;</td>
            <td colspan="4">  <asp:UpdatePanel ID="UpdatePanel2" runat="server">
               <ContentTemplate>
                <asp:TextBox ID="txtSerial" runat="server" MaxLength="50" 
                   Width="146px" AutoPostBack="True"></asp:TextBox>
                    </ContentTemplate>
                    </asp:UpdatePanel>
            </td>  <td>&nbsp;</td></tr> 
        <tr>
            <td valign="top">Send to Branch:</td>
                  <td>  &nbsp;</td>
                    <td colspan="4">
                    <asp:DropDownList ID="ddSites" runat="server" DataSourceID="SqlDataSites" 
                    DataTextField="sitename" DataValueField="id">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSites" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:PirTickets %>" 
                    SelectCommand="SELECT [id], [sitename] FROM [sites]"></asp:SqlDataSource></td>
                    <td>
                        &nbsp;</td>
        </tr>
                  
        <tr>
            <td valign="top">External Ref:</td>
                  <td>  &nbsp;</td>
                    <td colspan="4">
                        <asp:TextBox ID="txtref" runat="server" MaxLength="150" Width="431px"></asp:TextBox>
            </td>
                    <td>
                        &nbsp;</td>
        </tr>
                  
        <tr>
            <td valign="top">Equipment Description:</td>
            <td></td>
            <td colspan="4">
                <telerik:RadTextBox ID="TxtEquipmentDescription" Runat="server" Columns="50" 
                    Rows="10" TextMode="MultiLine">
                </telerik:RadTextBox>
            </td>
            <td></td>
        </tr>
        <tr>
            <td valign="top">Problem Description:</td>
            <td></td>
            <td colspan="4">
                <telerik:RadTextBox ID="TxtProblemDescription" Runat="server" Columns="50" 
                    Rows="10" TextMode="MultiLine">
                </telerik:RadTextBox>
            </td>
            <td></td>
        </tr>
         <tr>
            <td>&nbsp;</td>
            <td></td>
            <td colspan="4">
                <asp:SqlDataSource ID="SqlDataShipping" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:PirTickets %>" 
                    SelectCommand="SELECT [ID], [ShipMethod], [ShippingCost] FROM [shipvia]">
                </asp:SqlDataSource>
             </td>
            <td></td>
        </tr>
        <tr>
            <td>Preferred Shipping:</td>
            <td></td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                <ContentTemplate>
            <asp:DropDownList ID="ddShipVia" MaxLength="50" runat="server" 
                    DataSourceID="SqlDataShipping" DataTextField="ShipMethod" 
                    DataValueField="ID" AutoPostBack="True" 
                        onselectedindexchanged="TxtShipVia_SelectedIndexChanged" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td><asp:UpdatePanel ID="UpdatePanel4" runat="server">
                <ContentTemplate>
                <asp:Label ID="lblCourier" runat="server" Text="Courier Name"></asp:Label>
                </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td><asp:UpdatePanel ID="UpdatePanel5" runat="server">
                <ContentTemplate>
                <asp:TextBox ID="txtCourier" runat="server" MaxLength="50"></asp:TextBox>
                </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td>&nbsp;</td>
            <td></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td><asp:UpdatePanel ID="UpdatePanel7" runat="server">
                <ContentTemplate>
                <asp:Label ID="lblShipping" runat="server" Text="Shipping Time"></asp:Label>
                </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td><asp:UpdatePanel ID="UpdatePanel8" runat="server">
                <ContentTemplate>
                <asp:TextBox ID="txtShipping" runat="server" MaxLength="20"></asp:TextBox>
                </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td><asp:UpdatePanel ID="UpdatePanel9" runat="server">
                <ContentTemplate>
                <asp:Label ID="lblTracking" runat="server" Text="Tracking No."></asp:Label>
                </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td><asp:UpdatePanel ID="UpdatePanel10" runat="server">
                <ContentTemplate>
                <asp:TextBox ID="txtTracking" runat="server"></asp:TextBox>
                </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblBag" runat="server" Text="With Laptop Bag:"></asp:Label>
            </td>
            <td></td>
            <td colspan="4"><asp:CheckBox ID="CbxWithBezel"  runat="server" /></td>
            <td></td>
        </tr>

        <tr>
            <td>
                <asp:Label ID="lblCharger" runat="server" Text="With Charger:"></asp:Label>
            </td>
            <td></td>
            <td colspan="4"><asp:CheckBox ID="CbxWithPowerCord"  runat="server" /></td>
            <td></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblBatt" runat="server" Text="With Battery:"></asp:Label>
            </td>
            <td></td>
            <td colspan="4"><asp:CheckBox ID="CbxWithSignalCable"  runat="server" /></td>
            <td></td>
        </tr>
        <tr>
            <td>Warranty Work:</td>
            <td></td>
            <td colspan="4"><asp:CheckBox ID="CbxWarrantyWork"  runat="server" 
                    oncheckedchanged="CbxWarrantyWork_CheckedChanged" /></td>
            <td></td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblWarranty" runat="server" Text="Warranty Expires:"></asp:Label>
            </td>
            <td></td>
            <td colspan="4">
                <telerik:raddatepicker ID="dpWarranty" Runat="server" Culture="en-GB">
                </telerik:raddatepicker>
            </td>
            <td></td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="4">
                &nbsp;</td>
            <td>&nbsp;</td>
        </tr>
       <tr>
            <td colspan="2"></td>
            <td colspan="5">
                <asp:Button ID="BtnUpdate"  runat="server" Text="Submit" onclick="BtnUpdate_Click" />&nbsp;&nbsp;
                <asp:Button ID="BtnCancel" CausesValidation="false" runat="server" Text="Cancel" onclick="BtnCancel_Click" />&nbsp;&nbsp;
                </td>
        </tr>
    </table>
<br />
</asp:Content>
