<%@ page title="Report Master" language="C#" autoeventwireup="true" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" inherits="Pages_ZDevelopment_ReportMaster, App_Web_ywbuemdp" 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="ReportMasterUpdatePanel" 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="SearchLabel" 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()" AutoPostBack="true"
                                                    meta:resourcekey="ModuleDropDownListResource1" OnSelectedIndexChanged="SearchModuleDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchTaskLabel" Text="Task" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchTaskDropDownList" runat="server" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="TaskDropDownListResource1">
                                                </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="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 id="Rows" visible="false" runat="server">
                                        &nbsp; &nbsp; &nbsp;
                                        <asp:Label ID="Total" Font-Bold="true" runat="server" Text="Total :"></asp:Label>
                                        <asp:Label ID="Count" Font-Bold="true" runat="server"></asp:Label> 
                                        </div>  
                                        <div class="cBoth">
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="ReportDetailDiv" visible="false" runat="server">
                                            <div class="spacer">
                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div class="himsBoxHeader" id="ReportDiv" 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="ReportDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" visible="false">
                                                            <div id="Div4" runat="server" class="table-responsive">
                                                                <asp:GridView ID="ReportMasterGridView" runat="server" AutoGenerateColumns="False" OnRowDataBound="ReportMasterGridView_RowDataBound"
                                                                    CssClass="table table-striped table-bordered table-hover" Width="100%"
                                                                    SkinID="" ShowHeader="true" PagerSettings-Visible="false" DataKeyNames="ReportId">
                                                                    <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="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="Task" ItemStyle-Width="20%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="TaskLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("TaskTitle")%>'
                                                                                    Text='<%#Bind("TaskTitle")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Report" ItemStyle-Width="20%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ReportLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("ReportTitle")%>'
                                                                                    Text='<%#Bind("ReportTitle")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Report Path" ItemStyle-Width="25px"   meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ReportPathLabel" runat="server" style="word-wrap: break-word;width:270px;display:block;" CssClass="boxEllips" ToolTip='<%#Bind("ReportPath")%>'
                                                                                    Text='<%#Bind("ReportPath")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Order Index" ItemStyle-Width="10%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="OrderLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("OrderIndex")%>'
                                                                                    Text='<%#Bind("OrderIndex")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Obsolete" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="IsObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"InActive").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                            </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="Report 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" Text="Module" runat="server" 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="TaskLabel" runat="server" Text="Task" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="TaskDropDownList" runat="server" CssClass="form-control"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            meta:resourcekey="TaskDropDownListResource1">
                                        </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>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="OrderIndexLabel" runat="server" Text="Order Index"></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="ReportGroupLabel" runat="server" Text="Report Group"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:DropDownList ID="ReportGroupDropDownList" runat="server" CssClass="form-control"
                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        meta:resourcekey="ReportGroupDropDownListResource1">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="ReportFormatGroup" runat="server" Text="Report Format Group"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:DropDownList ID="ReportFormatGroupDropDownList" runat="server" CssClass="form-control"
                                        onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        meta:resourcekey="ReportFormatGroupDropDownListResource1">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ReportNameLabel" runat="server" Text="Report Name" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ReportNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                            <div class="outerBox pTop15 col-md-3">
                                <div class="controlLabelWidth">
                                    <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Text="Obsolete" />
                                    <asp:Label runat="server" ID="ObsoleteLabel">
                                    </asp:Label>
                                </div>
                            </div>
                            <div class="outerBox pTop5 col-md-12">
                                <div class="controlLabelWidth">
                                    <asp:Label ID="PagePathInsertLabel" Text="Report Path" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                </div>
                                <div class="fLeft pRight5">
                                    <asp:TextBox ID="PagePathInsertTextBox" Style="width:99%"  onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                         runat="Server" MaxLength="100"></asp:TextBox>
                                </div>
                            </div>
                            <div class="outerBox pTop15 col-md-12">
                                <div class="controlLabelWidth chkGroup">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
