<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true"  Inherits="site_HITS_Loader_Detail" Title="Brightstar Device Protection: Loader Detail"
    Theme="eMain"  Culture="auto" UICulture="auto" Codebehind="Detail.aspx.cs" %>

<%@ Register Src="~/Controls/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ChildHeader.ascx" TagName="ChildHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ScriptingHelper.ascx" TagName="ScriptingHelper" TagPrefix="uc" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" TagPrefix="uc" %>
<%@ Register Src="~/Controls/CustomSorter.ascx" TagName="CustomSorter" TagPrefix="uc" %>
<%@ Register Src="~/Controls/LoaderDetail/GridOperator.ascx" TagName="GridOperatorHelper" TagPrefix="uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">

    <script src="../../../script/eSetFormControls.js" type="text/javascript"></script>
    <script src="../../../script/eGridHelper.js" type="text/javascript"></script>
 
    <uc:ScriptingHelper ID="ScriptingHelper1" runat="server" />
    <!-------------------------------Page Heading---------------------------------------->
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <h1>
        <asp:Literal ID="m_litPageHeader" runat="server" Text="<%$ Resources: AdministrationManagement, LabelLoaderDetail %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>   
    <!-------------------------------HEADER UC---------------------------------------->
    <%--<uc:ChildHeader ID="ChildHeader1" runat="server" />--%>
     <!---------------------------------------------------------------------------------->
    <div id="m_pnlHeaderMasterSearchCriteria" runat="server" class="mastersearch">
        <img src="../../../images/Collapse_13x13.jpg" class="showstate" onclick="expandMasterSearch(this, 'm_pnlMasterSearchCriteria')"
            alt="contract" />
        <asp:Literal ID = "m_litSearch" runat = "server" Text = "<%$ Resources: Default, LabelSearchCriteria %>" />       
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td width="25%" align=center style="height: 15px">
                
            </td>           
            <td width="50%" align=center style="height: 15px">
                <asp:Label ID="m_lblFileName" runat="server" Text="" />
            </td>
            <td align=right style="height: 15px">
                <asp:Literal ID="m_lblCompanyName" runat="server" Text="" />
            </td>
        </tr>       
        </table>     
    </div>
    <%--<table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td width="25%" align=center style="height: 22px">
                
            </td>           
            <td width="50%" align=center style="height: 22px">
                <asp:Label ID="m_lblFileName" runat="server" Text="" />
            </td>
            <td align=right style="height: 22px">
                <asp:Literal ID="m_lblCompanyName" runat="server" Text="" />
            </td>
        </tr>       
     </table>   --%>
 
<!-----------------------------------TABLE 1----------------------------------------->
  <div id="m_pnlMasterSearchCriteria" style="background-color: #DBDCDE">
  
    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="gvTable">       
        <tr>
            <td align="right">
                <asp:Literal ID="m_litMDNHeader" runat="server" Text="<%$ Resources: HandsetManagement, LabelMDNColon %>" />
            </td>
            <td>
                <uc1:PhoneNumber ID="m_ucMDN" runat="server" Required="false" />
            </td>
            <td align="right">
                <asp:Literal ID="m_litNewESNHeader" runat="server" Text="<%$ Resources: HandsetManagement, LabelNewESN %>" />
            </td>
            <td>
                <asp:TextBox ID="m_tbNewESN" runat="server" Width="220px" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Literal ID="m_litMINHeader" runat="server" Text="<%$ Resources: AdministrationManagement, LabelLoaderMIN %>" />
            </td>
            <td>
                <uc1:PhoneNumber ID="m_ucMIN" runat="server" Required="false" />
            </td>
            <td align="right">
                <asp:Literal ID="m_litNewIMEI" runat="server" Text="<%$ Resources: HandsetManagement, LabelNewIMEI %>" />
            </td>
            <td>
                <asp:TextBox ID="m_tbNewIMEI" runat="server" Width="220px" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Literal ID="m_litAccountNoHeader" runat="server" Text="<%$ Resources: SubscriberManagement, LabelAccountNumberSign %>" />
            </td>
            <td>
                <asp:TextBox ID="m_tbAccountNo" runat="server" Width="220px" />
            </td>
            <td align="right">
                <asp:Literal ID="m_litOldESNHeader" runat="server" Text="<%$ Resources: HandsetManagement, LabelOldESNIMEI %>" />
            </td>
            <td>
                <asp:TextBox ID="m_tbOldESN" runat="server" Width="220px" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Literal ID="m_litSubscriberLastNameHeader" runat="server" Text="<%$ Resources: SubscriberManagement, LabelLoaderSubscribeLastName %>" />
            </td>
            <td>
                <asp:TextBox ID="m_tbSubscriberLastName" runat="server" Width="220px" />
            </td>
            <td align="right">
                <asp:Literal ID="m_litHandsetModelHeader" runat="server" Text="<%$ Resources: HandsetManagement, LabelHandsetModelColon %>" />
            </td>
            <td>
                <asp:TextBox ID="m_tbHandsetModel" runat="server" Width="220px" />
            </td>
        </tr>
       <%--</table>
        <table border="0" cellpadding="0" cellspacing="0"  class="gvTable">  --%> 
        <tr> 
        <td align="right" nowrap>
                    <asp:Literal ID="m_litErrorConditionHeader" runat="server" Text="<%$ Resources: Default, LabelErrorCondition %>" />
                </td>
                       
           
                <td nowrap>
                     <%--<asp:CheckBox ID="m_chbAll" runat="server" TextAlign="Left" Text="<%$ Resources : Default,ListItemAll %>" AutoPostBack="false" OnSelectedIndexChanged="m_chkBoxlstSource_SelectedIndexChanged"/>   --%>
                     <asp:CheckBox ID="m_chbModelDefs" runat="server" TextAlign="Left" Text="<%$ Resources: AdministrationManagement, ChkBoxModelDefsMismatch %>" AutoPostBack="false" OnSelectedIndexChanged="m_chkBoxlstSource_SelectedIndexChanged"/>
                     <asp:CheckBox ID="m_chbReqFields" runat="server" TextAlign="Left" Text="<%$ Resources: AdministrationManagement, ChkBoxReqFields %>" AutoPostBack="false" OnSelectedIndexChanged="m_chkBoxlstSource_SelectedIndexChanged"/>                               
                     <asp:CheckBox ID="m_chbInvalidServicePlan" runat="server" TextAlign="Left" Text="<%$ Resources: AdministrationManagement, ChkBoxInvalidServicePlan %>" AutoPostBack="false" OnSelectedIndexChanged="m_chkBoxlstSource_SelectedIndexChanged"/>                               

                 </td>
        </tr>          
         <tr> 
         <td align="right" nowrap>
                    <asp:Literal ID="Literal3" runat="server" Text="" />
                </td>
                <td nowrap>
                     <asp:CheckBox ID="m_chbDuplicateMDNs" runat="server" TextAlign="Left" Text="<%$ Resources: HandsetManagement, ChkBoxDuplicateMDNs %>" AutoPostBack="false" OnSelectedIndexChanged="m_chkBoxlstSource_SelectedIndexChanged"/> 
                     <asp:CheckBox ID="m_chbDuplicateESNs" runat="server"  TextAlign="Left" Text="<%$ Resources: HandsetManagement, ChkBoxDuplicateESNs %>" AutoPostBack="false" OnSelectedIndexChanged="m_chkBoxlstSource_SelectedIndexChanged"/>
                     <asp:CheckBox ID="m_chbExhaustedClaimLimit" runat="server" TextAlign="Left" Text="<%$ Resources: SubscriberManagement, ChkBoxExhaustedClaimLimit %>" AutoPostBack="false" OnSelectedIndexChanged="m_chkBoxlstSource_SelectedIndexChanged"/>                               
          
                   <%-- <asp:CheckBoxList ID="m_chkBoxlstSource" runat="server" 
                        RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="m_chkBoxlstSource_SelectedIndexChanged">
                    </asp:CheckBoxList></td>--%>
               </td>
           </tr>  
              <tr>
                <td align="right" nowrap>
                    <asp:Literal ID="m_litExecutedStatusHeader" runat="server" Text="<%$ Resources: AdministrationManagement, LabelExecutedStatus %>" />
                </td>
                <td nowrap>
                    <asp:CheckBox ID="m_chbExecuted" runat="server" TextAlign="Left" Text="<%$ Resources: AdministrationManagement, ChkBoxExecuted %>" AutoPostBack="false" />
                     <asp:CheckBox ID="m_chbNonExecuted" runat="server" TextAlign="Left" Text="<%$ Resources: AdministrationManagement, ChkBoxNonExecuted %>" AutoPostBack="false" />
                     <asp:CheckBox ID="m_chbError" runat="server" TextAlign="Left" Text="<%$ Resources: AdministrationManagement, ChkBoxError %>" AutoPostBack="false" />
                     <%--<asp:CheckBox ID="m_chbBotn" runat="server" TextAlign="Left" Text="Both" AutoPostBack="false" />                     --%>
                     
                    <%--<asp:CheckBoxList ID="m_chkBoxlstExecutedStatus" runat="server" 
                        RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="m_chkBoxlstExecutedStatus_SelectedIndexChanged">
                    </asp:CheckBoxList>--%>
                </td>
            </tr>
            <tr>
                <td align="right" nowrap>
                    <asp:Literal ID="Literal2" 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>
            <tr>
                <td align="right" nowrap>
                    <asp:Literal ID="Literal19" Visible="true" runat="server" Text="<%$ Resources: Default, LabelLookUp %>" />             
                <asp:DropDownList ID="m_ddlLookup" Visible="true" runat="server" Width="75px">
                    <asp:ListItem Value="0" Text="<%$ Resources: HandsetManagement, ListItemMDN %>" />
                    <asp:ListItem Value="1" Text="<%$ Resources: HandsetManagement, ListItemESN %>" />
                </asp:DropDownList>
                </td>
                <td colspan=3 >
                    <asp:FileUpload ID="m_btnBrowseLookup" Visible="true" runat="server" ToolTip="<%$ Resources : Default,FileUploadBrowse %>"/><br>
                <asp:Label ID="m_litLookUp" runat="server"></asp:Label>
                <asp:HiddenField ID="m_litLookUpHidden" runat="server" />
                </td>
            </tr>
        </table>
  </div>
    <!----------------------------------------------------Buttons----------------------------------------------------->
    <div style="padding-left: 30%">
        <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>
    <!----------------------------------Search Results--------------------------------------------------------->
    <asp:Panel ID="m_pnlSearchResults" runat="server">
        <h2>
            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: Default, LabelSearchResults %>" />
            <asp:Label ID="m_lblSuccessMessage" runat="server" Visible="True" CssClass="successmessage" /></h2>   
    <asp:Label ID="m_lblNoLoaderDetailResultsFound" Font-Bold="True" ForeColor="Red" runat="server"
        Visible="False" Text="<%$ Resources: Default, LabelNoResultsFound %>" />
    </asp:Panel>   
    <asp:Panel ID="m_pnlLoaderDetailSummary" Visible="False" runat="server">
    <h3>
            <asp:Literal ID="Literal21" runat="server" Text="<%$ Resources: Default, LabelSummary %>" />
        </h3>
        <asp:GridView ID="m_gvLoaderDetailSummary" runat="server" AutoGenerateColumns="False" Width="100%">
            <Columns>
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextNew %>" DataField="NEW" />
                <asp:BoundField HeaderText="<%$ Resources: AdministrationManagement, HeaderTextDeacts %>" DataField="Deactivates" />
                <asp:BoundField HeaderText="<%$ Resources: AdministrationManagement, HeaderTextChanges %>" DataField="Changes" />
                <asp:BoundField HeaderText="<%$ Resources: Default, HeaderTextTotal %>" DataField="Total" />
                <asp:BoundField HeaderText="<%$ Resources: AdministrationManagement, HeaderTextProcessed %>" DataField="Processed" />
                <asp:BoundField HeaderText="<%$ Resources: AdministrationManagement, HeaderTextModelErrors %>" DataField="ModelErrors" />
                <asp:BoundField HeaderText="<%$ Resources: AdministrationManagement, HeaderTextMissingFields %>" DataField="MissingFields" />
                <asp:BoundField HeaderText="<%$ Resources: HandsetManagement, ChkBoxDuplicateESNs %>" DataField="DuplicatESNs" />
                <asp:BoundField HeaderText="<%$ Resources: HandsetManagement, ChkBoxDuplicateMDNs %>" DataField="DuplicateMDNs" />
                <asp:BoundField HeaderText="<%$ Resources: SubscriberManagement, ChkBoxExhaustedClaimLimit %>" DataField="ExhaustedClaimLimit" />
                <asp:BoundField HeaderText="<%$ Resources: AdministrationManagement, HeaderTextInvalidServicePlan %>" DataField="InvalidServicePlan" />
                <asp:BoundField HeaderText="<%$ Resources: AdministrationManagement, HeaderTextTotalErrors %>" DataField="TotalErrors" />

            </Columns>
            <RowStyle HorizontalAlign="Right" />
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
    </asp:Panel>
    
    <asp:Panel ID = "m_pnlTopGridOperator"  runat = "server" >
            <uc:GridOperatorHelper ID="m_TopGridOperator" runat="server" OnUpdateClicked=grdOperatorLoaderDetail_UpdateClicked />
    </asp:Panel>
    
    <asp:Panel ID="m_pnlLoaderDetailGrid" Visible="False" runat="server">    
         <h3>
            <asp:Literal ID="Literal23" runat="server" Text="<%$ Resources: Default, ResultsLabel %>" />
        </h3>
        <cc1:HitsSearchGridView ID="m_gvLoaderDetail" runat="server" AutoGenerateColumns="False"
            AllowPaging="True" OnRowDataBound="m_gvLoaderDetail_RowDataBound" OnPageIndexChanged="m_gvLoaderDetail_PageIndexChanged"
            OnPageIndexChanging="m_gvLoaderDetail_PageIndexChanging" OnMenuItemCommand="m_gvLoaderDetail_OnMenuItemCommand"
            ShowMenu="True" ShowSelectField="True" ShowSetStatus="False" ShowExportCSVWithSummary="True"
            ShowExportXMLWithSummary="False" ShowActivateMenu="False" ShowDeActivateMenu="False"
            ShowEmailMenu="False" ShowHotlineMenu="False" ShowDeHotlineMenu="False" CustomPagerID="HitsPager1"
            ClientFunctionPrint="window.print();" OnCustomPageIndexChanged="m_gvLoaderDetail_PageIndexChanged"
            OnCustomPageIndexChanging="m_gvLoaderDetail_PageIndexChanging" AtlasScriptManagerID=""
            ClientFunctionActivateSelected="" ClientFunctionDeActivateSelected="" ClientFunctionDeHotline=""
            ClientFunctionDelete="" ClientFunctionEmailSelected="" ClientFunctionExportSelected=""
            ClientFunctionHotline="" ClientFunctionSetStatus="" CssClassCustomPaging="" CssClassMenu=""
            PropagateActionToChildID="" ShowDeleteMenu="True"
            ShowDeSelectMenu="True" ShowExportCSV="False" ShowExportMenu="False" ShowExportXML="False"
            ShowPrintMenu="True" ShowSelectMenu="True" ShowExecuteMenu="True" Width="100%">
            <Columns>
                <asp:TemplateField>   
                        <HeaderTemplate>
                            <asp:Literal runat="server" ID="m_litDetails" Text="<%$ Resources: AdministrationManagement, HeaderTextMore3Point %>"></asp:Literal>
                        </HeaderTemplate>                                 
                        <ItemTemplate>
                                <div style="overflow: hidden; width: 31px; height: 25px;">
                                    <asp:HyperLink runat="server" ID="m_hlDetails" ImageUrl="~/images/MoreDetails.gif"></asp:HyperLink>
                                    <asp:HiddenField runat="server" ID="m_hfLoaderRecordId"></asp:HiddenField>
                                </div>
                        </ItemTemplate>                                    
                </asp:TemplateField>                               
                <asp:TemplateField>
                    <headertemplate>
                        <asp:Literal runat="server" ID="Literal50" Text="<%$ Resources: AdministrationManagement, HeaderTextCode %>"></asp:Literal>
                          <BR /><uc:CustomSorter runat="server" ID="m_csCode" SortExpression="ActCode" OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </headertemplate>
                    <itemtemplate>
                            <asp:Label runat="server" ID="m_lblActCode"></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                        <asp:Literal runat="server" ID="Literal51" Text="<%$ Resources: SubscriberManagement, NameHeaderText %>"></asp:Literal>
                         <BR /><uc:CustomSorter runat="server" ID="m_csName" SortExpression="Name" OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </headertemplate>
                    <itemtemplate>
                        <asp:Label runat="server" ID="m_lblName"></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                        <asp:Literal runat="server" ID="Literal52" Text="<%$ Resources: HandsetManagement, LabelMDN %>"></asp:Literal>
                          <BR /><uc:CustomSorter runat="server" ID="m_csMDN" SortExpression="MDN" OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </headertemplate>
                    <itemtemplate>
                            <asp:Label runat="server" ID="m_lblMDN"></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                          <asp:Literal  runat="server" ID="Literal25" Text="<%$ Resources: HandsetManagement, HeaderTextNewESNIMEI %>"></asp:Literal>
                         <br />
                         <uc:CustomSorter runat="server" ID="m_csNewESN" SortExpression="NewESN" OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </headertemplate>
                    <itemtemplate>
                            <asp:Label  runat="server" ID="m_lblNewESN"></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                        <asp:Literal runat="server" ID="Literal26" Text="<%$ Resources: HandsetManagement, HeaderTextOldESNIMEI %>"></asp:Literal>
                        <BR /><uc:CustomSorter runat="server" ID="m_csOldESN" OnSortDescendingClicked="customSorter_SortClicked" OnSortAscendingClicked="customSorter_SortClicked" SortExpression="OldESN"></uc:CustomSorter>
                    </headertemplate>
                    <itemtemplate>
                        <asp:Label runat="server" ID="m_lblOldESN"></asp:Label>
                     </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                        <asp:Literal runat="server" ID="Literal27" Text="<%$ Resources: SubscriberManagement, AcctNumHeaderText %>"></asp:Literal>
                          <BR /><uc:CustomSorter runat="server" ID="m_csAccountNo" OnSortDescendingClicked="customSorter_SortClicked" OnSortAscendingClicked="customSorter_SortClicked" SortExpression="AccountNo"></uc:CustomSorter>
                    </headertemplate>
                    <itemtemplate>
                            <asp:Label runat="server" ID="m_lblAccountNo"></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                        <asp:Literal runat="server" ID="Literal28" Text="<%$ Resources: ModelManagement, HeaderTextMappedtoModel %>"></asp:Literal>
                         <br />
                         <uc:CustomSorter runat="server" ID="m_csMappedToModel" SortExpression="MappedToModel" OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </headertemplate>
                    <itemtemplate>
                            <asp:HyperLink runat="server" ID="m_lblMappedToModel"></asp:HyperLink>
                    </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                        <asp:Literal runat="server" ID="Literal78" Text="<%$ Resources: HandsetManagement, HeaderTextTechType %>"></asp:Literal>
                         <br />
                         <uc:CustomSorter runat="server" ID="m_csTechType" SortExpression="TechType" OnSortAscendingClicked="customSorter_SortClicked" OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </headertemplate>
                     <itemtemplate>
                            <asp:Label runat="server" ID="m_lblTechType"></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                        <asp:Literal runat="server" ID="Literal30" Text="<%$ Resources: SubscriberManagement, 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="Literal31" Text="<%$ Resources: AdministrationManagement, HeaderTextFieldMissing %>"></asp:Literal>
                              <BR /><uc:CustomSorter runat="server" ID="m_csFieldMissing" OnSortDescendingClicked="customSorter_SortClicked" OnSortAscendingClicked="customSorter_SortClicked" SortExpression="FieldMissing"></uc:CustomSorter>
                    </headertemplate>
                    <itemtemplate>
                        <asp:Label runat="server" ID="m_lblFieldMissing"></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                            <asp:Literal runat="server" ID="m_litDuplicateESNHeader" Text="<%$ Resources: HandsetManagement, HeaderTextDuplicateESN %>"></asp:Literal><br />
                              <uc:CustomSorter runat="server" ID="m_csDuplicateESN" OnSortDescendingClicked="customSorter_SortClicked" OnSortAscendingClicked="customSorter_SortClicked" SortExpression="DuplicateESN"></uc:CustomSorter>
                    </headertemplate>
                    <itemtemplate>
                            <asp:Label runat="server" ID="m_lblDuplicateESN"></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>  
                <asp:TemplateField>
                        <headertemplate>
                                <asp:Literal runat="server" ID="m_litDuplicateMDNHeader" Text="<%$ Resources: HandsetManagement, HeaderTextDuplicateMDNMIN %>"></asp:Literal><br />
                                  <uc:CustomSorter runat="server" ID="m_csDuplicateMDN" OnSortDescendingClicked="customSorter_SortClicked" OnSortAscendingClicked="customSorter_SortClicked" SortExpression="DuplicateMDN"></uc:CustomSorter>
                        </headertemplate>
                        <itemtemplate>
                                <asp:Label runat="server" ID="m_lblDuplicateMDN"></asp:Label>
                        </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                        <headertemplate>
                                <asp:Literal runat="server" ID="m_litExhaustedClaimLimitHeader" Text="<%$ Resources: SubscriberManagement, HeaderTextExhaustedClaimLimit %>"></asp:Literal><br />
                                  <uc:CustomSorter runat="server" ID="m_csExhaustedClaimLimit" OnSortDescendingClicked="customSorter_SortClicked" OnSortAscendingClicked="customSorter_SortClicked" SortExpression="ExhaustedClaimLimit"></uc:CustomSorter>
                        </headertemplate>
                        <itemtemplate>
                                <asp:Label runat="server" ID="m_lblExhaustedClaimLimit"></asp:Label>
                        </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                        <headertemplate>
                                <asp:Literal runat="server" ID="m_litInvalidServicePlan" Text="<%$ Resources: AdministrationManagement, HeaderTextInvalidServicePlan %>"></asp:Literal><br />
                                  <uc:CustomSorter runat="server" ID="m_csInvalidServicePlan" OnSortDescendingClicked="customSorter_SortClicked" OnSortAscendingClicked="customSorter_SortClicked" SortExpression="InvalidServicePlan"></uc:CustomSorter>
                        </headertemplate>
                        <itemtemplate>
                                <asp:Label runat="server" ID="m_lblInvalidServicePlan"></asp:Label>
                        </itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <headertemplate>
                            <asp:Literal runat="server" ID="Literal32" Text="<%$ Resources : AdministrationManagement,HeaderTextLoaderStatus %>"></asp:Literal><br />
                              <uc:CustomSorter runat="server" ID="m_csState" OnSortDescendingClicked="customSorter_SortClicked" OnSortAscendingClicked="customSorter_SortClicked" SortExpression="State"></uc:CustomSorter>
                    </headertemplate>
                    <itemtemplate>
                            <asp:Label runat="server" ID="m_lblState"></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:ObjectDataSource ID="odsLoaderDetailDataSource" runat="server" SelectMethod="Select"
        TypeName="LoaderDetailDataSource" EnablePaging="True" SelectCountMethod="SelectCount">
        <SelectParameters>
            <asp:SessionParameter Name="objLoaderDetailSearchCriteria" SessionField="LoaderDetailData" Type="Object" />
            <asp:ControlParameter ControlID="m_gvLoaderDetail" DefaultValue="1" Name="startRowIndex"
                PropertyName="PageIndex" Type="Int32" />
            <asp:Parameter DefaultValue="10" Name="maximumRows" Type="Int32" />
            <asp:SessionParameter Name="LoaderDetailSortExpression" SessionField="LoaderDetailSortExpression"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
