<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Collateral_Field_Mapping.aspx.vb" Inherits="FinIQWebApp.Collateral_Field_Mapping" MasterPageFile="~/FiniqAppMasterPage.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../App_Themes/UCPCTL.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />
    <style>
        .Captionwidth {
            min-width: 125px !important;
        }
    </style>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 100%">
                <tr>
                <td> <asp:Label ID="lblerror" CssClass="lblError" runat="server"></asp:Label></td>
                </tr>
                <tr>
                    <td>
                        <table>
                            <tr>
                            <td style="width:180px">
                            <asp:TextBox runat="server" ID="txtSearch" Width="160px" AutoPostBack="true" placeholder="Enter template to search"  ></asp:TextBox>
                            </td>
                            <td>
                            <asp:Button runat="server" ID="btnLoad" Text="Load" Width="110px" CssClass="btn" />
                            <asp:Button runat="server" ID="btnAdd" Text="Add" Width="110px" CssClass="btn" />
                            <asp:Button runat="server" ID="btnCancel" Text="Cancel" Width="110px" CssClass="btn" />
                            </td>
                                <td style="width:30px"></td>
                            <td style="text-align:left;width:120px">
                            <asp:Label ID="LblRowCountName" runat="server" Text="Total Record(s) "></asp:Label>
                            </td>
                            <td>
                            <asp:Label ID="LblRowCount" runat="server"></asp:Label>
                            </td>
                            </tr>
                            <tr>
                            <td>

                            </td>
                            <td>
                            <asp:Button runat="server" ID="btnDelete" Text="Delete" Width="110px" CssClass="btn" />
                            <asp:Button runat="server" ID="btnSave" Text="Save" Width="110px" CssClass="btn" />
                            <asp:Button runat="server" ID="btnExcel" Text="Excel" Width="110px" CssClass="btn" />
                            </td>
                                <td style="width:30px"></td>
                            <td style="text-align:left">
                            <asp:Label ID="lblrows" runat="server" Text="Record(s) Per Page"></asp:Label>
                            </td>
                            <td>
                            <asp:TextBox ID="txtRowsPerPage" runat="server" Text="15" AutoPostBack="true" Width="27px" oncopy="return false" onpaste="return false" oncut="return false" Style="text-align: right;"></asp:TextBox>
                            </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div id="GridDiv">

                        <asp:GridView ID="dgvMapping" runat="server" VerticalContentAlignment="Center" AutoGenerateColumns="false" CssClass="Grid" AllowSorting="True" ShowHeaderWhenEmpty="True" AllowPaging="true" PageSize="15"
                            EmptyDataText="No Records Found" DataKeyNames="UEM_Template_ID" HeaderStyle-CssClass="GridHeaderTitle">

                            <SelectedRowStyle CssClass="GridItemSelect" />
                            <RowStyle CssClass="GridItem" />
                            <HeaderStyle CssClass="GridHeader" />
                            <FooterStyle CssClass="GridFooter" />
                            <PagerStyle CssClass="GridPager" />

                            <Columns>
                                 <asp:TemplateField>
                                <HeaderTemplate>
                                <asp:CheckBox ID="chkAll"  runat="server" onclick="checkAll(this);" AutoPostBack="true" OnCheckedChanged="CheckALL"  />
                                </HeaderTemplate>
                                <ItemTemplate>
                                <asp:CheckBox ID="chk"  runat="server" AutoPostBack="true"  OnCheckedChanged="buttoncheck"></asp:CheckBox>
                                </ItemTemplate>
                                <HeaderStyle  HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"  />
                                </asp:TemplateField>


                                <%--1RowHeadersWidthSizeMode="DisableResizing;" --%>

                                <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                                    <ItemStyle Width="50px" />
                                    <HeaderStyle Width="50px" />
                                    <ItemTemplate>
                                        <table>
                                            <tr>
                                                <td style="text-align:center"><asp:LinkButton runat="server" ID="btnEdit"  CommandName="Edit" Text="Edit" Width="20px" style="text-align:center"/></td>
                                                <td style="text-align:center"><asp:LinkButton runat="server" ID="btnCopy"  CommandName="Copy" Text="Copy" Width="20px" style="text-align:center"/></td>
                                            </tr>
                                        </table>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:LinkButton ID="btnCancel" runat="server"  CommandName="Cancel" Text="Cancel" Width="50px" />
                                </EditItemTemplate>
                                </asp:TemplateField>

                                <%--2--%>
                                <asp:TemplateField HeaderText="UEM ID" Visible="false">
                                    <ItemTemplate>
                                        <asp:Label ID="lblUEM_ID" runat="server" Text='<%#Eval("UEM_ID")%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <%--3--%>
                                <asp:TemplateField HeaderText="Product">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblUEM_Product" runat="server" Text='<%#Eval("UEM_Product")%>' Width="100px" Visible="true"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlUEM_Product" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlUEM_Product_SelectedIndexChanged" Width="100px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--4--%>
                                <asp:TemplateField HeaderText="Scheme" >
                                    <HeaderStyle width="150px" Wrap="true"/>
                                    <ItemStyle width="150px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblUEM_Scheme" runat="server" Text='<%#Eval("UEM_Scheme")%>' Width="150px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlUEM_Scheme" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlUEM_Scheme_SelectedIndexChanged" Width="150px"></asp:DropDownList>
                                    </EditItemTemplate>
                                            
                                </asp:TemplateField>

                                <%--5--%>
                                <asp:TemplateField HeaderText="Template">
                                    <HeaderStyle width="150px" Wrap="true"/>
                                    <ItemStyle width="150px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblUEM_Template" runat="server" Text='<%#Eval("UEM_Template")%>' Width="150px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlUEM_Template" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlUEM_Template_SelectedIndexChanged" Width="150px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--6--%>
                                <asp:TemplateField HeaderText="Template ID" Visible="False">
                                    <ItemTemplate>
                                        <asp:Label ID="lblUEM_Template_ID" runat="server" Text='<%#Eval("UEM_Template_ID")%>'></asp:Label>
                                    </ItemTemplate>

                                </asp:TemplateField>

                                <%--7--%>
                                <asp:TemplateField HeaderText="Sub Template ID" Visible="false">
                                    <ItemTemplate>
                                        <asp:Label ID="lblUEM_Sub_Template_ID" runat="server" Text='<%#Eval("UEM_Sub_Template_ID")%>'></asp:Label>
                                    </ItemTemplate>

                                </asp:TemplateField>



                                <%--8--%>
                                <asp:TemplateField HeaderText="Link No">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblUEM_Link_No" runat="server" Text='<%#Eval("UEM_Link_No")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlUEM_Link_No" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--9--%>
                                <asp:TemplateField HeaderText="Deal ID">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px"  />
                                    <ItemTemplate>
                                        <asp:Label ID="lblUEM_Deal_ID" runat="server" Text='<%#Eval("UEM_Deal_ID")%>' width="300px" ></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlUEM_Deal_ID" runat="server" AutoPostBack="false" width="300px" ></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--10--%>
                                <asp:TemplateField HeaderText="Account No.">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px"  />
                                    <ItemTemplate>
                                        <asp:Label ID="lblAccNo" runat="server" Text='<%#Eval("AccNo")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlAccNo" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--11--%>
                                <asp:TemplateField HeaderText="Customer ID">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblCustomer_ID" runat="server" Text='<%#Eval("Customer_ID")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlCustomer_ID" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--12--%>
                                <asp:TemplateField HeaderText="SysCode">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblSysCode" runat="server" Text='<%#Eval("SysCode")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlSysCode" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--13--%>
                                <asp:TemplateField HeaderText="Type">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblType" runat="server" Text='<%#Eval("Type")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlType" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--14--%>
                                <asp:TemplateField HeaderText="Master ID">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblMaster_id" runat="server" Text='<%#Eval("Master_id")%>' Width="100px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlMaster_id" runat="server" AutoPostBack="false" Width="100px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--15--%>
                                <asp:TemplateField HeaderText="Code">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblCode" runat="server" Text='<%#Eval("Code")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlCode" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--16--%>
                                <asp:TemplateField HeaderText="Reference">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblReference" runat="server" Text='<%#Eval("Reference")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlReference" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--17--%>
                                <asp:TemplateField HeaderText="Currency">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblCurrency" runat="server" Text='<%#Eval("Currency")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlCurrency" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--18--%>
                                <asp:TemplateField HeaderText="Amount">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblAmount" runat="server" Text='<%#Eval("Amount")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlAmount" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--19--%>
                                <asp:TemplateField HeaderText="Description">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDesc" runat="server" Text='<%#Eval("Desc")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlDesc" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--20--%>
                                <asp:TemplateField HeaderText="Exchange Rate">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblExchRate" runat="server" Text='<%#Eval("ExchRate")%>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlExchRate" runat="server" AutoPostBack="false"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--21--%>
                                <asp:TemplateField HeaderText="HKDEqvAmt">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblHKDEqvAmt" runat="server" Text='<%#Eval("HKDEqvAmt")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlHKDEqvAmt" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--22--%>
                                <asp:TemplateField HeaderText="Facility Type">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblFacility_Type" runat="server" Text='<%#Eval("Facility_Type")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlFacility_Type" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--23--%>
                                <asp:TemplateField HeaderText="LiquidYN">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblLiquidYN" runat="server" Text='<%#Eval("LiquidYN")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlLiquidYN" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--24--%>
                                <asp:TemplateField HeaderText="Package Number">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblPackage_Number" runat="server" Text='<%#Eval("Package_Number")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlPackage_Number" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--25--%>
                                <asp:TemplateField HeaderText="Date1">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDate1" runat="server" Text='<%#Eval("Date1")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlDate1" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--26--%>
                                <asp:TemplateField HeaderText="Date2">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDate2" runat="server" Text='<%#Eval("Date2")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlDate2" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--27--%>
                                <asp:TemplateField HeaderText="Date3">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDate3" runat="server" Text='<%#Eval("Date3")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlDate3" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--28--%>
                                <asp:TemplateField HeaderText="Date4">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDate4" runat="server" Text='<%#Eval("Date4")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlDate4" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--29--%>
                                <asp:TemplateField HeaderText="Num1">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum1" runat="server" Text='<%#Eval("Num1")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlNum1" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--30--%>
                                <asp:TemplateField HeaderText="Num2">
                                    <HeaderStyle width="100px"/>
                                    <ItemStyle width="100px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum2" runat="server" Text='<%#Eval("Num2")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlNum2" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--31--%>
                                <asp:TemplateField HeaderText="Num3">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum3" runat="server" Text='<%#Eval("Num3")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlNum3" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--32--%>
                                <asp:TemplateField HeaderText="Num4">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum4" runat="server" Text='<%#Eval("Num4")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlNum4" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--33--%>
                                <asp:TemplateField HeaderText="Num5">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum5" runat="server" Text='<%#Eval("Num5")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlNum5" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--34--%>
                                <asp:TemplateField HeaderText="Num6">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum6" runat="server" Text='<%#Eval("Num6")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlNum6" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--35--%>
                                <asp:TemplateField HeaderText="Num7">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum7" runat="server" Text='<%#Eval("Num7")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlNum7" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--36--%>
                                <asp:TemplateField HeaderText="Num8">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum8" runat="server" Text='<%#Eval("Num8")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlNum8" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--37--%>
                                <asp:TemplateField HeaderText="Num9">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum9" runat="server" Text='<%#Eval("Num9")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlNum9" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--38--%>
                                <asp:TemplateField HeaderText="Num10">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNum10" runat="server" Text='<%#Eval("Num10")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlNum10" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--39--%>
                                <asp:TemplateField HeaderText="Char1">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblChar1" runat="server" Text='<%#Eval("Char1")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlChar1" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--40--%>
                                <asp:TemplateField HeaderText="Char2">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblChar2" runat="server" Text='<%#Eval("Char2")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlChar2" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--41--%>
                                <asp:TemplateField HeaderText="Char3">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblChar3" runat="server" Text='<%#Eval("Char3")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlChar3" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--42--%>
                                <asp:TemplateField HeaderText="Char4">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblChar4" runat="server" Text='<%#Eval("Char4")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlChar4" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--43--%>
                                <asp:TemplateField HeaderText="Char5">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblChar5" runat="server" Text='<%#Eval("Char5")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlChar5" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--44--%>
                                <asp:TemplateField HeaderText="Char6">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblChar6" runat="server" Text='<%#Eval("Char6")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlChar6" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--45--%>
                                <asp:TemplateField HeaderText="Char7">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblChar7" runat="server" Text='<%#Eval("Char7")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlChar7" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--46--%>
                                <asp:TemplateField HeaderText="Char8">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblChar8" runat="server" Text='<%#Eval("Char8")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlChar8" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--47--%>
                                <asp:TemplateField HeaderText="Char9">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblChar9" runat="server" Text='<%#Eval("Char9")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlChar9" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--48--%>
                                <asp:TemplateField HeaderText="Char10">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblChar10" runat="server" Text='<%#Eval("Char10")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlChar10" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--49--%>
                                <asp:TemplateField HeaderText="Exposure IM">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_IM" runat="server" Text='<%#Eval("EXP_IM")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_IM" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--50--%>
                                <asp:TemplateField HeaderText="Exposure MM">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_MM" runat="server" Text='<%#Eval("EXP_MM")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_MM" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--51--%>
                                <asp:TemplateField HeaderText="Exposure CM">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_CM" runat="server" Text='<%#Eval("EXP_CM")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_CM" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--52--%>
                                <asp:TemplateField HeaderText="Initial FCY">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_Initial_FCY" runat="server" Text='<%#Eval("EXP_Initial_FCY")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_Initial_FCY" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--53--%>
                                <asp:TemplateField HeaderText="Initial HKD">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_Initial_HKD" runat="server" Text='<%#Eval("EXP_Initial_HKD")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_Initial_HKD" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--54--%>
                                <asp:TemplateField HeaderText="Maintenence FCY">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_Maintenance_FCY" runat="server" Text='<%#Eval("EXP_Maintenance_FCY")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_Maintenance_FCY" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--55--%>
                                <asp:TemplateField HeaderText="Maintenance HKD">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_Maintenance_HKD" runat="server" Text='<%#Eval("EXP_Maintenance_HKD")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_Maintenance_HKD" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--56--%>
                                <asp:TemplateField HeaderText="Close FCY">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_Close_FCY" runat="server" Text='<%#Eval("EXP_Close_FCY")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_Close_FCY" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--57--%>
                                <asp:TemplateField HeaderText="Close HKD">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_Close_HKD" runat="server" Text='<%#Eval("EXP_Close_HKD")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_Close_HKD" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--58--%>
                                <asp:TemplateField HeaderText="Remaining Tenor">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_RemainingTenor" runat="server" Text='<%#Eval("EXP_RemainingTenor")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_RemainingTenor" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--59--%>
                                <asp:TemplateField HeaderText="Remaining Notional">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_RemainingNotional" runat="server" Text='<%#Eval("EXP_RemainingNotional")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_RemainingNotional" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--60--%>
                                <asp:TemplateField HeaderText="MTM Currency">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_MTMCurrency" runat="server" Text='<%#Eval("EXP_MTMCurrency")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_MTMCurrency" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--61--%>
                                <asp:TemplateField HeaderText="MTM Amount">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_MTMAmount" runat="server" Text='<%#Eval("EXP_MTMAmount")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_MTMAmount" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--62--%>
                                <asp:TemplateField HeaderText="MTM Revaluation Time">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_MTMRevaluationTime" runat="server" Text='<%#Eval("EXP_MTMRevaluationTime")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_MTMRevaluationTime" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--63--%>
                                <asp:TemplateField HeaderText="Product Identifier">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_ProductIdentifier" runat="server" Text='<%#Eval("EXP_ProductIdentifier")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_ProductIdentifier" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--64--%>
                                <asp:TemplateField HeaderText="COL_SSI AccountNo">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblCOL_SSIAccountNo" runat="server" Text='<%#Eval("COL_SSIAccountNo")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlCOL_SSIAccountNo" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--65--%>
                                <asp:TemplateField HeaderText="External Reference 1">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_ExternalRef1" runat="server" Text='<%#Eval("EXP_ExternalRef1")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_ExternalRef1" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                                <%--66--%>
                                <asp:TemplateField HeaderText="External Reference 2">
                                    <HeaderStyle width="300px"/>
                                    <ItemStyle width="300px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXP_ExternalRef2" runat="server" Text='<%#Eval("EXP_ExternalRef2")%>' Width="300px"></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEXP_ExternalRef2" runat="server" AutoPostBack="false" Width="300px"></asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>

                            </Columns>


                        </asp:GridView>
                          <%--  DrishtyR | 10-May-2020 | --%>
                        <asp:HiddenField id="hdnIUFlag" runat="server"  />
                    </div>
                    </td>
                </tr>
            </table>
           
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnExcel" />
        </Triggers>
    </asp:UpdatePanel>

</asp:Content>
