 
<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="True"
    Inherits="site_HITS_WireTransfer_Default" Title="Brightstar Device Protection: Wire Transfer" Theme="eMain"
    Culture="auto"   UICulture="auto" CodeBehind="Default.aspx.cs"   %>

<%@ Register Src="~/Controls/ModelMap/GridOperator.ascx" TagName="GridOperatorHelper" TagPrefix="uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components" TagPrefix="cc1" %>
<%@ Register Src="~/Controls/CustomSorter.ascx" TagName="CustomSorter" TagPrefix="uc" %>
<%@ Register Src="~/Controls/DefaultHeader.ascx" TagName="DefaultHeader" TagPrefix="uc" %>
         
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">
    <script src="../../../script/eGridHelper.js" type="text/javascript"></script>
    <h1>
        <asp:Literal ID="litHeader" runat="server" Text="Wire Transfers" />
    </h1>
    
    <uc:DefaultHeader ID="DefaultHeader1" runat="server"   />

    <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, 'divMasterSearchCriteria')"
                        alt="contract" />
                </td>
                <td width="100%" valign="middle">
                    <asp:Literal ID="litSearchHeader" runat="server" Text="<%$ Resources : Default,LabelSearchCriteria %>" />
                </td>
            </tr>
        </table>
    </div>

    <div id="divMasterSearchCriteria" style="background-color: #DBDCDE">        
        <asp:Button ID="btnLoadWireTransfers" runat="server" 
            Text="Load Wire Transfers"  CssClass="pagebutton" 
            onclick="btnLoadWireTransfers_Click"  />
   </div>
    

     
    <asp:Panel ID="Panel1" Visible="True" runat="server"  >
        <!-------------------------------------------------------------------->
        <asp:CustomValidator ID="Validator1" runat="server" ErrorMessage="" ValidationGroup="SearchValidation" Visible="false" />
        <asp:ValidationSummary ID="ValidationSummary" runat="server" BorderStyle="none" ValidationGroup="SearchValidation" />
        <br />
        <!---------------------------------T2----------------------------------->
        <asp:Panel ID="pnlSearchResults" Width="100%" runat="server"  >
            <h2>
                
                <asp:Literal ID="litSearchResults2" runat="server" Text="<%$ Resources : Default,LabelSearchResults %>"   />
            </h2>
            <asp:Label ID="lblSuccess" runat="server" CssClass="successmessage" Text="" ></asp:Label>
        </asp:Panel>
        
        <cc1:HitsSearchGridView ID="gvTransfers" runat="server" AutoGenerateColumns="False"
            Width="100%" AllowPaging="True"  
              OnRowDataBound = "gvTransfers_RowDataBound"
            ShowMenu="True" ShowSelectField="True" ShowActivateMenu="False" ShowDeActivateMenu="False"
            ShowEmailMenu="False" ShowPrintMenu="True" ShowHotlineMenu="False" ShowDeHotlineMenu="False"  
            CustomPagerID="HitsPager1" ClientFunctionPrint="window.print();"  
             
            ShowDeleteMenu="true" ShowDeSelectMenu="True" ShowExportMenu="True" ShowSelectMenu="True"
            HeaderStyle-Font-Size="XX-Small" AtlasScriptManagerID="" ClientFunctionActivateSelected=""
            ClientFunctionDeActivateSelected="" ClientFunctionDeHotline="" ClientFunctionDelete=""
            ClientFunctionEmailSelected="" ClientFunctionExportSelected="" ClientFunctionHotline=""
            ClientFunctionSetStatus="" CssClassCustomPaging="" CssClassMenu="" PropagateActionToChildID=""
            ShowExportCSV="True" ShowExportCSVWithSummary="False" ShowExportXML="True" ShowExportXMLWithSummary="False"
            ShowSetStatus="False">
            <Columns>
                 

                <asp:TemplateField >
                    <headertemplate>
                        <asp:Literal runat="server" ID="litWireTransferName" Text="Wire Transfer Name"></asp:Literal>
                         <br />
                         <uc:CustomSorter runat="server" ID="csWireTransferName" SortExpression="WireTransferName" OnSortAscendingClicked="customSorter_SortClicked" 
                         OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                     </headertemplate>
                    <itemstyle width="150px" verticalalign="Top" />
                    <itemtemplate>
                        <asp:LinkButton runat="server" ID="btnWireTransferName" Font-Underline="True" OnClick="btnWireTransferName_Click"
                         Text='<%# Bind("Transfername") %>'  ></asp:LinkButton>
                    </itemtemplate>
                </asp:TemplateField>

                <asp:TemplateField  >
                    <headertemplate>
                            <asp:Literal runat="server" ID="litGenerationDate" Text="Generation Date"></asp:Literal>
                            <br />
                            <uc:CustomSorter runat="server" ID="csGenerationDate" SortExpression="GenerationDate" OnSortAscendingClicked="customSorter_SortClicked" 
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </headertemplate>
                    <itemstyle verticalalign="Top" width="100px" />
                    <itemtemplate>
                            <asp:Label runat="server" Text='<%# Bind("GenerationDate") %>' ID="lblGenerationDate" ></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>

                <asp:TemplateField  >
                    <headertemplate>
                            <asp:Literal runat="server" ID="litTransferDate" Text="Transfer Date"></asp:Literal>
                            <br />
                            <uc:CustomSorter runat="server" ID="csTransferDate" SortExpression="TransferDate" OnSortAscendingClicked="customSorter_SortClicked" 
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </headertemplate>
                    <itemstyle verticalalign="Top" width="100px" />
                    <itemtemplate>
                            <asp:Label runat="server" Text='<%# Bind("TransferDate") %>' ID="lblTransferDate" ></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>
            </Columns>
            <PagerTemplate>
                <cc1:HitsPager ID="HitsPager1" runat="server" />
            </PagerTemplate>
            <RowStyle HorizontalAlign="Left" VerticalAlign="Top" Font-Overline="False" Font-Size="XX-Small"
                Font-Strikeout="False" Font-Underline="False" />
            <EditRowStyle HorizontalAlign="Left" VerticalAlign="Top" />
            <HeaderStyle Font-Size="XX-Small" Wrap="True" />
        </cc1:HitsSearchGridView>
        <br />
    </asp:Panel>
    
</asp:Content>
