<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_BaseFramework_Security_UserConfig, App_Web_qqyr1bq2" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Assembly="Sapphire.Ohu.Web.ControlToolKit.Controls" Namespace="Sapphire.Ohu.Web.ControlToolKit.Controls"
    TagPrefix="wcc" %>
<%@ Register Src="~/UserControls/MessageBox/MessageBoxControl.ascx" TagName="MessageControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="UserOrganizationSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">

                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="122"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader5WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">

                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-cog"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="User Config"></asp:Label>
                                        </header>

                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrganizationLabel" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="OrganizationDropDownList" runat="server" AutoPostBack="true" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5  col-md-3" id="UserDiv" runat="server" visible="True">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="UserNameLabel" runat="server" Text="User Name"></asp:Label>
                                    </div>

                                    <div class="fLeft pRight5 display-flex">
                                        <asp:TextBox ID="UserNameTextBox" runat="server" AutoPostBack="true" OnTextChanged="UserNameTextBox_TextChanged" />
                                        <asp:ImageButton ID="UserNameSearchButton" runat="server" SkinID="FindImage" ToolTip="User Name"
                                            ImageUrl="~/Images/icons/icon_find.gif" TabIndex="6" OnClick="UserNameSearchButton_OnClick" meta:resourcekey="UserNameSearchButtonResource1" />

                                    </div>
                                </div>

                                <div class="cBoth">
                                </div>

                                <div class="spacer">
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image7Resource1" />
                                </div>

                                <div class="himssuHeader7WireBox col-md-12" id="UserConfigurationDiv" runat="server" visible="True">
                                    <div class="himsBoxContent">
                                        <contenttemplate>
                                                <div id="Div9" runat="server">
                                                    <div id="Div14" runat="server" class="table-responsive">

                                                        <asp:GridView SkinID="FixedHeaderGridView" ID="grdSettings" runat="server" AutoGenerateColumns="False"
                                                            DataKeyNames="ConfigLevelId" AllowPaging="false"
                                                            EmptyDataText="No Records Found" OnRowDataBound="grdSettings_RowDataBound"
                                                            ShowHeader="True" Width="100%" meta:resourcekey="grdSettingsResource1" CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("ID") %>'
                                                                            meta:resourcekey="Label3Resource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="0%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource2">
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="CheckBox1" runat="server"
                                                                            meta:resourcekey="CheckBox1Resource1" />
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="0%" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Module" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label CssClass="boxEllips" ToolTip='<%# Bind("ModuleTitle") %>' ID="Label4"
                                                                            runat="server" Text='<%# Bind("ModuleTitle") %>' Width="190px"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="190px" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Key" meta:resourcekey="TemplateFieldResource3" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label CssClass="boxEllips" ToolTip='<%# Bind("ModuleItemKey") %>' ID="Label1"
                                                                            runat="server" Text='<%# Bind("ModuleItemKey") %>' Width="250px"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="250px" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Value" meta:resourcekey="TemplateFieldResource4" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Label2" CssClass="boxEllips" ToolTip='<%# Bind("ModuleItemValue") %>'
                                                                            runat="server" Text='<%# Bind("ModuleItemValue") %>' Width="200px"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" Width="100px" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField meta:resourcekey="TemplateFieldResource5">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkGlobal" runat="server"
                                                                            CommandName='Keyvalue' Text="Edit"
                                                                            meta:resourcekey="lnkGlobalResource1" OnClick="lnkGlobal_Click"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="200px" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField Visible="False" meta:resourcekey="TemplateFieldResource6">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblValidType" runat="server"
                                                                            Text='<%# Bind("ModuleValidationType") %>'
                                                                            meta:resourcekey="lblValidTypeResource1"></asp:Label>
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="0%" />
                                                                </asp:TemplateField>
                                                                <asp:CommandField ShowEditButton="True" Visible="false"
                                                                    meta:resourcekey="CommandFieldResource1">
                                                                    <ItemStyle Width="0%" />
                                                                </asp:CommandField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </contenttemplate>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <cc1:ModalPopupExtender ID="ConfigurationModalPopupExtender" runat="server" TargetControlID="HidenButton" PopupControlID="ModalPopUpPanel" BackgroundCssClass="modalBackground"
        Drag="True" PopupDragHandleControlID="dragPanel" Enabled="True" />
    <asp:LinkButton runat="server" ID="HidenButton" meta:resourcekey="HidenButtonResource1" />

    <asp:Panel ID="ModalPopUpPanel" runat="server" CssClass="dragControl" Width="700px" DefaultButton="HidenButton" meta:resourcekey="ModalPopUpPanelResource1">
        <div class="messagebox card card-box">
            <asp:Panel ID="dragPanel" runat="server" CssClass="dragMePanel" Width="100%" meta:resourcekey="dragPanelResource1">
                <div id="dragMe1" class="dragMe card-head" style="cursor: move">
                    <div class="himsPopupWireBox">
                        <div class="himsBoxHeadermain">
                            <div>
                            </div>
                        </div>
                        <div class="himsBoxTopper text-center headerFont card-head">
                            <div class="fLeft headerText himsBoxTitle">
                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" RenderMode="Inline" UpdateMode="Always">
                                    <ContentTemplate>
                                        <header>
                                            <asp:Label ID="DialogHeaderLabel" runat="server" meta:resourcekey="DialogHeaderLabelResource1" Text="Configuartion Edit"></asp:Label>
                                        </header>
                                        <span class="pull-right">
                                            <asp:ImageButton ID="ImageButtonClose" runat="server" Height="20PX" Width="20PX" ImageUrl="~/Images/closebox.png" OnClick="ImageButtonClose_Click" />
                                        </span>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <asp:UpdatePanel ID="ConfigurationUpdatePanel" runat="server"
                RenderMode="Inline">
                <ContentTemplate>

                    <div id="bodyContainer" class="card-body">
                        <div class="himsPopupWireBox">
                            
                            <div class="himsBoxContentmain" style="overflow: hidden">
                                <div id="divContentPage1">
                                    <div class="spacer">
                                        <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif"
                                            meta:resourcekey="Image1Resource1" />
                                    </div>
                                    <div>
                                        <div class="himssuHeader5WireBox">
                                             
                                            <div class="himsBoxContent col-md-12">
                                                <asp:Panel ID="DetailPanel" runat="Server" meta:resourcekey="DetailPanelResource1">
                                                    <div class="himsBoxContent card-body">
                                                        <div class="contentHolder">
                                                            <asp:Panel ID="pnlRepeater" runat="server" meta:resourcekey="pnlRepeaterResource1">
                                                                <asp:Repeater ID="rptSettingValue" runat="server" OnItemCommand="rptSettingValue_ItemCommand">
                                                                    <ItemTemplate>
                                                                        <table width="100%">
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:LinkButton ID="lnkName" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"SettingItemValue") %>'
                                                                                        CommandName="Filter" Text='<%# DataBinder.Eval(Container.DataItem,"SettingItemValue") %>'
                                                                                        meta:resourcekey="lnkNameResource1"></asp:LinkButton>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </ItemTemplate>
                                                                </asp:Repeater>
                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlTxtEdit" runat="server" Visible="False">
                                                                <div class="outerBoxPreBtn col-md-12 pTop5">
                                                                    <div class="controlLabelWidth">
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:TextBox ID="txtEditValue" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox col-md-5 pTop15">
                                                                    <div class="searchBoxBtn">
                                                                        <asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" Text="&#xf021; Update"
                                                                            meta:resourcekey="btnUpdateResource1" SkinID="0" CssClass="fas btn btn-update" />
                                                                    </div>
                                                                </div>

                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlDropDown" runat="server" Visible="False" meta:resourcekey="pnlDropDownResource1">
                                                                <div class="outerBoxPreBtn col-md-12 pTop5">
                                                                    <div class="controlLabelWidth">
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList ID="drpValidate" CssClass="form-control" runat="server" meta:resourcekey="drpValidateResource1">
                                                                            <asp:ListItem Value="1" meta:resourcekey="ListItemResource1">True</asp:ListItem>
                                                                            <asp:ListItem Value="0" meta:resourcekey="ListItemResource2">False</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox col-md-12 pTop15">
                                                                    <div class="searchBoxBtn">
                                                                        <asp:Button ID="btnChoose" runat="server" OnClick="btnChoose_Click" SkinID="0"
                                                                            Text="&#xf021; Update" CssClass="fas btn btn-update" />
                                                                    </div>
                                                                </div>

                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlCustomDropDown" runat="server" Visible="False" meta:resourcekey="pnlCustomDropDownResource1">
                                                                <div class="outerBoxPreBtn col-md-12 pTop5">
                                                                    <div class="controlLabelWidth">
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList ID="drpCustomValidate" runat="server" CssClass="form-control" meta:resourcekey="drpCustomValidateResource1">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox col-md-12 pTop15">
                                                                    <div class="searchBoxBtn">
                                                                        <asp:Button ID="btnCustomChoose" runat="server" OnClick="btnCustomChoose_Click" Text="&#xf021; Update"
                                                                            SkinID="0" CssClass="fas btn btn-update"
                                                                            meta:resourcekey="btnCustomChooseResource1" />
                                                                    </div>
                                                                </div>

                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlColorPicker" runat="server" Visible="False" meta:resourcekey="pnlColorPickerResource1">
                                                                <div class="outerBoxPreBtn col-md-5 pTop5">
                                                                    <div class="controlLabelWidth">
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <wcc:ColorPicker ID="cp" runat="server" meta:resourcekey="cpResource1"></wcc:ColorPicker>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox col-md-12 pTop15">
                                                                    <div class="searchBoxBtn">
                                                                        <asp:Button ID="btnUpdateColor" OnClick="btnUpdateColor_Click" runat="server" Text="&#xf021; Update"
                                                                            SkinID="0" CssClass="fas btn btn-update" meta:resourcekey="btnUpdateColorResource1" />
                                                                    </div>
                                                                </div>

                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlPrinter" runat="server" Visible="False" meta:resourcekey="pnlPrinterResource1">
                                                                <div class="outerBoxPreBtn col-md-5 pTop5">
                                                                    <div class="controlLabelWidth">
                                                                    </div>
                                                                    <div class="fLeft">
                                                                        <asp:ListBox ID="printerList" runat="server" meta:resourcekey="printerListResource1"></asp:ListBox>
                                                                    </div>
                                                                </div>
                                                                <div class="outerBox col-md-12 pTop15">
                                                                    <div class="searchBoxBtn pLeft10">
                                                                        <asp:Button ID="btnUpdatePrinter" OnClick="btnUpdatePrinter_Click" Text="&#xf021; Update"
                                                                            SkinID="0" CssClass="fas btn btn-update" runat="server" meta:resourcekey="btnUpdatePrinterResource1" />
                                                                    </div>
                                                                </div>

                                                            </asp:Panel>
                                                            <asp:UpdatePanel ID="updtDrives" runat="server" UpdateMode="Always">
                                                                <ContentTemplate>
                                                                    <asp:Panel ID="pnlTree" runat="server" Visible="False" meta:resourcekey="pnlTreeResource1">
                                                                        <div class="outerBoxRemark col-md-5 pTop5">

                                                                            <div class="fLeft pRight5">
                                                                                <div style="height: 200px; overflow: auto">
                                                                                    <asp:Label ID="lblPath" runat="server" Width="100%" meta:resourcekey="lblPathResource1"></asp:Label><br />
                                                                                    <asp:TreeView ID="DirectoryList" runat="server" OnSelectedNodeChanged="DirectoryList_SelectedNodeChanged"
                                                                                        OnTreeNodeCheckChanged="DirectoryList_SelectedNodeChanged" Width="100%" NodeIndent="0"
                                                                                        AutoGenerateDataBindings="False" CollapseImageToolTip="" ExpandImageToolTip="">
                                                                                        <ParentNodeStyle VerticalPadding="0px" />
                                                                                        <SelectedNodeStyle Font-Bold="True" ForeColor="Red" />
                                                                                        <RootNodeStyle NodeSpacing="0px" VerticalPadding="0px" />
                                                                                        <NodeStyle Width="100%" Height="10px" />
                                                                                        <LeafNodeStyle ImageUrl="~/Images/folderClosed.gif" />
                                                                                    </asp:TreeView>
                                                                                </div>
                                                                            </div>

                                                                        </div>
                                                                        <div class="outerBox col-md-12 pTop15">
                                                                            <div class="searchBoxBtn alignCenter">
                                                                                <asp:Button ID="btnUpdateDirectory" runat="server" OnClick="btnUpdateDirectory_Click"
                                                                                    Text="&#xf021; Update" SkinID="0" CssClass="fas btn btn-update" meta:resourcekey="btnUpdateDirectoryResource1" />
                                                                            </div>
                                                                        </div>

                                                                    </asp:Panel>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="himsmainBoxBottom">
                            </div>
                            <div class="himsmainBoxFooter">
                                <div>
                                    <table>
                                        <tr>
                                            <td>&nbsp
                                            </td>
                                        </tr>

                                    </table>
                                </div>
                            </div>

                        </div>
                    </div>

                    <asp:UpdateProgress ID="MainUpdateProgress" runat="server" DisplayAfter="200">
                        <ProgressTemplate>
                            <div style="position: absolute; top: 50%; left: 45%; font-size: 20px">
                                <asp:Image ID="LoadingImage4" runat="server" ImageUrl="~/Images/Loading.gif"
                                    meta:resourcekey="Image3Resource1" />
                            </div>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </asp:Panel>
    <script data-main="../../../JavaScript/rjs/circular" src="../../../JavaScript/rjs/require.js"></script>
    <script type="text/javascript">
       
        function SendValueToParent() {
            window.opener.GetValueFromChild();
            self.close();
        }
         
    </script>
</asp:Content>
