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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="UserFavoriteGridViewUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <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="246"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft himsBoxContent card-body">
                    <div class="himssuHeader5WireBox  card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="himsBoxHeader">
                                <asp:Panel ID="Panel1" runat="server">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-user"></i>
                                                <asp:Label ID="Label3" runat="server" Text="User Preference"></asp:Label>
                                            </header>
                                        </div>
                                        <div class="fRight" style="margin-top: -20px">
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="fLeft">
                                        <label class="rt-chkbox rt-chkbox-outline">
                                            <asp:CheckBox ID="DefaultHomePageCheckBox" runat="server" AutoPostBack="True"
                                                OnCheckedChanged="DefaultHomePageCheckBox_CheckedChanged"
                                                meta:resourcekey="DefaultHomePageCheckBoxResource1" />
                                            <span></span>Homepage as Default
                                        </label>

                                        <%--  <asp:CheckBox ID="DefaultHomePageCheckBox" runat="server" AutoPostBack="True"
                                            OnCheckedChanged="DefaultHomePageCheckBox_CheckedChanged" Text="Homepage as Default"
                                            meta:resourcekey="DefaultHomePageCheckBoxResource1" />--%>
                                    </div>
                                    <%-- <div class="fLeft pLeft5 pTop5">
                                        <asp:Label ID="DefaultHomePageLabel" runat="server"
                                            meta:resourcekey="DefaultHomePageLabelResource1"></asp:Label>
                                    </div>--%>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="MainMenuItemLabel" runat="server" Text="Main Menu Item"
                                            CssClass="mandatory" meta:resourcekey="MainMenuItemLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="MainMenuItemDropDownList" runat="server" AutoPostBack="True"
                                            OnSelectedIndexChanged="MainMenuItemDropDownList_SelectedIndexChanged" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropdownList"
                                            CssClass="form-control" meta:resourcekey="MainMenuItemDropDownListResource1" />
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ScreenLabel" runat="server" Text="Screen" CssClass="mandatory"
                                            meta:resourcekey="ScreenLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="ScreenDropDownList" runat="server" AutoPostBack="True" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropdownList"
                                            CssClass="form-control" meta:resourcekey="ScreenDropDownListResource1" />
                                    </div>
                                </div>
                                <div class="outerBox pTop15 col-md-3">
                                    <div class="controlLabelWidth">
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:Button ID="SaveUserPreferenceButton" runat="server" Text="&#xf0c7; Save" CssClass="fas btn btn-save" OnClick="SaveUserPreference_Click" SkinID="0" />
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                            </div>
                        </div>

                        <div class="spacer">
                            <img src="../../../Images/spacer.gif" />
                        </div>

                        <div class="himsBoxHeader card-head inner">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText" id="Div1">
                                    <header>
                                        <i class="fas fa-user"></i>
                                        My Favourite Screen
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="">
                            <div class="contentHolder">
                                <%-- <div class="outerBox pTop5 col-md-3">
                            <div class="fLeft">
                                <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" 
                                    OnCheckedChanged="DefaultHomePageCheckBox_CheckedChanged" 
                                    meta:resourcekey="DefaultHomePageCheckBoxResource1" />
                            </div>
                            <div class="fLeft pLeft5 pTop5">
                                <asp:Label ID="Label1" runat="server" Text="Homepage as Default" 
                                    meta:resourcekey="DefaultHomePageLabelResource1"></asp:Label>
                            </div>
                        </div>--%>

                                <%--<div class="outerBox pTop5 col-md-3">
                        <div class="controlLabelWidth">
                            <asp:Label ID="Label2" runat="server" Text="Main Menu" 
                                CssClass="mandatory"  ></asp:Label>
                        </div>
                        <div class="fLeft pRight5">
                            <asp:DropDownList ID="UserMainManuDropDownList1" runat="server" AutoPostBack="True"
                                OnSelectedIndexChanged="UserMainManuDropDownList1_SelectedIndexChanged" onmouseleave="showHideTooltip()"
                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropdownList" 
                                Width="150px"/>
                        </div>
                    </div>--%>


                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ModuleLabel" runat="server" Text="Module" CssClass="mandatory"
                                            meta:resourcekey="ModuleLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="ModuleDropDownList" DataTextField="DisplayTitle" DataValueField="Id"
                                            runat="server" OnSelectedIndexChanged="ModuleDropDownList_SelectedIndexChanged"
                                            TabIndex="5" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            meta:resourcekey="ModuleDropDownListResource1">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ResourceTypeLabel" runat="server" Text="Resource Type"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="ResourceTypeDropDownList" DataTextField="Title" DataValueField="Id"
                                            runat="server" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="ResourceTypeDropDownList_SelectedIndexChanged"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            meta:resourcekey="ResourceTypeDropDownListResource1">
                                        </asp:DropDownList>
                                    </div>
                                </div>


                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="UserScreenLabel3" runat="server" Text="Screen" CssClass="mandatory"
                                            meta:resourcekey="ScreenLabelResource1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="UserScreenDropDownList" runat="server" onmouseleave="showHideTooltip()" DataTextField="DisplayTitle" DataValueField="Id"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropdownList"
                                            CssClass="form-control" meta:resourcekey="ScreenDropDownListResource1" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                    </div>
                                    <div class="fLeft pRight5 pTop5">
                                        <asp:Button ID="AddButtonId" runat="server" Text="&#xf0c7; Add" CssClass="fas btn btn-add" SkinID="0" OnClick="AddButton_Click" />
                                        <asp:Button ID="SaveUserFavoraiteButton" runat="server" Text="&#xf0c7; Save" CssClass="fas btn btn-save" SkinID="0" OnClick="SaveUserFavoraiteButton_Click" />

                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                    </div>
                                    <div class="fLeft pRight5 pTop5">
                                    </div>
                                </div>

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


                                <div id="UserFavoriteGridViewDiv" runat="server" visible="false">
                                    <div class="spacer">
                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image6Resource1" />
                                    </div>
                                    <div class="himssuHeader7WireBox">
                                        <div class="himsBoxHeader" id="UserFavoriteGridViewPagerDiv" runat="server" visible="False">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <%--<div class="gridHeaderText fLeft">
                                                <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1"  ForeColor="White" />
                                            </div>--%>
                                                <div class="fRight">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <%-- <div id="DivHeader" style="vertical-align: top; width: 100%;">--%>
                                            <%--  <asp:Table ID="EmployeeMasterGridViewTable" runat="server" CellPadding="0" CellSpacing="0"
                                                BackColor="#E8E8E8" ForeColor="Black" Width="100%" GridLines="Both" CssClass="GridViewTableRow">
                                            </asp:Table>--%>
                                            <%-- </div>--%>
                                            <div id="UserFavoriteGridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                visible="False">
                                            </div>
                                            <%-- <div id="DivData" class="Container" style="vertical-align: top; height: 215px; width: 99.6%;">--%>
                                            <div id="Div6" runat="server" class="table-responsive">
                                                <asp:GridView runat="server" ID="UserFavoriteGridView" Width="100%" AutoGenerateColumns="False"
                                                    EmptyDataText="No records available for the seacrh criteria!"
                                                    DataKeyNames="UserId,FavoraiteScreenId"
                                                    AllowPaging="false"
                                                    ShowHeader="True" CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>


                                                        <asp:TemplateField HeaderText="Screen">
                                                            <ItemTemplate>
                                                                <asp:Label ID="ParticipantCodeLabel" runat="server" Text='<%# Eval("UserFavoraiteScreen") %>' CssClass="boxEllips" Width="200px"></asp:Label>
                                                            </ItemTemplate>
                                                            <HeaderStyle HorizontalAlign="Left" />
                                                            <ItemStyle HorizontalAlign="Left" Width="12%" />
                                                        </asp:TemplateField>

                                                        <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center">
                                                            <ItemTemplate>
                                                                <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                    ToolTip="Delete" />
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </div>

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

                                <div class="spacer">
                                    <img src="../../../Images/spacer.gif" />
                                </div>
                                <div runat="server" id="AdminDiv" visible="false">
                                    <div class="himsBoxHeader card-head inner">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText" id="Rolewisediv">
                                                <header>
                                                    <i class="fas fa-user"></i>
                                                    Role Wise Favourite Screen Assign
                                                </header>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="RoleLabel" runat="server" Text="Role" CssClass="mandatory"
                                                        meta:resourcekey="RoleLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="RoleDropDownList" DataTextField="Title" DataValueField="Id"
                                                        runat="server" AutoPostBack="true" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="RoleDropDownList_SelectedIndexChanged"
                                                        meta:resourcekey="RoleDropDownListResource1">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="RoleWiseModuleLabel" runat="server" Text="Module" CssClass="mandatory"
                                                        meta:resourcekey="ModuleLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="RoleWiseModuleDropDownList" DataTextField="DisplayTitle" DataValueField="Id"
                                                        runat="server" OnSelectedIndexChanged="RoleWiseModuleDropDownList_SelectedIndexChanged"
                                                        TabIndex="5" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        meta:resourcekey="ModuleDropDownListResource1">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="RoleWiseResourceTypeLabel" runat="server" Text="Resource Type"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="RoleWiseResourceTypeDropDownList" DataTextField="Title" DataValueField="Id"
                                                        runat="server" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList" OnSelectedIndexChanged="RoleWiseResourceTypeDropDownList_SelectedIndexChanged"
                                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        meta:resourcekey="ResourceTypeDropDownListResource1">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>


                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="RoleWiseScreenLabel" runat="server" Text="Screen" CssClass="mandatory"
                                                        meta:resourcekey="ScreenLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="RoleWiseUserScreenDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        DataTextField="DisplayTitle" DataValueField="Id"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropdownList"
                                                        CssClass="form-control" meta:resourcekey="ScreenDropDownListResource1" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5 pTop5">
                                                    <asp:Button ID="RoleWiseAddButton" runat="server" Text="&#xf0c7; Add" CssClass="fas btn btn-add" SkinID="0" OnClick="RoleWiseAddButton_Click" />
                                                    <asp:Button ID="RoleWiseSaveButton" runat="server" Text="&#xf0c7; Save" CssClass="fas btn btn-save" SkinID="0" OnClick="RoleWiseSaveButton_Click" />

                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                </div>
                                                <div class="fLeft pRight5 pTop5">
                                                </div>
                                            </div>

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


                                            <div id="RoleWiseFavouriteScreenGridViewDiv" runat="server" visible="false">
                                                <div class="spacer">
                                                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image6Resource1" />
                                                </div>
                                                <div class="himssuHeader7WireBox">
                                                    <div class="himsBoxHeader" id="RoleWiseFavouriteScreenGridViewPagerDiv" runat="server" visible="False">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                            <div class="fRight">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent">
                                                        <div id="Div4" class="himsBoxContentMsg" runat="server"
                                                            visible="False">
                                                        </div>
                                                        <div id="Div5" runat="server" class="table-responsive">
                                                            <asp:GridView runat="server" ID="RoleWiseFavouriteScreenGridView" Width="100%" AutoGenerateColumns="False"
                                                                EmptyDataText="No records available for the seacrh criteria!"
                                                                DataKeyNames="UserId,FavoraiteScreenId" OnRowCommand="RoleWiseFavouriteScreenGridView_RowCommand" AllowPaging="false"
                                                                ShowHeader="True" CssClass="table table-striped table-bordered table-hover">
                                                                <Columns>

                                                                    <asp:BoundField DataField="UserFavoraiteScreen" HeaderText="Screen" />
                                                                    <%-- <asp:TemplateField HeaderText="Screen">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ParticipantCodeLabel" runat="server" Text='<%# Eval("UserFavoraiteScreen") %>' CssClass="boxEllips" Width="200px"></asp:Label>
                                                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("UserFavoraiteScreen") %>' CssClass="boxEllips" Width="200px"></asp:Label>
                                                                   
                                                                         </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                    <ItemStyle HorizontalAlign="Left" Width="12%" />
                                                                </asp:TemplateField>--%>

                                                                    <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center">
                                                                        <ItemTemplate>
                                                                            <%--<asp:ImageButton SkinID="DeleteImage" ID="RoleWiseDeleteImageButton" runat="server" OnClick="RoleWiseDeleteImageButton_Click"
                                                                            ToolTip="Delete" />--%>
                                                                            <asp:ImageButton SkinID="DeleteImage" ID="RoleWiseDeleteImageButton" runat="server" OnClientClick="if(confirm('Are You Sure to delete?')==true){ return true;} else{ return false;}"
                                                                                CommandName="REMOVE_ITEM" CommandArgument='<%# Container.DataItemIndex+1 %>' ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>


                                        </div>
                                    </div><br /><br /><br /><br />
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="spacer">
                        <img src="../../../Images/spacer.gif" />
                    </div>
                    </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../../JavaScript/rjs/encrypt/user-preference-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/user-preference")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
