<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SearchNew.aspx.vb" Inherits="FinIQWebApp.SearchNew" Title="Advance Search" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

      <link href='<%=ResolveClientUrl("~/FinIQJS/jquery-ui.min.css")%>' rel="stylesheet">
     <script src='<%=ResolveClientUrl("~/FinIQJS/external/jquery/jquery.min.js")%>'></script>
     <script src='<%=ResolveClientUrl("~/FinIQJS/jquery-ui.min.js")%>'></script>


<head runat="server">
    <title>Advance Search</title>

     <link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />
     <script src="../FinIQJS/FinIQCommon.js" type="text/javascript"></script>
    <script src="../FinIQJS/CalendarPopup.js" type="text/javascript"></script>
    <script src="../FinIQJS/conformationBox.js" type="text/javascript"></script>

    <script type="text/javascript"  >
        function isNumber(evt) {
        evt = (evt) ? evt : window.event;
        var charCode = (evt.which) ? evt.which : evt.keyCode;
        if (charCode > 31 && (charCode < 48 || charCode > 57)) {
            return false;
        }
        return true;
        }
    </script>
</head>
<body onload="self.focus();">

    <style type="text/css">
        .bottom td div, .bottom td
        {
            margin: 0px;
            padding: 0px;
        }

            .bottom td div table tr td
            {
                margin: 0px;
                padding: 5px !important;
            }

            /*.bottom table tr td, .bottom td div
            {
                border: solid 1px #333 !important;
                background-color: #edf8fe !important;
                color: Black !important;
            }
*/
     /*   .Context_Menu
        {
            color: #000 !important;
        }
*/
        .wid
        {
            white-space: pre-line !important;
        }



        .QueuesItem .QueuesItem td
        {
/*            color: #000000;*/
            font-size: 11px !important;
            text-decoration: none;
            border-style: none !important;
            font: normal 11px !important;
        }

        .QueuesSelect
        {
        }



        .Queues .GridItem1 td, .Queues
        {
            border-style: none !important;
        }

        /*.Grid th
        {
            border: solid 1px #dddddd;
        }*/

       /* .GridHeader
        {
            color: black !important;
            border: solid 1px #dddddd;
            background-color: white !important;
        }*/

        .FilterPads
        {
            padding-left: 10px;
            padding-top: 10px;
        }
    </style>

    <form id="form1" runat="server">
        <asp:ScriptManager ID="sm1" runat="server" >
        </asp:ScriptManager>

        <asp:UpdatePanel runat="server" ID="updatepanel1" >
            <ContentTemplate>
                <%--  <fieldset>--%>
                <div class="FilterPads">
                    <table>
                        <tr>
                            <td>
                                <asp:Label runat="server" ID="lblMessage" Text="" class="lblError" />
                            </td>
                            <td>
                                <asp:Label ID="lblErrorMessage" runat="server" Text="" CssClass="lbl" style="color:red !important"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <%--  <fieldset id="Fieldset1" runat="server" >--%>
                                <table>
                                    <tr>
                                        <td style="width: 280px;">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label runat="server" ID="lblAsterick1" Text="*" ForeColor="Red" />
                                                    </td>
                                                    <td>
                                                        <asp:Label runat="server" ID="lblMessage1" Text="Date format should be 'dd-MMM-yyyy'" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label runat="server" ID="lblAsterick2" Text="*" ForeColor="Red" />
                                                    </td>
                                                    <td>
                                                        <asp:Label runat="server" ID="lblMessage2" Text="When Blank, Comparator is always '='" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>

                                        <td style="width: 140px; text-align: center;">
                                            <asp:Button runat="server" ID="btnRefresh" Text="Refresh" CssClass="btn" Width="100px" />
                                        </td>

                                        <td style="width: 140px; text-align: center;">
                                            <asp:Button runat="server" ID="btnApply" Text="Apply" CssClass="btn" Width="100px" />
                                        </td>

                                        <%-- ' Added by Pratik S BOCISSINT-639 - Need Clear Filters button on Workflow Blotter More Filters popup --%>
                                        <td style="width: 140px; text-align: center;">
                                            <asp:Button runat="server" ID="btnClearAll" Text="Clear" CssClass="btn" Width="100px" />
                                        </td>

                                    </tr>
                                </table>
                                <%-- </fieldset>--%>
                            </td>
                        </tr>
                        <tr>

                            <td style="height: 10px;"></td>
                        </tr>
                        <tr>
                            <td>
                                <%--<fieldset>--%>
                                <legend style="font-weight: bold; height: 24px;">Filters</legend>

                                <asp:GridView ID="grdFilter" ShowHeaderWhenEmpty="true" EmptyDataText="No Records Found" BorderWidth="1" rules="all"
                                    ShowHeader="true" runat="server"   PagerStyle-Height="32px" HeaderStyle-CssClass="GridHeaderTitle"
                                    Width="100%" AutoGenerateColumns="false" CssClass="Grid" CellPadding="0" RowHeadersWidthSizeMode="DisableResizing;"
                                    SelectedRowStyle-Wrap="true" CellSpacing="0">

                                    <SelectedRowStyle CssClass="wid" Wrap="false"  />

                                    <RowStyle BorderStyle="None" CssClass="GridItem1" />
                                    <HeaderStyle HorizontalAlign="Center" />

                                    <Columns>
                                        <asp:TemplateField HeaderText="" HeaderStyle-Width="40px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:CheckBox runat="server" Enabled="true" ID="Chkall" BorderStyle="None"></asp:CheckBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Filter By" HeaderStyle-Width="200px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Enabled="true" ID="lblFilterName" Text='<%# DataBinder.Eval(Container, "DataItem.WBM_Blotter_Header")%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Comparator" HeaderStyle-Width="200px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center" ControlStyle-BorderStyle="None">
                                            <ItemTemplate>
                                                <asp:DropDownList runat="server" Enabled="true" ID="ddlFilterComparator" Width="200px" CssClass="ddl">
                                                    <asp:ListItem></asp:ListItem>
                                                    <asp:ListItem>=</asp:ListItem>
                                                    <asp:ListItem>like</asp:ListItem>
                                                    <asp:ListItem>!=</asp:ListItem>
                                                    <asp:ListItem>IN</asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Value" HeaderStyle-Width="200px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:TextBox runat="server" Enabled="true" AutoPostBack="true" ID="txtFilterValue" OnTextChanged="txtFilterValue_TextChanged" Width="200px" BorderStyle="None"></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Data Type" HeaderStyle-Width="200px" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                            <ItemTemplate>
                                                <asp:Label runat="server" Enabled="true" ID="lblColumnDataType" Text='<%# DataBinder.Eval(Container, "DataItem.WBM_Column_Data_Type")%>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Sort" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center" Visible ="false" >
                                            <ItemTemplate>  
                                                <asp:TextBox ID ="txtSort" runat="server" Width="20px" AutoPostBack="true" OnTextChanged="txtSort_TextChanged" onkeypress="return isNumber(event)" ></asp:TextBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Desc" HeaderStyle-Font-Bold="false" HeaderStyle-HorizontalAlign="Center" Visible ="false">
                                            <ItemTemplate>
                                                <asp:CheckBox runat="server" ID="chkDesc"    />
                                            </ItemTemplate>
                                        </asp:TemplateField> 
                                    </Columns>
                                </asp:GridView>
                                <%--</fieldset>--%>
                            </td>
                        </tr>
                    </table>
                </div>
                <%--</fieldset>--%>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
