<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" MaintainScrollPositionOnPostback="true"
    AutoEventWireup="true" EnableEventValidation="false" EnableViewStateMac="false" Inherits="site_HITS_LossAffidavit_Report"
    Title="Brightstar Device Protection: Claim Master" Theme="eMain"   
      CodeBehind="Report.aspx.cs" %>

<%@ Register Src="~/Controls/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/ScriptingHelper.ascx" TagName="ScriptingHelper" TagPrefix="uc" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" TagPrefix="uc" %>
<%@ Register Src="~/Controls/DefaultHeader.ascx" TagName="DefaultHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/CustomSorter.ascx" TagName="CustomSorter" TagPrefix="uc" %>
<%@ Register Src="~/Controls/Claims/ReshipHelperDialogue.ascx" TagPrefix="uc" TagName="ReshipHelperDialogue" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/script/eSetFormControls.js" />
            <asp:ScriptReference Path="~/script/eGridHelper.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <%--    <script src="../../../script/eSetFormControls.js" type="text/javascript"></script>

    <script src="../../../script/eGridHelper.js" type="text/javascript"></script>--%>
    <uc:ScriptingHelper ID="ScriptingHelper1" runat="server" />
    <table width="100%">
        <tr>
            <td>
                <h1>
                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: ClaimsManagement, ClaimsLabel %>" />
                </h1>
            </td>
        </tr>
    </table>
    <uc:DefaultHeader ID="DefaultHeader1" runat="server" />
    <div class="mastersearch">
        <table cellspacing="0" cellpadding="0">
            <tr>
                <td style="padding-right: 0px">
                    <img src="../../../images/Collapse_13x13.jpg" class="showstate" onclick="expandMasterSearch(this, 'm_pnlMasterSearchCriteria')"
                        alt="contract" />
                </td>
                <td width="100%">
                    <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources: Default, LabelSearchCriteria %>" />
                </td>
            </tr>
        </table>
    </div>
    <asp:UpdatePanel runat="server" ID="update" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="m_pnlMasterSearchCriteria" style="background-color: #DBDCDE">
                <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                    <tr>
                        <td align="right" style="width: 150px;">
                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources: ClaimsManagement, LabelClaimIDColon %>" />
                        </td>
                        <td align="left">
                            <asp:TextBox ID="m_txtClaimID" runat="server" ></asp:TextBox>
                            <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender1" runat="server"
                                OnAutoCompleteCallback="SearchClaimIDs" TargetControlID="m_txtClaimID" UpdateMode="Callback"
                                EnableCaching="false" MinimumPrefixLength="2" />
                        </td>
                        <td align="right">
                            <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources: OrganizationManagement, LabelClientColon %>" />
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="m_ddlCarriers" runat="server" AutoPostBack="true">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Literal  ID="Literal5" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberLastName %>" />
                        </td>
                        <td>
                            <asp:TextBox ID="m_txtSubscriberLastName" runat="server"></asp:TextBox>
                            <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender2" runat="server"
                                OnAutoCompleteCallback="SearchLastNames" TargetControlID="m_txtSubscriberLastName"
                                UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" />
                        </td>
                        <td align="right">
                            <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources : HandsetManagement, LabelMDNColon %>"  />
                        </td>
                        <td>
                            <uc1:PhoneNumber ID="m_ucMDN" runat="server" Required="false" />
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources: Default, DateFromLabel %>" />
                        </td>
                        <td>
                            <uc:HITSCalendar ID="m_calDateFrom" runat="server" ValidationName="Date From" />
                        </td>
                        <td align="right">
                            <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources: Default, DateToLabel %>" />
                        </td>
                        <td>
                            <uc:HITSCalendar ID="m_calDateTo" runat="server" ValidationName="Date To" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources: ClaimsManagement, ApplyDateRangeToLabel %>" />                            
                        </td>
                        <td>
                            <asp:DropDownList ID="m_ddlApplyDateRangeTo" runat="server" >
                                <asp:ListItem Text="<%$ Resources: Default, ListItemLoss %>" Value="1"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources: Default, ListItemClaim %>" Value="2"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources: Default, ListItemFulfilled %>" Value="3"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:Literal ID="m_litAccountType" runat="server" Text="<%$ Resources: SubscriberManagement, LabelAccountType %>" />
                        </td>
                        <td>
                            <asp:DropDownList ID="m_ddlAccountType" DataTextField="RefName" DataValueField="ID" runat="server">
                            </asp:DropDownList>
                        </td>
                       
                    </tr>
                </table>
                <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                    <tr>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" nowrap>
                            <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources: ClaimsManagement, LabelClaimTypeColon %>" />
                        </td>
                        <td nowrap>
                            <asp:CheckBoxList ID="m_chkBoxlstClaimType" RepeatColumns="7" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" 
                                OnSelectedIndexChanged="m_chkBoxlstClaimType_SelectedIndexChanged"></asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" nowrap>
                            <asp:Literal ID="Literal36" runat="server" Text="<%$ Resources: ClaimsManagement, ClaimSubTypeLabel %>" />
                        </td>
                        <td nowrap>
                            <asp:CheckBoxList ID="chkBoxListClaimSubType" RepeatColumns="7" runat="server" 
                                RepeatDirection="Horizontal" AutoPostBack="True" DataTextField="RefName" DataValueField="ID">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources: ClaimsManagement, ClaimStatusLabel %>" />
                        </td>
                        <td>
                            <asp:CheckBoxList ID="m_chkBoxlstClaimStatus" runat="server" 
                                RepeatColumns="6" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="m_chkBoxlstClaimStatus_SelectedIndexChanged">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Literal ID="Literal39" runat="server" Text="<%$ Resources: FulfillmentManagement, LabelFulfillmentStatusColon %>"/>
                        </td>
                        <td>
                            <asp:CheckBoxList ID="m_chkBoxlstFulfillmentStatuses" runat="server" 
                                RepeatColumns="6" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="m_chkBoxlstFulfillmentStatuses_SelectedIndexChanged">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Literal ID="Literal38" runat="server" Text="<%$ Resources: FulfillmentManagement, LabelFulfillmentMethodColon %>"/>
                        </td>
                        <td>
                            <asp:CheckBoxList ID="m_chkBoxlstFulfillmentMethods" runat="server" 
                                RepeatColumns="6" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="m_chkBoxlstFulfillmentMethods_SelectedIndexChanged">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources: Default, LabelRecordsPerPageColon %>" />
                        </td>
                        <td>
                            <asp:DropDownList ID="m_ddlPageSize" runat="server">
                                <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources: Default, ListItemAll %>" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
            <eSecuritelHITSControls:MasterSearchCollapsableControl Text="<%$ Resources: Default, ServicePlanFeatureSearchLabel %>"
                runat="server" ID="MasterSearchControl" TargetId="RatePlanFeatureSearchDiv">
            </eSecuritelHITSControls:MasterSearchCollapsableControl>
            <div id="RatePlanFeatureSearchDiv" style="background-color: #DBDCDE">
                <table id="Table1">
                    <tr>
                        <td align="right" style="width: 250px;">
                            <asp:Literal ID="Literal37" runat="server" Text="<%$ Resources: ClaimsManagement, ClicktheboxtoselectyourplanLabel %>" />
                        </td>
                        <td>
                            <eSecuritelHITSControls:MultiSelectExtWarrantyPlansControl runat="server" ID="MultiSelectControl">
                            </eSecuritelHITSControls:MultiSelectExtWarrantyPlansControl>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="mastersearch">
                <table cellspacing="0" cellpadding="0">
                    <tr>
                        <td style="padding-right: 0px">
                            <img id="m_imgSearchCriteria" runat="server" src="../../../images/Collapse_13x13.jpg"
                                class="showstate" onclick="expandMasterSearch(this, 'm_pnlAdditionalCriteria')"
                                alt="contract" />
                        </td>
                        <td width="100%" valign="middle">
                            <asp:Literal ID="m_litAdditionalSearchCriteriaHeader" runat="server" Text="<%$ Resources: Default, AdditionalSearchCriteriaLabel %>" />
                        </td>
                    </tr>
                </table>
            </div>
            <div id="m_pnlAdditionalCriteria" style="<%=AdditionalCriteriaStyle %>">
                <div class="mastersubpanelAddition">
                    <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                        <tr>
                            <td align="right">
                                <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources: HandsetManagement, LabelOriginalESN %>" />
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtOriginalESN" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources: HandsetManagement, LabelNewESN %>" />
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtNewESN" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="Literal15" runat="server" Text="<%$ Resources: ModelManagement, LabelOldModel %>" />
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtOldModel" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Literal ID="Literal16" runat="server" Text="<%$ Resources: ModelManagement, LabelNewModel %>"/>
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtNewModel" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources: ClaimsManagement, ApprovedByLastNameLabel %>" />
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtApprovedBy" runat="server"></asp:TextBox>
                                <SmartAjaxToolkit:SmartAutoCompleteExtender ID="SmartAutoCompleteExtender3" runat="server"
                                    OnAutoCompleteCallback="SearchApprovedByNames" TargetControlID="m_txtApprovedBy"
                                    UpdateMode="Callback" EnableCaching="false" MinimumPrefixLength="2" />
                            </td>
                            <td align="right">
                                <asp:Literal ID="Literal18" runat="server" Text="<%$ Resources: FulfillmentManagement, LabelFulfilledByColon %>" />
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtFulfilledBy" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="Literal35" runat="server" Text="<%$ Resources: Default, LabelCurrentLosses %>" />
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtLosses" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="m_regExLosses" runat="server" ControlToValidate="m_txtLosses"
                                    Display="Dynamic" Text="<%$ Resources:Default, ValidatorText %>" ToolTip="Value must contain ['<' '>' '<=' '>=' '=' ''] followed by an integer. " />
                            </td>
                            <td align="right">
                                <asp:Literal ID="m_litPlanType" runat="server" Text="<%$ Resources: ClaimsManagement, PlanTypeLabel %>" />
                            </td>
                            <td>
                                <asp:TextBox ID="m_txtPlanType" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources: ClaimsManagement, LookUpLabel %>" />
                                &nbsp;<asp:DropDownList ID="m_ddlLookup" runat="server" 
                                    Width="75px">
                                    <asp:ListItem Value="0" Text="MDN" />
                                    <asp:ListItem Value="1" Text="<%$ Resources: HandsetManagement, NewESN %>" />
                                    <asp:ListItem Value="2" Text="<%$ Resources: HandsetManagement, OriginalESN %>" />
                                </asp:DropDownList>
                                :
                            </td>
                            <td>
                                <asp:FileUpload ID="m_btnBrowseLookup" runat="server" ToolTip="<%$ Resources : Default,FileUploadBrowse %>"/><br>
                                <asp:Label ID="m_litLookUp" runat="server"></asp:Label>
                                <asp:HiddenField ID="m_litLookUpHidden" runat="server" />
                            </td>
                            <td align="right">
                                <asp:Literal ID="m_litCallRecording" runat="server" Text="<%$ Resources: CallRecordingManagement, LabelCallRecording %>" />
                            </td>
                            <td>
                                <asp:DropDownList ID="m_ddlCallRecording" runat="server" >
                                    <asp:ListItem Text="<%$ Resources: Default, BothListItem %>" Value="B" />
                                    <asp:ListItem Text="<%$ Resources: Default, YesListItem %>" Value="Y" />
                                    <asp:ListItem Text="<%$ Resources: Default, NoListItem %>" Value="N" />
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                         <td align="right">
                         <asp:Literal ID="m_litClaimConversionStatus" runat="server" Text="<%$ Resources: ClaimsManagement, ClaimConversionStatusLabel %>" />
                       </td>
                        <td>
                          <asp:DropDownList ID="m_ddlClaimConversionStatus" DataTextField="RefName" DataValueField="ID" runat="server">
                         </asp:DropDownList>
                       </td>
                            <td align="right">
                                <asp:Literal ID="litFulfillmentLoc" runat="server" Text="<%$ Resources: FulfillmentManagement, LabelFulfillmentLocationColon %>" />
                            </td>
                            <td>
                                <asp:DropDownList ID="m_ddlFulfillmentLoc" runat="server" Enabled="False" Width="200px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div style="padding-left: 275px">
        <asp:Button ID="m_btnSetFilter" runat="server" Text="<%$ Resources: Default, ButtonSearch %>" CssClass="pagebutton"
            OnClick="m_btnSetFilter_Click" />
        <input id="m_btnClear" type="button" runat="server" value="<%$ Resources: Default, ButtonClear %>" class="pagebutton" />
    </div>
    <asp:Panel ID="m_pnlSearchResults" runat="server">
        <h2>
            <asp:Literal ID="Literal20" runat="server" Text="<%$ Resources: Default, LabelSearchResults %>" />
            <asp:Label ID="m_lblSuccessMessage" runat="server" Visible="False" CssClass="successmessage"/>
        </h2>
    </asp:Panel>
    <asp:Panel ID="m_pnlClaimsGrid" Visible="False" runat="server">
        <h3>
            <asp:Literal ID="Literal21" runat="server" Text="<%$ Resources: ClaimsManagement, LabelClaimTypeSummary %>" />
        </h3>
        <asp:GridView ID="m_gvClaimType" runat="server" AutoGenerateColumns="False" Width="70%">
            <Columns>
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextLost %>" DataField="Lost" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextStolen %>" DataField="Stolen" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextDamaged %>" DataField="Damaged" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextDefective %>" DataField="Defective" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextExtendedWarranty %>" DataField="Warranty" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextMalMEF %>" DataField="MalMEF" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextCIR %>" DataField="CIR" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextReship %>" DataField="Reship" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextNotDetermined %>" DataField="NotDetermined" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextManufacturerWarranty %>" DataField="ManufacturerWarranty" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextReturn %>" DataField="Return" />
            </Columns>
            <RowStyle HorizontalAlign="Right" />
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
        <h3>
            <asp:Literal ID="Literal22" runat="server" Text="<%$ Resources: ClaimsManagement, LabelClaimStatusSummary %>" />
        </h3>
        <asp:GridView ID="m_gvClaimStatus" runat="server" AutoGenerateColumns="False" Width="100%"
            >
            <Columns>
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextNew %>" DataField="New" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextAccepted %>" DataField="Accepted" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextRejected %>" DataField="Rejected" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextInReview %>" DataField="Review" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextCancelled %>" DataField="Cancelled" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextExpired %>" DataField="Expired" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextUpgraded %>" DataField="Upgraded" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextVerificationHold %>" DataField="VerificationHold" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextFARepaired %>" DataField="FaRepaired" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextTotal %>" DataField="Total" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextFulfilledCount %>" DataField="FulfilledCount" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextPercentageFulfilled %>" DataField="PercentageFulfilled" />
            </Columns>
            <RowStyle HorizontalAlign="Right" />
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
        <h3>
            <asp:Literal ID="Literal40" runat="server" Text="<%$ Resources: FulfillmentManagement, LabelFulfillmentMethodSummary %>" />
        </h3>
        <asp:GridView ID="m_gvFulfillmentMethod" runat="server" AutoGenerateColumns="False" Width="70%"
            >
            <Columns>
                <asp:BoundField HeaderText="<%$ Resources: FulfillmentManagement, HeaderTextAdvanceExchange %>" DataField="AdvancedExchange" />
                <asp:BoundField HeaderText="<%$ Resources: ClaimsManagement, InStoreHeaderText %>" DataField="InStore" />
                <asp:BoundField HeaderText="<%$ Resources: ClaimsManagement, PostExchangeHeaderText %>" DataField="PostExchange" />
                <asp:BoundField HeaderText="<%$ Resources: ClaimsManagement, ReimbursmentHeaderText %>" DataField="Reimbursment" />
            </Columns>
            <RowStyle HorizontalAlign="Right" />
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
        <h3>
            <asp:Literal ID="Literal23" runat="server" Text="<%$ Resources: ClaimsManagement, ResultsLabel %>" />
        </h3>
        <uc:ReshipHelperDialogue ID="ucReshipHelperDialogue" runat="server" OnClaimReshiped="ucReshipHelperDialogue_ClaimReshiped"
            OnClaimReshipCancelled="ucReshipHelperDialogue_ClaimReshipCancelled" />
        <cc1:HitsSearchGridView ID="m_gvClaims" runat="server" AutoGenerateColumns="False"
            AllowPaging="True" OnRowDataBound="m_gvClaims_RowDataBound" OnPageIndexChanged="m_gvClaims_PageIndexChanged"
            OnPageIndexChanging="m_gvClaims_PageIndexChanging" OnMenuItemCommand="m_gvClaims_OnMenuItemCommand"
            ShowMenu="True" ShowSelectField="True" ShowSetStatus="True" ShowExportCSVWithSummary="True"
            ShowExportXMLWithSummary="True" ShowActivateMenu="False" ShowDeActivateMenu="False"
            ShowEmailMenu="False" ShowHotlineMenu="False" ShowDeHotlineMenu="False" CustomPagerID="HitsPager1"
            ClientFunctionPrint="window.print();" OnCustomPageIndexChanged="m_gvClaims_PageIndexChanged"
            OnCustomPageIndexChanging="m_gvClaims_PageIndexChanging" AtlasScriptManagerID=""
            ClientFunctionActivateSelected="" ClientFunctionDeActivateSelected="" ClientFunctionDeHotline=""
            ClientFunctionDelete="" ClientFunctionEmailSelected="" ClientFunctionExportSelected=""
            ClientFunctionHotline="" ClientFunctionSetStatus="" 
            CssClassCustomPaging="" CssClassMenu=""
            PropagateActionToChildID="" ShowDeleteMenu="True"
            ShowDeSelectMenu="True" ShowExportCSV="True" ShowExportMenu="True" ShowExportXML="True"
            ShowPrintMenu="True" ShowSelectMenu="True" ShowUnfulfill="True" ShowReship="True"
            Width="100%" AllowToExportAll="False" ClientFunctionDeSelectAllClicked="" 
            ClientFunctionExecute="" ClientFunctionGenerateSelected="" ClientFunctionNew="" 
            ClientFunctionReshipReplacement="" ClientFunctionSelectAllClicked="" 
            ClientFunctionUnfulfill="" ClientFunctionValidate="" ShowExecuteMenu="False" 
            ShowExportXLS="True" ShowGenerate="False" ShowNewMenu="False" 
            ShowSelectMenuChk="False" ShowValidateMenu="False" 
            ShowVerifyModelMapMenu="False">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal24" Text="<%$ Resources: ClaimsManagement, ColumnHeaderClaimID %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csClaimId" SortExpression="ClaimId" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblIsCallRecording" />
                        <asp:LinkButton runat="server" ID="m_lbtnClaimId" OnClick="m_lbtnClaimId_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal50" Text="<%$ Resources: ClaimsManagement, HeaderTextClaimDate %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csClaimDate" SortExpression="ClaimDate" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblClaimDate"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal51" Text="<%$ Resources: ClaimsManagement, NameHeaderText %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csName" SortExpression="Name" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="m_lbtnSubscriberName"
                            OnClick="m_lbtnSubscriberName_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal52" Text="MDN"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csMDN" SortExpression="MDN" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="m_lbtnMDN"
                            OnClick="m_lbtnMDN_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal53" Text="<%$ Resources: ClaimsManagement, ClaimTypeHeaderText %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csClaimType" SortExpression="ClaimType" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblClaimType"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal25" Text="<%$ Resources: ClaimsManagement, ClaimsStatusHeaderText %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csStatus" SortExpression="Status" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblStatus"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="LitSubType" Text="<%$ Resources: ClaimsManagement, SubTypeHeaderText %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="SubTypeSorter" SortExpression="Loss_Sub_Type" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblLossSubType"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal26" Text="<%$ Resources: HandsetManagement, HeaderTextOldESN %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csOldESN" OnSortDescendingClicked="customSorter_SortClicked"
                            OnSortAscendingClicked="customSorter_SortClicked" SortExpression="OldESN"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="m_lbtnOldESN"
                            OnClick="m_lbtnOldESN_Click"></asp:LinkButton>
                        <br />
                        <asp:Label ID="m_lblOldESNHex" runat="server" ></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal27" Text="<%$ Resources: HandsetManagement, LabelOldHandset %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csOldHandset" OnSortDescendingClicked="customSorter_SortClicked"
                            OnSortAscendingClicked="customSorter_SortClicked" SortExpression="OldHandset">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="m_lbtnOldHandset"
                            OnClick="m_lbtnOldHandset_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal28" Text="<%$ Resources: Default, HeaderTextLossDate %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csLossDate" SortExpression=" LossDate" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblLossDate"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal29" Text="<%$ Resources: ClaimsManagement, CoveredSinceHeaderText %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csCoveredSince" SortExpression="CoveredSince"
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblCoveredSince"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal30" Text="<%$ Resources: ClaimsManagement, TermDateHeaderText %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csTermDate" SortExpression="TermDate" OnSortAscendingClicked="customSorter_SortClicked"
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblTermDate"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal31" Text="<%$ Resources: HandsetManagement, HeaderTextNewESN %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csNewESN" OnSortDescendingClicked="customSorter_SortClicked"
                            OnSortAscendingClicked="customSorter_SortClicked" SortExpression="NewESN"></uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="m_lbtnNewESN"
                            OnClick="m_lbtnNewESN_Click"></asp:LinkButton>
                        <br />
                        <asp:Label ID="m_lblNewESNHex" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal32" Text="<%$ Resources: HandsetManagement, HeaderTextNewHandset %>"></asp:Literal><br />
                        <uc:CustomSorter runat="server" ID="m_csNewHandset" OnSortDescendingClicked="customSorter_SortClicked"
                            OnSortAscendingClicked="customSorter_SortClicked" SortExpression="NewHandset">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="m_lbtnNewHandset"
                            OnClick="m_lbtnNewHandset_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal33" Text="<%$ Resources: FulfillmentManagement, HeaderTextFulfilledBy %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csFulfilledBy" OnSortDescendingClicked="customSorter_SortClicked"
                            OnSortAscendingClicked="customSorter_SortClicked" SortExpression="FulfilledBy">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="m_lbtnFulfilledBy"
                            OnClick="m_lbtnFulfilledBy_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal34" Text="<%$ Resources: FulfillmentManagement, HeaderTextFulfilledDate %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csFulfilledDate" SortExpression="FulfilledDate"
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblFulfilledDate"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Label runat="server" Text="<%$ Resources: ClaimsManagement, ServicePlanHeaderText %>" ID="m_lblRatePlanFeaturesHeader"></asp:Label>
                        <br />
                        <uc:CustomSorter runat="server" ID="CustomSorter9" SortExpression="RatePlanFeatures" 
                            OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </HeaderTemplate>
                    <HeaderStyle VerticalAlign="Top" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lblRatePlanFeatures"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal35" Text="<%$ Resources: FulfillmentManagement, HeaderTextFulfillmentMethod %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csFulfillmentMethod" OnSortDescendingClicked="customSorter_SortClicked"
                            OnSortAscendingClicked="customSorter_SortClicked" SortExpression="FulfillmentMethod">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lbFulfillmentMethod"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Literal runat="server" ID="Literal37" Text="<%$ Resources: FulfillmentManagement, HeaderTextFulfillmentStatus %>"></asp:Literal>
                        <br />
                        <uc:CustomSorter runat="server" ID="m_csFulfillmentStatus" OnSortDescendingClicked="customSorter_SortClicked"
                            OnSortAscendingClicked="customSorter_SortClicked" SortExpression="FulfillmentStatus">
                        </uc:CustomSorter>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="m_lbFulfillmentStatus"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerTemplate>
                <cc1:HitsPager ID="HitsPager1" runat="server" GoButtonText="<%$ Resources: Default, GoButtonText %>"/>
            </PagerTemplate>
            <PagerSettings Mode="NumericFirstLast" />
            <RowStyle HorizontalAlign="Left" />
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Top" />
            <EditRowStyle HorizontalAlign="Left" VerticalAlign="Top" />
        </cc1:HitsSearchGridView>
    </asp:Panel>
    <asp:Label ID="m_lblNoClaimsResultsFound" Font-Bold="True" ForeColor="Red" runat="server"
        Visible="False" Text="<%$ Resources: Default, LabelNoResultsFound %>"/>
    <asp:ObjectDataSource ID="odsClaimsDataSource" runat="server" SelectMethod="Select"
        TypeName="ClaimsDataSource" EnablePaging="True" SelectCountMethod="SelectCount">
        <SelectParameters>
            <asp:SessionParameter Name="objClaimSearchCriteria" SessionField="ClaimsData" Type="Object" />
            <asp:ControlParameter ControlID="m_gvClaims" DefaultValue="1" Name="startRowIndex"
                PropertyName="PageIndex" Type="Int32" />
            <asp:Parameter DefaultValue="10" Name="maximumRows" Type="Int32" />
            <asp:SessionParameter Name="ClaimsSortExpression" SessionField="LastClaimsGridViewSortExpression_SessionKey"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>

    <script language="javascript" type="text/javascript">
        function OnCarrierChange(sender, args) {
            var ddlCarrier = $get('<%= m_ddlCarriers.ClientID %>');
            var ddlFulfillmentLoc = $get('<%= m_ddlFulfillmentLoc.ClientID %>');

            if (typeof (allFulfillmentLocs) == 'undefined' || allFulfillmentLocs == null) {
                // This should always have a value... Injected from server
                return;
            }

            var selectedCarrierID = ddlCarrier.options[ddlCarrier.selectedIndex].value;

            if (selectedCarrierID == '0') {
                ddlFulfillmentLoc.length = 0;
                ddlFulfillmentLoc.disabled = true;
                return;
            }

            ddlFulfillmentLoc.length = 0;
            ddlFulfillmentLoc.disabled = false;

            var defaultOption = document.createElement('OPTION');
            ddlFulfillmentLoc.options.add(defaultOption);
            defaultOption.innerText = '';
            defaultOption.value = '0';

            for (var i = 0; i < allFulfillmentLocs.length; i++) {
                if (allFulfillmentLocs[i].DependentID == selectedCarrierID) {
                    var opt = document.createElement('OPTION');
                    ddlFulfillmentLoc.options.add(opt);
                    opt.innerText = allFulfillmentLocs[i].Text;
                    opt.value = allFulfillmentLocs[i].ID;
                }
            }

            ddlFulfillmentLoc.selectedIndex = 0;
        }

        $addHandler($get('<%= m_ddlCarriers.ClientID %>'), 'change', OnCarrierChange);

        if (Sys.WebForms.PageRequestManager.getInstance() != null) {
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        }

        function EndRequestHandler(sender, args) {
            $clearHandlers($get('<%= m_ddlCarriers.ClientID %>'));
            $addHandler($get('<%= m_ddlCarriers.ClientID %>'), 'change', OnCarrierChange);
        }
    </script>

</asp:Content>