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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/TimeTable/TimeTableSchemaDetailBoxControl.ascx" TagName="TimeTableSchemaControl" TagPrefix="TimeTableSchema" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="AssignOrganizationSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                
                            <div class="dashBoardLeftCont">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="222"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <TimeTableSchema:TimeTableSchemaControl ID="TimeTableSchemaUserControl" runat="server" Visible="true" />
                                <div class="himssuHeader5WireBox card card-box">
                                    <div class="himsBoxHeader  card-head">
                                        <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                           
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                     <header>
                                                    <i class="fas fa-search"></i>
                                                    <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>  
                                                         </header>                                                  
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                                        <div class="himsBoxContent card-body">
                                            <div class="contentHolder">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="OrgLabel" runat="server" Text="Organization"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="OrganizationDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                 <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="EmployeeTypeLabel" runat="server" Text="Employee  Group"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="EmployeeTypeDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true" OnSelectedIndexChanged="EmployeeTypeDropDownList_SelectedIndexChanged">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                              
                                                <div class="himssuHeader1WireBox col-md-12">
                                                    <div id="AssignOrganizationListGridDiv" runat="server" visible="false">
                                                        
                                                        <div id="AssignOrganizationListGridViewPagerDiv" runat="server">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle">
                                                            </div>
                                                        </div>
                                                        <div class="col-md-6">
                                                            <div class="himsBoxContent">
                                                               
                                                                <div class="fRight" style="padding-top: -15px">
                                                                    <asp:Button ID="SaveButton" runat="server" Text="&#xf067; Add" SkinID="0" class="btn btn-add fas" OnClick="SaveButton_Click" />
                                                                </div>

                                                                <div class="himsBoxHeader card-head inner" id="Div1" runat="server">  
                                                                     <div class="gridHeaderText">
                                                                   
                                                                         <header>
                                                                            <asp:Label ID="EmployeeLabel" runat="server" Text="All Employee List"></asp:Label>
                                                                             </header>
                                                              
                                                                    </div>
                                                                   </div>
                                                                <div class ="table-responsive">
                                                                <asp:GridView runat="server" ID="AssignTeacherGridView" AutoGenerateColumns="False"
                                                                    EmptyDataText="No records available for the seacrh criteria!" DataKeyNames="EMPLOYEEID"
                                                                    AllowPaging="false" PageSize="10" CssClass="table table-striped table-bordered table-hover"
                                                                    ShowHeader="True" meta:resourcekey="AssignOrganizationListGridViewResource1">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="8%">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="CheckAll(this);" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SelectCheckBox" runat="server" Checked='<%# Convert.ToBoolean( Eval("IsObsolete")) %>' />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="Code" HeaderText="Code" HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="NAME" HeaderText="NAME" HeaderStyle-HorizontalAlign="Left" />
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-6">
                                                            <div class="himsBoxContent">
                                                                
                                                                <div class="fRight" style="padding-top: -15px">
                                                                    <asp:Button ID="RemoveButton" runat="server" class="fas btn btn-delete" SkinID="0" Text="&#xf2ed; Remove" OnClick="RemoveButton_Click" />
                                                                </div>

                                                                <div class="himsBoxHeader card-head inner" id="Div2" runat="server">  
                                                                     <div class="gridHeaderText">
                                                                   
                                                                         <header>
                                                                           <asp:Label ID="EmployeeLabel2" runat="server" Text="Employee List"></asp:Label>
                                                                             </header>
                                                              
                                                                    </div>
                                                                   </div>

                                                                <asp:GridView runat="server" ID="GridView2" AutoGenerateColumns="False"
                                                                    EmptyDataText="No records available for the seacrh criteria!" DataKeyNames="EMPLOYEEID"
                                                                    AllowPaging="false" PageSize="10" class="himssuHeader7WireBox col-md-12 table-responsive" CssClass="table table-striped table-bordered"
                                                                    ShowHeader="True" meta:resourcekey="AssignOrganizationListGridViewResource1">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="8%">
                                                                            <HeaderTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="CheckAll(this);" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </HeaderTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                            <ItemTemplate>
                                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                                <asp:CheckBox ID="SelectCheckBox" runat="server" />
                                                                                    <span></span>
                                                                                </label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="Organization" HeaderText="Organization" HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="Code" HeaderText="Code" HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="NAME" HeaderText="NAME" HeaderStyle-HorizontalAlign="Left" />
                                                                    </Columns>
                                                                    <PagerSettings Visible="False" />
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                   
                                </div>
                            </div>
                      
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>