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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/StudentSearch/StudentSearch.ascx" TagName="StudentSearch" TagPrefix="Std" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="IncidentLogUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <Std:StudentSearch ID="StudentSearch" Visible="false" runat="server" />
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="157"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader2WireBox ">
                        <div class="contentHolder">
                            <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                                <div class="himsBoxHeader card-head">
                                    <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <%--<asp:Image ID="Image2" runat="server" class="fLeft" 
                                meta:resourcekey="Image2Resource1" />--%>
                                            <div class="headerText">
                                                <header>
                                                    <i class="fas fa-search"></i>
                                                    <asp:Label ID="Label2" runat="server" Text="Search"></asp:Label>
                                                </header>
                                                <%--<cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="DetailPanel"
                                    ExpandControlID="Image2" CollapseControlID="Image2" TextLabelID="Label1" Collapsed="True"
                                    CollapsedText="Search" ExpandedText="Search" ImageControlID="Image2" ExpandedImage="~/images/buttonCollapse.gif"
                                    CollapsedImage="~/images/buttonExpand.gif" Enabled="True" />--%>
                                            </div>
                                            <div class="fRight mt-27">
                                                <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButtonID_Click" SkinID="0"
                                                    CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <asp:Panel ID="Panel1" runat="server" meta:resourcekey="DetailPanelResource1">
                                    <div class="himsBoxContent card-body">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="OrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                        onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchFromStartDateLabel" runat="server" Text="From Start Date" Visible="True"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromStartDatePicker" Visible="True"
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchToStartDateLabel" runat="server" Text="To Start Date" Visible="True"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToStartDatePicker" Visible="True"
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchFromDueDateLabel" runat="server" Text="From Due Date" Visible="True"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5" style="z-index: 15000">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromDueDateDatePicker" Visible="True"
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchToDueDateLabel" runat="server" Text="To Due Date" Visible="True"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5" style="z-index: 15000">
                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDueDateDatePicker" Visible="True"
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <%--<div class="cBoth"></div>--%>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchSourceTypeLabel" runat="server" Text="SourceType"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="SourceTypeDropDownList" runat="server" CssClass="form-control"
                                                        OnSelectedIndexChanged="SourceTypeDropDownList_SelectedIndexChanged" AutoPostBack="true" SkinID="CustomWidthDropDownList">
                                                        <asp:ListItem Text="Student" Value="2003" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3" id="SearchIdNoDiv" runat="server" visible="true">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SearchIdNoLabel" runat="server" Text="ID No"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5" style="display: flex">
                                                    <asp:TextBox ID="SearchIdNoTextBox"
                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"
                                                        AutoPostBack="true"> 
                                                    </asp:TextBox>
                                                    <asp:ImageButton SkinID="FindImage" ToolTip="Id Search" ID="SearchIdImageButton"
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop15 col-md-2">
                                                <div class="controlLabelWidth">
                                                    <asp:CheckBox ID="SearchIsCompletedCheckBox" runat="server" Text="IsCompleted" />
                                                </div>
                                            </div>
                                            <div class="outerBox pTop15 col-md-2">
                                                <div class="controlLabelWidth">
                                                    <asp:CheckBox ID="SearchIsClosedCheckBox" runat="server" Text="IsClosed" />
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="alignCenter pTop5">
                                                <asp:Button ID="SearchButton" runat="server" OnClick="SearchButton_Click"
                                                    TabIndex="2" SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                                <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click"
                                                    meta:resourcekey="ResetButtonResource1" />
                                                <asp:Button ID="ExportButton" Enabled="false" SkinID="0" CssClass="btn-examcommon btn fas"
                                                    Text="&#xf093; Export" runat="Server" OnClick="ExportButton_Click" />
                                                <asp:Button ID="SendMailButton" runat="server" Text="&#xf1d8;  Send Alert" OnClick="SendMailButton_Click" SkinID="0" CssClass="btn btn-send fas" />
                                            </div>
                                            <div id="Div2" class="himssuHeader1WireBox col-md-12 pTop5" runat="server">
                                                <div id="AssignTaskDetailDiv" visible="false" runat="server">
                                                    <div id="AssignTaskDiv" visible="false" runat="server">
                                                        <div class="leftdiv">
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                            <div class="headerText">
                                                                <div>
                                                                    <asp:Label ID="GridViewLabel" Text="" runat="server" Font-Bold="true" />
                                                                </div>
                                                            </div>
                                                            <div class="col-md-12 padd-0">

                                                                <div class="col-md-5">
                                                                    <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                                    <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                        AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                        <asp:ListItem Text="10" Value="10" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                        <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                        <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                                <div class="col-md-7">
                                                                    <uc1:GridViewPager ID="AssignTaskListGridview_GridViewPager" runat="server" OnFirstRecordClick="AssignTaskListGridview_GridViewPager_FirstRecordClick"
                                                                        OnLastRecordClick="AssignTaskListGridview_GridViewPager_LastRecordClick" OnNextRecordClick="AssignTaskListGridview_GridViewPager_NextRecordClick"
                                                                        OnPrevRecordClick="AssignTaskListGridview_GridViewPager_PrevRecordClick" OnTextBoxValueChange="AssignTaskListGridview_GridViewPager_TextBoxValueChange"
                                                                        ParentGridView="AssignTaskListGridview" />
                                                                </div>

                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent pTop5 himssuHeader7WireBox col-md-12">
                                                        <div id="AssignTaskListGridviewdiv" runat="server" class="table-responsive">
                                                            <asp:GridView ID="AssignTaskListGridview" runat="server" AutoGenerateColumns="False" AllowPaging="true" PageSize="10" PagerSettings-Visible="false"
                                                                Width="100%" CssClass="table table-striped table-bordered table-hover" OnRowDataBound="AssignTaskListGridview_RowDataBound" OnPageIndexChanging="AssignTaskListGridview_PageIndexChanging"
                                                                ShowHeader="True" EmptyDataText="No Task Available" DataKeyNames="Id,IsCompleted,IsClosed,AssignedToSourceId,AssignedToSourceTypeId">
                                                                <Columns>
                                                                    <asp:TemplateField meta:resourcekey="TemplateFieldResource1" ItemStyle-Width="5%">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="EditLinkButton" runat="server" OnClick="EditLinkButton_Click" Text="Select"
                                                                                CausesValidation="False" ForeColor="Blue" CommandName="Select"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField ItemStyle-Width="8%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                        HeaderStyle-HorizontalAlign="Left" HeaderText="">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="CloneLinkButton" runat="server" CommandName="Select" Text="Clone"
                                                                                CausesValidation="false" OnClick="CloneLinkButton_Click"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:TemplateField meta:resourcekey="TemplateFieldResource2" HeaderText="SourceType" ItemStyle-Width="10%">
                                                                        <ItemTemplate>
                                                                            <asp:Label runat="server" ID="SourceTypeLabel" Text='<%# DataBinder.Eval(Container.DataItem,"AssignedToSourceTypeId").ToString()=="2003"?"Student":"Employee" %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="SourceCode" HeaderText="Code" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="SourceName" HeaderText="Name" ItemStyle-Width="23%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:BoundField DataField="AssignedDate" HeaderText="StartDate" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" DataFormatString="{0:dd/MM/yyyy}" />
                                                                    <asp:BoundField DataField="DueDate" HeaderText="DueDate" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" DataFormatString="{0:dd/MM/yyyy}" />
                                                                    <asp:BoundField DataField="AssignedByName" HeaderText="Assign By" ItemStyle-Width="23%" HeaderStyle-HorizontalAlign="Left" />
                                                                    <asp:TemplateField HeaderText="IsCompleted" ItemStyle-Width="7%" SortExpression="IsCompleted"
                                                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="IsCompletedLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsCompleted").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="IsClosed" ItemStyle-Width="7%" SortExpression="IsClosed"
                                                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="IsClosedLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsClosed").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField ItemStyle-Wrap="true">
                                                                        <HeaderTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderIsSendMailCheckBox" runat="server" onClick="checkAllRows(this);" Text="" />
                                                                                <span></span>
                                                                            </label>
                                                                        </HeaderTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                        <ItemTemplate>
                                                                            <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="IsSendMailCheckBox" runat="server" onClick="checkUncheckHeaderCheckBox(this);" />
                                                                                <span></span>
                                                                            </label>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                            <div id="DetailDiv" class="himssuHeader1WireBox card card-box" runat="server">
                                <div class="himsBoxHeader card-head">
                                    <div class="leftdiv">
                                    </div>
                                    <div class="himsBoxTitle">
                                        <div class="headerText">
                                            <header>
                                                <i class="fas fa-tasks"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Assign Task"></asp:Label>
                                            </header>
                                        </div>
                                    </div>
                                    <div class="fRight mt-27 pagination display-flex ">
                                        <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                            <table>
                                                <tr>
                                                    <td class="formLabel">
                                                        <div id="Div1" runat="server" visible="true">
                                                            <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton" OnClick="FirstRecordImageButton_Click"
                                                                runat="server" CommandName="Page" CommandArgument="First"
                                                                CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-fast-backward"></i>
                                                            </asp:LinkButton>
                                                            <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton" OnClick="PreviousImageButton_Click"
                                                                runat="server" CommandName="Page" CommandArgument="Prev"
                                                                CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-play fa-rotate-180"></i>

                                                            </asp:LinkButton>
                                                            &nbsp;
                                                <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                            <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                            <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                            <asp:Label ID="TotalRecord" runat="server" />
                                                            &nbsp;
                                                <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom" OnClick="NextImageButtom_Click"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>

                                                            <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton" OnClick="LastRecordImageButton_Click"
                                                                runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last">
                                                      <i class="fa fa-fast-forward"></i>
                                                            </asp:LinkButton>
                                                            &nbsp;  &nbsp; &nbsp;
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </div>

                                <div class="himsBoxContent card-body">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="tableContainer">
                                                <cc1:TabContainer Width="100%" ID="AssignTaskTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                                    meta:resourcekey="AssignTaskTabContainerResource1" ActiveTabIndex="0">
                                                    <cc1:TabPanel Width="100%" ID="CircularDetails" runat="server" HeaderText="Assign Task">
                                                        <HeaderTemplate>
                                                            <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                                <li class="fancyTab"><a><i class="fas fa-check-circle"></i>&nbsp;Assign Task </a></li>
                                                            </ul>
                                                        </HeaderTemplate>
                                                        <ContentTemplate>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="AssignedDateLabel" runat="server" Text="Start Date" Visible="True" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="AssignedDatePickerControl" Visible="True"
                                                                        runat="server" />
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="DueDateLabel" runat="server" Text="Due Date" Visible="True" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5" style="z-index: 15000">
                                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="DueDatePickerControl" Visible="True"
                                                                        runat="server" />
                                                                </div>
                                                            </div>
                                                            <div class="cBoth"></div>

                                                            <div class="outerBox pTop5 col-md-4">
                                                                <div class="controlLabelWidth">
                                                                    <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                                        OnSelectedIndexChanged="SourceTypeRadioButtonList_OnSelectedIndexChanged" AutoPostBack="true">
                                                                        <asp:ListItem Text="Student" Value="2003" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                    <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                                    <asp:HiddenField ID="TaskIdHiddenField" runat="server" />
                                                                    <asp:HiddenField ID="GUIDHiddenField" runat="server" />
                                                                    <asp:HiddenField ID="UserSourceTypeHiddenField" runat="server" />
                                                                    <asp:HiddenField ID="UserSourceIdHiddenField" runat="server" />
                                                                    <asp:HiddenField ID="UploadConfigurationHiddenField" runat="server" />
                                                                </div>
                                                            </div>

                                                            <div class="cBoth"></div>
                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="fLeft">
                                                                    <asp:CheckBox ID="IsMultiIdCheckBox" runat="server" Text="Add Multi Id No" OnCheckedChanged="IsMultiIdCheckBox_CheckedChanged"
                                                                        AutoPostBack="true" />
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3" id="MultiIdDiv" runat="server" visible="false">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="AddMultiIdLabel" runat="server" Text="ID No" SkinID="MandatoryLabel"></asp:Label>
                                                                    <asp:Label ID="RmkLabel" runat="server" Text="Add ID No with , seperation (Eg. 2, 5, 10)"
                                                                        Font-Bold="true"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5" style="display: flex">
                                                                    <asp:TextBox ID="MultiIdTextBox"
                                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"
                                                                        AutoPostBack="true"> 
                                                                    </asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3" id="IdNoDiv" runat="server" visible="true">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="SourceCodeLabel" runat="server" Text="ID No" SkinID="MandatoryLabel"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5" style="display: flex">
                                                                    <asp:TextBox ID="SourceCodeTextBox"
                                                                        SkinID="CustomWidthTextBox" runat="server" MaxLength="200"
                                                                        AutoPostBack="true"
                                                                        OnTextChanged="SourceCodeTextBox_TextChanged"> 
                                                                    </asp:TextBox>
                                                                    <asp:ImageButton SkinID="FindImage" ToolTip="Drug Search" ID="SourceCodeImageButton"
                                                                        runat="server" />
                                                                    <asp:HiddenField ID="SourceIdHiddenField" runat="server" />
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3" id="NameDiv" runat="server" visible="true">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="SourceNameLabel" runat="server" Text="Name"></asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="SourceNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="CustomWidthTextBox" Width="150px" runat="server" MaxLength="200"> </asp:TextBox>
                                                                </div>
                                                            </div>

                                                            <div class="outerBox pTop5 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="RemarkLabel" runat="server" Text="Remark" meta:resourcekey="CodeSearchLabelResource1" SkinID="MandatoryLabel">
                                                                    </asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="RemarkTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="MultiLineTextBox"
                                                                        TextMode="MultiLine" runat="server" MaxLength="300"> </asp:TextBox>
                                                                </div>
                                                            </div>

                                                            <div class="cBoth"></div>
                                                            <br />

                                                            <div class="outerBox pTop15 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:CheckBox ID="IsCompletedCheckBox" runat="server" Text="IsCompleted" />
                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop15 col-md-3">
                                                                <div class="controlLabelWidth">
                                                                    <asp:CheckBox ID="IsClosedCheckBox" runat="server" Text="IsClosed" />
                                                                </div>
                                                            </div>

                                                            <div class="outerBox pTop15 col-md-3" runat="server" id="StopAutoAlertDiv">
                                                                <div class="fLeft">
                                                                    <asp:CheckBox ID="StopAutoAlertCheckBox" runat="server" Text="Stop Auto Alert" />
                                                                </div>
                                                            </div>

                                                            <div class="outerBox11 pTop15 col-md-3">
                                                                <div class="fLeft">
                                                                    <asp:CheckBox ID="FileAttachmentCheckBox" runat="server" Text="File Attachment" AutoPostBack="True" OnCheckedChanged="FileAttachmentCheckBox_CheckedChanged" />

                                                                </div>
                                                            </div>
                                                            <div class="outerBox pTop5 col-md-3" id="DueReasonRemarkDiv" runat="server" visible="false">
                                                                <div class="controlLabelWidth">
                                                                    <asp:Label ID="DueReasonRemarkLabel" runat="server" Text="Due Reason Remark" meta:resourcekey="CodeSearchLabelResource1">
                                                                    </asp:Label>
                                                                </div>
                                                                <div class="fLeft pRight5">
                                                                    <asp:TextBox ID="DueReasonRemarkTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                        SkinID="MultiLineTextBox" Enabled="false"
                                                                        TextMode="MultiLine" runat="server" MaxLength="300"> </asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <asp:HiddenField ID="AttachmentSizeHiddenField" runat="server" />
                                                            <div id="FileUploaddiv" visible="False" runat="server">
                                                                <div class="alignCenter pTop5 col-md-12">
                                                                    <div class="controlLabelWidth">
                                                                        <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                                            <i class="fa fa-arrow-down"></i>Browse</a>
                                                                        <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" AllowMultiple="True" />
                                                                        <asp:Button runat="server" ID="RefreshButton" Text=" Refresh" OnClick="RefreshButton_Click"
                                                                            SkinID="0" class="btn btn-refresh fas" />
                                                                    </div>

                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="Label3" runat="server" Style="padding-left: 10px; font-size: medium;" />
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-12">
                                                                    <div class="alert alert-info ">
                                                                        <i class="material-icons">info</i>
                                                                        <asp:Label ID="Label6" Text=" | Click on refresh button to view current uploaded Files"
                                                                            runat="server" />
                                                                    </div>
                                                                </div>
                                                                <div id="Div11" class="himssuHeader6WireBox col-md-12" runat="server">
                                                                    <div id="UploadDiv" visible="False" runat="server">

                                                                        <div class="himsBoxHeader card-head inner" id="HeaderDiv" visible="False" runat="server">
                                                                            <div class="leftdiv">
                                                                            </div>
                                                                        </div>
                                                                        <div class="himsBoxContent width-100">
                                                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                                                <ContentTemplate>
                                                                                    <div id="GridViewDiv" runat="server" visible="false" class="table-responsive">
                                                                                        <asp:GridView ID="FileGridView" runat="server" CssClass="table table-striped table-bordered table-hover"
                                                                                            AutoGenerateColumns="False" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Files Uploaded">
                                                                                            <Columns>
                                                                                                <asp:TemplateField HeaderText="File Name" ItemStyle-Width="90%" HeaderStyle-HorizontalAlign="Left"
                                                                                                    ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
                                                                                                    <ItemTemplate>
                                                                                                        <asp:HyperLink ID="FileNameHyperLink" runat="server" Text='<%# Eval("FileName") %>'
                                                                                                            NavigateUrl='<%# Eval("FilePath") %>' Target="_blank"></asp:HyperLink>
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                                <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                                                                                                    ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                                    <ItemTemplate>
                                                                                                        <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                                            ImageUrl="~/Images/delete.png" ToolTip="Delete" />
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                            </Columns>
                                                                                        </asp:GridView>
                                                                                    </div>
                                                                                </ContentTemplate>
                                                                            </asp:UpdatePanel>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </ContentTemplate>
                                                    </cc1:TabPanel>
                                                    <cc1:TabPanel Width="100%" ID="AssignTaskScope" runat="server" HeaderText="Multiple Task">
                                                        <HeaderTemplate>
                                                            <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                                <li class="fancyTab"><a><i class="fas fa-tasks"></i>&nbsp;Multiple Task</a></li>
                                                            </ul>
                                                        </HeaderTemplate>
                                                        <ContentTemplate>
                                                            <div class="outerBox pTop15 col-md-3">
                                                                <div class="fLeft">
                                                                    <asp:CheckBox ID="MultipleCheckBox" runat="server" Text="Multiple Task" AutoPostBack="true" OnCheckedChanged="MultipleCheckBox_CheckedChanged" />
                                                                </div>
                                                            </div>
                                                            <div id="DateDiv" runat="server" visible="false">
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <div class="controlLabelWidth">
                                                                        <asp:Label ID="FromDateLabel" runat="server" Text="From Date"></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"></asp:Label>
                                                                    </div>
                                                                    <div class="fLeft pRight5">
                                                                        <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePickerControl" runat="server" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </ContentTemplate>
                                                    </cc1:TabPanel>
                                                </cc1:TabContainer>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%-- <script data-main="../../JavaScript/rjs/encrypt/assignment-task-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assignment-task")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">

        function checkAllRows(obj) {
            var objGridview = obj.closest('table');
            var list = objGridview.getElementsByTagName("input");
            for (var i = 0; i < list.length; i++) {
                var objRow = list[i].parentNode.parentNode;
                if (list[i].type == "checkbox" && obj != list[i]) {
                    if (obj.checked) {
                        list[i].checked = true;
                    }
                    else {
                        list[i].checked = false;
                    }
                }
            }
        }
        function checkUncheckHeaderCheckBox(obj) {
            var objGridView = obj.closest('table');
            var list = objGridView.getElementsByTagName("input");
            for (var i = 0; i < list.length; i++) {
                var objHeaderChkBox = list[0];
                var checked = true;
                if (list[i].type == "checkbox" && list[i] != objHeaderChkBox) {
                    if (!list[i].checked) {
                        checked = false;
                        break;
                    }
                }
            }
            objHeaderChkBox.checked = checked;
        }

    </script>
    <script type="text/javascript">
        function RedirectToNewCommunication(CommunicationURL) {
            var newTab = window.open(CommunicationURL, '_blank');
            // Redirect the current page with an absolute path
            window.location.href = '../../Pages/BaseFramework/MyDashBoard.aspx';
        }
    </script>
</asp:Content>
