<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Activity_EventSchedule, App_Web_u2j2ok1c" 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" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>

            <!-- ContentPlaceHolder Box Starts -->
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="himssuHeader3WireBox">
                    <div class="himsBoxContent">
                        <div class="leftUlMenu">
                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="108"
                                Visible="true" runat="server" />
                        </div>
                    </div>
                </div>
            </div>
            <div class="whiteboxpaddingleft row">
                <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                    <div class="himsBoxHeader card-head ">
                        <asp:Panel ID="Panel1" runat="server">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-search"></i>
                                        <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                    </header>

                                    <%-- <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="Server" TargetControlID="SearchPanel"
                                                        ExpandControlID="Image1" CollapseControlID="Image1" TextLabelID="Label3" Collapsed="true"
                                                        ImageControlID="Image1" ExpandedImage="~/images/buttonCollapse.gif" CollapsedImage="~/images/buttonExpand.gif"
                                                        ExpandDirection="Vertical" />--%>
                                </div>
                                <div class="fRight mt-27">
                                    <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                        Text="&#xf067; Add" class="btn btn-add fas" />
                                </div>
                            </div>
                        </asp:Panel>
                    </div>
                    <div class="himsBoxContent card-body ">
                        <asp:Panel ID="SearchPanel" runat="Server">
                            <div class="contentHolder">

                                <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="100"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchFromDateLabel" runat="server" Text="From Date"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromDatePicker" runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchToDateLabel" runat="server" Text="To Date"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDatePicker" runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox11 pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label1" runat="server" Text="Event Type"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="EventSearchDropdownlist" runat="server" onmouseleave="showHideTooltip()" class="form-control"
                                            onmouseenter="showHideTooltip()">
                                        </asp:DropDownList>
                                    </div>
                                </div>

                                <div class="alignCenter pTop5 col-md-12">
                                    <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; Reset" OnClick="ResetButton_Click"
                                        SkinID="0" class="btn-reset btn fas" />
                                    <asp:Button ID="ExportButton" Text="&#xf093; Export" CssClass="btn-examcommon btn fas" SkinID="0"
                                        runat="Server" OnClick="ExportButton_Click" />
                                    <%--add for 27457 mantis--%>
                                    <asp:Button ID="ViewReport" runat="server" Text="&#xf15b; View Report" OnClick="ViewReport_Click" SkinID="0"
                                        CssClass="btn-print btn fas" Enabled="false" />
                                </div>

                                <div id="Div2" class="himssuHeader7WireBox col-md-12" runat="server">
                                    <div id="EventScheduleListDetailDiv" runat="server" visible="false">


                                        <div class="himsBoxContent ">

                                            <div id="Div5" runat="server" class="table-responsive" visible="false">
                                                <asp:GridView ID="EventScheduleGridView" runat="server" AutoGenerateColumns="False"
                                                    ShowHeader="true" SkinID="" PagerSettings-Visible="false" CssClass="table table-striped table-bordered table-hover"
                                                    EmptyDataText="No Records Found !!" DataKeyNames="EventScheduleId" OnRowDataBound="EventScheduleGridView_RowDataBound"
                                                    OnPageIndexChanging="EventScheduleGridView_PageIndexChanging">
                                                    <Columns>
                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                            HeaderStyle-HorizontalAlign="Left" HeaderText="">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" Text="Select"
                                                                    CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <%--<asp:BoundField DataField="Id" HeaderText="Id" ItemStyle-Width="7%" Visible="false"/>--%>
                                                        <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="40%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="FromDate" HeaderText="From Date" DataFormatString="{0:dd/MM/yyyy}"
                                                            ItemStyle-Width="11%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="ToDate" HeaderText="To Date" DataFormatString="{0:dd/MM/yyyy}"
                                                            ItemStyle-Width="11%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="Remark" HeaderText="Remark"
                                                            ItemStyle-Width="11%" HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:BoundField DataField="EventType" HeaderText="Event Type" ItemStyle-Width="40%"
                                                            HeaderStyle-HorizontalAlign="Left" />
                                                        <asp:TemplateField HeaderText="Holiday" ItemStyle-Width="10%" SortExpression="IsHoliday"
                                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="IsHolidayLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsHoliday").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <%--Changed For mantis : 35865 by Nilesh--%>
                                                        <asp:TemplateField HeaderText="CommonForAll" ItemStyle-Width="10%" SortExpression="IsCommonForAll"
                                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" Visible = "false">
                                                            <ItemTemplate>
                                                                <asp:Label ID="IsCommonForAllLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsCommonForAll").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Enrollment" ItemStyle-Width="10%" SortExpression="IsEnrollment"
                                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="IsEnrollmentLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsEnrollment").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                    <asp:CheckBox ID="ImportCheckBox" runat="server" OnCheckedChanged="ImportCheckBox_CheckedChanged" Text="Import Event" AutoPostBack="true" />
                                    <br />
                                    <div runat="server" id="ImportDiv" visible="false">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ImportFromLabel" runat="server" Text="Import Event From"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="ImportFromDropDownList" runat="server" class="form-control" OnSelectedIndexChanged="ImportFromDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                            </div>


                                        </div>

                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="BatchLabel" runat="server" Text="Select Batch"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="BatchDropDownList" runat="server" class="form-control"></asp:DropDownList>&nbsp;&nbsp;
                                            </div>

                                        </div>
                                        <div class="outerBox pTop15 col-md-3">
                                            <asp:Button ID="ImportFromButton" runat="server" Text="&#xf093; Import" OnClick="ImportFromButton_Click" SkinID="0" Class="btn-examcommon btn fas" />
                                        </div>
                                        <%-- 
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                            </div>
                                            <div class="fLeft pRight5">
                                            </div>
                                        </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" id="Div4" runat="server" visible="True">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle">
                            <div class="headerText fLeft">
                                <header>
                                    <i class="fas fa-cog"></i>
                                    <asp:Label ID="Label4" Text="Maintainance" runat="server" />
                                </header>
                            </div>
                        </div>
                        <div class="fRight mt-27">

                            <div id="NumberOfRecordDiv" class="display-flex pagination" runat="server" visible="true">
                                <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                    runat="server" ImageUrl="~/Images/arrowLlast.gif" 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" ImageUrl="~/Images/arrowLeft.gif" 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" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                 <i class="fa fa-play"></i>
                                                            </asp:LinkButton>
                                <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                    runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                    OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-forward"></i>
                                </asp:LinkButton>
                            </div>
                            &nbsp; &nbsp; 
                                        <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                            class="btn btn-back fas" Text="&#xf30a; Back" />

                        </div>
                    </div>
                    <div class="himsBoxContent card-body ">
                        <asp:Panel ID="DetailPanel" runat="Server">
                            <div class="contentHolder">
                                <div class="tableContainer">
                                    <cc1:TabContainer ID="EventScheduleTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                        meta:resourcekey="EventScheduleTabContainerResource1" ActiveTabIndex="0">
                                        <cc1:TabPanel ID="EventScheduleDetails" runat="server" HeaderText="Event Schedule">
                                            <HeaderTemplate>

                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a><i class="fas fa-calendar"></i>&nbsp;Event Schedule </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="TitleLabel" runat="server" Text="Name" 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>
                                                            <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="FromDateLabel" runat="server" Text="From Date" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ToDateLabel" runat="server" Text="To Date" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePickerControl" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Eventtypelabel" runat="server" Text="Event Type" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="EventTypeMasterSearchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" class="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>


                                                    <div class="outerBox11 pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="RemarkLabel" runat="server" Text="Remark"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="RemarkTextBox" Height="70px" runat="server" onmouseleave="showHideTooltip()" SkinID="MultiLineTextBox"
                                                                onmouseenter="showHideTooltip()" MaxLength="1000" TextMode="MultiLine"></asp:TextBox>
                                                        </div>
                                                    </div>


                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:CheckBox ID="IsHolidayCheckBox" runat="server" Text="Holiday" />
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop15 col-md-3" runat="server" visible="False">
                                                        <div class="controlLabelWidth">
                                                            <asp:CheckBox ID="IsCommonForAllCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="IsCommonForAllCheckBox_OnCheckedChanged" Text="CommonForAll" />
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:CheckBox ID="IsEnrollmentCheckBox" runat="server" Text="Enrollment" />
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:CheckBox ID="ApplyOrganiztionCheckBox" runat="server"
                                                                OnCheckedChanged="ApplyOrganiztionCheckBox_OnCheckedChanged" Text="Apply Organization"
                                                                AutoPostBack="True" />
                                                        </div>


                                                        <div class="fLeft pRight5 chck-dropdown-onclick bg-lghtgrey outerBox11 col-md-12 overflow-x-hidden padd-0" id="DivForOrg" runat="server" visible="False">
                                                            <asp:CheckBoxList ID="ApplyOrganizationCheckBoxList" runat="server">
                                                            </asp:CheckBoxList>
                                                        </div>

                                                    </div>

                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        <cc1:TabPanel ID="EventAssign" ClientIDMode="Static" runat="server"
                                            HeaderText="Event Assign">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a><i class="fas fa-calendar"></i>&nbsp;Event Assign </a></li>
                                                </ul>

                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder col-md-12 padd-0">

                                                    <div id="Div1" class="himssuHeader6WireBox col-md-6" runat="server"
                                                        visible="true">
                                                        <div class="himsBoxHeader card-head inner" id="Div8" runat="server" visible="True">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="headerText ">
                                                                    <header>
                                                                        <asp:Label ID="Label6" Text="Class (Student)" runat="server" />
                                                                    </header>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent pTop5">
                                                            <div class="himssuHeader7WireBox col-md-12 table-responsive">
                                                                <asp:GridView ID="DivisionGridView" runat="server" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered"
                                                                    AllowPaging="false" ShowHeader="true" DataKeyNames="SourceId">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">

                                                                                    <asp:CheckBox ID="HeaderIsObsoleteCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">

                                                                                    <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Checked='<%# Eval("IsObsolete") %>' />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="DivDept" HeaderText="Class" ItemStyle-Width="93%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Department_LabelL" Text="Department" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="">
                                                            <asp:DropDownList ID="Department_DropDownListL" runat="server" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                                OnSelectedIndexChanged="DepartmentDropDownList_OnSelectedIndexChangedL" class="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="pull-right">
                                                            <asp:Button ID="AddButton" Text="&#xf067; Add" runat="server" SkinID="0" OnClick="AddButton_Click"
                                                                class="btn btn-add fas" />
                                                        </div>
                                                    </div>
                                                    <div id="Div6" class="himssuHeader6WireBox col-md-6" runat="server"
                                                        visible="true">
                                                        <div class="himsBoxHeader card-head inner" id="Div7" runat="server" visible="True">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                                <div class="headerText">
                                                                    <header>
                                                                        <asp:Label ID="Label5" Text="Department (Employee)" runat="server" />
                                                                    </header>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="himsBoxContent pTop5">
                                                            <div class="himssuHeader7WireBox col-md-12 table-responsive" style="width: 100%; height: 250px; overflow: scroll">
                                                                <asp:GridView ID="DepartmentGridView" runat="server" AutoGenerateColumns="False"
                                                                    EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered"
                                                                    AllowPaging="false" ShowHeader="true" DataKeyNames="SourceId,SourceTypeId,SourceType">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">

                                                                                    <asp:CheckBox ID="HeaderIsObsoleteCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">

                                                                                    <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Checked='<%# Eval("IsObsolete") %>' />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="DivDept" ItemStyle-Width="93%"
                                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6 padd-6">
                                                        <div class="outerBox pTop5  col-md-12">
                                                            <div class="pull-right">
                                                                <asp:Button ID="RemoveButton" Text="&#xf00d; Remove" runat="server" OnClick="RemoveButton_Click"
                                                                    SkinID="0" class="btn btn-delete fas" />
                                                            </div>
                                                        </div>

                                                        <div id="Div10" class="himssuHeader6WireBox pTop15 col-md-12" runat="server">

                                                            <div class="himsBoxHeader card-head inner" id="Div11" runat="server">

                                                                <div class="himsBoxTitle">
                                                                    <div class="headerText ">
                                                                        <div class="gridHeaderText">
                                                                            <header>
                                                                                <asp:Label ID="Label2" Text="Source List" runat="server" />
                                                                            </header>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent width-100 pTop5">
                                                                <div id="Div12" class="himsBoxContentMsg" runat="server" visible="true">
                                                                </div>
                                                                <div class="table-responsive">
                                                                    <asp:GridView ID="FinalGridView" runat="server" CssClass="table table-striped table-bordered table-hover"
                                                                        AutoGenerateColumns="False" EmptyDataText="No Records Found !!"
                                                                        DataKeyNames="SourceId,SourceTypeId,SourceType" ShowHeader="true">
                                                                        <Columns>

                                                                            <asp:TemplateField>
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">

                                                                                        <asp:CheckBox ID="HeaderIsObsoleteCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                                <ItemTemplate>

                                                                                    <label class="rt-chkbox rt-chkbox-outline">

                                                                                        <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Checked='<%# Eval("IsObsolete") %>' />
                                                                                        <span></span>
                                                                                    </label>


                                                                                    <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField HeaderText="OrgName" DataField="OrgName" ItemStyle-Width="93%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField HeaderText="ClassDepartment" DataField="ClassDepartment" ItemStyle-Width="93%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField HeaderText="SourceType" DataField="SourceType" ItemStyle-Width="93%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField HeaderText="Code" DataField="Code" ItemStyle-Width="93%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField HeaderText="Source" DataField="Source" ItemStyle-Width="93%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>

                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        </td>
                                                        </tr>
                                                    </table>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        <cc1:TabPanel ID="EventAttendance" ClientIDMode="Static" runat="server" HeaderText="Event Attendance">
                                            <HeaderTemplate>

                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a><i class="fas fa-calendar"></i>&nbsp;Event Attendance </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <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"
                                                                OnSelectedIndexChanged="ClassDropDownList_OnSelectedIndexChanged" class="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="AttendanceTypeLabel" runat="server" Text="Attendance Type" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList runat="server" ID="AttendanceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="AttendanceFromDateLabel" runat="server" Text="From Date" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="AttendanceFromDatePickerControl" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="AttendanceToDateLabel" runat="server" Text="To Date" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="AttendanceToDatePickerControl" runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="alignCenter pTop5 pb15 col-md-12">
                                                        <asp:Button ID="PresentAllClassButton" runat="server" Text="&#Xf245; Present All Class" OnClick="PresentAllClassButton_Click" SkinID="0" CssClass="btn btn-select fas " />
                                                        <asp:Button ID="PresentSelectedClassButton" runat="server" Text="&#Xf245; All Present Selected Class"
                                                            OnClick="PresentSelectedClassButton_Click" SkinID="0" CssClass="btn btn-select fas " />
                                                        <asp:Button ID="AbsentSelectedClassButton" runat="server" Text="&#Xf245; All Absent Selected Class"
                                                            OnClick="AbsentSelectedClassButton_Click" SkinID="0" CssClass="btn btn-select fas " />
                                                        <asp:Button ID="AssignStudentAttendanceButton" runat="server" Text="&#Xf245; Assign Student Attendance"
                                                            SkinID="0" CssClass="btn btn-select fas " OnClick="AssignStudentAttendanceButton_Click" />
                                                        <asp:Button ID="SendStudentAlertButton" runat="server" Text="&#Xf245; Send Alert"
                                                            SkinID="0" CssClass="btn btn-select fas " OnClick="SendStudentAlertButton_Click" />
                                                        <%-- <asp:Button ID="PrintButton" runat="server" Text="&#xf15b; Print"
                                                            OnClick="PrintButton_Click" SkinID="0" CssClass="btn btn-print fas " />--%>
                                                    </div>

                                                    <div id="EventAttendanceStudentDiv" runat="server" visible="False" class="pTop5">
                                                        <div class="himssuHeader6WireBox box-body box-solid  pTop5">
                                                            <div class="himsBoxHeader card-head inner" id="StudentGridViewPagerDiv" runat="server" visible="False">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="gridHeaderText">
                                                                        <header>
                                                                            <asp:Label ID="StudentGridViewLabel" Text="Student List" runat="server" />
                                                                        </header>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent  gridviewfont">
                                                                <div id="Div3" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive">
                                                                    <asp:GridView ID="EventAttendanceStudentGridView" runat="server" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" DataKeyNames="SourceId" CssClass="table table-striped table-bordered"
                                                                        OnRowDataBound="EventAttendanceStudentGridView_RowDataBound">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderText="Select">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="SHeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                            Visible="true" OnCheckedChanged="SHeaderSelectCheckBox_checked" />

                                                                                        <span></span>
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="SSelectCheckBox" AutoPostBack="true" Checked='<%# Eval("IsObsolete") %>'
                                                                                            OnCheckedChanged="SSelectCheckBox_Checked" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="RollNo" HeaderText="Roll No">
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="10%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="Code" HeaderText="Code">
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="15%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="Name" HeaderText="Name">
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="30%" />
                                                                            </asp:BoundField>
                                                                            <asp:TemplateField HeaderText="Student Present">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="HeaderIsSelfPresentCheckBox" runat="server"
                                                                                            AutoPostBack="true" OnCheckedChanged="HeaderIsSelfPresentCheckBox_Checked" />
                                                                                        <span></span>
                                                                                        Student Present
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="10%" Wrap="True" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="SelfPresentCheckBox" Checked='<%# Eval("IsSelfPresent") %>' runat="server"
                                                                                            Enabled="false" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Father Present">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="HeaderIsFatherPresentCheckBox" runat="server"
                                                                                            AutoPostBack="true" OnCheckedChanged="HeaderIsFatherPresentCheckBox_Checked" />
                                                                                        <span></span>
                                                                                        Father Present
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="10%" Wrap="True" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="FatherPresentCheckBox" Checked='<%# Eval("IsFatherPresent") %>'
                                                                                            runat="server" Enabled="false" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Mother Present">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="HeaderIsMotherPresentCheckBox" runat="server"
                                                                                            AutoPostBack="true" OnCheckedChanged="HeaderIsMotherPresentCheckBox_Checked" />
                                                                                        <span></span>
                                                                                        Mother Present
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="10%" Wrap="True" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="MotherPresentCheckBox" Checked='<%# Eval("IsMotherPresent") %>'
                                                                                            runat="server" Enabled="false" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Guardian Present">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="HeaderIsGuardianPresentCheckBox" runat="server"
                                                                                            AutoPostBack="true" OnCheckedChanged="HeaderIsGuardianPresentCheckBox_Checked" />
                                                                                        <span></span>
                                                                                        Guardian Present
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="10%" Wrap="True" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="GuardianPresentCheckBox" Checked='<%# Eval("IsGuardianPresent") %>'
                                                                                            runat="server" Enabled="false" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="DepartmentLabel" Text="Department" runat="server"></asp:Label>
                                                        </div>
                                                        <div class="">
                                                            <asp:DropDownList ID="DepartmentDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" AutoPostBack="True" SkinID="CustomWidthDropDownList"
                                                                OnSelectedIndexChanged="DepartmentDropDownList_OnSelectedIndexChanged" class="form-control">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                    <div class="alignCenter pTop5 col-md-12">
                                                        <asp:Button ID="PresentAllDepartmentButton" runat="server" Text="&#Xf245; Present All Department"
                                                            OnClick="PresentAllDepartmentButton_Click" SkinID="0" CssClass="btn btn-select fas " />
                                                        <asp:Button ID="PresentSelectedDepartmentButton" runat="server" Text="&#Xf245; All Present Selected Department"
                                                            OnClick="PresentSelectedDepartmentButton_Click" SkinID="0" CssClass="btn btn-select fas " />
                                                        <asp:Button ID="AbsentSelectedDepartmentButton" runat="server" Text="&#Xf245; All Absent Selected Department"
                                                            OnClick="AbsentSelectedDepartmentButton_Click" SkinID="0" CssClass="btn btn-select fas " />
                                                        <asp:Button ID="AssignEmployeeAttendanceButton" runat="server" Text="&#Xf245; Assign Employee Attendance"
                                                            SkinID="0" CssClass="btn btn-select fas " OnClick="AssignEmployeeAttendanceButton_Click" />
                                                        <asp:Button ID="SendEmployeeAlertButton" runat="server" Text="&#Xf245; Send Alert"
                                                            SkinID="0" CssClass="btn btn-select fas " OnClick="SendEmployeeAlertButton_Click" />
                                                    </div>

                                                    <div id="EventAttendanceEmployeeDiv" runat="server" visible="False" class="pTop5">
                                                        <div class="himssuHeader6WireBox col-md-12  pTop5">
                                                            <div class="himsBoxHeader card-head inner" id="EmployeeGridViewPagerDiv" runat="server" visible="False">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="gridHeaderText">
                                                                        <header>
                                                                            <asp:Label ID="EmployeeGridViewLabel" Text="Employee List" runat="server" />
                                                                        </header>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <div id="Div9" runat="server" class="himssuHeader7WireBox col-md-12 table-responsive">
                                                                    <asp:GridView ID="EventAttendanceEmployeeGridView" runat="server" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!" DataKeyNames="SourceId" CssClass="table table-striped table-bordered"
                                                                        OnRowDataBound="EventAttendanceEmployeeGridView_RowDataBound">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderText="Select">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="EHeaderSelectCheckBox" runat="server" Enabled="true" AutoPostBack="true"
                                                                                            Visible="true" OnCheckedChanged="EHeaderSelectCheckBox_checked" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="5%" Wrap="True" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="ESelectCheckBox" runat="server" Checked='<%#Eval("IsObsolete") %>'
                                                                                            AutoPostBack="true" OnCheckedChanged="ESelectCheckBox_Checked" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="Code" HeaderText="Code">
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="15%" />
                                                                            </asp:BoundField>
                                                                            <asp:BoundField DataField="Name" HeaderText="Name">
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="70%" />
                                                                            </asp:BoundField>
                                                                            <asp:TemplateField HeaderText="Present">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="HeaderPresentCheckBox" runat="server" AutoPostBack="true"
                                                                                            OnCheckedChanged="HeaderPresentCheckBox_Checked" />
                                                                                        <span></span>
                                                                                        Present
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                                <ItemStyle HorizontalAlign="Center" Width="10%" Wrap="True" />
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                        <asp:CheckBox ID="SelfPresentCheckBox" Checked='<%#Eval("IsSelfPresent") %>' runat="server"
                                                                                            Enabled="false" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                        <cc1:TabPanel Width="100%" ID="QueryCategoryDetails" runat="server" HeaderText="Event Incharge">
                                            <HeaderTemplate>
                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                    <li class="fancyTab"><a><i class="fas fa-check-circle"></i>&nbsp;Event Incharge </a></li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <div class="contentHolder pTop15">
                                                    <div>

                                                        <%--   <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                        <asp:HiddenField ID="IndexHiddenField" runat="server" />
                                                        <asp:HiddenField ID="ButtonIdHiddenField" runat="server" />
                                                        <asp:HiddenField ID="GUIDHiddenField" runat="server" />--%>

                                                        <div id="SpecificEmployeewiseDiv">
                                                            <div class="outerBox pTop5 col-md-3" style="margin-bottom: 15px">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="EmployeeCodeLabel" runat="server" Text="Employee Code" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5 display-flex">
                                                                    <asp:TextBox ID="EmployeeCodeTextBox" SkinID="CustomWidthTextBox" Width="150px" runat="server"
                                                                        MaxLength="100" AutoPostBack="true" OnTextChanged="EmployeeCodeTextBox_TextChanged"> </asp:TextBox>
                                                                    <asp:ImageButton SkinID="FindImage" ToolTip="Search" ID="EmployeeCodeImageButton"
                                                                        ImageUrl="~/Images/icons/icon_find.gif" runat="server" OnClick="EmployeeCodeImageButton_Click" />
                                                                    <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="EmployeeNameLabel" runat="server" Text="Employee Name"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="EmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> </asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <asp:HiddenField ID="IndexHiddenField" runat="server" />
                                                    <asp:HiddenField ID="ButtonIdHiddenField" runat="server" />
                                                    <div id="Div21" class="himssuHeader6WireBox col-md-12" runat="server" visible="true" style="margin-top: 4px">
                                                        <div class="himsBoxHeader card-head inner" id="Div81" runat="server" visible="True" style="height: 37px">

                                                            <div class="himsBoxTitle" style="margin-bottom: -6px">
                                                                <div class="gridHeaderText">
                                                                    <header style="margin-top: 3px">
                                                                        <asp:Label ID="Label61" Text="Employee Incharge" runat="server" />
                                                                    </header>
                                                                </div>
                                                            </div>
                                                            <div class="fRight mt-27">
                                                                <asp:Button ID="AddEmployeeButton" runat="server" SkinID="0" class="btn btn-add fas" OnClick="AddEmployeeButton_Click"
                                                                    Text="&#xf067; Add" />

                                                            </div>
                                                            <br />
                                                        </div>

                                                        <div class="himsBoxContent card-body table-responsive">
                                                            <asp:GridView ID="AssignedToGridView" runat="server" AutoGenerateColumns="False"
                                                                CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true"
                                                                DataKeyNames="EventScheduleId,SourceTypeId,SourceId,Index">
                                                                <Columns>
                                                                    <%--  <asp:TemplateField HeaderText="Type" ItemStyle-Width="20%" SortExpression="Title"
                                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="SourceTypeLabel" runat="server" Text='<%# Bind("SourceType") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>--%>
                                                                    <asp:TemplateField HeaderText="Code" ItemStyle-Width="20%" SortExpression="Title"
                                                                        HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="SourceCodeLabel" runat="server" Text='<%# Bind("SourceCode") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Name" ItemStyle-Width="50%" SortExpression="Title"
                                                                        HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="SourceNameLabel" runat="server" Text='<%# Bind("SourceName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Delete" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="10%"
                                                                        ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                ImageUrl="~/Images/icons/icon_delete.gif" ToolTip="Delete" />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>

                                                    <div id="Div13" class="himssuHeader6WireBox col-md-12" runat="server" visible="false">
                                                        <div class="himsBoxHeader card-head inner" id="Div14" runat="server" visible="True">

                                                            <div class="himsBoxTitle">
                                                                <div class="gridHeaderText">
                                                                    <header>
                                                                        <asp:Label ID="Label9" Text="Applicable Organization" runat="server" />
                                                                    </header>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent table-responsive">
                                                            <asp:GridView ID="OrganizationGridView" runat="server" AutoGenerateColumns="False"
                                                                CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true"
                                                                DataKeyNames="OrgId">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderIsObsoleteCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                <span></span>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Checked='<%# Eval("IsObsolete") %>' />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="93%"
                                                                        HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </cc1:TabPanel>
                                    </cc1:TabContainer>
                                </div>

                            </div>
                        </asp:Panel>
                    </div>
                </div>
            </div>
            <%--HEDP History Ends Here--%>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--    <script data-main="../../JavaScript/rjs/encrypt/event-schedule-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/event-schedule")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>

     <%--Added by dhananajay for mantis Start- 38008--%>
        <script type="text/javascript">
            function RedirectToNewEvent(EventActivityURL) {
                var newTab = window.open(EventActivityURL, '_blank');
                window.location.href = '../../../Pages/BaseFramework/MyDashBoard.aspx';
            }
         </Script>
     <%--Added by dhananajay for mantis End - 38008--%>
</asp:Content>
 