<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/DialogMasterPage_new.master" autoeventwireup="true" inherits="Pages_Common_CommonSearch_CommonSearch, App_Web_0y3wp2es" title="Untitled Page" enableeventvalidation="false" uiculture="auto" meta:resourcekey="PageResource1" viewStateEncryptionMode="Never" %>

<%@ OutputCache Duration="1" VaryByParam="none" NoStore="true" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../../../UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="CommmonSearchUpdatePanel" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="himssuHeader2WireBox">
                <div class="himsBoxHeader">
                    <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle">
                            <div class="headerText">
                                <asp:Label ID="CommonSearchHeaderLabel" runat="server" Text="Search"
                                    meta:resourcekey="CommonSearchHeaderLabelResource1"></asp:Label>
                            </div>
                        </div>
                    </asp:Panel>
                </div>
                <asp:Panel ID="DetailPanel" runat="server"
                    meta:resourcekey="DetailPanelResource1">
                    <div class="himsBoxContent">
                        <div class="contentHolder">
                            <asp:Panel ID="SearchCriteriaPanel" runat="server"
                                meta:resourcekey="SearchCriteriaPanelResource1">
                                <table>
                                    <tr>
                                        <td class="formLabel">
                                            <asp:Label ID="SearchCodeLabel" runat="server" Text="SearchCodeLabel"
                                                meta:resourcekey="SearchCodeLabelResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="SearchCodeTextBox" runat="server"
                                                meta:resourcekey="SearchCodeTextBoxResource1"></asp:TextBox>
                                        </td>
                                        <td class="formLabel pLeft40">
                                            <asp:Label ID="SearchDescriptionLabel" runat="server"
                                                Text="SearchDescriptionLabel"
                                                meta:resourcekey="SearchDescriptionLabelResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="SearchDescriptionTextBox" runat="server"
                                                meta:resourcekey="SearchDescriptionTextBoxResource1"></asp:TextBox>
                                        </td>
                                        <td class="pLeft20">
                                            <asp:Button ID="SearchButton" runat="server" Text="Search"
                                                OnClick="SearchButton_Click" SkinID="0" CssClass="PrimaryButton"></asp:Button>
                                            <asp:Button ID="ResetButton" runat="server" Text="Clear"
                                                OnClick="ResetButton_Click" meta:resourcekey="ResetButtonResource1"></asp:Button>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <div class="spacer">
                                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif"
                                    meta:resourcekey="Image2Resource1" />
                            </div>
                            <div class="himssuHeader1WireBox">
                                <div class="himsBoxHeader">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle" style="width: 99%">
                                        <div class="headerText fLeft">
                                            List
                                        </div>
                                        <div>
                                            <uc1:GridViewPager ParentGridView="SearchGridView" ID="SearchGridViewPager" runat="server"
                                                OnFirstRecordClick="GridViewPager_FirstRecordClick" OnLastRecordClick="GridViewPager_LastRecordClick"
                                                OnNextRecordClick="GridViewPager_NextRecordClick" OnPrevRecordClick="GridViewPager_PrevRecordClick"
                                                OnTextBoxValueChange="GridViewPager_TextBoxValueChange" />
                                        </div>
                                    </div>
                                </div>
                                <div class="himsBoxContent">
                                    <asp:GridView ID="SearchGridView" runat="server" Width="100%" DataSourceID="XmlDataSource1"
                                        OnSelectedIndexChanged="GridView_SelectedIndexChanged" OnRowDataBound="GridView_RowDataBound"
                                        AllowPaging="True"
                                        OnPageIndexChanging="SearchGridView_OnPageIndexChanging"
                                        meta:resourcekey="SearchGridViewResource1">
                                        <Columns>
                                            <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="EditLinkButton" runat="server" Text="Select" CommandName="Select"
                                                        OnClick="LinkButton_Click" meta:resourcekey="EditLinkButtonResource1"></asp:LinkButton>
                                                </ItemTemplate>
                                                <HeaderStyle Width="10px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <EmptyDataTemplate>
                                            <span></span>
                                        </EmptyDataTemplate>
                                        <PagerSettings Visible="False" />
                                    </asp:GridView>
                                </div>
                            </div>
                            <asp:XmlDataSource ID="XmlDataSource1" runat="server"></asp:XmlDataSource>
                        </div>
                    </div>
                </asp:Panel>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
<%--    <script data-main="../../../JavaScript/rjs/encrypt/common-search-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/common-search")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>