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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                
                            <div class="dashBoardLeftCont" valign="top" runat="server" id="ScreenGroupTableId">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="114"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <div class="himssuHeader5WireBox card card-box">
                                    <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="CreateDiscussionGroupButton" runat="server" OnClick="CreateDiscussionGroupButton_Click" Text="&#xf067; Create Group" SkinID="0" class="btn btn-add fas"/>
                                                </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="SearchTitleLabel" Text="Name" runat="server"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <asp:TextBox ID="SearchTitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            SkinID="CustomWidthTextBox"  runat="Server" MaxLength="200" Text="*"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                           
                                                                <div class="alignCenter pTop5 col-md-12 center">
                                                                    <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" class="btn-search btn fas" />
                                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Clear" OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas"/>
                                                                </div>
                                                               
                                                            </asp:Panel>
                                                            <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                                                <div id="DiscussionListDetailDiv" visible="false" runat="server">
                                                                  
                                                                    <div class="himsBoxHeader card-head inner" id="DiscussionListDiv" visible="false" runat="server">
                                                                        <div class="leftdiv">
                                                                        </div>
                                                                        <div class="himsBoxTitle" style="width: 99%">
                                                                            <div align="right" class="fRight" style="margin-top: 0px;">
                                                                                <uc1:GridViewPager ID="DiscussionListGridViewPager" ParentGridView="DiscussionListGridView"
                                                                                    runat="server" OnFirstRecordClick="DiscussionListGridViewPager_FirstRecordClick" OnLastRecordClick="DiscussionListGridViewPager_LastRecordClick"
                                                                                    OnNextRecordClick="DiscussionListGridViewPager_NextRecordClick" OnPrevRecordClick="DiscussionListGridViewPager_PrevRecordClick"
                                                                                    OnTextBoxValueChange="DiscussionListGridViewPager_TextBoxValueChange" />
                                                                            </div>
                                                                        </div>
                                                                      <%--   <div class="gridHeaderText">
                                                                         <header>
                                                                        <asp:Label ID="GridViewLabel" Text="Discussion List" runat="server" Font-Bold="true" />
                                                                             </header>
                                                                   
                                                                </div>--%>
                                                                    </div>
                                                                    <div class="himsBoxContent card-body">
                                                                        <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                                            <ContentTemplate>
                                                                                <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                                                    <asp:GridView ID="DiscussionListGridView" runat="server" AutoGenerateColumns="False"
                                                                                        OnRowDataBound="DiscussionListGridView_RowDataBound" EmptyDataText="No Records Found !!"
                                                                                        AllowPaging="true" PageSize="10" SkinID="" ShowHeader="true" PagerSettings-Visible="false"
                                                                                        DataKeyNames="DiscussionId,DiscussionGroupId" CssClass="table table-striped table-bordered table-hover">
                                                                                        <Columns>
                                                                                            <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                                            <asp:BoundField DataField="DiscussionRemark" HeaderText="Remark" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left" />
                                                                                            <asp:BoundField DataField="TotalDiscussionComment" HeaderText="Comment" ItemStyle-Width="6%" HeaderStyle-HorizontalAlign="Left" />
                                                                                            <asp:BoundField DataField="Batch" HeaderText="Batch" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                                            <asp:BoundField DataField="DiscussionCreatedUserName" HeaderText="Created User Name" ItemStyle-Width="12%" HeaderStyle-HorizontalAlign="Left" />
                                                                                            <asp:BoundField DataField="DiscussionCreatedDateTime" HeaderText="Created Date" ItemStyle-Width="12%" DataFormatString="{0:MMMM dd,yyyy}" HeaderStyle-HorizontalAlign="Left" />
                                                                                            <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                                <ItemTemplate>
                                                                                                    <asp:LinkButton ID="ViewLinkButton" runat="server" CommandName="Select" OnClick="ViewLinkButton_Click"
                                                                                                        Text="View" CausesValidation="false"></asp:LinkButton>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>
                                                                                        </Columns>
                                                                                    </asp:GridView>
                                                                                </div>
                                                                            </ContentTemplate>
                                                                        </asp:UpdatePanel>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </td>
                                                <asp:Repeater ID="MyGroupRepeater" runat="server" OnItemDataBound="MyGroupRepeater_OnItemDataBound">
                                                    <HeaderTemplate>
                                                        <asp:Label runat="server" CssClass="whiteboxpaddingleft row" ID="GroupLabel" Text="My Group" Width="100%" Font-Bold="true" Font-Size="Small"></asp:Label>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%--<div class="himsBoxContent leftTableContainer">--%>
                                                        <div class="leftUlMenu">
                                                            <ul>
                                                                <li style="height: auto; color: Black; list-style-type: none; background-color: White;">
                                                                    <asp:HiddenField runat="server" ID="DiscussionGroupIdHiddenField" Value='<%# Eval("DiscussionGroupId") %>' />
                                                                    <asp:LinkButton ID="DiscussionGroupLinkButton" runat="server" Text='<%# Eval("DiscussionGroup") %>' ForeColor="Blue" OnClick="DiscussionGroupLinkButton_Click"></asp:LinkButton>
                                                                </li>
                                                            </ul>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                            </div>
                        </tr>
                    </table>
                </div>
            </div>
                            </td>
	                    </tr>
                    </table>
                </div>
            </div>      
            
        </ContentTemplate>
    </asp:UpdatePanel>
 <%--   <script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>