<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="True"
    Inherits="site_HITS_WireTransfer_Summary" Title="Brightstar Device Protection: Wire Transfer" Theme="eMain"
    Culture="auto"   UICulture="auto" CodeBehind="Summary.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="Invoice Wire Transfer Summary" />
    </h1>
    <uc:DefaultHeader ID="DefaultHeader1" runat="server"   />

    <asp:Panel ID="Panel3" Visible="True" runat="server"  >
        <!-------------------------------------------------------------------->
        <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="" ValidationGroup="SearchValidation" Visible="false" />
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" BorderStyle="none" ValidationGroup="SearchValidation" />
        <br />
        <!---------------------------------T2----------------------------------->
        <asp:Panel ID="pnlSearchResults" Width="100%" runat="server"  >
            <h2>                
                <asp:Literal ID="litOverview" runat="server" Text="Overview"   />
            </h2>
            <asp:Label ID="lblSuccess" runat="server" CssClass="successmessage" Text="" ></asp:Label>
        </asp:Panel>

        <table>
            <tr>
                <td><asp:Label ID="lblWireTransferName" runat="server" Text="Wire Transfer Name:"/> </td>
                <td><asp:TextBox ID="txtWireTransferName" runat="server"  Width="500px"/>   </td>
            </tr>
            <tr>
                <td><asp:Label ID="lblGenerationDate" runat="server" Text="Generation Date:"/> </td>
                <td><asp:Label ID="lblGenerationDateValue" runat="server"  /> </td>
            </tr>
            <tr>
                <td><asp:Label ID="lblTransferDate" runat="server" Text="Transfer Date:"/> </td>
                <td><asp:Label ID="lblTransferDateValue" runat="server"  /> </td>
            </tr>
        </table>
        
              
        <br />
    </asp:Panel>

    <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, 'divSelectedClients')"
                        alt="contract" />
                </td>
                <td width="100%" valign="middle">
                    <asp:Literal ID="litSelectedClients" runat="server" Text="Selected Clients" />
                </td>
            </tr>
        </table>
    </div>
    <div id="divSelectedClients" style="background-color: #DBDCDE">         
        <cc1:HitsSearchGridView ID="gvTransfers" runat="server" AutoGenerateColumns="False"
              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="litCompanyName" Text="Company Name"></asp:Literal>
                            <br />
                            <uc:CustomSorter runat="server" ID="csCompanyName" SortExpression="CompanyName" OnSortAscendingClicked="customSorter_SortClicked" 
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                        </headertemplate>
                    <itemstyle width="300px" verticalalign="Top" />
                    <itemtemplate>
                        <asp:Label runat="server" ID="lblCompanyName" Text='<%# Bind("CompanyName") %>'     />&nbsp;&nbsp;&nbsp;
                        <asp:LinkButton runat="server" ID="btnPremium" Font-Underline="True" OnClick="btnPremium_Click" Text="Premium" />&nbsp;
                        <asp:LinkButton runat="server" ID="btnClaim" Font-Underline="True" OnClick="btnClaim_Click" Text="Claim" />
                    </itemtemplate>
                </asp:TemplateField>

                <asp:TemplateField  >
                    <headertemplate>
                            <asp:Literal runat="server" ID="litMonthYear" Text="Month Year"></asp:Literal>
                            <br />
                            <uc:CustomSorter runat="server" ID="csMonthYear" SortExpression="MonthYear" OnSortAscendingClicked="customSorter_SortClicked" 
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </headertemplate>
                    <itemstyle verticalalign="Top" width="100px" />
                    <itemtemplate>
                            <asp:Label runat="server" Text='<%# Bind("MonthYear") %>' ID="lblMonthYear" ></asp:Label>
                    </itemtemplate>
                </asp:TemplateField>

                <asp:TemplateField  >
                    <headertemplate>
                            <asp:Literal runat="server" ID="litTransferDate" Text="Version"></asp:Literal>
                            <br />
                            <uc:CustomSorter runat="server" ID="csVersion" SortExpression="Version" OnSortAscendingClicked="customSorter_SortClicked" 
                            OnSortDescendingClicked="customSorter_SortClicked"></uc:CustomSorter>
                    </headertemplate>
                    <itemstyle verticalalign="Top" width="100px" />
                    <itemtemplate>
                            <asp:Label runat="server" Text='<%# Bind("Version") %>' ID="lblVersion" ></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 />
    </div>

    <div class="mastersearch">
        <table cellspacing="0" cellpadding="0">
            <tr>
                <td style="padding-right: 0px">
                    <img id="Img1" runat="server" src="../../../images/Collapse_13x13.jpg"
                        class="showstate" onclick="expandMasterSearch(this, 'divSummaryInformation')"
                        alt="contract" />
                </td>
                <td width="100%" valign="middle">
                    <asp:Literal ID="litSummaryInformation" runat="server" Text="Summary Information" />
                </td>
            </tr>
        </table>
    </div>   

    <div id="divSummaryInformation" style="background-color: #DBDCDE">  
        <table>
            <tr>
                <td> <asp:Label ID="lblTotalCount" runat="server" Text="Count"></asp:Label></td>
                <td> <asp:Label ID="lblTotalCountValue" runat="server" Text="523"></asp:Label></td>

                <td> <asp:Label ID="lblTotalPremium" runat="server" Text="Premium"></asp:Label></td>
                <td> <asp:Label ID="lblTotalPremiumValue" runat="server" Text="5,000,000"></asp:Label></td> 
                 
                <td> <asp:Label ID="lblTotalComission" runat="server" Text="Commision"></asp:Label></td>
                <td> <asp:Label ID="lblTotalComissionValue" runat="server" Text="$1,000"></asp:Label></td>            

                <td> <asp:Label ID="lblFixBC" runat="server" Text="Fixed BC"></asp:Label></td>
                <td> <asp:Label ID="lblFixBCValue" runat="server" Text="$1,000"></asp:Label></td> 
                
                <td> <asp:Label ID="lblNetPremium" runat="server" Text="Net Premium"></asp:Label></td>
                <td> <asp:Label ID="lblNetPremiumValue" runat="server" Text="5,000,000"></asp:Label></td> 
            </tr>
        </table>
    </div>
</asp:Content>