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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage">
                <div style="width: 100%; padding: 2px; margin: 2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px; border-collapse: collapse;" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td class="dashBoardLeftCont" valign="top">
                                <div class="himssuHeader3WireBox">
                                    <table width="0px" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="166"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td style="vertical-align: top;" width="100%" class="whiteboxpaddingleft">
                                <div class="himssuHeader1WireBox whitebox">
                                    <div class="himsBoxHeader note note1 box box-danger" id="Div6" runat="server" visible="True">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText fLeft">
                                                <asp:Label ID="Label2" Text="Maintainance"
                                                    runat="server" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="Panel3" runat="Server">
                                            <div class="contentHolder">
                                                <div class="tableContainer">
                                                    <cc1:TabContainer Width="100%" ID="ShiftAllocationTabContainer" runat="server" CssClass="ajax__myTab"
                                                        meta:resourcekey="ShiftAllocationTabContainerResource1" ActiveTabIndex="0">
                                                        <cc1:TabPanel Width="100%" ID="BiometricsTabPanel" runat="server" HeaderText="Biometric">
                                                            <HeaderTemplate>
                                                                <ul class="nav nav-tabs ajaxnavtabs">
                                                                    <li>
                                                                        <a style="padding: 10px 15px !important;">Biometric
                                                                        </a>
                                                                    </li>
                                                                </ul>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <asp:Panel ID="DetailPanel" runat="Server">
                                                                    <div class="contentHolder">
                                                                        <asp:Panel ID="ShiftCriteriaPanel" runat="Server">
                                                                            <div class="outerBox pTop5">
                                                                                <div class="controlLabelWidth">
                                                                                    <asp:TextBox ID="ShiftOrWeekOffTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="false"
                                                                                        SkinID="CustomWidthTextBox" Width="150px" runat="Server" onblur="WaterMark(this, event);" onfocus="WaterMark(this, event);"></asp:TextBox>
                                                                                    <asp:DropDownList ID="ChooseShiftOrWeekOffDropDownList" runat="server" AutoPostBack="false">
                                                                                        <asp:ListItem Text="- Select -" Value="0"></asp:ListItem>
                                                                                        <asp:ListItem Text="Shift" Value="1"></asp:ListItem>
                                                                                        <asp:ListItem Text="Week Off" Value="2"></asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                    <br />
                                                                                    <asp:Button ID="ApplyAllButton" Text="Apply All" runat="Server" SkinID="CustomWidthButton" Width="100px" OnClick="ApplyAllButton_Click" />
                                                                                </div>
                                                                            </div>
                                                                            <div class="cBoth">
                                                                            </div>
                                                                            <div class="alignCenter pTop5">
                                                                                <asp:Button ID="GeneratePunchIdButton" Text="Generate Punch Id" runat="Server" SkinID="CustomWidthButton" Width="150px" OnClick="GeneratePunchIdButton_Click" />
                                                                                <asp:Button ID="UploadToBiometricButton" runat="server" Text="Upload To Biometric" Width="150px" OnClick="UploadToBiometricButton_Click" SkinID="0" CssClass="PrimaryButton" />
                                                                            </div>
                                                                            <div class="cBoth">
                                                                            </div>
                                                                        </asp:Panel>
                                                                        <div class="spacer">
                                                                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                                        </div>
                                                                        <div id="Div1" class="himssuHeader1WireBox box-body box-solid gridviewfont" runat="server" visible="false">
                                                                            <div id="GridViewPagerDiv" runat="server" visible="True">
                                                                                <div class="leftdiv">
                                                                                </div>
                                                                                <div class="himsBoxTitle">
                                                                                </div>
                                                                            </div>
                                                                            <div class="himsBoxContent">
                                                                                <div id="ClassGridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                                                    visible="False">
                                                                                </div>
                                                                                <asp:GridView ID="ShiftAllocationGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                    EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true"
                                                                                    CssClass="table table-striped table-bordered" OnRowDataBound="ShiftAllocationGridView_OnRowDataBound" DataKeyNames="EmployeeId">
                                                                                    <Columns>
                                                                                        <asp:TemplateField HeaderText="Employee Name" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="EmployeeNameLabel" runat="server" Text='<%# Bind("EmployeeName") %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Employee Id" Visible="false" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                            <ItemTemplate>
                                                                                                <asp:TextBox ID="EmployeeIdTextBox" runat="server" ClientIDMode="Static" Visible="false" Width="20px" Text='<%# Bind("EmployeeId") %>'>
                                                                                                </asp:TextBox>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Punch Id" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                            <ItemTemplate>
                                                                                                <asp:TextBox ID="PunchIdTextBox" runat="server" ClientIDMode="Static"
                                                                                                    Width="80px" onkeypress="javascript:return isNumberKey(this)">
                                                                                                </asp:TextBox>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Week Off" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                            <ItemTemplate>
                                                                                                <asp:TextBox ID="WeekOffTextBox" runat="server" ClientIDMode="Static"
                                                                                                    Width="80px" onkeypress="javascript:return isNumberKey(this)">
                                                                                                </asp:TextBox>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <asp:TemplateField HeaderText="Shift" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                            <ItemTemplate>
                                                                                                <asp:TextBox ID="ShiftTextBox" runat="server" Width="80px" MaxLength="13"></asp:TextBox>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                    </Columns>
                                                                                    <PagerSettings Visible="False" />
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </asp:Panel>
                                                            </ContentTemplate>
                                                        </cc1:TabPanel>
                                                        <cc1:TabPanel Width="100%" ID="DepartmentTabPanel" ClientIDMode="Static" runat="server" HeaderText="Department">
                                                            <HeaderTemplate>
                                                                <ul class="nav nav-tabs ajaxnavtabs">
                                                                    <li>
                                                                        <a style="padding: 10px 15px !important;">Department
                                                                        </a>
                                                                    </li>
                                                                </ul>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <div class="contentHolder">
                                                                    <div id="Div2" class="himssuHeader1WireBox box-body box-solid gridviewfont" runat="server" visible="false">
                                                                        <div id="Div3" runat="server" visible="True">
                                                                            <div class="leftdiv">
                                                                            </div>
                                                                            <div class="himsBoxTitle">
                                                                            </div>
                                                                        </div>
                                                                        <div class="himsBoxContent">
                                                                            <div id="DepartmentGridViewMessageDiv" class="himsBoxContentMsg" runat="server"
                                                                                visible="False">
                                                                            </div>
                                                                            <asp:GridView ID="DepartmentGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered"
                                                                                AllowPaging="false"
                                                                                ShowHeader="true"
                                                                                DataKeyNames="SourceTypeId,SourceId">
                                                                                <Columns>
                                                                                    <asp:BoundField DataField="ClassDept" HeaderText="Department" ItemStyle-Width="70%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                    <asp:TemplateField HeaderText="No Of Book Issuable" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="NoOfBookIssuableTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("NoOfBookIssuable") %>'
                                                                                                Width="20px" onkeypress="javascript:return isNumberKey(this)">
                                                                                            </asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Issue Days" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="IssueDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("IssueDays") %>'
                                                                                                Width="20px" onkeypress="javascript:return isNumberKey(this)">
                                                                                            </asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Penalty Per Day" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="PenaltyPerDayTextBox" runat="server" Width="60px"
                                                                                                Text='<%# DataBinder.Eval(Container.DataItem,"PenaltyPerDay").ToString()=="0"? "0.00":Eval("PenaltyPerDay") %>'
                                                                                                MaxLength="13" onblur="javascript:return fnValidateDecimal(this,10,2)" onKeypress="javascript:return MaskDecimal(event,10,2)"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                    <asp:TemplateField HeaderText="Reserve Days" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="ReserveDaysTextBox" runat="server" ClientIDMode="Static" Text='<%# Bind("ReserveDays") %>'
                                                                                                Width="20px" onkeypress="javascript:return isNumberKey(this)">
                                                                                            </asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                                <PagerSettings Visible="False" />
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </ContentTemplate>
                                                        </cc1:TabPanel>
                                                    </cc1:TabContainer>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                                <div class="spacer">
                                    <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" />
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--   <script data-main="../../../JavaScript/rjs/encrypt/shift-allocation-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/shift-allocation")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>