<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ColllateralReports.aspx.vb" Inherits="FinIQWebApp.ColllateralReports" Title="Customer Collateral Position Summary" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<doctype html>
<html>
    <head runat="server">

    <link href='<%=ResolveClientUrl("~/App_Themes/Style1.css")%>' rel="stylesheet" />

    </head>

    <body onload="self.focus();">
        
        <form id="form12" runat="server">

    <asp:scriptmanager id="ScriptManager1" runat="server">    </asp:scriptmanager>

    <asp:updatepanel id="UpdatePanelDashboard" runat="server"> 
           <ContentTemplate>
  <table class ="filter"> 
  <tr>
  <td>
   <asp:Label ID="lblError" runat="server" CssClass="lblError"></asp:Label>
  </td>
  </tr> 
   <tr>
   <td>
       <div id="FIlterDiv" runat="server" >
   <table class="filter">
   <tr>
   
  <td>
   <fieldset style="width: 125px; padding: 4px; height: 50px; vertical-align: middle;">
                                                                <legend>Entity</legend>
                                                                <asp:DropDownList ID="cboEntity" runat="server" CssClass="ddl" Width="125px">
                                                                </asp:DropDownList>
                                                            </fieldset>
    </td>
    <td>
                                                            <fieldset style="width: 520px; padding: 4px; height: 50px; vertical-align: middle; ">
                                                                <legend>Group Filter</legend>
                                                                <asp:TextBox ID="txtGroupID" runat="server" CssClass="txt" Width="80px" ReadOnly="true"></asp:TextBox>
                                                                <asp:TextBox ID="txtGroupName" runat="server" CssClass="txt" Width="300px" AutoPostBack="true"></asp:TextBox>
                                                                <asp:Button ID="btnSelectGroup" runat="server" Text="" CssClass="btnSearch" />
                                                            </fieldset>
                                                            </td>
                                                        <td>
                                                        <fieldset style="width: 350px; padding: 4px; height: 50px; vertical-align: middle;
                                                            border: none;">
                                                            <legend></legend>
                                                            <asp:Button ID="btnLoad" runat="server" Text="Load" CssClass="btn" Width="75px" />
                                                        </fieldset>
                                                        </td> 
                                                        <td>
                                                         <asp:Panel ID="pnlGrpFilter" runat="server" Width="475px" Height="300px" Style="top: 100px;
                                        left: 450px; border: solid 0.5px black; box-shadow: 0 0 10px #666; z-index: 10;
                                        position: absolute; background-color: White; color: White; padding: 4px; cursor: move;"
                                        onmousedown="dragOBJ(this,event); return false;" Visible="false">
                                        <table width="100%" class="filter">
                                            <tr class="GridHeaderTitle">
                                                <td>
                                                    <table cellpadding="0" cellspacing="0" style="height: 100%; width: 100%;">
                                                        <tr>
                                                            <td width="90%">
                                                                &nbsp;<asp:Label Style="background-color: Transparent; color: White; text-align: justify;
                                                                    font-size: 11px;" ID="lblGroupFilter" runat="server">Customer Group Search</asp:Label>
                                                            </td>
                                                            <td align="right" width="10%">
                                                                <asp:Button ID="btnCloseInfo" ToolTip="Close" runat="server" Font-Bold="true" Text="X"
                                                                    Height="18" Width="18" CssClass="btn" />&nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <fieldset>
                                                        <asp:DropDownList ID="cboSearchCriteria" runat="server" CssClass="ddl" Width="100px">
                                                        </asp:DropDownList>
                                                        <asp:TextBox ID="txtSearchText" runat="server" CssClass="txt" Width="200px"></asp:TextBox>
                                                        <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="btn" />
                                                        <asp:Button ID="btnLoadAll" runat="server" Text="Load All" CssClass="btn" />
                                                    </fieldset>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <fieldset>
                                                        <legend>
                                                            <asp:Label runat="server" ID="lblTotalRecords">Total Record(s) : (0)</asp:Label></legend>
                                                        <asp:Panel ID="pnlGroupData" runat="server" ScrollBars="Auto" Width="470px" Height="250px">
                                                            <asp:GridView ID="dgvCustomerGroup" runat="server" CssClass="Grid" Width="465px"
                                                                AutoGenerateColumns="false">
                                                                <HeaderStyle CssClass="GridHeaderTitle" Height="25" />
                                                                <SelectedRowStyle CssClass="GridItemSelect" />
                                                                <FooterStyle CssClass="GridFooter" />
                                                                <RowStyle CssClass="GridItemLcl" />
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="Group ID" HeaderStyle-Wrap="false">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkGroupID" runat="server" CommandName="Select" Text='<%# Bind("Group_Id") %>'
                                                                                CausesValidation="False"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Wrap="true" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                        <ItemStyle HorizontalAlign="LEFT" VerticalAlign="Middle" Wrap="true" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField HeaderText="Group Name" DataField="Group_Name" ItemStyle-VerticalAlign="Middle"
                                                                        ItemStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField HeaderText="Group Code" DataField="Group_Code" ItemStyle-VerticalAlign="Middle"
                                                                        ItemStyle-HorizontalAlign="Left" />
                                                                </Columns>
                                                            </asp:GridView>
                                                        </asp:Panel>
                                                    </fieldset>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    
                                         <input type="hidden" runat="server" id="hdnPanelXPosition" value="100px" />
                                    <input type="hidden" runat="server" id="hdnPanelYPosition" value="450px" />
</td>
  </tr>
  </table>
</div>
  </td>
  </tr>
   <tr>
  <td>
   <div style ="border :0px !important;">
       
            <rsweb:ReportViewer ID="rptCLPRDetailRpt" runat="server" Visible="true" ShowExportControls="true" ShowPrintButton="true" ShowBackButton="true" Width="100%" Height="100%" Style="position: absolute;" ShowRefreshButton="true" PageCountMode="Actual">
                  </rsweb:ReportViewer>
        </div>

       </td>

       </tr>

      

   <%--<td  class="background_gray">
  
   
     <asp:Label ID="l1" runat="server" Text="Limit Utilization And Exposure" ForeColor="Brown"></asp:Label>
                                  
                                       </td>
                                       </tr>--%>
                                       
   <%--<tr>
                                      <td class="background_gray">
                                      <asp:Label ID="l2" runat="server" Text="Margin Facilities" ForeColor="Blue"></asp:Label>
                                       </td>
                                       </tr>--%>
                                       
    <%--<tr>
                                       <td>
 
  <asp:DataGrid ID="dgLimitExpoMarginFacility" runat="server" AutoGenerateColumns="False" 
                                                   BorderStyle="None" CellPadding="3" CssClass="Grid" AllowPaging="true"
                                                    PageSize="5">
                                                    <SelectedItemStyle CssClass="GridItemSelect"></SelectedItemStyle>
                                                    <PagerStyle Mode="NumericPages" NextPageText="" PrevPageText="" />
                                                    <AlternatingItemStyle CssClass="AlternatItemStyle"></AlternatingItemStyle>
                                                    <ItemStyle CssClass="GridItem"></ItemStyle>
                                                    <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                                                    <Columns>
                                                     <asp:TemplateColumn HeaderText="" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            <asp:ImageButton ID="ImgBtnImageDisplay" CommandName="Select" Height="18px" Width="18px" runat="server" ImageUrl="~/App_Themes/images/SmallUp.png"  />
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                    
                                                        <asp:TemplateColumn HeaderText="Facility Type" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            
                                                            <asp:LinkButton ID="lnkFacilityType" runat="server"  CommandName="Select" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FacilityType")%>'></asp:LinkButton>
                                                              
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn  HeaderText Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbLimit" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Limit")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Limit Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbLimitSource" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Limit_Source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Exposure Name" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true"  />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbExposureName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ExposureDescription")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Exp. Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbExp_Source" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Exp_Source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Reference" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbReference" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Reference")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Ccy" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbOrigCcy" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Ccy")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Limit Used" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbExposure" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Exposure")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="FX Rate" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbFXRate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FXRate")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn  Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbLimitUsedHKD" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LimitUsed")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                       
                                                        <asp:TemplateColumn HeaderText="Available Limit(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False"  />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbAvlblLimitHKD" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"AvailableLimitOrLimitExcess")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Margin(Base Eqv.)" Visible="true" ItemStyle-Width="60">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbInitialMargin" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Initial_Margin")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Floating P&L(Base Eqv.)" Visible="true" ItemStyle-Width="60">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbFloatingPL" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FloatingPNL")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Coll.Req'd(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbCollateralReq" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"MarginCollateralRequired")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Total Coll.Req'd(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbTotalCollReq" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"GrdMargColl")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                           
              </Columns>
      </asp:DataGrid> 
    </td>
    </tr>--%>
    
  <%--  <tr>
    <td>
    <asp:Panel ID ="pnllimitExpoMargin" runat ="server" >
    <asp:DataGrid ID="dgLimitExpoMargin2" runat="server" AutoGenerateColumns="False" 
                                                     BorderStyle="None" CellPadding="3" CssClass="Grid"  AllowPaging="true"
                                                    PageSize="5">
                                                    <SelectedItemStyle CssClass="GridItemSelect"></SelectedItemStyle>
                                                    <PagerStyle Mode="NumericPages" NextPageText="" PrevPageText="" />
                                                    <AlternatingItemStyle CssClass="AlternatItemStyle"></AlternatingItemStyle>
                                                    <ItemStyle CssClass="GridItem"></ItemStyle>
                                                    <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                                                    <Columns>
                                                    
                                                    
                                                        <asp:TemplateColumn HeaderText="Facility Type" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            
                                                           
                                                                <asp:Label ID="lbFacilityType" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FacilityType")%>'></asp:Label> 
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Limit(Base Eqv.)" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Limit")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Limit Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Limit_Source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Exposure Name" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="true"/>
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ExposureDescription")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Exp. Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label4" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Exp_Source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Reference" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label5" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Reference")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Ccy" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label6" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Ccy")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Limit Used" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label7" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Exposure")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="FX Rate" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label8" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FXRate")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Limit Used(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label9" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LimitUsed")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                       
                                                        <asp:TemplateColumn HeaderText="Available Limit(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False"  />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label10" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"AvailableLimitOrLimitExcess")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Margin(Base Eqv.)" Visible="true" ItemStyle-Width="60">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label11" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Initial_Margin")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Floating P&L(Base Eqv.)" Visible="true" ItemStyle-Width="60">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label12" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FloatingPNL")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Coll.Req'd(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label13" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"MarginCollateralRequired")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                     
                           
              </Columns>
      </asp:DataGrid>
    </asp:Panel>
    </td>
    </tr> --%>
    
    <%--<tr>
     <td class="background_gray">  
      <asp:Label ID="Label14" runat="server" Text="Non Margin Facilities" ForeColor="Blue"></asp:Label>
     </td>
    </tr>--%>
    
   <%-- <tr>
    <td>
    <asp:DataGrid ID="dgvLimitExpoNonMarginFacility" runat="server" AutoGenerateColumns="False" 
                                                   BorderStyle="None" CellPadding="3" CssClass="Grid" AllowPaging="true"
                                                    PageSize="5">
                                                    <SelectedItemStyle CssClass="GridItemSelect"></SelectedItemStyle>
                                                    <PagerStyle Mode="NumericPages" NextPageText="" PrevPageText="" />
                                                    <AlternatingItemStyle CssClass="AlternatItemStyle"></AlternatingItemStyle>
                                                    <ItemStyle CssClass="GridItem"></ItemStyle>
                                                    <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                                                    <Columns>
                                                     <asp:TemplateColumn HeaderText="" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            <asp:ImageButton ID="ImageButton1" CommandName="Select" Height="18px" Width="18px" runat="server" ImageUrl="~/App_Themes/images/SmallUp.png"  />
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                    
                                                        <asp:TemplateColumn HeaderText="Facility Type" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            <asp:LinkButton ID="LinkButton1" runat="server"  CommandName="Select" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FacilityType")%>'></asp:LinkButton>
                                                      </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Limit(Base Eqv.)" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label15" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Limit")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Limit Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label16" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Limit_Source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Exposure Name" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label17" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ExposureDescription")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Exp. Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label18" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Exp_Source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Reference" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label19" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Reference")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Ccy" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label20" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Ccy")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Limit Used" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label21" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Exposure")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="FX Rate" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label22" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FXRate")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Limit Used(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label23" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LimitUsed")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                          <asp:TemplateColumn HeaderText="Limit Earmarked" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbLimitEarmarked" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LimitEarmark")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                       
                                                        <asp:TemplateColumn HeaderText="Available Limit(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label24" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"AvailableLimitOrLimitExcess_NonLiq")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                     
                                                       <asp:TemplateColumn HeaderText="MTM(Base Eqv.)" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbMTM" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CleanLimit")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Coll.Req'd(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label25" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"MarginCollateralRequired")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Total Coll.Req'd(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label26" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"GrdMargColl")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                           
              </Columns>
      </asp:DataGrid>
      </td>
        </tr>--%>
        
<%--   <tr>
        <td>
        <asp:Panel ID="pnlExpoNonMargin" runat ="server" >
        <asp:DataGrid ID="dgLimitExpoNonMargin2" runat="server" AutoGenerateColumns="False"
                                                     BorderStyle="None" CellPadding="3" CssClass="Grid"  AllowPaging="true"
                                                    PageSize="5">
                                                    <SelectedItemStyle CssClass="GridItemSelect"></SelectedItemStyle>
                                                    <PagerStyle Mode="NumericPages" NextPageText="" PrevPageText="" />
                                                    <AlternatingItemStyle CssClass="AlternatItemStyle"></AlternatingItemStyle>
                                                    <ItemStyle CssClass="GridItem"></ItemStyle>
                                                    <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                                                    <Columns>
                                                    
                                                    
                                                        <asp:TemplateColumn HeaderText="Facility Type" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            <asp:Label ID="Label27" runat="server"  CommandName="Select" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FacilityType")%>'></asp:Label>
                                                      </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Limit(Base Eqv.)" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label28" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Limit")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Limit Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label29" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Limit_Source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Exposure Name" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label30" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ExposureDescription")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Exp. Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label31" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Exp_Source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Reference" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label32" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Reference")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Ccy" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label33" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Ccy")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Limit Used" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label34" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Exposure")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="FX Rate" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label35" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FXRate")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Limit Used(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label36" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LimitUsed")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                          <asp:TemplateColumn HeaderText="Limit Earmarked" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label37" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LimitEarmark")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                       
                                                        <asp:TemplateColumn HeaderText="Available Limit(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label38" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"AvailableLimitOrLimitExcess_NonLiq")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                     
                                                       <asp:TemplateColumn HeaderText="MTM(Base Eqv.)" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label39" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CleanLimit")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Coll.Req'd(Base Eqv.)" Visible="true" ItemStyle-Width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label40" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"MarginCollateralRequired")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                       
              </Columns>
      </asp:DataGrid>
      </asp:Panel>
        </td>
        </tr>
        
        </table>
        </div>
        </td>
        </tr>--%>
        
   <%--      <tr>
  <td>
   <div style ="border :0px !important;">
   <table class ="filter">
   <tr>
   <td  class="background_gray">
     <asp:Label ID="Label41" runat="server" Text="Liquid Collateral Portfolio (to support Margin & Non-Margin Facilities)" ForeColor="Brown"></asp:Label>
                                  
                                       </td>
                                       </tr>
                                       <tr>
                                       <td>
                                      
                                       <asp:DataGrid ID="dgLiqCollPortfolio" runat="server" AutoGenerateColumns="False" 
                                                   BorderStyle="None" CellPadding="3" CssClass="Grid" AllowPaging="true"
                                                    PageSize="5">
                                                    <SelectedItemStyle CssClass="GridItemSelect"></SelectedItemStyle>
                                                    <PagerStyle Mode="NumericPages" NextPageText="" PrevPageText="" />
                                                    <AlternatingItemStyle CssClass="AlternatItemStyle"></AlternatingItemStyle>
                                                    <ItemStyle CssClass="GridItem"></ItemStyle>
                                                    <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                                                    <Columns>
                                                     <asp:TemplateColumn HeaderText="" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            <asp:ImageButton ID="ImageButton2" CommandName="Select" Height="18px" Width="18px" runat="server" ImageUrl="~/App_Themes/images/SmallUp.png"  />
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                    
                                                        <asp:TemplateColumn HeaderText="Collateral Type" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            
                                                            <asp:LinkButton ID="lnkCollateralType" runat="server"  CommandName="Select" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CollateralType")%>'></asp:LinkButton>
                                                              
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Coll. Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbCollSource" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"coll_source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                            <asp:TemplateColumn HeaderText="Stock Code/Coll.Ref." Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbStockCode" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"StockCode")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Collateral Name" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbCollateralName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CollateralName")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="3rd Party A/C No." Visible="true" ItemStyle-Width="60">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Unit" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbUnit" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"AmountUnit")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Unit Held" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbUnitHeld" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"UnitHeldforCoveredCallDQ")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Ccy" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label42" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Ccy")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Market Price" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbMarketPrice" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"MarketPrice")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Market Value" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbMarketValue" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"MarketValue")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="FX Rate" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label43" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FXRate")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                       
                                                        <asp:TemplateColumn HeaderText="Market Value(Base Eqv.)" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False"  />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbMarketValHKD" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"MarketValueHKD")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Lending Ratio" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbLendingRatio" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LendingRatio")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Value After Lending Ratios(Base Eqv.)" Visible="true" ItemStyle-Width="120" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbValLenRatio" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ValueafterLendingRatioHKD")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Value After Conc. Rules(Base Eqv.)" Visible="true" ItemStyle-Width="120">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbValConcRul" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ValueafterConcRulesHKD")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Weighting(%)" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbWeighting" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Weighting")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                           <asp:TemplateColumn HeaderText="Conc. Rule ID" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbConcRuleID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IL_Conc_Last_Updated_Rule_ID")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        
                                                      
              </Columns>
      </asp:DataGrid>
                                       
                                       </td>
                                       </tr>
  
  </table>
  </div>
  </td>
  </tr>--%>

  
 <%--  <tr>
  <td>
   <div style ="border :0px !important;">
   <table class ="filter">
   <tr>
   <td  class="background_gray">
     <asp:Label ID="Label44" runat="server" Text="Non-Liquid Collateral Portfolio less Life Insurance Policies, Properties, Standby LC's, Bank Guarantees (to support Non-Margin Facilities Only)" ForeColor="Brown"></asp:Label>
                                  
                                       </td>
                                       </tr>
                                       <tr>
                                       <td>
                                      
                                       <asp:DataGrid ID="dgNonLiqCollPortLess" runat="server" AutoGenerateColumns="False" 
                                                   BorderStyle="None" CellPadding="3" CssClass="Grid" AllowPaging="true"
                                                    PageSize="5">
                                                    <SelectedItemStyle CssClass="GridItemSelect"></SelectedItemStyle>
                                                    <PagerStyle Mode="NumericPages" NextPageText="" PrevPageText="" />
                                                    <AlternatingItemStyle CssClass="AlternatItemStyle"></AlternatingItemStyle>
                                                    <ItemStyle CssClass="GridItem"></ItemStyle>
                                                    <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                                                    <Columns>
                                                     <asp:TemplateColumn HeaderText="" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            <asp:ImageButton ID="ImageButton3" CommandName="Select" Height="18px" Width="18px" runat="server" ImageUrl="~/App_Themes/images/SmallUp.png"  />
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                    
                                                        <asp:TemplateColumn HeaderText="Collateral Type" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            
                                                           
                                                                <asp:Label ID="lbCollateralType" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CollateralType")%>'></asp:Label> 
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Coll. Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label45" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"coll_source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                           <asp:TemplateColumn HeaderText="Stock Code/Coll.Ref." Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label46" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"StockCode")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Collateral Name" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label47" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CollateralName")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="3rd Party A/C No." Visible="true" ItemStyle-width="60">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label48" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"3_rdparty")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                            <asp:TemplateColumn HeaderText="Ccy" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label49" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Ccy")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Amount/Unit" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label50" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"AmountUnit")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                             <asp:TemplateColumn HeaderText="Market Price" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label51" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Mkt_PriceOrg")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                            <asp:TemplateColumn HeaderText="Market Value" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label52" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Mkt_ValueOrg")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                             <asp:TemplateColumn HeaderText="FX Rate" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label53" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FXRate")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                       
                                                        <asp:TemplateColumn HeaderText="Market Value(Base Eqv.)" Visible="true" ItemStyle-width="80" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False"  />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label54" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"MarketValueHKD")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                  
                                                       <asp:TemplateColumn HeaderText="Lending Ratio" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label55" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LendingRatio")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Value After Lending Ratios(Base Eqv.)" Visible="true" ItemStyle-width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label56" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ValueafterLendingRatioHKD")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Value After Conc. Rules(Base Eqv.)" Visible="true" ItemStyle-width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label57" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ValueafterConcRulesHKD")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Weighting(%)" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label58" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Weighting")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                           <asp:TemplateColumn HeaderText="Conc. Rule ID" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label59" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IL_Conc_Last_Updated_Rule_ID")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        
                                                      
              </Columns>
      </asp:DataGrid>
                                       
                                       </td>
                                       </tr>
  
  </table>
  </div>
  </td>
  </tr>--%>
 
  
  <%-- <tr>
  <td>
   <div style ="border :0px !important;">
   <table class ="filter">
   <tr>
   <td  class="background_gray">
     <asp:Label ID="Label60" runat="server" Text="Non-Liquid Collateral Portfolio - Life Insurance Policies, Properties, Standby LC's, Bank Guarantees (to support Non-Margin Facilities Only)" ForeColor="Brown"></asp:Label>
                                  
                                       </td>
                                       </tr>
                                       <tr>
                                       <td>
                                      
                                       <asp:DataGrid ID="dgNonLiqCollPortLifeInsu" runat="server" AutoGenerateColumns="False" 
                                                   BorderStyle="None" CellPadding="3" CssClass="Grid" AllowPaging="true"
                                                    PageSize="5">
                                                    <SelectedItemStyle CssClass="GridItemSelect"></SelectedItemStyle>
                                                    <PagerStyle Mode="NumericPages" NextPageText="" PrevPageText="" />
                                                    <AlternatingItemStyle CssClass="AlternatItemStyle"></AlternatingItemStyle>
                                                    <ItemStyle CssClass="GridItem"></ItemStyle>
                                                    <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                                                    <Columns>
                                                     <asp:TemplateColumn HeaderText="" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            <asp:ImageButton ID="ImageButton4" CommandName="Select" Height="18px" Width="18px" runat="server" ImageUrl="~/App_Themes/images/SmallUp.png"  />
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                    
                                                        <asp:TemplateColumn HeaderText="Collateral Type" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                            
                                                           
                                                                <asp:Label ID="Label61" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CollateralType")%>'></asp:Label> 
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Coll. Source" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label62" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"coll_source")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                           <asp:TemplateColumn HeaderText="Coll.Ref." Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label63" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"StockCode")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Collateral Name" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label64" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CollateralName")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="3rd Party A/C No." Visible="true" ItemStyle-width="60"> 
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label65" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"3_rdparty")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                            <asp:TemplateColumn HeaderText="Ccy" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label66" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Ccy")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Amount" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label67" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"AmountUnit")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                             <asp:TemplateColumn HeaderText="Market Price" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label68" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Mkt_PriceOrg")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                            <asp:TemplateColumn HeaderText="Market Value" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label69" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Mkt_ValueOrg")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                             <asp:TemplateColumn HeaderText="FX Rate" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label70" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"FXRate")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                       
                                                        <asp:TemplateColumn HeaderText="Market Value(Base Eqv.)" Visible="true"  >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False"  />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label71" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"MarketValueHKD")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                  
                                                       <asp:TemplateColumn HeaderText="Lending Ratio" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label72" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LendingRatio")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Value After Lending Ratios(Base Eqv.)" Visible="true" ItemStyle-width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label73" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ValueafterLendingRatioHKD")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Value After Conc. Rules(Base Eqv.)" Visible="true" ItemStyle-width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label74" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ValueafterConcRulesHKD")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                        <asp:TemplateColumn HeaderText="Weighting(%)" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label75" runat="server" ></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                           <asp:TemplateColumn HeaderText="Conc. Rule ID" Visible="true" >
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label76" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IL_Conc_Last_Updated_Rule_ID")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
              </Columns>
      </asp:DataGrid>
                                       
                                       </td>
                                       </tr>
  
  </table>
  </div>
  </td>
  </tr>--%>
  
  
 <%-- <tr>
  <td>
   <div style ="border :0px !important;">
   <table class ="filter">
   <tr>
   <td  class="background_gray">
     <asp:Label ID="Label77" runat="server" Text="Earmarking of Loanable Collateral Value/Pending Settlement Adjustments/Other Adjustments" ForeColor="Brown"></asp:Label>
                                  
                                       </td>
                                       </tr>
                                       <tr>
                                       <td>
                                      
                                       <asp:DataGrid ID="dgEarmarking" runat="server" AutoGenerateColumns="False" 
                                                   BorderStyle="None" CellPadding="3" CssClass="Grid" AllowPaging="true"
                                                    PageSize="5">
                                                    <SelectedItemStyle CssClass="GridItemSelect"></SelectedItemStyle>
                                                    <PagerStyle Mode="NumericPages" NextPageText="" PrevPageText="" />
                                                    <AlternatingItemStyle CssClass="AlternatItemStyle"></AlternatingItemStyle>
                                                    <ItemStyle CssClass="GridItem"></ItemStyle>
                                                    <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                                                    <Columns>
                                                    
                                                    
                                                        <asp:TemplateColumn HeaderText="Description" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False" width="400"/>
                                                            <ItemTemplate>
                                                            
                                                          
                                                                <asp:Label ID="lbDescription" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Description")%>'></asp:Label> 
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Liquid Y/N" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbLiqYN" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LiquidYN")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                           <asp:TemplateColumn HeaderText="Valid Till" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbValidTill" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"valid_till")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Amt Earmarked(Base)" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="false" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbAmtEarmarked" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"AmtEarmarkedHKD")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
              </Columns>
      </asp:DataGrid>
                                       
                                       </td>
                                       </tr>
  
  </table>
  </div>
  </td>
  </tr>--%>
  
  
<%--  <tr>
  <td>
   <div style ="border :0px !important;">
   <table class ="filter">
   <tr>
   <td  class="background_gray">
     <asp:Label ID="Label78" runat="server" Text="Available Loanable Value" ForeColor="Brown"></asp:Label>
                                  
      </td>
      </tr>
      
      <tr>
      <td>
       <asp:Label ID="Label79" runat="server" Text="[1] Previous Day Closing" ForeColor="Blue" Font-Bold="true"></asp:Label> <br/>
 
        <asp:Label ID="Label80" runat="server" Text="[2] After all Intra-Day Transactions and Collateral Adjustments" Font-Bold="true" ForeColor="Blue"></asp:Label>
      </td>
      </tr>
                                       
                                       <tr>
                                       <td>
                                      
                                       <asp:DataGrid ID="dgAvlblLoanableValue" runat="server" AutoGenerateColumns="False" 
                                                   BorderStyle="None" CellPadding="3" CssClass="Grid" AllowPaging="true"
                                                    PageSize="5">
                                                    <SelectedItemStyle CssClass="GridItemSelect"></SelectedItemStyle>
                                                    <PagerStyle Mode="NumericPages" NextPageText="" PrevPageText="" />
                                                    <AlternatingItemStyle CssClass="AlternatItemStyle"></AlternatingItemStyle>
                                                    <ItemStyle CssClass="GridItem"></ItemStyle>
                                                    <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                                                    <Columns>
                                                     
                                                    
                                                        <asp:TemplateColumn HeaderText="Collateral Liquidity" Visible="true">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="False"/>
                                                            <ItemTemplate>
                                                            
                                                            
                                                                <asp:Label ID="lbCollLiq" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CollateralType")%>'></asp:Label> 
                                                       </ItemTemplate>
                                                       </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="[1]Previous Day Closing:Available Loanable Value" Visible="true" ItemStyle-width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbAvlblLoanbleVal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"AvailableLoanableValuePreviousDayClosing")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                           <asp:TemplateColumn HeaderText="Value after Lending Ratio/Conc.Rules & FX Haircut" Visible="true" ItemStyle-width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbValaftercuttings" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LoanableValueafterFXHaircut")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
                                                        <asp:TemplateColumn HeaderText="Value after Collateral Req.(g)/(h)" Visible="true" ItemStyle-width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbValafterCollReq" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ValueafterMarginCollateralRequired")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                          <asp:TemplateColumn HeaderText="Value after Earmarking + Pending Settlement(f)" Visible="true" ItemStyle-width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbValafterEarmarking" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ValueafterEarmarkingPendingSettlement")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                         
                                                             
                                                          <asp:TemplateColumn HeaderText="[2]Current Avail. Laonable Value" Visible="true" ItemStyle-width="80">
                                                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" Wrap="False" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbCurrentAvlblLoanableVal" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"AvailLoanableValueafterallIntadayLoanTxnsCollateralAdjust")%>'></asp:Label>
                                                       </ItemTemplate>
                                                         </asp:TemplateColumn>
                                                       
              </Columns>
      </asp:DataGrid>
                                       
                                       </td>
                                       </tr>
  
  </table>
  </div>
  </td>
  </tr>--%>
  
 <%-- <tr>
  <td>
   <div style ="border :0px !important;">
   <table class="filter" border="0.5">
   <tr>
   <td>
     <asp:Label ID="Label81" runat="server" Text="Concentration Rule Execution Detail(s)" ForeColor="Brown" Font-Bold ="true"></asp:Label>
     </td>
      </tr>
      
      <tr>
      <td>
       <asp:Label ID="lblConcRule1" runat="server" CssClass="lbl"></asp:Label>
      </td> 
         <td>
       <asp:Label ID="lblConcRule2" runat="server" CssClass="lbl"></asp:Label>
      </td> 
      </tr>
      
  </table>
  </div>
  </td>
  </tr>
  </table--%>        



                <%--<table>

                    <tr>
            <td>
                <asp:label id="lblError" runat="server" cssclass="lblError"></asp:label>
            </td>
        </tr>

                    <tr>
                        <td class="span">
                          <span>Customer Name : </span>
                        </td>
                        <td class="label">
                            <asp:Label ID="lblCustomerName" runat="server"></asp:Label>
                        </td>
                   
                                                                    </tr>
                     
                    <td>
                            <fieldset style="width: 105px; padding: 4px; height: 50px; vertical-align: middle;">
                                <legend>Entity</legend>
                                <asp:dropdownlist id="cboEntity" runat="server" cssclass="ddl" width="100px">
                                                                </asp:dropdownlist>
                            </fieldset>


                        </td>

                     <td>
                            <fieldset style="width: 350px; padding: 4px; height: 50px; vertical-align: middle;">
                                <legend>Group Filter</legend>
                                <asp:textbox id="txtGroupID" runat="server" cssclass="txt" width="50px" readonly="true"></asp:textbox>
                                <asp:textbox id="txtGroupName" runat="server" cssclass="txt" width="250px" autopostback="true"></asp:textbox>
                                <asp:button id="btnSelectGroup" runat="server" text="" cssclass="btnSearch" />
                            </fieldset>
                        </td>
                        <td>
                            <fieldset style="width: 350px; padding: 4px; height: 50px; vertical-align: middle; border: none;">
                                <legend></legend>
                                <asp:button id="btnLoad" runat="server" text="Load" cssclass="btn" width="75px" />
                            </fieldset>
                        </td>

                    <td>
                            <asp:panel id="pnlGrpFilter" runat="server" width="475px" height="300px" style="top: 100px; left: 450px; border: solid 1px black; box-shadow: 0 0 10px #666; z-index: 10; position: absolute; background-color: White; color: White; padding: 4px; cursor: move;"
                                onmousedown="dragOBJ(this,event); return false;" visible="false">
                                        <table width="100%" class="filter">
                                            <tr class="GridHeaderTitle">
                                                <td>
                                                    <table cellpadding="0" cellspacing="0" style="height: 100%; width: 100%;">
                                                        <tr>
                                                            <td width="90%">
                                                                &nbsp;<asp:Label Style="background-color: Transparent; color: White; text-align: justify;
                                                                    font-size: 11px;" ID="lblGroupFilter" runat="server">Customer Group Search</asp:Label>
                                                            </td>
                                                            <td align="right" width="10%">
                                                               <asp:Button ID="btnCloseInfo" ToolTip="Close" runat="server" Font-Bold="true" Text="X"
                                                                    Height="18" Width="18" CssClass="btn" />&nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <fieldset>
                                                        <asp:DropDownList ID="cboSearchCriteria" runat="server" CssClass="ddl" Width="100px">
                                                        </asp:DropDownList>
                                                        <asp:TextBox ID="txtSearchText" runat="server" CssClass="txt" Width="200px"></asp:TextBox>
                                                        <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="btn" />
                                                        <asp:Button ID="btnLoadAll" runat="server" Text="Load All" CssClass="btn" />
                                                    </fieldset>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <fieldset>
                                                        <legend>
                                                            <asp:Label runat="server" ID="lblTotalRecords">Total Record(s) : (0)</asp:Label></legend>
                                                            <asp:Panel ID="pnlGroupData" runat="server" ScrollBars="Auto" Width="470px" Height="250px">
                                                            <asp:GridView ID="dgvCustomerGroup" runat="server" CssClass="Grid" Width="465px"
                                                                AutoGenerateColumns="false">
                                                                <HeaderStyle CssClass="GridHeaderTitle" Height="25" />
                                                                <SelectedRowStyle CssClass="GridItemSelect" />
                                                                <FooterStyle CssClass="GridFooter" />
                                                                <RowStyle CssClass="GridItemLcl" />
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="Group ID" HeaderStyle-Wrap="false">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkGroupID" runat="server" CommandName="Select" Text='<%# Bind("Group_Id") %>'
                                                                                CausesValidation="False"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle Wrap="true" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                        <ItemStyle HorizontalAlign="LEFT" VerticalAlign="Middle" Wrap="true" />
                                                                    </asp:TemplateField>
                                                                   <asp:BoundField HeaderText="Group Name" DataField="Group_Name" ItemStyle-VerticalAlign="Middle"
                                                                        ItemStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField HeaderText="Group Code" DataField="Group_Code" ItemStyle-VerticalAlign="Middle"
                                                                        ItemStyle-HorizontalAlign="Left" />
                                                                </Columns>
                                                            </asp:GridView>
                                                        </asp:Panel>
                                                    </fieldset>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:panel>

                            <input type="hidden" runat="server" id="hdnPanelXPosition" value="100px" />
                            <input type="hidden" runat="server" id="hdnPanelYPosition" value="450px" />
                        </td>
                      
                        </table>--%>
                 
                                    
                </table>

           
        </ContentTemplate>


    </asp:updatepanel>





</form>

    </body>
</html>