<%@ Page Language="C#" MasterPageFile="~/masterpages/eClaimWizard.master" MaintainScrollPositionOnPostback="true" AutoEventWireup="True" Inherits="site_HITS_Claims_Wizard_SelectSubscriber" Title="Claims Wizard - Step 1, 2 - Select Subscriber" Culture="auto" UICulture="auto" Theme="eMain" Codebehind="SelectSubscriber.aspx.cs" %>
<%@ Register Src="~/Controls/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="uc1" %>
<%@ Register Src ="~/Controls/PopupWindow.ascx" TagName = "PopupWindow" TagPrefix = "uc" %>
<%@ Register src="~/Controls/ClaimHistoryPopupWindow.ascx" tagname="ClaimHistoryPopupWindow" tagprefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" Runat="Server">
<uc:PopupWindow ID = "ucPopupWindow" runat = "server" />
<uc:ClaimHistoryPopupWindow ID="ucClaimHistoryPopupWindow" runat="server" OnClosePressed="ucClaimHistoryPopupWindow_ClosePressed"/>

<div align="center">
    <%--<asp:Button ID="m_btnEscalation" runat="server"  Text = "Escalation" CssClass = "pagebuttonClaimWizard" Width="100px"/>--%>
    <input id="m_btnEscalation" type="button" runat="server" value="<%$ Resources: EscalationManagement, ButtonEscalation %>"  visible="false"/>
</div>
    <table>
        <tr>
            <td align="right">
                <asp:Localize ID="Localize1" runat="server" Text="<%$ Resources: HandsetManagement, LabelEnterMDNColon %>" EnableViewState="false" />
            </td>
            <td>
                <uc1:PhoneNumber ID="ucMDN" PhoneNumberTextBox-Width="200px" runat="server" Required="false" EnableViewState="false" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Localize ID="Localize2" runat="server" EnableViewState="false" Text="<%$ Resources: OrganizationManagement, LabelClientColon %>" />
            </td>
            <td>
                <asp:DropDownList ID="ddlOrganization" Width="212px" runat="server" EnableViewState="true" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Localize ID="Localize4" runat="server" EnableViewState="false" Text="<%$ Resources: SubscriberManagement, LabelFirstName %>" />
            </td>
            <td>
                <asp:TextBox ID="txtFirstName" runat="server" EnableViewState="false" Width="200px" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Localize ID="Localize3" runat="server" EnableViewState="false" Text="<%$ Resources: SubscriberManagement, LabelLastName %>" />
            </td>
            <td>
                <asp:TextBox ID="txtLastName" runat="server" EnableViewState="false" Width="200px" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="left">
                <asp:Button ID = "btnFind" runat = "server" EnableViewState = "false" OnClick = "btnFind_Clicked" Text = "<%$ Resources: Default, ButtonFind %>" CssClass = "pagebuttonClaimWizard" />  
            </td>
        </tr>
    </table>     
    <span style="padding-left:5px;">
        <asp:Label ID = "lblNotAllRecordsShown" runat = "server" Visible = "False" Text = "<%$ Resources: Default, LabelOnlythefirst100recordshavebeenshown %>" ForeColor = "Red" />
    </span>    
    
    <asp:Panel ID = "pnlSubscriberResults" runat = "server" Visible = "False" >
        <hr />
        <asp:Label ID = "lblNoResultsFound" runat = "server" EnableViewState = "false" Text = "<%$ Resources: Default, LabelNoResultsFound %>" Font-Bold="True" ForeColor="Red" Visible = "False"/>    
        <asp:GridView ID = "grdSubscribers" runat = "server" Width = "100%" OnRowDataBound = "grdSubscribers_RowDataBound" AutoGenerateColumns = "False" >
            <Columns>            
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button ID = "btnSelect" runat = "server" OnClick = "btnSelect_Click" CommandName = "Select"  Text = "<%$ Resources: Default, ButtonSelect %>" CommandArgument = '<%# Eval("SubscriberId") %>' CausesValidation = "False" />
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:BoundField DataField = "CarrierName" HeaderText="<%$ Resources: OrganizationManagement, LabelClient %>" />                    
                <asp:BoundField DataField = "MDN" HeaderText = "<%$ Resources: HandsetManagement, HeaderTextMDN %>" >
                    <ItemStyle Wrap="False" />
                </asp:BoundField>
                <asp:BoundField DataField = "FirstName" HeaderText = "<%$ Resources: SubscriberManagement, HeaderTextFirstName %>" />
                <asp:BoundField DataField = "LastName" HeaderText = "<%$ Resources: SubscriberManagement, HeaderTextLastName %>" />
                <asp:BoundField DataField = "ModelName" HeaderText = "<%$ Resources: ModelManagement, HeaderTextMakeModel %>" />            
                 <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, CoverageEffectiveHeaderText %>">
                    <ItemTemplate>
                        <asp:Label ID="m_lblCoverageEffectiveDate" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>      
                <asp:BoundField DataField = "CurrentLosses" HeaderText = "<%$ Resources: Default, HeaderTextCurrentLosses %>" />
                <asp:BoundField DataField = "TotalLosses" HeaderText = "<%$ Resources: Default, LossesHeaderText %>" />
                <asp:BoundField DataField = "Active" HeaderText = "<%$ Resources: Default, HeaderTextActive %>" />
            </Columns>
            <RowStyle HorizontalAlign = "Left" />
            <HeaderStyle HorizontalAlign = "Center" />
        </asp:GridView>    
    </asp:Panel>

</asp:Content>

