<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" CodeBehind="TicketsbyEmployee.aspx.cs" Inherits="PirTickets.TicketsbyEmployee" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
       <h2> Repair Tickets for Employee -
        <asp:Label ID="lblEmpName" runat="server" Text="Label"></asp:Label></h2>
    </p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateSelectButton="True" 
        onselectedindexchanged="GridView1_SelectedIndexChanged" Width="700px" 
    CellPadding="4" ForeColor="#333333" AllowPaging="True" AllowSorting="True" 
        AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
        ShowFooter="True" DataKeyNames="OrderID" 
        onpageindexchanged="GridView1_PageIndexChanged" 
        onprerender="GridView1_PreRender" 
    EmptyDataText="No Repairs to Display">
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <Columns>
            <asp:BoundField DataField="OrderID" HeaderText="ID" ReadOnly="True" 
                SortExpression="OrderID" />
            <asp:BoundField DataField="manufacturer" HeaderText="Make" 
                SortExpression="manufacturer" />
            <asp:BoundField DataField="ModelName" HeaderText="Model" 
                SortExpression="ModelName" />
            <asp:BoundField DataField="Received" HeaderText="Received" ReadOnly="True" 
                SortExpression="Received" />
            <asp:BoundField DataField="status_name" HeaderText="Status" 
                SortExpression="status_name" />
            <asp:BoundField DataField="SerialNumber" HeaderText="Serial" 
                SortExpression="SerialNumber" />
            <asp:CheckBoxField DataField="UneconomicalToRepair" HeaderText="BER" 
                SortExpression="UneconomicalToRepair" />
            <asp:BoundField DataField="externalref" HeaderText="Ref" 
                SortExpression="externalref" />
        </Columns>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:PirTickets %>" 
        SelectCommand="SELECT [OrderID], [manufacturer], [ModelName], [Received], [status_name], [SerialNumber],RepairCompleted, [UneconomicalToRepair],[ExternalRef] FROM [vwRepairsbyEmployees] WHERE ([AssignedTechnician] = @AssignedTechnician)">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="AssignedTechnician" 
                QueryStringField="empid" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <table><tr><td>
                    <asp:RadioButtonList ID="rbComplete" runat="server" 
                onselectedindexchanged="rbComplete_SelectedIndexChanged" 
                RepeatDirection="Horizontal" AutoPostBack="true">
                        <asp:ListItem Value="1">Completed</asp:ListItem>
                        <asp:ListItem Selected="True" Value="2">In Progress</asp:ListItem></asp:RadioButtonList></td></tr></table>
    <br />
    <asp:Button ID="btBack" runat="server" Text="Back" onclick="btBack_Click" 
        Width="109px" />
</asp:Content>
