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

<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>
<%@ Register Src="../FinIQ_User_Controls/Smart_Search_Customer_Control/FinIQ_Customer_SmartSearch.ascx"
    TagName="FinIQ_Customer_SmartSearch" TagPrefix="ucsmart" %>
<asp:Content
    ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy11" runat="server">
    </asp:ScriptManagerProxy>

    <script type="text/javascript">
        function scrollPosition() {
            var div = "";

        div = document.getElementById("divLogin").scrollTop;
             localStorage.setItem("scrollPosition", div);

           // alert(div)
          
        }

        $(function () {

          
            if (localStorage.getItem("scrollPosition") != undefined && localStorage.getItem("scrollPosition") != null) {
                $("#divLogin").scrollTop( localStorage.getItem("scrollPosition"));
            }



        })
</script>

    <style>
        .Grid {
            table-layout: fixed;
        }

            .Grid th, .Grid td {
                word-wrap: break-word;
            }

        #ctl00_MainContent_FindCustSmart_ddlCustSearch {
            width: 190px !important;
        }
    </style>
    <asp:UpdatePanel ID="UpdatepanelMain" runat="server" UpdateMode="Conditional">
        <ContentTemplate>

            <table>
                <tr>
                    <td>
                        <asp:Label ID="lblError" runat="server" CssClass="lblerror"></asp:Label>
                        <asp:Label ID="lblInfo" runat="server" CssClass="lblinfo"></asp:Label>
                        <asp:Label ID="lblSuccess" runat="server" CssClass="lblSuccess"></asp:Label>
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lblchkLogin" runat="server" CssClass="lbl" Text="Login"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblchkObject" runat="server" CssClass="lbl" Text="Object Name"></asp:Label>
                                </td>
                            </tr>
                            <tr>

                                <td>

                                    <div id="divLogin" style="z-index: 1; overflow: auto; width: 180px; height: 250px; float: left; margin-top: 10px" onscroll="scrollPosition()">
                                        <asp:CheckBoxList ID="chklstLoginName" runat="server" CssClass="RadioBtn" AutoPostBack="true" >
                                        </asp:CheckBoxList>
                                    </div>

                                </td>
                                <td>

                                    <div id="divObject" style="z-index: 1; overflow: auto; width: 200px; height: 250px; float: left; margin-top: 10px">
                                        <asp:CheckBoxList ID="chklstObjectName" runat="server" AutoPostBack="true" CssClass="RadioBtn">
                                        </asp:CheckBoxList>
                                    </div>

                                </td>
                            </tr>
                        </table>
                    </td>
                    <td style="float: left">
                        <table>
                            <tr>
                                <td style="width: 100px">
                                    <asp:Label ID="lblEntity" runat="server" CssClass="lbl" Text="<%$ Resources:LocalizedText, Entity %>"></asp:Label>
                                </td>
                                <td style="width: 220px">
                                    <asp:DropDownList ID="ddlEntity" runat="server" CssClass="ddl" Width="190px"></asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span style="color: #FF0000;">*</span>
                                    <asp:Label ID="lblDepositCcy" runat="server" CssClass="lbl">Deposit Ccy</asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlDepositccy" runat="server" AutoPostBack="True" CssClass="ddl" Width="190px"></asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span style="color: #FF0000">*</span>
                                    <asp:Label ID="lblAlternateCcy" runat="server" CssClass="lbl">Alternate Ccy</asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlAlternateccy" runat="server" CssClass="ddl" Width="190px"
                                        AutoPostBack="True">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span style="color: #FF0000">*</span>
                                    <asp:Label ID="Label5" runat="server" CssClass="lbl">Maturity</asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="lstTenor" runat="server" CssClass="ddl" Width="190px" TabIndex="5" AutoPostBack="True"></asp:DropDownList>
                                    <asp:TextBox ID="txt_maturity1" runat="server" CssClass="txt" Width="193px"></asp:TextBox>

                                </td>

                                <td style="display: none">

                                    <asp:Label ID="lblLoginName" runat="server" CssClass="lbl">Login Name</asp:Label>
                                </td>
                                <td style="display: none">
                                    <asp:DropDownList ID="ddlLoginName" runat="server" AutoPostBack="True" CssClass="ddl" Width="190px" TabIndex="1"></asp:DropDownList>
                                </td>

                                <td>
                                    <asp:TextBox ID="txtCustomer" runat="server" Width="135px" Enabled="False"
                                        TabIndex="10"></asp:TextBox>
                                    <%--'Commented by Ashwini to build--%>
                                    <%--<asp:Panel ID="pnlcustomer" runat="server" Width="227px">
                                                                   <%-- <UC_CustomerControl:FinIQ_Fast_Find_Customer ID="FinIQ_Fast_Find_Customer1" runat="server"
                                                                        Visible="true" Show_Hide_Customer_Name="True" TabIndex="11" />
                                                                    <ucsmart:FinIQ_Customer_SmartSearch runat="server" Style="vertical-align: top; white-space: nowrap;" SetTabIndex="1" ID="FindCustSmart" />
                                                                </asp:Panel>--%>
                                    <input id="hdnCustomerID" style="width: 32px; height: 22px" type="hidden" size="1"
                                        name="Hidden1" runat="server" visible="false">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span style="color: #FF0000;">*</span>
                                    <asp:Label ID="lblNotional" runat="server" CssClass="lbl">Notional</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txt_notional1" runat="server" CssClass="txt" Style="text-align: right" Width="190px" TabIndex="6"
                                        MaxLength="10" AutoPostBack="true"></asp:TextBox>
                                    <ajaxtoolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers, LowercaseLetters, UppercaseLetters,Custom" ValidChars=".," TargetControlID="txt_notional1" />

                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span style="color: #FF0000">*</span>
                                    <asp:Label ID="lblDealingRM" runat="server" CssClass="lbl" Visible="true">RM (Dealing)</asp:Label><%--false--%>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlRMDealing" runat="server" CssClass="ddl" Width="190px" Visible="true">
                                        <%--false--%>
                                    </asp:DropDownList>
                                </td>



                            </tr>

                            <tr>
                                 
                                <td>
                                    <span style="color: #FF0000">*</span>
                                    <asp:Label ID="lblDepartment" runat="server" Visible="true">Department</asp:Label><%--false--%>

                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" Visible="true" Width="190px" CssClass="ddl">
                                        <%--false--%>
                                    </asp:DropDownList>
                                </td>

                            </tr>

                        </table>
                        <table>
                            <tr>
                                <td style="width: 100px">
                                    <%--             <span style="color: #FF0000" >*</span>--%>
                                    <asp:Label ID="lblCustomerMan" runat="server" CssClass="mandatory" Visible="false" EnableViewState="False">*</asp:Label>
                                    <asp:Label ID="lblCustomer" Style="margin-left: 10px;" runat="server">Customer</asp:Label>
                                </td>

                                <td>
                                    <asp:Panel ID="pnlcustomer" runat="server">

                                        <ucsmart:FinIQ_Customer_SmartSearch ID="FindCustSmart" runat="server" style="white-space: nowrap; width: 190px;" OnUC_Postback="FindCustSmart_UC_Postback" settabindex="1" />
                                        <asp:HiddenField ID="hdCustomerId" runat="server" />
                                        <asp:HiddenField ID="hdnCustName" runat="server" />


                                    </asp:Panel>
                                </td>

                            </tr>


                        </table>
                    </td>
                </tr>
            </table>

            <table style="margin-top: 20px">
                <tr>
                    <td>
                        <asp:Button ID="btnDisplayForUpdate" runat="server" CssClass="btn" Text="Display Selection For Update"
                            Width="200px" />
                    </td>
                    <td>
                        <asp:Button ID="btnPersonalSettings" runat="server" CssClass="btn" Text="Define New Personal Settings"
                            Width="200px" />
                    </td>

                </tr>
            </table>

          

            <table style="margin-top: 20px">
                <tr>
                    <td>
					 <%-- <ManasiA || 17-May-2021 || Added scroll and removed page indexing> --%>
                         <div id="DIV2" style="overflow-y: auto;height:280px" runat="server">
                        <asp:GridView ID="grdBulkLDS" runat="server" CssClass="Grid" AutoGenerateColumns="false" 
                            AllowPaging="false" ShowHeaderWhenEmpty="true"
                            AllowSorting="True">
                            <RowStyle CssClass="GridItem" />
                            <HeaderStyle CssClass="GridHeader" />
                            <FooterStyle CssClass="GridFooter" />
                            <PagerStyle CssClass="GridPager" />
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:CheckBox runat="server" ID="chkAll" AutoPostBack="true" Enabled="true" visible="false" OnCheckedChanged="chkAll_CheckedChanged" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkGrid" runat="server" AutoPostBack="true" OnCheckedChanged="chkGrid_CheckedChanged" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--0--%>
                                <asp:TemplateField HeaderText="Entity ID" ItemStyle-HorizontalAlign="Right">
                               
                                    <ItemTemplate>
                                        <asp:Label ID="lblEntityId" runat="server" Width="50px" Text='<%# Eval("EntityID")%>'></asp:Label>

                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <%--1--%>

                                <asp:TemplateField HeaderText="Entity Name" ItemStyle-HorizontalAlign="Left">
                                
                                    <ItemTemplate>
                                        <asp:Label ID="lblEntityName" runat="server" Width="80px" Text='<%# Eval("EntityName")%>'></asp:Label>

                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <%--2--%>

                                <asp:TemplateField HeaderText="ID" ItemStyle-HorizontalAlign="Left">
                                 
                                    <ItemTemplate>
                                         <asp:Label ID="lblID" runat="server" Width="30px" Text='<%#DataBinder.Eval(Container, "DataItem.ID") %>'></asp:Label>

                                      
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--3--%>

                                <asp:TemplateField HeaderText="Login Name" ItemStyle-HorizontalAlign="Left">
                                 
                                    <ItemTemplate>
                                        <asp:Label ID="lblLoginName" runat="server" Width="60px" Text='<%# Eval("LoginName")%>'></asp:Label>

                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--4--%>

                                <asp:TemplateField HeaderText="Object Name" ItemStyle-HorizontalAlign="Left">

                                    <ItemTemplate>
                                        <asp:Label ID="lblObjectName" runat="server" Width="80px" Text='<%# Eval("ObjectName")%>'></asp:Label>
                                     <asp:DropdownList ID="ddlObjectName1" CssClass="txt" runat="server" Visible="false"></asp:DropdownList>
                                       </ItemTemplate>
                                    <EditItemTemplate>
                                       <asp:DropdownList ID="ddlObjectName" CssClass="txt" runat="server" Text='<%# Eval("ObjectName")%>'></asp:DropdownList>
                                     </EditItemTemplate>
                                </asp:TemplateField>
                                <%--5--%>

                                <asp:TemplateField HeaderText="Depo Ccy" ItemStyle-HorizontalAlign="Center">
                                
                                    <ItemTemplate>
                                        <asp:Label ID="lblDepoCcy" runat="server" Width="30px" Text='<%# Eval("DepoCcy")%>'></asp:Label>
                                         <asp:DropdownList ID="ddlDepoCcy1" CssClass="txt" runat="server" Visible="false" ></asp:DropdownList>
                                 
                                    </ItemTemplate>
                                      <EditItemTemplate>
                                        <asp:DropdownList ID="ddlDepoCcy" CssClass="txt" runat="server" Text='<%# Eval("DepoCcy")%>'></asp:DropdownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <%--6--%>

                                <asp:TemplateField HeaderText="Alt Ccy" ItemStyle-HorizontalAlign="Center">
                                  
                                    <ItemTemplate>
                                        <asp:Label ID="lblAltCcy" runat="server" Width="30px" Text='<%# Eval("AltCcy")%>'></asp:Label>
      <asp:DropdownList ID="ddlAltCcy1" CssClass="txt" runat="server" Visible="false" ></asp:DropdownList>
                                  
                                    </ItemTemplate>
                                      <EditItemTemplate>
                                        <asp:DropdownList ID="ddlAltCcy" CssClass="txt" runat="server" Text='<%# Eval("AltCcy")%>'></asp:DropdownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <%--7--%>

                                <asp:TemplateField HeaderText="Maturity" ItemStyle-HorizontalAlign="Center">
                                
                                    <ItemTemplate>
                                        <asp:Label ID="lblMaturity" runat="server" Width="50px" Text='<%# Eval("Maturity")%>'></asp:Label>
                                              <asp:DropdownList ID="ddlMaturity1" CssClass="txt" runat="server" Visible="false" ></asp:DropdownList>
                                  
                                    </ItemTemplate>
                                     <EditItemTemplate>
                                        <asp:DropdownList ID="ddlMaturity" CssClass="txt" runat="server" Text='<%# Eval("Maturity")%>'></asp:DropdownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <%--8--%>

                                <asp:TemplateField HeaderText="Notional" ItemStyle-HorizontalAlign="Right">

                                    <ItemTemplate>
                                        <asp:Label ID="lblNotional" runat="server" Width="80px" Text='<%# Eval("Notional")%>'></asp:Label>
   <asp:TextBox ID="txtNotional1" CssClass="txt" runat="server" Text='<%# Eval("Notional")%>' Visible="false"></asp:TextBox>
                                   
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                      <asp:TextBox ID="txtNotional" CssClass="txt" runat="server" Text='<%# Eval("Notional")%>'></asp:TextBox>
                                      </EditItemTemplate>
                                </asp:TemplateField>
                                <%--9--%>

                                <asp:TemplateField HeaderText="Customer" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="350px" ItemStyle-Width="350px">
                                
                                    <ItemTemplate>
                                        <asp:Label ID="lblCustomer" runat="server" Width="350px" Text='<%# Eval("Customer")%>'></asp:Label>
                                          <ucsmart:FinIQ_Customer_SmartSearch ID="FinIQ_Customer_SmartSearch1" runat="server" style="white-space: nowrap; width: 190px;" OnUC_Postback="FindCustSmart_UC_Postback" settabindex="1" Visible="false" />
                                        <asp:HiddenField ID="HiddenField1" runat="server" />
                                        <asp:HiddenField ID="HiddenField2" runat="server" />

                                    </ItemTemplate>
                                     <EditItemTemplate>
                                   
                                      

                               
                                         </EditItemTemplate>
                                </asp:TemplateField>
                                <%--10--%>

                                <asp:TemplateField HeaderText="Dealer" ItemStyle-HorizontalAlign="Left">
                                
                                    <ItemTemplate>
                                        <asp:Label ID="lblDealer" runat="server" Width="100px" Text='<%# Eval("Dealer")%>'></asp:Label>
                                              <asp:DropdownList ID="ddlDealer1" CssClass="txt" runat="server" Visible="false"></asp:DropdownList>
                                  
                                    </ItemTemplate>
                                     <EditItemTemplate>
                                        <asp:DropdownList ID="ddlDealer" CssClass="txt" runat="server" Text='<%# Eval("Dealer")%>'></asp:DropdownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <%--11--%>

                                <asp:TemplateField HeaderText="Department" ItemStyle-HorizontalAlign="Left">
                                  
                                    <ItemTemplate>
                                        <asp:Label ID="lblDepartment" runat="server" Width="80px" Text='<%# Eval("Book")%>'></asp:Label>
     <asp:DropdownList ID="ddlDepartment1" CssClass="txt" runat="server" Visible="false"></asp:DropdownList>
                                   
                                    </ItemTemplate>
                                      <EditItemTemplate>
                                        <asp:DropdownList ID="ddlDepartment" CssClass="txt" runat="server" Text='<%# Eval("Book")%>'></asp:DropdownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <%--12--%>

                                <asp:TemplateField HeaderText="Customer Id" ItemStyle-HorizontalAlign="right" Visible="false">
                                 
                                    <ItemTemplate>
                                        <asp:Label ID="lblCustomerId" runat="server" Width="30px" Text='<%# Eval("CustomerId")%>'></asp:Label>

                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--13--%>
                            </Columns>
                        </asp:GridView>
                             </div>
                    </td>
                </tr>
            </table>
            <table style="margin-top: 10px">
                <tr>
                    <td>
                        <asp:Button ID="btnUpdate" runat="server" CssClass="btn" Text="Update"
                            Width="150px" />
                    </td>
                    <td>
                        <asp:Button ID="btnRemoveFromScreen" runat="server" CssClass="btn" Text="Remove From Screen"
                            Width="150px" />
                    </td>

                    <td>
                        <asp:Button ID="btnDeleteFromDB" runat="server" CssClass="btn" Text="Delete From DB"
                            Width="150px" OnClientClick="return confirmationDialog(this, 'Confirmation', '\n Are you sure you want to Delete the Record(s) ?');" />
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="btn" Text="Refresh"
                            Width="150px" />
                    </td>

                    <td>
                        <asp:Button ID="btnSaveToDB" runat="server" CssClass="btn" Text="Save Screen To DB"
                            Width="150px" />
                    </td>
                    <td>
                        <asp:Button ID="btnCancel" runat="server" CssClass="btn" Text="Cancel"
                            Width="150px" />
                    </td>

                </tr>
                <asp:TextBox ID="txt_tag" runat="server" Visible="False"></asp:TextBox>
               <asp:HiddenField ID="hdnMode" runat="server" Value="" />
                 <asp:HiddenField ID="hdnOperateMode" runat="server" Value="" />
                 <asp:HiddenField ID="hdnUpdateMode" runat="server" Value="" />
                 <asp:HiddenField ID="hdnCheckCount" runat="server" Value="" />
                
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

