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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <SuperAdminScreenGroup:SuperAdminScreenGroupControl EnableViewState="true" ID="SuperAdminScreenGroupControl" ScreenGroupId="153"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="topdisplayContainer">
                            <div class="himsBoxContent messageMessage">
                                <div class="topdisplayContainer p-l-10">
                                    <table class="fLeft">
                                        <tr>
                                            <td>
                                                <asp:Label ID="OrgCodeLabelL" runat="server" Text="Code :" Font-Bold="true"></asp:Label>
                                                &nbsp;&nbsp;<asp:Label ID="OrgCodeLabelT" runat="server" Text="" SkinID="CustomWidthLabel"></asp:Label></td>
                                            <td>
                                                <asp:Label ID="OrgDisplayTitleLabelL" runat="server" Text="Display Title :" Font-Bold="true"></asp:Label>
                                                &nbsp;&nbsp;<asp:Label ID="OrgDisplayTitleLabelT" runat="server" Text="" SkinID="CustomWidthLabel"></asp:Label></td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>

                        <div class="himsBoxHeader  card-head " id="Div4" runat="server" visible="True">
                            <div class="leftdiv">
                            </div>

                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-lock-open"></i>
                                        <asp:Label ID="Label4" Text="Module Permission"
                                            runat="server" />
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <%--mantis: 42517--%>
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="ConfigurationTabContainer" runat="server"
                                            CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                            AutoPostBack="true" meta:resourcekey="ConfigurationTabContainerResource"
                                            ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="ModulePermissionTabPanel" runat="server" HeaderText="Module Permission">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab">
                                                            <a><i class="fas  fa-bars"></i>&nbsp;Module Permission</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server">
                                                        <div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server" visible="True">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="gridHeaderText fLeft">
                                                                    <header>
                                                                        <asp:Label ID="GridViewLabel" Text="Available Module List To Select"
                                                                            runat="server" />
                                                                    </header>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <div class="contentHolder">
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="SearchTitleLabel" Text="Module Group" runat="server"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList ID="ModuleDropDown" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            SkinID="CustomWidthTextBox" CssClass="form-control" runat="Server" OnSelectedIndexChanged="ModuleDropDown_SelectedIndexChanged" AutoPostBack="true">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>

                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="ModeLabel" runat="server" Text="Mode"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:DropDownList ID="ModeDropDownList" runat="server"
                                                                            CssClass="form-control" SkinID="CustomWidthDropDownList" onmouseleave="showHideTooltip()"
                                                                            onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ModeDropDownList_SelectedIndexChanged" AutoPostBack="true">
                                                                            <asp:ListItem Value="0">- ALL -</asp:ListItem>
                                                                            <asp:ListItem Value="1">Active</asp:ListItem>
                                                                            <asp:ListItem Value="2">Inactive</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="table-responsive width-100">
                                                                <asp:GridView ID="ModuleGridView" runat="server"
                                                                    AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!"
                                                                    AllowPaging="false" DataKeyNames="Id"
                                                                    ShowHeader="true"
                                                                    CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderSelectCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="SelectCheckBox" runat="server"
                                                                                        Checked='<%# Convert.ToBoolean( Eval("Selected") )%>' />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="Id" HeaderText="Id" Visible="false"></asp:BoundField>
                                                                        <asp:BoundField DataField="ModuleName" HeaderText="Module"></asp:BoundField>
                                                                        <asp:BoundField DataField="ModuleGroup" HeaderText="Module Group"></asp:BoundField>
                                                                        <asp:BoundField DataField="Mode" HeaderText="Mode"></asp:BoundField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
				ṣ																																			
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="MigrationModulePermissionTabPanel" runat="server" HeaderText="Migration Module Permission">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab">
                                                            <a><i class="fas  fa-bars"></i>&nbsp;Migration Module Permission</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div id="Div2" class="himssuHeader6WireBox col-md-12" runat="server">
                                                        <div class="himsBoxHeader card-head inner" id="MIgrationGridViewPagerDiv" runat="server" visible="True">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="gridHeaderText fLeft">
                                                                    <header>
                                                                        <asp:Label ID="Label1" Text="Available Module List To Select"
                                                                            runat="server" />
                                                                    </header>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <div class="contentHolder">
                                                                <div style="float: right">
                                                                    <asp:Button ID="AddButton" runat="server" CssClass="btn btn-add fas" OnClick="AddButton_Click" Text="&#xf067; Add" SkinID="0" />
                                                                </div>
                                                                <div class="col-md-1 pTop5" style="float: right">
                                                                    <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList"
                                                                        CssClass="form-control" runat="server" AutoPostBack="false">
                                                                        <asp:ListItem Text="1" Value="1" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                        <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                        <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="table-responsive width-100">
                                                                <asp:GridView ID="MigrationModuleGridView" runat="server" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!"
                                                                    AllowPaging="false" DataKeyNames="AutoId"
                                                                    ShowHeader="true" CssClass="table table-striped table-bordered table-hover">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="7%" HeaderText="Status">
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="MigSelectCheckBox" runat="server" Checked='<%# Convert.ToBoolean(Eval("Status")) %>' />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField ItemStyle-Width="20%" HeaderText="Key">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="MigrationKeyTextBox" runat="server" Text='<%# Bind("Key") %>'></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField ItemStyle-Width="60%" HeaderText="Value">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="MigrationURLTextBox" runat="server" Text='<%# Bind("Value") %>'></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField ItemStyle-Width="20%" HeaderText="ERP Product Id">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="ERPProductIdTextBox" runat="server" onkeypress="return isNumberKey(event)" onpaste="return false;" ondrop="return false;" ondragover="return false;" Text='<%# Bind("ERPProductId") %>'></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../../JavaScript/rjs/encrypt/assignment-view-encrypt" src="../../../JavaScript/rjs/require.js"></script>      --%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assignment-view")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>

</asp:Content>

