<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_FinancialManagement_AssetManagement_OrganizationDepartmentLocation, App_Web_1pfgkz51" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="Autocomplete" TagPrefix="Autocomplete" %>
<%@ Register Src="../../../UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="updPnlSearchGridView" runat="server">
        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <div id="divContentPage">
                <div style="width: 100%">
                    <table width="100%" cellpadding="0" cellspacing="0">
                    </table>
                    <div class="spacer5">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif"></asp:Image>
                    </div>
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td class="dashBoardLeftCont" style="width: 160px" valign="top">
                                <div id="leftContainer">
                                    <dl class="expandMenu">
                                        <table width="100%" border="0">
                                            <tr>
                                                <td>
                                                    <div class="himssuHeader3WireBox">
                                                        <dt id="dtSETTINGS" onclick="showHideSwitch('ddSETTINGS')">
                                                            <table width="100%" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td>
                                                                        <div class="himsBoxHeader">
                                                                            <div class="leftdiv">
                                                                            </div>
                                                                            <div class="himsBoxTitle">
                                                                                <table width="100%">
                                                                                    <tr>
                                                                                        <td style="width: 100%">
                                                                                            <div class="headerText">
                                                                                                Master
                                                                                            </div>
                                                                                        </td>
                                                                                        <td>
                                                                                            <img name="ddSETTINGSButton" id="ddSETTINGSButton" src="../../../Images/buttonCollapse.gif"></img>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </div>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </dt>
                                                        <dd style="text-align: left; margin: 0px" id="ddSETTINGS">
                                                            <table width="160px" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td>
                                                                        <div class="himsBoxContent leftTableContainer">
                                                                            <div class="leftUlMenu">
                                                                                <ul id="sidebarmenu1">
                                                                                    <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="143"
                                                                                        Visible="true" runat="server" />
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <div class="himsBoxFooter">
                                                                <div>
                                                                </div>
                                                            </div>
                                                        </dd>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </dl>
                                </div>
                            </td>
                            <td class="minMaxButton" style="width: 1%; margin: 0; vertical-align: top">
                                <asp:Image ID="Image7" runat="server" ImageUrl="~/Images/spacer.gif"></asp:Image>
                            </td>
                            <td style="vertical-align: top" width="99%">
                                <div id="Div1" class="himssuHeader2WireBox" runat="server" visible="False">
                                    <div class="himsBoxHeader">
                                        <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <asp:Image ID="Image1" runat="server" class="fLeft"
                                                    meta:resourcekey="Image1Resource1" />
                                                <div class="headerText">
                                                    <asp:Label ID="HeaderSearchCriteriaLabel" runat="server" Text="Search"
                                                        meta:resourcekey="HeaderSearchCriteriaLabelResource1"></asp:Label>
                                                    <cc1:CollapsiblePanelExtender ID="cpe" runat="server" TargetControlID="DetailPanel"
                                                        ExpandControlID="Image1" CollapseControlID="Image1" TextLabelID="HeaderSearchCriteriaLabel"
                                                        Collapsed="True" ImageControlID="Image1" ExpandedImage="~/images/buttonCollapse.gif"
                                                        CollapsedImage="~/images/buttonExpand.gif" Enabled="True" />
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <asp:Panel ID="DetailPanel" runat="server"
                                        meta:resourcekey="DetailPanelResource1">
                                        <div class="himsBoxContent">
                                            <asp:Panel ID="SearchCriteriaPanel" runat="server"
                                                meta:resourcekey="SearchCriteriaPanelResource1">
                                                <table cellpadding="0" cellspacing="0" style="width: 0%!important;">
                                                    <tr>
                                                        <td class="formLabel">
                                                            <asp:Label ID="SearchLaboratoryCodeLabel" runat="server" Text="Code"
                                                                meta:resourcekey="SearchLaboratoryCodeLabelResource1"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="SearchDeptCodeTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                Text="*" Width="150px" meta:resourcekey="SearchDeptCodeTextBoxResource1"></asp:TextBox>
                                                        </td>
                                                        <td class="formLabel pLeft40">
                                                            <asp:Label ID="SearchLaboratoryTitleLable" runat="server" Text="Name"
                                                                meta:resourcekey="SearchLaboratoryTitleLableResource1"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="SearchDeptTitleTextBox" runat="server" TabIndex="2" SkinID="CustomWidthTextBox"
                                                                Text="*" Width="150px" meta:resourcekey="SearchDeptTitleTextBoxResource1"></asp:TextBox>
                                                        </td>
                                                        <td class="pLeft40">
                                                            <asp:Button ID="SearchButton" runat="server" OnClick="OnSearchButtonClick" Text="Search"
                                                                TabIndex="5" SkinID="0" CssClass="PrimaryButton" />
                                                        </td>
                                                        <td>
                                                            <asp:Button ID="Reset" runat="server" OnClick="OnResetSearchButtonClick" Text="Clear"
                                                                TabIndex="5" meta:resourcekey="ResetResource1" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                            <div id="SearchGridView" runat="server" visible="False">
                                                <div class="spacer">
                                                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif"
                                                        meta:resourcekey="Image3Resource1" />
                                                </div>
                                                <div class="himssuHeader1WireBox" id="PatientRelationDiv" runat="server">
                                                    <div class="himsBoxHeader" id="GridHeaderDiv" runat="server">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                            <div class="headerText">
                                                                <div class="fLeft">
                                                                    List
                                                                </div>
                                                                <div align="right" class="fRight" style="margin-top: -3px;">
                                                                    <uc1:GridViewPager ID="AvailableDeptCodeGridViewPager" runat="server" OnFirstRecordClick="AvailableDeptCodeGridViewPager_FirstRecordClick"
                                                                        OnLastRecordClick="AvailableDeptCodeGridViewPager_LastRecordClick" OnNextRecordClick="AvailableDeptCodeGridViewPager_NextRecordClick"
                                                                        OnPrevRecordClick="AvailableDeptCodeGridViewPager_PrevRecordClick" OnTextBoxValueChange="AvailableDeptCodeGridViewPager_TextBoxValueChange"
                                                                        ParentGridView="AvailableDeptCodeGridView" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent">
                                                        <div class="himsBoxContentMsg" id="GridContentDiv" runat="server"
                                                            visible="False">
                                                        </div>
                                                        <asp:GridView ID="AvailableDeptCodeGridView" runat="server" AutoGenerateColumns="False"
                                                            Width="100%" TabIndex="5" DataKeyNames="ServiceId,ServiceCode" AllowPaging="True"
                                                            PageSize="5"
                                                            OnSelectedIndexChanged="AvailableDeptCodeGridView_SelectedIndexChanged"
                                                            meta:resourcekey="AvailableDeptCodeGridViewResource1">
                                                            <Columns>
                                                                <asp:CommandField ShowHeader="True" ShowSelectButton="True"
                                                                    meta:resourcekey="CommandFieldResource1">
                                                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                                                    <ItemStyle HorizontalAlign="Center" Width="60px" CssClass="SelectLink" />
                                                                    <ControlStyle Width="60px" />
                                                                </asp:CommandField>
                                                                <asp:BoundField HeaderText="ID" DataField="DeptId" Visible="False"
                                                                    meta:resourcekey="BoundFieldResource1">
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                    <HeaderStyle CssClass="Headerstyle" />
                                                                    <ControlStyle Font-Bold="True" />
                                                                </asp:BoundField>
                                                                <asp:BoundField HeaderText="Code" DataField="DeptCode"
                                                                    meta:resourcekey="BoundFieldResource2">
                                                                    <ItemStyle HorizontalAlign="Left" Width="200px" />
                                                                    <HeaderStyle CssClass="Headerstyle" />
                                                                    <ControlStyle Font-Bold="True" />
                                                                </asp:BoundField>
                                                                <asp:BoundField HeaderText="Name" DataField="DeptTitle"
                                                                    meta:resourcekey="BoundFieldResource3">
                                                                    <ItemStyle HorizontalAlign="Left" Width="350px" />
                                                                    <HeaderStyle CssClass="Headerstyle" />
                                                                    <ControlStyle Font-Bold="True" />
                                                                </asp:BoundField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <div class="himssuHeader1WireBox">
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label ID="HeaderLaboratoryDetailsLabel" runat="server" Text="Department"
                                                    meta:resourcekey="HeaderLaboratoryDetailsLabelResource1"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DeptCodeLabel" runat="server" Text="Code" SkinID="mandatoryLabel"
                                                        meta:resourcekey="DeptCodeLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft">
                                                    <Autocomplete:Autocomplete ID="DeptCodeTextBox" runat="server" OnTextChanged="OnDeptCodeTextBoxTextChanged"
                                                        IsCacheEnabled="false" Width="150px" MinimumPrefixLength="1" AutoPostBack="true" DisplayLoadingStatus="true"
                                                        ContextKey="AssetAdjustment.DepartmentLocationNumber" ValidateOnTextChanged="true" />
                                                    <asp:ImageButton ID="DeptCodeSearchButton" runat="server" SkinID="FindImage" ToolTip="Dept Code Search"
                                                        OnClick="OnSearchDeptCodeImageButtonClick"
                                                        meta:resourcekey="DeptCodeSearchButtonResource1" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DeptNameLabel" runat="server" Text="Name:"
                                                        meta:resourcekey="DeptNameLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="DeptNameValueLabel" SkinID="CustomWidthDisabledTextbox" Width="150px"
                                                        ReadOnly="True" runat="server"
                                                        meta:resourcekey="DeptNameValueLabelResource1" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="spacer">
                                                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif"
                                                    meta:resourcekey="Image2Resource1" />
                                            </div>
                                            <table width="100%" runat="server" id="tableOL">
                                                <tr id="Tr1" runat="server">
                                                    <td id="Td1" width="20%" runat="server"></td>
                                                    <td id="Td2" align="center" width="25%" runat="server">
                                                        <asp:Label ID="AvailableDeptCodesLabel" runat="server" Text="Available Locations"></asp:Label>
                                                    </td>
                                                    <td id="Td3" align="center" width="5%" runat="server"></td>
                                                    <td id="Td4" align="center" width="25%" runat="server">
                                                        <asp:Label ID="SelectedDeptCodesLabel" runat="server" Text="Selected Locations"></asp:Label>
                                                    </td>
                                                    <td id="Td5" width="25%" runat="server"></td>
                                                </tr>
                                                <tr id="Tr2" align="center" style="width: 100" runat="server">
                                                    <td id="Td6" runat="server"></td>
                                                    <td id="Td7" align="center" runat="server">
                                                        <asp:ListBox ID="AvailableDeptCodeListBox" runat="server" Height="150px" SelectionMode="Multiple"
                                                            Width="200px"></asp:ListBox>
                                                    </td>
                                                    <td id="Td8" align="center" runat="server">
                                                        <asp:ImageButton src="../../../Images/moveRight.gif" ID="MoveRightButton" runat="server"
                                                            OnClick="OnMoveRightButtonClick" ToolTip="Move Right" />
                                                        <asp:ImageButton src="../../../Images/moveLeft.gif" ID="MoveLeftButton" runat="server"
                                                            OnClick="OnMoveLeftButtonClick" ToolTip="Move Left" />
                                                        <asp:ImageButton src="../../../Images/moveAllRight.gif" ID="RemoveAllButton" runat="server"
                                                            OnClick="OnAddAllButtonClick" ToolTip="Add All" />
                                                        <asp:ImageButton src="../../../Images/moveAllLeft.gif" ID="AddAllButton" runat="server"
                                                            OnClick="OnRemoveAllButtonClick" ToolTip="Remove All" />
                                                    </td>
                                                    <td id="Td9" align="center" runat="server">
                                                        <asp:ListBox ID="SelectedDeptCodeListBox" runat="server" Height="150px" SelectionMode="Multiple"
                                                            Width="200px"></asp:ListBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/organization-departmentlocation-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/organization-departmentlocation")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>