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

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="167"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader2WireBox">
                        <div class="contentHolder">
                            <div class="himssuHeader1WireBox card card-box" id="SearchDiv" runat="server" visible="false">
                                <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" OnClick="AddNewButton_Click" SkinID="0" CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                            </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="Label4" runat="server" Text="Module"
                                                            meta:resourcekey="ModuleLabelResource1"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="ModuleTaskDropDownList" DataTextField="Title" DataValueField="Id"
                                                            runat="server" OnSelectedIndexChanged="ModuleTaskDropDownList_SelectedIndexChanged"
                                                            TabIndex="5" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="outerBox pTop5  col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="TaskLabel" runat="server" Text="Task"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="TaskDropDownList" DataTextField="Title"
                                                            DataValueField="Id" runat="server" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <%-- <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchScreenLabel" Text="Screen" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="SearchScreenDropDownlist" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" AutoPostBack="true" CssClass="form-control" runat="Server" MaxLength="100">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>--%>
                                                <div class="outerBox pTop5 col-md-3" style="display: none;">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SearchCodeLabel" Text="Help Description" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="SearchHelpDescriptionTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="MultiLineTextBox" CssClass="form-control" Height="40px" runat="Server"></asp:TextBox>
                                                    </div>
                                                </div>

                                                <div class="alignCenter pTop5 col-md-12">
                                                    <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                        SkinID="0" CssClass="btn-search btn fas" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" CssClass="btn-reset btn fas" />
                                                </div>
                                            </asp:Panel>
                                            <div id="Div1" class="himssuHeader7WireBox col-md-12 pTop5" runat="server">
                                                <div id="NewsDetailDiv" visible="false" runat="server">

                                                    <div class="himsBoxHeader" id="NewsDiv" visible="false" runat="server">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent">
                                                        <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                            <ContentTemplate>
                                                                <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                                    <asp:GridView ID="ScreenhelperGridView" runat="server" AutoGenerateColumns="False"
                                                                        OnRowDataBound="ScreenhelperGridView_RowDataBound" OnPageIndexChanging="ScreenhelperGridView_PageIndexChanging" CssClass="table table-striped table-bordered table-hover"
                                                                        SkinID="" ShowHeader="true" PagerSettings-Visible="false" DataKeyNames="ScreenId,Module,ModuleId">
                                                                        <Columns>
                                                                            <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                        Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="Module" HeaderText="Module" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />
                                                                            <asp:BoundField DataField="ScreenId" HeaderText="ScreenId" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                            <asp:BoundField DataField="Title" HeaderText="Screen Title" ItemStyle-Width="40%" HeaderStyle-HorizontalAlign="Left" />

                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </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-question-circle"></i>
                                                <asp:Label ID="BuildingMasterLabel" runat="server" Text="Screen Helper"></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"
                                                runat="server" CommandName="Page" CommandArgument="First"
                                                OnClick="FirstRecordImageButton_Click" 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"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next"
                                                    OnClick="NextImageButton_Click">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>

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

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

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

                                                <div class="outerBox pTop5  col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label2" runat="server" Text="Task" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="TaskListDropDownList" DataTextField="Title"
                                                            DataValueField="Id" runat="server" AutoPostBack="True" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="TaskListDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <asp:HiddenField ID="MaxRowHiddenField" runat="server" />

                                                <%--   <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ScreenLabel" Text="Screen" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="Screendrop" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            SkinID="CustomWidthTextBox" CssClass="form-control" runat="Server" AutoPostBack="true" OnSelectedIndexChanged="Screendrop_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                        
                                                    </div>
                                                </div>--%>

                                                <div class="outerBox11 pTop5 col-md-12">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="HelpDescriptionLabel" runat="server" Text="Help Description"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <CKEditor:CKEditorControl ID="helperDescTextBox" BasePath="~/ckeditor/" runat="server"></CKEditor:CKEditorControl>

                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="fLeft pTop5">
                                                        <asp:CheckBox ID="IsUploadCheckBox" runat="server" Text="Upload" onclick="EnableUploadRemarkTextBox();"/>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="UploadRemarkLabel" runat="server" Text="Upload Remark"></asp:Label>
                                                        <asp:Label ID="uploadmandatorylabel" runat="server" SkinID="MandatoryLabel" style="display:none"></asp:Label>
                                                    </div>
                                                    <div class="fLeft">
                                                        <asp:TextBox ID="UploadRemarkTextBox" TextMode="MultiLine" onKeyDown="textCounter(this,200);"
                                                            onKeyUp="textCounter(this,200);" runat="server" SkinID="MultilineTextBox" Height="30px"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            meta:resourcekey="RemarkTextBoxResource1" Enabled="false"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="fLeft pTop5">
                                                        <asp:CheckBox ID="IsExportCheckBox" runat="server" Text="Export" onclick="EnableExportRemarkTextBox();"/>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ExportRemarkLabel" runat="server" Text="Export Remark"></asp:Label>
                                                        <asp:Label ID="exportmandatorylabel" runat="server" SkinID="MandatoryLabel" style="display:none"></asp:Label>
                                                    </div>
                                                    <div class="fLeft">
                                                        <asp:TextBox ID="ExportRemarkTextBox" TextMode="MultiLine" onKeyDown="textCounter(this,200);"
                                                            onKeyUp="textCounter(this,200);" runat="server" SkinID="MultilineTextBox" Height="30px"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            meta:resourcekey="RemarkTextBoxResource1" Enabled="false"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="fLeft pTop5">
                                                        <asp:CheckBox ID="IsImportCheckBox" runat="server" Text="Import" onclick="EnableImportRemarkTextBox();"/>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ImportRemarkLabel" runat="server" Text="Import Remark"></asp:Label>
                                                        <asp:Label ID="importmandatorylabel" runat="server" SkinID="MandatoryLabel" style="display:none"></asp:Label>
                                                    </div>
                                                    <div class="fLeft">
                                                        <asp:TextBox ID="ImportRemarkTextBox" TextMode="MultiLine" onKeyDown="textCounter(this,200);"
                                                            onKeyUp="textCounter(this,200);" runat="server" SkinID="MultilineTextBox" Height="30px"
                                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            meta:resourcekey="RemarkTextBoxResource1" Enabled="false"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--   <script data-main="../../JavaScript/rjs/encrypt/building-master-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/building-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script>

        function EnableUploadRemarkTextBox() {
            var chk = false;
            if ($("#ctl00_CP_IsUploadCheckBox").is(':checked')) {
                $("#ctl00_CP_UploadRemarkTextBox").removeAttr('disabled');
                $("#ctl00_CP_UploadRemarkTextBox").focus();
                $("#ctl00_CP_uploadmandatorylabel").css("display", "");
            }
            else {
                $("#ctl00_CP_UploadRemarkTextBox").attr('disabled', 'disabled');
                $("#ctl00_CP_UploadRemarkTextBox").val('');
                $("#ctl00_CP_uploadmandatorylabel").css("display", "none");
            }
        }

        function EnableExportRemarkTextBox() {
            var chk = false;
            if ($("#ctl00_CP_IsExportCheckBox").is(':checked')) {
                $("#ctl00_CP_ExportRemarkTextBox").removeAttr('disabled');
                $("#ctl00_CP_ExportRemarkTextBox").focus();
                $("#ctl00_CP_exportmandatorylabel").css("display", "");
            }
            else {
                $("#ctl00_CP_ExportRemarkTextBox").attr('disabled', 'disabled');
                $("#ctl00_CP_ExportRemarkTextBox").val('');
                $("#ctl00_CP_exportmandatorylabel").css("display", "none");
            }
        }

        function EnableImportRemarkTextBox() {
            var chk = false;
            if ($("#ctl00_CP_IsImportCheckBox").is(':checked')) {
                $("#ctl00_CP_ImportRemarkTextBox").removeAttr('disabled');
                $("#ctl00_CP_ImportRemarkTextBox").focus();
                $("#ctl00_CP_importmandatorylabel").css("display", "");
            }
            else {
                $("#ctl00_CP_ImportRemarkTextBox").attr('disabled', 'disabled');
                $("#ctl00_CP_ImportRemarkTextBox").val('');
                $("#ctl00_CP_importmandatorylabel").css("display", "none");
            }
        }

    </script>
</asp:Content>
