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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl"
    TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="DailyThoughtSubjectUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="157"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box" id="AssignDiv" 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-list-ul"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Assign"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="SearchPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="AssignPanel" runat="Server">
                                        <div class="contentHolder">
                                            <asp:Panel ID="SearchDayPanel" runat="server">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="OrganizationLabel" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                                            class="form-control" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                            OnSelectedIndexChanged="SourceTypeRadioButtonList_OnSelectedIndexChanged" AutoPostBack="true">
                                                            <asp:ListItem Text="Student" Value="2003" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" runat="server" id="ClassDropDownListDiv">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="ClassLabel" Text="Class" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="">
                                                        <asp:DropDownList ID="ClassDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" OnSelectedIndexChanged="ClassDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3" runat="server" id="DivisionDropDownListDiv">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DivisionLabel" Text="Division" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="">
                                                        <asp:DropDownList ID="DivisionDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" OnSelectedIndexChanged="DivisionDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox col-md-3 pTop5" runat="server" id="DepartmentDropDownListDiv">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DepartmentLabel" runat="server" Text="Department"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="DepartmentDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" OnSelectedIndexChanged="DepartmentDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="MonthLabel" Text="Month" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList ID="MonthDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                                            class="form-control" OnSelectedIndexChanged="MonthDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div id="NoDiv" runat="server" visible="false">
                                                    <div class="cBoth">
                                                    </div>
                                                    <%--Changed for Mantis : 31143--%>
                                                    <div style="width:40%; float:right;margin-right: -76px;">
                                                         <div class="outerBox pTop5 col-md-4">
                                                            <div class="fleft controlLabelWidth">
                                                                <asp:Label ID="FromNoLabel" Text="From Thought No." runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="FromNoTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" class="form-control">
                                                                </asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-4">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ToNoLabel" Text="To Thought No." runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="ToNoTextBox" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthTextBox" class="form-control">
                                                                </asp:TextBox>
                                                            </div>
                                                        </div>
                                                        
                                                        <div style="margin-top: 18px;">
                                                            <asp:Button ID="ApplyButton" Text="Apply" OnClick="ApplyButton_Click" runat="Server" SkinID="0" CssClass="btn btn-apply" />
                                                        </div>
                                                            
                                                    </div>
                                                    <%--Changed for Mantis : 31143--%>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="DetailDiv" visible="false" runat="server">
                                            <div class="spacer">
                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div class="himsBoxHeader" id="Div" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <asp:UpdatePanel ID="DailyThoughtDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="DailyThoughtDiv" runat="server" visible="false">
                                                            <div id="Div2" runat="server" class="table-responsive">
                                                                <asp:GridView ID="DailyThoughtAssignGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    CssClass="table table-striped table-bordered table-hover"
                                                                    AllowPaging="false" SkinID="" ShowHeader="True" PagerSettings-Visible="false" EmptyDataText="No records found">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="5%"
                                                                            ItemStyle-Wrap="true">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderIsSelectCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <HeaderStyle HorizontalAlign="Center" />
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="AssignCheckBox" runat="server" Checked='<%# Eval("IsAssign")%>' />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Day" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="DayLabel" CssClass="boxEllips" ToolTip='<%# Bind("Day") %>'
                                                                                    runat="server" Text='<%# Bind("Day") %>' Width="100%"></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Thought Number" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:TextBox ID="ThoughtNoTextBox" CssClass="boxEllips" runat="server" OnTextChanged="ThoughtNoTextBox_TextChanged"
                                                                                    Text='<%# Bind("Number") %>' Width="100%" AutoPostBack="true"></asp:TextBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Title" ItemStyle-Width="70%" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="TitleLabel" CssClass="boxEllips" ToolTip='<%# Bind("Title") %>'
                                                                                    runat="server" Text='<%# Bind("Title") %>' Width="100%"></asp:Label>
                                                                                <asp:HiddenField ID="DailyThoughtHiddenField" runat="server" Value='<%# Bind("DailyThoughtId") %>' />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>

                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
                </tr>
                    </table>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/subject-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script>
        function CheckAll(Checkbox) {
            var GridView = Checkbox.parentNode.parentNode.parentNode.parentNode;
            for (i = 1; i < GridView.rows.length; i++) {
                GridView.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked = Checkbox.checked;
            }
        }
    </script>
</asp:Content>

