<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Page_Common_Master_Help, App_Web_wb31mods" title="Untitled Page" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ 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="MainUpdatePanel" runat="server">
        <ContentTemplate>
            <!-- Sub Container2 Box Start -->
            <div class="himssuHeader2WireBox">
                <div class="himsBoxHeader">
                    <asp:Panel ID="Panel1" runat="server">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle">
                            <asp:Image ID="Image2" runat="server" class="fLeft" />
                            <div class="headerText">
                                <asp:Label ID="Label1" runat="server"></asp:Label>
                                <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="Server" TargetControlID="DetailPanel"
                                    ExpandControlID="Image2" CollapseControlID="Image2" TextLabelID="Label1" Collapsed="true"
                                    CollapsedText="Search" ExpandedText="Search" ImageControlID="Image2" ExpandedImage="~/images/buttonCollapse.gif"
                                    CollapsedImage="~/images/buttonExpand.gif" ExpandDirection="Vertical" />
                            </div>
                        </div>
                    </asp:Panel>
                </div>
                <asp:Panel ID="DetailPanel" runat="Server">
                    <div class="himsBoxContent">
                        <div class="contentHolder">
                            <asp:Panel ID="PanelSearch" runat="server">
                                <table>
                                    <tr>
                                        <td class="formLabel">
                                            <asp:Label ID="AreaNameLabel" Text="Name" runat="server"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="AreaNameSearchTextbox" runat="Server" onkeypress="return fnKeyPressForDescriptionField(event)"
                                                onblur="return fnonTextChangeDescriptionField(this)" TabIndex="1" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()"></asp:TextBox>
                                            <cc1:TextBoxWatermarkExtender WatermarkText="*" ID="AreaNameSearchTextboxTextBoxWatermarkExtender"
                                                TargetControlID="AreaNameSearchTextbox" runat="server">
                                            </cc1:TextBoxWatermarkExtender>
                                        </td>
                                        <td class="formLabel pLeft40">
                                            <asp:Label ID="CityNameLabel" Text="City Name" runat="server"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="CitySearchDropDownList" runat="server" TabIndex="2" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="pLeft20">
                                            <asp:Button ID="SearchButton" Text="Search" runat="Server" OnClick="SearchButton_Click"
                                                TabIndex="3" SkinID="0" CssClass="PrimaryButton" />
                                        </td>
                                        <td>
                                            <asp:Button ID="ResetButton" runat="server" Text="Clear" OnClick="ResetButton_Click"
                                                TabIndex="4" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <div id="HelpGridDiv" runat="server" visible="false">
                                <div class="spacer">
                                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                </div>
                                <div class="himssuHeader1WireBox" runat="server" style="width: 100%">
                                    <div class="himsBoxHeader" id="ListDiv" runat="server" visible="false">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle" style="width: 99%">
                                            <div class="headerText">
                                                <div class="fLeft">
                                                    List
                                                </div>
                                            </div>
                                            <div align="right" class="fRight" style="margin-top: -3px;">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div id="DivHeader" style="vertical-align: top; width: 100%;">
                                            <asp:Table ID="AreaGridViewTable" runat="server" CellPadding="0" CellSpacing="0"
                                                BackColor="#E8E8E8" ForeColor="#000000" Width="100%" GridLines="Both" CssClass="GridViewTableRow">
                                            </asp:Table>
                                        </div>
                                        <div class="himsBoxContentMsg" id="GridMessageDiv" runat="server" visible="false">
                                        </div>
                                        <div id="DivData" class="Container" style="vertical-align: top; height: 100px; width: 99.6%;">
                                            <asp:GridView ID="AreaMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                AllowPaging="true" ShowHeader="false" PageSize="9" EmptyDataText="No Area Available"
                                                PagerSettings-Visible="false">
                                                <Columns>
                                                    <asp:CommandField ShowHeader="True" ShowSelectButton="True" ItemStyle-Width="10%">
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </asp:CommandField>
                                                    <asp:TemplateField HeaderText="Name" ItemStyle-Width="35%" ItemStyle-VerticalAlign="Top">
                                                        <ItemTemplate>
                                                            <asp:Label CssClass="boxEllips" ToolTip='<%# Bind("Title") %>' ID="TitleLabel" Width="280px"
                                                                runat="server" Text='<%# Bind("Title") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="City Name" ItemStyle-Width="35%" ItemStyle-VerticalAlign="Top">
                                                        <ItemTemplate>
                                                            <asp:Label CssClass="boxEllips" ToolTip='<%# Bind("CityTitle") %>' ID="CityTitleLabel"
                                                                Width="280px" runat="server" Text='<%# Bind("CityTitle") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField HeaderText="InActive" ItemStyle-HorizontalAlign="Center" DataField="ObsoleteText"
                                                        ItemStyle-Width="20%"></asp:BoundField>
                                                    <asp:BoundField HeaderText="Id" DataField="Id" Visible="False" ItemStyle-Width="0%">
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderText="City" DataField="CityId" Visible="False" ItemStyle-Width="0%">
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderText="State" DataField="StateId" Visible="False" ItemStyle-Width="0%">
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderText="Country" DataField="CountryId" Visible="False" ItemStyle-Width="0%">
                                                    </asp:BoundField>
                                                </Columns>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>