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

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ 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/TimeTable/TimeTableSchemaDetailBoxControl.ascx" TagName="TimeTableSchemaControl" TagPrefix="TimeTableSchema" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <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">
                                        
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <i class="fas fa-list-ul"></i>
                                                <asp:Label ID="Label1" runat="server" Text="Teacher Work Load"></asp:Label>
                                                    </header>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <div class="contentHolder">
                                            <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="OrganizationLabel" runat="server" Text="Organization" SkinID="MandatoryLabel"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="OrganizationDropDownList" SkinID="CustomWidthDropDownList"
                                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="OrganizationDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                    </div>
                                                    <asp:Button ID="AddButton" Text="&#xf067; Add" SkinID="0" class="btn btn-add fas" runat="Server" OnClick="AddButton_Click" />
                                                </div>
                                               
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DivisionLabel" runat="server" Text="Division"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="DivisionDropDownList" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true" OnSelectedIndexChanged="DivisionDropDownList_OnSelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="SubjectLabel" runat="server" Text="Subject"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="SubjectDropDownList" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="true">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="EmployeeLabel" runat="server" Text="Employee"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="EmployeeDropDownList" SkinID="CustomWidthDropDownList"
                                                            onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()"
                                                            AutoPostBack="false">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox pTop5 col-md-3">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="NoOfLectureLabel" runat="server" Text="Total Weekly Lecture"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox ID="NoOfLectureTextBox" 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="LectureLengthLabel" runat="server" Text="Lecture Length"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:TextBox runat="server" ID="LectureLengthTextBox" SkinID="CustomWidthDropDownList"
                                                            Text="1">
                                                        </asp:TextBox>
                                                    </div>
                                                </div>
                                                
                                             
                                                <div class="alignCenter pTop5 col-md-12 center">
                                                    <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click" SkinID="0" class="btn-search btn fas" />
                                                    <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" SkinID="0" class="btn-reset btn fas"/>
                                                    <asp:Button ID="DeleteButton" runat="server" Text="&#xf2ed; Delete" OnClick="DeleteButton_Click" SkinID="0" class="fas btn btn-delete"/>
                                                    <asp:Button ID="PrintButton" runat="server" Text="&#xf15b; Print" OnClick="PrintButton_Click" SkinID="0" class="fas btn btn-report"/>
                                                    <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" OnClick="ExportButton_Click" SkinID="0" class="fas btn btn-examcommon"/>
                                                    <asp:Button ID="ImportEmployeeButton" runat="server" Text="&#xf019; Import From Academic" SkinID="0" OnClick="ImportEmployeeButton_Click" class="fas btn btn-examcommon"/>
                                                    <asp:Button ID="ApplyAllButton" runat="server" Text="Apply Lecture Length" SkinID="0" OnClick="ApplyAllButton_Click" class="btn btn-assign" />
                                                    <asp:Button ID="ExportToAcademicButton" runat="server" Text="&#xf093; Export To Academic" SkinID="0" OnClick ="ExportToAcademicButton_Click" class="fas btn btn-examcommon"/>
                                                </div>                                               
                                               
                                            </asp:Panel>
                                            <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                                <div id="ReasonMasterDetailDiv" visible="false" runat="server">
                                                    
                                                    <div class="himsBoxHeader card-head inner" id="PatientRelationDiv" visible="true" runat="server">
                                                       
                                                        <div class="himsBoxTitle" style="width: 99%">
                                                            <%--<div class="gridHeaderText">
                                                                <header>
                                                                    <asp:Label ID="GridViewLabel" Text="Teacher Work Load List" runat="server" Font-Bold="true" />
                                                                </header>
                                                            </div>--%>
                                                        </div>
                                                    </div>

                                                    <div class="himsBoxContent card-body">
                                                        <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                            <ContentTemplate>
                                                                <div id="Div5" runat="server" visible="false" class="table-responsive">
                                                                    <asp:GridView ID="TeacherWorkLoadGridView" runat="server" AutoGenerateColumns="False"
                                                                        OnRowDataBound="TeacherWorkLoadGridView_RowDataBound" CssClass="table table-striped table-bordered table-hover"
                                                                        AllowPaging="false" SkinID="" ShowHeader="True" PagerSettings-Visible="false"
                                                                        DataKeyNames="DivisionId,SubjectId,EmployeeId">
                                                                        <Columns>
                                                                            <asp:TemplateField ItemStyle-Width="5%"
                                                                                ItemStyle-Wrap="true">
                                                                                <HeaderTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="HeaderCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="HeaderCheckBox_CheckedChanged" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <label class="rt-chkbox rt-chkbox-outline">
                                                                                    <asp:CheckBox ID="ContentCheckBox" runat="server" />
                                                                                        <span></span>
                                                                                    </label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="EmployeeCode" ItemStyle-Width="10%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="EmoloyeeCodeLabel" runat="server" Text='<%# Bind("EmployeeCode") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField DataField="EmpShortName" HeaderText="Short Name" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:TemplateField HeaderText="Employee" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="EmoloyeeLabel" runat="server" Text='<%# Bind("EmployeeTitle") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Division" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:LinkButton ID="DivisionLinkButton" runat="server" CommandName="Select" OnClick="DivisionLinkButton_Click"
                                                                                        Text='<%# Bind("DivisionTitle") %>' CausesValidation="false"></asp:LinkButton>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Subject" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="SubjectLabel" runat="server" Text='<%# Bind("SubjectTitle") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="NoOfLecture" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="NoOfLectureLabel" runat="server" Text='<%# Bind("NoOfLecture") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Lecture Length" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                                                ItemStyle-Wrap="true">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="LectureLengthLabel" runat="server" Text='<%# Bind("LectureLength") %>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </div>
                                                                <table cellpadding="0" cellspacing="0" class="fRight" style="margin-right: -200px">
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="TotalNoOfLectureL" runat="server" Text="Total :" Font-Bold="true"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="NoOfLectureT" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                        <td>&nbsp;
                                                                        </td>
                                                                        <td>&nbsp;
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <br />
                                                            </ContentTemplate>
                                                        </asp:UpdatePanel>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>                                
                            </div>
                        </tr>
                    </table>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/teacher-workload-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/teacher-workload")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>