<%@ page title="Task Master" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_ZDevelopment_TaskMaster, App_Web_ljrln42c" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/Common/ScreenGroup/SuperAdminScreenGroup.ascx" TagName="SuperAdminScreenGroupControl" TagPrefix="SuperAdminScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="TaskMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <asp:HiddenField ID="IdHiddenField" runat="server" />
                <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                <asp:HiddenField ID="ModeHiddenField" runat="server" />

                <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="row whiteboxpaddingleft">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" SkinID="0"
                                            CssClass="btn btn-add fas" Text="&#xf067; Add" OnClick="AddNewButton_Click" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchModuleLabel" Text="Module" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchModuleDropDownList" runat="server" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="ModuleDropDownListResource1">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="Label1" Text="Resource Type" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchResourceTypeDropDownList" runat="server" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" 
                                                    meta:resourcekey="SearchResourceTypeDropDownListResource1">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchTitleLabel" Text="Title" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchTitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchObsoleteLabel" Text="Obsolete" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchObsoleteDropDownList" runat="server" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="SearchObsoleteDropDownListtResource1">
                                                    <asp:ListItem Text="- ALL -" Value="-1"></asp:ListItem>
                                                    <asp:ListItem Text="Y" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="N" Value="0"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchClientSpecificlabel" Text="Client Specific" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchClientSpecificDropDownList" runat="server" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="SearchClientSpecificDropDownList">
                                                    <asp:ListItem Text="- ALL -" Value="-1"></asp:ListItem>
                                                    <asp:ListItem Text="Y" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="N" Value="0"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="alignCenter pTop5">
                                            <asp:Button ID="SearchButton" runat="Server"
                                                SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" OnClick="SearchButton_Click" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="NewsDetailDiv" visible="false" runat="server">
                                            <div class="spacer">
                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div class="himsBoxHeader" id="NewsDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <asp:UpdatePanel ID="TaskDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" visible="false">
                                                            <div id="Div4" runat="server" class="table-responsive">
                                                                <asp:GridView ID="TaskGridView" runat="server" Width="100%" AutoGenerateColumns="False" OnRowDataBound="TaskGridView_RowDataBound"
                                                                    CssClass="table table-striped table-bordered table-hover"
                                                                    SkinID="" ShowHeader="true" PagerSettings-Visible="false" DataKeyNames="Id">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select"
                                                                                    Text="Select" CausesValidation="false" OnClick="LinkButton_Click"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Title" ItemStyle-Width="20%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="MenuLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("Title")%>'
                                                                                    Text='<%#Bind("Title")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Module" ItemStyle-Width="15%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ModuleLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("ModuleTitle")%>'
                                                                                    Text='<%#Bind("ModuleTitle")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Resource Type" ItemStyle-Width="10%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ResourceTypeTitleLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("ResourceTypeTitle")%>'
                                                                                    Text='<%#Bind("ResourceTypeTitle")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Order Index" ItemStyle-Width="10%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="OrderNoLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("OrderIndex")%>'
                                                                                    Text='<%#Bind("OrderIndex")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Available Permission" ItemStyle-Width="10%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="AvailablePermissionLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("AvailablePermission")%>'
                                                                                    Text='<%#Bind("AvailablePermission")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Obsolete" ItemStyle-Width="10%" SortExpression="IsObsolete"
                                                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="IsObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsObsolete").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Client Specific" ItemStyle-Width="10%" SortExpression="IsObsolete"
                                                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="IsClientSpecificLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsClientSpecific").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Role Scope" ItemStyle-Width="10%" SortExpression="IsObsolete"
                                                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="RoleScopeType" runat="server" Text='<%#Bind("RoleScopeType")%>'></asp:Label>
                                                                                <asp:HiddenField ID="HiddenRoleScopeId" runat="server" Value='<%#Bind("RoleScopeId")%>' />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-cog"></i>
                                        <asp:Label ID="NewsDetailLabel" runat="server" Text="Task Master"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">
                                <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                    <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton" OnClick="FirstRecordImageButton_Click"
                                        runat="server" CommandName="Page" CommandArgument="First"
                                        CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-fast-backward"></i>
                                    </asp:LinkButton>
                                    <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                        runat="server" CommandName="Page" CommandArgument="Prev" OnClick="PreviousImageButton_Click"
                                        CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-play fa-rotate-180"></i>
                                    </asp:LinkButton>
                                    <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                    &nbsp; 
                                    <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                    &nbsp; 
                                    <asp:Label ID="ofLabel" Text="of" runat="server" />
                                    &nbsp;  
                                    <asp:Label ID="TotalRecord" runat="server" />
                                    &nbsp;
                                                <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom" OnClick="NextImageButton_Click"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>

                                    <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton" OnClick="LastRecordImageButton_Click"
                                        runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last">
                                                      <i class="fa fa-fast-forward" ></i>
                                    </asp:LinkButton>
                                    &nbsp;  &nbsp; &nbsp;
                                </div>

                                <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" />

                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ModuleLabel" runat="server" Text="Module" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="ModuleDropDownList" runat="server" CssClass="form-control"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                            meta:resourcekey="ModuleDropDownListResource1" OnSelectedIndexChanged="ModuleDropDownList_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="TitleLabel" runat="server" Text="Title" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="TitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AvailablePermissionLabel" runat="server" Text="Available Permission" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="AvailablePermissionTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" Enabled="false"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox" AutoPostBack="true" OnTextChanged="AvailablePermissionTextBox_TextChanged"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="OrderIndexLabel" runat="server" Text="Order Index" SkinID="MandatoryLabel"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="OrderIndexTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="ResourceTypeLabel" runat="server" Text="Resource Type" SkinID="MandatoryLabel"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:DropDownList ID="ResourceTypeDropDownList" runat="server" CssClass="form-control"
                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        meta:resourcekey="ResourceTypeDropDownListResource1">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="RoleScopeIdLabel" runat="server" Text="Role Scope" SkinID="MandatoryLabel"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:DropDownList ID="RoleScopeIdDropDownList" runat="server" CssClass="form-control"
                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        meta:resourcekey="RoleScopeIdDropDownListResource1">
                                        <asp:ListItem Value="-1" Text="- Select -"></asp:ListItem>
                                        <asp:ListItem Value="0" Text="Both"></asp:ListItem>
                                        <asp:ListItem Value="1" Text="Employee"></asp:ListItem>
                                        <asp:ListItem Value="2" Text="Student"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                     <asp:Label ID="Permission" runat="server" Text="Permission" SkinID="MandatoryLabel"></asp:Label>
                                </div>
                                <div  class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0">
                                    <asp:CheckBoxList ID="PermissionCheckBoxList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="PermissionCheckBoxList_SelectedIndexChanged">                                       
                                        <asp:ListItem Value ="1">Create</asp:ListItem>
                                        <asp:ListItem Value="2">Read</asp:ListItem>
                                        <asp:ListItem Value="4">Update</asp:ListItem>
                                        <asp:ListItem Value="8">Delete</asp:ListItem>
                                        <asp:ListItem Value="16">Search</asp:ListItem>
                                        <asp:ListItem Value="32">Print</asp:ListItem>
                                        <asp:ListItem Value="64">Execute</asp:ListItem>
                                    </asp:CheckBoxList>                                    
                                </div>
                            </div>
                            <div class="outerBox pTop15 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Text="Obsolete" AutoPostBack="True" />
                                    <asp:Label runat="server" AssociatedControlID="IsObsoleteCheckBox" ID="ObsoleteLabel">
                                    </asp:Label>
                                </div>
                            </div>
                            <div class="outerBox pTop15 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:CheckBox ID="IsClientSpecific" runat="server" Text="Client Specific" AutoPostBack="True" />
                                    <asp:Label runat="server" AssociatedControlID="IsObsoleteCheckBox" ID="ClientSpecificLabel">
                                    </asp:Label>
                                </div>
                            </div>
                            <div class="outerBox pTop15 col-md-12">
                                <div class="controlLabelWidth chkGroup">
                                 <%--    <div class="chkPermission">
                                        <asp:CheckBox ID="chkIsCreate" runat="server" Text="Create" value="1"  OnCheckedChanged="chkIsCreate_CheckedChanged" AutoPostBack="true" />
                                    </div>
                                    <div class="chkPermission">
                                        <asp:CheckBox ID="chkIsRead" runat="server" Text="Read" value="2" />
                                    </div>
                                    <div class="chkPermission">
                                        <asp:CheckBox ID="chkIsUpdate" runat="server" Text="Update" value="4" />
                                    </div>
                                    <div class="chkPermission">
                                        <asp:CheckBox ID="chkIsDelete" runat="server" Text="Delete" value="8" />
                                    </div>
                                    <div class="chkPermission">
                                        <asp:CheckBox ID="chkIsSearch" runat="server" Text="Search" value="16" />
                                    </div>
                                    <div class="chkPermission">
                                        <asp:CheckBox ID="chkIsPrint" runat="server" Text="Print" value="32" />
                                    </div>
                                    <div class="chkPermission">
                                        <asp:CheckBox ID="chkIsExecute" runat="server" Text="Execute" value="64" />

                                    </div>   --%>                                                            
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

