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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="Autocomplete" TagPrefix="acc" %>
<%@ 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="Image5" 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="126"
                                                                                        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">
                <div class="himsBoxHeader">
                    <asp:Panel ID="TopPanel" runat="server">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle">
                            <asp:Image ID="Image1" runat="server" class="fLeft" />
                            <div class="headerText">
                                <asp:Label ID="HeaderSearchCriteriaLabel" runat="server" Text="Search"></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">
                    <div class="himsBoxContent">
                        <div class="contentHolder pLtRtZero">
                            <asp:Panel ID="SearchCriteriaPanel" runat="server">
                                <div class="outerBox pTop5">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchLaboratoryCodeLabel" runat="server" Text="Schema" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft">
                                        <asp:DropDownList ID="AuditTableDropDownList" SkinID="CustomWidthDropDownList" Width="104px"
                                            AutoPostBack="true" OnSelectedIndexChanged="AuditTableDropDownList_SelectedIndexChanged"
                                            runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBoxPreBtn pTop5">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label2" runat="server" Text="Audit Table"></asp:Label>
                                    </div>
                                    <div class="fLeft">
                                        <asp:TextBox ID="AuditBox" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="searchBoxBtn">
                                    <asp:Button ID="SearchButton" runat="server" OnClick="OnSearchButtonClick" Text="Search"
                                        TabIndex="5" SkinID="0" CssClass="PrimaryButton" />
                                    <asp:Button ID="Reset" runat="server" OnClick="OnResetSearchButtonClick" Text="Clear"
                                        TabIndex="5" />
                                </div>
                                <div class="spacer">
                                    <asp:Image ID="Image14" runat="server" ImageUrl="~/Images/spacer.gif" />
                                </div>
                            </asp:Panel>
                            <div id="SearchGridView" runat="server" visible="False">
                                <div class="spacer">
                                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                </div>
                                <div class="contentHolder">
                                <div class="himssuHeader1WireBox" id="PatientRelationDiv" runat="server">
                                    <div class="himsBoxHeader" id="GridHeaderDiv" runat="server">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle" style="width: 99%">
                                            <div class="headerText">
                                                <div class="fLeft">
                                                    List
                                                </div>
                                                <div align="right" class="fRight coloBlack" 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="AuditedGridView" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div class="himsBoxContentMsg" id="GridContentDiv" runat="server" visible="False">
                                        </div>
                                        <asp:GridView ID="AuditedGridView" runat="server" AutoGenerateColumns="False" Width="100%"
                                            TabIndex="5" DataKeyNames="TableId,TableName" AllowPaging="True" PageSize="5"
                                            EmptyDataText="No Records found" OnSelectedIndexChanged="AvailableDeptCodeGridView_SelectedIndexChanged">
                                            <Columns>
                                                <asp:CommandField ShowHeader="True" ShowSelectButton="True"  HeaderStyle-HorizontalAlign="Center">
                                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                                    <ItemStyle HorizontalAlign="Center" Width="60px" CssClass="SelectLink" />
                                                    <ControlStyle Width="60px" />
                                                </asp:CommandField>
                                                <asp:BoundField HeaderText="ID" DataField="TableId" Visible="False">
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    <HeaderStyle CssClass="Headerstyle" />
                                                    <ControlStyle Font-Bold="True" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Name" DataField="TableName">
                                                    <ItemStyle HorizontalAlign="Left" Width="350px" />
                                                    <HeaderStyle CssClass="Headerstyle" HorizontalAlign="Left"/>
                                                    <ControlStyle Font-Bold="True" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Code" DataField="SchemaName">
                                                    <ItemStyle HorizontalAlign="Left" Width="200px" />
                                                    <HeaderStyle CssClass="Headerstyle" HorizontalAlign="Left"/>
                                                    <ControlStyle Font-Bold="True" />
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="In Active" DataField="IsDeleted">
                                                    <ItemStyle HorizontalAlign="Left" Width="200px" />
                                                    <HeaderStyle CssClass="Headerstyle" HorizontalAlign="Left"/>
                                                    <ControlStyle Font-Bold="True" />
                                                </asp:BoundField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                                </div> 
                            </div>
                        </div>
                    </div>
                </asp:Panel>
                <div class="spacer">
                    <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                </div>
            </div>
            <div class="himssuHeader1WireBox">
                <div class="himsBoxHeader">
                    <div class="leftdiv">
                    </div>
                    <div class="himsBoxTitle">
                        <div class="headerText">
                            <asp:Label ID="HeaderLaboratoryDetailsLabel" runat="server" Text="Maintenance"></asp:Label></div>
                    </div>
                </div>
                <div class="himsBoxContent">
                    <div class="contentHolder pLtRtZero">
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="Label3" runat="server" Text="Schema"></asp:Label>
                            </div>
                            <div class="fLeft">
                                <asp:DropDownList ID="NewAuditDropDownList" SkinID="CustomWidthDropDownList" Width="104px"
                                    AutoPostBack="true" OnSelectedIndexChanged="NewAuditDropDownList_SelectedIndexChanged"
                                    runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="outerBox pTop5">
                            <div class="controlLabelWidth">
                                <asp:Label ID="Label4" runat="server" Text="Audit Table"></asp:Label>
                            </div>
                            <div class="fLeft">
                                <acc:Autocomplete ID="NewAuditBox" runat="server" MinimumPrefixLength="2" Width="120px"
                                    ContextKey="sAudit.Table" AutoPostBack="true" DisplayLoadingStatus="true" FirstRowSelected="false"
                                    MaxLength="20" ValidateOnTextChanged="false" OnTextChanged="NewAuditBox_TextChanged" />
                                <asp:ImageButton ID="AuditSearchImageButton" runat="server" SkinID="FindImage" ToolTip="Select Audit Table"
                                    OnClick="AuditSearchImageButton_Click" />
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="spacer">
                            <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif" />
                        </div>
                        <div class="outerBox pTop5">
                            <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 Field"></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="Audited Field"></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="AvailableTableFieldListBox" runat="server" Height="240px" 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="SelectedableFieldListBox" runat="server" Height="240px" SelectionMode="Multiple"
                                            Width="200px"></asp:ListBox>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="cBoth">
                        </div>
                        <div class="outerBox pTop5">
                            <div class="fLeft">
                                <asp:CheckBox ID="ObsoleteCheckBox" runat="server" Visible="false"></asp:CheckBox>
                            </div>
                            <div class="fLeft pLeft5 pTop5">
                                <asp:Label ID="IsObsoleteLabel" runat="server" Text="InActive"></asp:Label>
                            </div>
                        </div>
                        <div class="cBoth">
                        </div>
                    </div>
                </div>
            </div>
            <div class="spacer">
                <asp:Image ID="Image8" runat="server" ImageUrl="~/Images/spacer.gif" />
            </div>
                            </td>
                        </tr>
                    </table>                  
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../../JavaScript/rjs/encrypt/audittrail-configuration-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/audittrail-configuration")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
