<%@ page language="C#" autoeventwireup="true" maintainscrollpositiononpostback="true" inherits="Transactions_ShiftAllocationView_Popup, App_Web_h1q2qgii" %>

<%--<%@ Register Src="../UserControls/TA_uc_OrgLevel_Filter.ascx" TagName="TA_uc_OrgLevel_Filter" TagPrefix="uc1" %>--%>
<%@ Register Src="../UserControls/TA_uc_OrgLevelFilter_Updated.ascx" TagName="TA_uc_OrgLevel_Filter"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" runat="server" id="htmlShiftViewPop">
<head id="Head1" runat="server">
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
        name="viewport" />
    <title>TimeCheck</title>


    <link id="stylebootstrap" rel="stylesheet" runat="server" type="text/css" />
    <link id="stylefontawesome" rel="stylesheet" runat="server" type="text/css" />
    <link id="styleAdminLTE" rel="stylesheet" runat="server" type="text/css" />
    <link id="stylecustom" rel="stylesheet" runat="server" type="text/css" />
    <link id="stylefonts" rel="stylesheet" runat="server" type="text/css" />
    <link id="styledatepicker3" rel="stylesheet" runat="server" type="text/css" />
    <link id="styledaterangepicker" rel="stylesheet" runat="server" type="text/css" />
    <link id="styleProgressBar" rel="stylesheet" runat="server" type="text/css" />
    <link id="styleselect2" rel="stylesheet" runat="server" type="text/css" />
    <link id="styleAutocomp" rel="stylesheet" runat="server" type="text/css" />

    <script language="javascript" src="../js/Popup.js" type="text/javascript"></script>

    <script language="javascript" src="../js/calendar.js" type="text/javascript"></script>

    <script language="javascript" src="../js/calendar-setup.js" type="text/javascript"></script>

    <script language="javascript" src="../js/calendar-en.js" type="text/javascript"></script>

    <script language="javascript" src="../js/chkbox_delete.js" type="text/javascript"></script>

    <script language="javascript" src="../js/Datekeylock.js" type="text/javascript"></script>

    <script language="javascript" src="../js/DateTimeValidation.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src="../js/lockkeys.js"></script>

    <script language="javascript" type="text/javascript" src="../js/maxLength.js"></script>

    <script language="javascript" src="../js/jquery.min.js" type="text/javascript"></script>

    <script src="../plugins/jQuery/jQuery-2.1.4.min.js" type="text/javascript"></script>

    <script src="../plugins/jquery-ui.min.js" type="text/javascript"></script>

    <script src="../plugins/daterangepicker/moment.js" type="text/javascript"></script>

    <script src="../plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>

    <script src="../plugins/select2/select2.full.min.js"></script>

    <script>

        $(function () {
            $('#txtFromDate').datetimepicker({ format: document.getElementById('Hidden1').value }
            );
        });
        $(function () {
            $('#txtToDate').datetimepicker({ format: document.getElementById('Hidden1').value }
            );
        });

        //var test = document.getElementById('ctl00_BodyContentPH_Hidden1').value;

        //$('#txtFromDate').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value }
        //   );
        //$('#txtToDate').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value }
        //);

    </script>

    <script language="javascript" type="text/jscript">

        //values for check date
        var Monthfourdigit = 'Please enter valid date as month, day, and four digit year : Format MM/dd/yyyy.';
        //Adding this line var Datefourdigit='Please enter valid date with correct format dd/MM/yyyy'; as newly
        var Datefourdigit = 'Please enter valid date with correct format dd/MM/yyyy';
        var Invalidyearentry = 'Invalid year entry';
        var Invalidmonthentry = 'Invalid month entry';
        var Invaliddateentry = 'Invalid date entry';
        var DateformatDDMONYYYY = 'Incorrect date format. Enter as DD-MON-YYYY';
        var Entertime = 'Enter time';
        var Valueforhours = 'Invalid value for hours:';
        var Invalidvalueforminutes = 'Invalid value for minutes:';
        var Invalidtimeformat = 'Invalid time format:';
        var EntervalidDateandTime = 'Please enter valid Date and Time';
        var ValiddatemonthMMDDYYHHMM = 'Please enter valid Date and Time MM/dd/yyyy HH:mm';
        var ValiddatemonthMMDDYYHHMMTT = 'Please enter valid Date and Time MM/dd/yyyy hh:mm tt';
        var EntervalidDateandTime = 'Please enter valid Date and Time';
        var Invalidvalueforhours = 'Invalid value for hours:';
        var Invalidvalueforminites = 'Invalid value for minutes:';
        var EnterToDate = 'Enter To Date';
        var EnterFromDate = 'Enter From Date';
        var MaxLength = 'Maximum length is';


        function SetAlertMessages(enterToDate, enterFromDate) {

            EnterToDate = enterToDate;
            EnterFromDate = enterFromDate;
        }

        function MaxLen(maxLength) {
            MaxLength = maxLength;
        }


        function SetAlertCheckDate(monthfourdigit, datefourdigit, invalidyearentry, invalidmonthentry, invaliddateentry, dateformatDDMONYYYY, entertime, valueforhours, invalidvalueforminutes, invalidtimeformat, entervalidDateandTime, validdatemonthMMDDYYHHMM, validdatemonthMMDDYYHHMMTT, entervalidDateandTime, invalidvalueforhours, invalidvalueforminites) {
            Monthfourdigit = monthfourdigit;
            Datefourdigit = datefourdigit;
            Invalidyearentry = invalidyearentry;
            Invalidmonthentry = invalidmonthentry;
            Invaliddateentry = invaliddateentry;
            DateformatDDMONYYYY = dateformatDDMONYYYY;
            Entertime = Entertime;
            Valueforhours = valueforhours;
            Invalidvalueforminutes = invalidvalueforminutes;
            Invalidtimeformat = invalidtimeformat;
            EntervalidDateandTime = entervalidDateandTime;
            ValiddatemonthMMDDYYHHMM = validdatemonthMMDDYYHHMM;
            ValiddatemonthMMDDYYHHMMTT = validdatemonthMMDDYYHHMMTT;
            EntervalidDateandTime = entervalidDateandTime;
            Invalidvalueforhours = invalidvalueforhours;
            Invalidvalueforminites = invalidvalueforminites;
        }

        function CheckDateEntry() {
            if (document.getElementById('txtFromDate').value != '') {
                var weekDay = document.getElementById('txtFromDate');
                var DateFormat = document.getElementById('Hidden1').value;

                if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                    if (document.getElementById('txtToDate').value != '') {
                        var weekDay = document.getElementById('txtToDate');
                        var DateFormat = document.getElementById('Hidden1').value;

                        if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                        }
                        else {
                            return false;
                        }
                    }
                    else {
                        alert(EnterToDate);
                        return false;
                    }
                }
                else {
                    return false;
                }
            }
            else {

                alert(EnterFromDate);
                return false;
            }
        }
    </script>

</head>
<body>
    <form id="aspnetForm" runat="server">
        <div class="content">
            <asp:ScriptManager ID="scViewShiftallocation" runat="server">
            </asp:ScriptManager>
            <div class="panel-group" id="accordion">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="pull-left">
                                    <h4>
                                        <asp:Label ID="lblFilter" runat="server" Text="Filter"></asp:Label>
                                    </h4>
                                </div>
                                <div class="pull-right">
                                    <h6>
                                        <span style="color: Red; padding-left: 10px;">|</span><span style="padding-left: 10px; padding-right: 10px">
                                            <asp:Label ID="lbl_IndicatesMandatoryFields" runat="server">
                                            </asp:Label>
                                            (3 No.)</span>
                                    </h6>
                                </div>
                            </div>
                            <div class="clearfix">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clearfix">
                </div>
            </div>
            <div class="emp-filter">
                <div class="row">
                    <div class="form-horizontal">
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-md-12">
                                    <uc1:TA_uc_OrgLevel_Filter ID="TA_uc_OrgLevel_Filter1" runat="server" />
                                </div>
                            </div>
                            <div class="clearfix">
                            </div>
                            <div class="row">
                                <div class="row">
                                    <div class="line16">
                                    </div>
                                </div>
                            </div>
                            <div class="row" style="display: none">
                                <div class="col-md-12">
                                    <asp:Label ID="lblShiftAllocationDetails" runat="server"></asp:Label>
                                </div>
                            </div>
                            <div class="row" style="display: none">
                                <div class="col-md-2">
                                    <asp:Label ID="lblEmpSwipe" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:TextBox onpaste="return true" ID="txtSwipeCard" MaxLength="20" runat="server"
                                        CssClass="form-control" onkeypress="return acceptCharsNum_MaxLength(event,this,20,MaxLength);"></asp:TextBox>
                                    <cc1:AutoCompleteExtender ID="acSwipeCardNo" runat="server" CompletionSetCount="10"
                                        CompletionListItemCssClass="item" CompletionListHighlightedItemCssClass="AutocompleteCSS"
                                        CompletionInterval="10" Enabled="true" MinimumPrefixLength="1" TargetControlID="txtSwipeCard"
                                        ServicePath="../WebServices/AutoCompleteExtender.asmx" ServiceMethod="GetCardNo"
                                        CompletionListCssClass="autocomplete_completionListElement" FirstRowSelected="true">
                                    </cc1:AutoCompleteExtender>
                                </div>
                            </div>
                            <div class="row  form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblEmployeeName" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:TextBox onpaste="return true" ID="txtEmployeeName" runat="server" CssClass="form-control"
                                        MaxLength="50" onkeypress="return chkMaxLen(event,this,50,MaxLength);"></asp:TextBox>
                                    <cc1:AutoCompleteExtender ID="acEmployeeName" runat="server" CompletionSetCount="10"
                                        CompletionListItemCssClass="item" CompletionListHighlightedItemCssClass="AutocompleteCSS"
                                        CompletionInterval="10" Enabled="true" MinimumPrefixLength="1" TargetControlID="txtEmployeeName"
                                        ServicePath="../WebServices/AutoCompleteExtender.asmx" ServiceMethod="GetEmployeeName"
                                        CompletionListCssClass="autocomplete_completionListElement" FirstRowSelected="true">
                                    </cc1:AutoCompleteExtender>
                                </div>
                                <div class="col-md-1">
                                </div>
                                <div class="col-md-2">
                                    <asp:HiddenField ID="Hidden1" runat="server" />
                                    <asp:Label ID="lblEmployeeId" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:TextBox onpaste="return true" ID="txtEmployeeId" runat="server" CssClass="form-control"
                                        MaxLength="15" onkeypress="return chkMaxLen(event,this,15,MaxLength);"></asp:TextBox>
                                    <cc1:AutoCompleteExtender ID="acEmployeeId" runat="server" CompletionSetCount="10"
                                        CompletionListCssClass="autocomplete_completionListElement" FirstRowSelected="true"
                                        CompletionInterval="10" Enabled="true" MinimumPrefixLength="1" TargetControlID="txtEmployeeId"
                                        ServicePath="../WebServices/AutoCompleteExtender.asmx" ServiceMethod="GetEmployeeId"
                                        CompletionListItemCssClass="item" CompletionListHighlightedItemCssClass="AutocompleteCSS">
                                    </cc1:AutoCompleteExtender>
                                </div>
                            </div>
                            <div class="row  form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblEmpCategory" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddlEmpCatagory" runat="server" CssClass="form-control select2" AppendDataBoundItems="true">
                                        <asp:ListItem Value="0" Selected="True" Text="-Select-"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                                <div class="col-md-1">
                                </div>
                                <div class="col-md-2">
                                    <asp:Label ID="lblEmpType" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddlEmpType" runat="server" CssClass="form-control select2" AppendDataBoundItems="true">
                                        <asp:ListItem Value="0" Selected="True" Text="-Select-"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="row  form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblTimePeriod" runat="server"></asp:Label>
                                    -
                                    <asp:Label ID="lblFrom" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:TextBox onpaste="return true" ID="txtFromDate" runat="server" CssClass="form-control mandatory">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="reqFromDate" runat="server" ControlToValidate="txtFromDate"
                                        Display="None" ErrorMessage="Please select From Date" EnableClientScript="False"></asp:RequiredFieldValidator>
                                </div>
                                <div class="col-md-1">
                                </div>
                                <div class="col-md-2">
                                    <asp:Label ID="lblTo" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:TextBox onpaste="return true" ID="txtToDate" runat="server" CssClass="form-control mandatory">
                                    </asp:TextBox>
                                    <asp:CustomValidator ID="cus_ComToDate" runat="server" Display="None" ErrorMessage="Select valid date compare with From date"
                                        OnServerValidate="CompareDate"></asp:CustomValidator>
                                    <asp:RequiredFieldValidator ID="reqToDate" runat="server" ControlToValidate="txtToDate"
                                        Display="None" ErrorMessage="Please select To Date" EnableClientScript="False"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div class="row  form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblReligion" runat="server" Text="Religion"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddlReligion" runat="server" CssClass="form-control select2" AppendDataBoundItems="true">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-5">
                                </div>
                                <div class="col-md-6">
                                    <div class="pull-right-button">
                                        <asp:LinkButton ID="btn_View" runat="server" CssClass="btn save-btn fa-eye" OnClick="btn_View_Click"
                                            OnClientClick="return ValidateDate();" />
                                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                            ShowSummary="False" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="border-table new-space" id="divGrid" runat="server" visible="false">
                <div class="table-responsive" style="overflow-x: hidden !important;">
                    <div class="row">
                        <div class="col-md-12" style="padding-bottom: 10px;">
                            <b>
                                <asp:Label ID="lblPermanent" runat="server" Text="Permanent Shift Allocation"></asp:Label>
                            </b>
                        </div>
                    </div>
                    <div id="divPermanentShift" runat="server" style="overflow: auto; width: 100%; height: auto;">
                        <asp:GridView ID="grv_Shift" runat="server" AllowPaging="True" ShowHeader="true"
                            CssClass="table das-table1" AutoGenerateColumns="False" Width="100%" OnPageIndexChanging="grv_Shift_PageIndexChanging"
                            OnRowDataBound="grv_Shift_RowDataBound" Style="text-align: left" OnRowCancelingEdit="grv_Shift_RowCancelingEdit"
                            OnRowEditing="grv_Shift_RowEditing" OnRowUpdating="grv_Shift_RowUpdating">
                            <Columns>
                                <asp:TemplateField HeaderText="Employee Id" HeaderStyle-CssClass="empheader">
                                    <ItemTemplate>
                                        <asp:Label ID="lbl_EmpId" runat="server" Text='<%# Eval("Employee_Id")%>' Style=""></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Employee Name" HeaderStyle-CssClass="empheader">
                                    <ItemTemplate>
                                        <asp:Label ID="lbl_EmpName" runat="server" Text='<%# Eval("Employee_FirstName")%>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Year" SortExpression="Year" HeaderStyle-CssClass="empheader">
                                    <ItemTemplate>
                                        <asp:Label ID="lblYear" runat="server" Text='<%# Bind("Year") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Month" SortExpression="Month" HeaderStyle-CssClass="empheader">
                                    <ItemTemplate>
                                        <asp:Label ID="lblMonth" runat="server" Text='<%# Bind("Month") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="1" SortExpression="Day1Shift" ItemStyle-Width="160px"
                                    HeaderStyle-CssClass="empheader">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay1Shift" runat="server" Text='<%# Eval("Day1Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay1Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay1Shift" runat="server" Text='<%# Bind("Day1Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="2" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay2Shift" runat="server" Text='<%# Eval("Day2Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay2Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay2Shift" runat="server" Text='<%# Bind("Day2Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="3" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay3Shift" runat="server" Text='<%# Eval("Day3Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay3Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay3Shift" runat="server" Text='<%# Bind("Day3Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="4" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay4Shift" runat="server" Text='<%# Eval("Day4Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay4Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay4Shift" runat="server" Text='<%# Bind("Day4Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="5" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay5Shift" runat="server" Text='<%# Eval("Day5Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay5Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay5Shift" runat="server" Text='<%# Bind("Day5Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="6" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay6Shift" runat="server" Text='<%# Eval("Day6Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay6Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay6Shift" runat="server" Text='<%# Bind("Day6Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="7" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay7Shift" runat="server" Text='<%# Eval("Day7Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay7Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay7Shift" runat="server" Text='<%# Bind("Day7Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="8" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay8Shift" runat="server" Text='<%# Eval("Day8Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay8Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay8Shift" runat="server" Text='<%# Bind("Day8Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="9" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay9Shift" runat="server" Text='<%# Eval("Day9Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay9Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay9Shift" runat="server" Text='<%# Bind("Day9Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="10" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay10Shift" runat="server" Text='<%# Eval("Day10Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay10Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay10Shift" runat="server" Text='<%# Bind("Day10Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="11" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay11Shift" runat="server" Text='<%# Eval("Day11Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay11Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay11Shift" runat="server" Text='<%# Bind("Day11Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="12" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay12Shift" runat="server" Text='<%# Eval("Day12Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay12Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay12Shift" runat="server" Text='<%# Bind("Day12Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="13" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay13Shift" runat="server" Text='<%# Eval("Day13Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay13Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay13Shift" runat="server" Text='<%# Bind("Day13Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="14" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay14Shift" runat="server" Text='<%# Eval("Day14Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay14Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay14Shift" runat="server" Text='<%# Bind("Day14Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="15" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay15Shift" runat="server" Text='<%# Eval("Day15Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay15Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay15Shift" runat="server" Text='<%# Bind("Day15Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="16" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay16Shift" runat="server" Text='<%# Eval("Day16Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay16Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay16Shift" runat="server" Text='<%# Bind("Day16Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="17" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay17Shift" runat="server" Text='<%# Eval("Day17Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay17Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay17Shift" runat="server" Text='<%# Bind("Day17Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="18" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay18Shift" runat="server" Text='<%# Eval("Day18Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay18Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay18Shift" runat="server" Text='<%# Bind("Day18Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="19" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay19Shift" runat="server" Text='<%# Eval("Day19Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay19Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay19Shift" runat="server" Text='<%# Bind("Day19Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="20" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay20Shift" runat="server" Text='<%# Eval("Day20Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay20Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay20Shift" runat="server" Text='<%# Bind("Day20Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="21" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay21Shift" runat="server" Text='<%# Eval("Day21Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay21Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay21Shift" runat="server" Text='<%# Bind("Day21Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="22" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay22Shift" runat="server" Text='<%# Eval("Day22Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay22Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay22Shift" runat="server" Text='<%# Bind("Day22Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="23" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay23Shift" runat="server" Text='<%# Eval("Day23Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay23Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay23Shift" runat="server" Text='<%# Bind("Day23Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="24" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay24Shift" runat="server" Text='<%# Eval("Day24Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay24Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay24Shift" runat="server" Text='<%# Bind("Day24Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="25" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay25Shift" runat="server" Text='<%# Eval("Day25Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay25Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay25Shift" runat="server" Text='<%# Bind("Day25Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="26" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay26Shift" runat="server" Text='<%# Eval("Day26Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay26Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay26Shift" runat="server" Text='<%# Bind("Day26Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="27" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay27Shift" runat="server" Text='<%# Eval("Day27Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay27Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay27Shift" runat="server" Text='<%# Bind("Day27Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="28" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay28Shift" runat="server" Text='<%# Eval("Day28Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay28Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay28Shift" runat="server" Text='<%# Bind("Day28Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="29" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay29Shift" runat="server" Text='<%# Eval("Day29Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay29Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay29Shift" runat="server" Text='<%# Bind("Day29Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="30" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay30Shift" runat="server" Text='<%# Eval("Day30Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay30Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay30Shift" runat="server" Text='<%# Bind("Day30Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="31" SortExpression="Day1Shift"
                                    ItemStyle-Width="160px">
                                    <EditItemTemplate>
                                        <asp:Label ID="lblDay31Shift" runat="server" Text='<%# Eval("Day31Shift")%>' Visible="false"></asp:Label>
                                        <asp:DropDownList ID="ddlDay31Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                            DataValueField="Shift_Id">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblDay31Shift" runat="server" Text='<%# Bind("Day31Shift") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="Edit" ShowHeader="False"
                                    HeaderStyle-HorizontalAlign="Left">
                                    <EditItemTemplate>
                                        <asp:LinkButton ID="lnkUpdate" runat="server" CausesValidation="True" CommandName="Update"
                                            Text="Update"></asp:LinkButton>
                                        <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                                            Text="Cancel"></asp:LinkButton>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                            Text="Edit"></asp:LinkButton>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataTemplate>
                                No Records Found
                            </EmptyDataTemplate>
                            <RowStyle Height="30px" CssClass="table-bg" />
                            <PagerStyle Font-Overline="False" HorizontalAlign="Right" CssClass="GridPager" />
                            <PagerSettings FirstPageText="<<" LastPageText=">>" Mode="NumericFirstLast" NextPageText=">"
                                PreviousPageText="<" />
                            <AlternatingRowStyle BackColor="white" />
                        </asp:GridView>
                    </div>
                    <div class="row">
                        <div class="col-md-12" style="padding-top: 10px; padding-bottom: 10px">
                            <b>
                                <asp:Label ID="lblTemp" runat="server" Text="Temporary Shift Allocation"></asp:Label>
                            </b>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12" style="padding-top: 5px;">
                            <div style="overflow: auto; width: 100%; height: auto;" id="divTempShift" runat="server">
                                <asp:GridView ID="grdTemp" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                    Width="100%" OnPageIndexChanging="grdTemp_PageIndexChanging" OnRowDataBound="grdTemp_RowDataBound"
                                    Style="text-align: left" CssClass="table das-table1" OnRowCancelingEdit="grdTemp_RowCancelingEdit"
                                    OnRowEditing="grdTemp_RowEditing" OnRowUpdating="grdTemp_RowUpdating">
                                    <Columns>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="Employee Id">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_EmpId" runat="server" Text='<%# Eval("Employee_Id")%>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="Employee Name">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_EmpName" runat="server" Text='<%# Eval("Employee_FirstName")%>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="Year" SortExpression="Year">
                                            <ItemTemplate>
                                                <asp:Label ID="lblYear" runat="server" Text='<%# Bind("Year") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="Month" SortExpression="Month">
                                            <ItemTemplate>
                                                <asp:Label ID="lblMonth" runat="server" Text='<%# Bind("Month") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="1" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay1Shift" runat="server" Text='<%# Eval("Day1Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay1Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay1Shift" runat="server" Text='<%# Bind("Day1Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="2" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay2Shift" runat="server" Text='<%# Eval("Day2Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay2Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay2Shift" runat="server" Text='<%# Bind("Day2Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="3" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay3Shift" runat="server" Text='<%# Eval("Day3Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay3Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay3Shift" runat="server" Text='<%# Bind("Day3Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="4" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay4Shift" runat="server" Text='<%# Eval("Day4Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay4Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay4Shift" runat="server" Text='<%# Bind("Day4Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="5" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay5Shift" runat="server" Text='<%# Eval("Day5Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay5Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay5Shift" runat="server" Text='<%# Bind("Day5Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="6" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay6Shift" runat="server" Text='<%# Eval("Day6Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay6Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay6Shift" runat="server" Text='<%# Bind("Day6Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="7" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay7Shift" runat="server" Text='<%# Eval("Day7Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay7Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay7Shift" runat="server" Text='<%# Bind("Day7Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="8" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay8Shift" runat="server" Text='<%# Eval("Day8Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay8Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay8Shift" runat="server" Text='<%# Bind("Day8Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="9" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay9Shift" runat="server" Text='<%# Eval("Day9Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay9Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay9Shift" runat="server" Text='<%# Bind("Day9Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="10" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay10Shift" runat="server" Text='<%# Eval("Day10Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay10Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay10Shift" runat="server" Text='<%# Bind("Day10Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="11" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay11Shift" runat="server" Text='<%# Eval("Day11Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay11Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay11Shift" runat="server" Text='<%# Bind("Day11Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="12" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay12Shift" runat="server" Text='<%# Eval("Day12Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay12Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay12Shift" runat="server" Text='<%# Bind("Day12Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="13" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay13Shift" runat="server" Text='<%# Eval("Day13Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay13Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay13Shift" runat="server" Text='<%# Bind("Day13Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="14" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay14Shift" runat="server" Text='<%# Eval("Day14Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay14Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay14Shift" runat="server" Text='<%# Bind("Day14Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="15" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay15Shift" runat="server" Text='<%# Eval("Day15Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay15Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay15Shift" runat="server" Text='<%# Bind("Day15Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="16" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay16Shift" runat="server" Text='<%# Eval("Day16Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay16Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay16Shift" runat="server" Text='<%# Bind("Day16Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="17" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay17Shift" runat="server" Text='<%# Eval("Day17Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay17Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay17Shift" runat="server" Text='<%# Bind("Day17Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="18" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay18Shift" runat="server" Text='<%# Eval("Day18Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay18Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay18Shift" runat="server" Text='<%# Bind("Day18Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="19" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay19Shift" runat="server" Text='<%# Eval("Day19Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay19Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay19Shift" runat="server" Text='<%# Bind("Day19Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="20" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay20Shift" runat="server" Text='<%# Eval("Day20Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay20Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay20Shift" runat="server" Text='<%# Bind("Day20Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="21" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay21Shift" runat="server" Text='<%# Eval("Day21Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay21Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay21Shift" runat="server" Text='<%# Bind("Day21Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="22" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay22Shift" runat="server" Text='<%# Eval("Day22Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay22Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay22Shift" runat="server" Text='<%# Bind("Day22Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="23" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay23Shift" runat="server" Text='<%# Eval("Day23Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay23Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay23Shift" runat="server" Text='<%# Bind("Day23Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="24" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay24Shift" runat="server" Text='<%# Eval("Day24Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay24Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay24Shift" runat="server" Text='<%# Bind("Day24Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="25" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay25Shift" runat="server" Text='<%# Eval("Day25Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay25Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay25Shift" runat="server" Text='<%# Bind("Day25Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="26" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay26Shift" runat="server" Text='<%# Eval("Day26Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay26Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay26Shift" runat="server" Text='<%# Bind("Day26Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="27" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay27Shift" runat="server" Text='<%# Eval("Day27Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay27Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay27Shift" runat="server" Text='<%# Bind("Day27Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="28" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay28Shift" runat="server" Text='<%# Eval("Day28Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay28Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay28Shift" runat="server" Text='<%# Bind("Day28Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="29" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay29Shift" runat="server" Text='<%# Eval("Day29Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay29Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay29Shift" runat="server" Text='<%# Bind("Day29Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="30" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay30Shift" runat="server" Text='<%# Eval("Day30Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay30Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay30Shift" runat="server" Text='<%# Bind("Day30Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="31" SortExpression="Day1Shift"
                                            ItemStyle-Width="160px">
                                            <EditItemTemplate>
                                                <asp:Label ID="lblDay31Shift" runat="server" Text='<%# Eval("Day31Shift")%>' Visible="false"></asp:Label>
                                                <asp:DropDownList ID="ddlDay31Shift" runat="server" DataTextField="Shift_ShortName" CssClass="form-control select2"
                                                    DataValueField="Shift_Id">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="lblDay31Shift" runat="server" Text='<%# Bind("Day31Shift") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="empheader" HeaderText="Edit" ShowHeader="False"
                                            HeaderStyle-HorizontalAlign="Left">
                                            <EditItemTemplate>
                                                <asp:LinkButton ID="lnkUpdate" runat="server" CausesValidation="True" CommandName="Update"
                                                    Text="Update"></asp:LinkButton>
                                                <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                                                    Text="Cancel"></asp:LinkButton>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="False" CommandName="Edit"
                                                    Text="Edit"></asp:LinkButton>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        No Records Found
                                    </EmptyDataTemplate>
                                    <RowStyle Height="30px" CssClass="table-bg" BorderColor="#C5DFFC" />
                                    <PagerStyle Font-Overline="False" HorizontalAlign="Right" CssClass="GridPager" />
                                    <PagerSettings FirstPageText="<<" LastPageText=">>" Mode="NumericFirstLast" NextPageText=">"
                                        PreviousPageText="<" />
                                    <AlternatingRowStyle BackColor="white" />
                                </asp:GridView>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>

<script type="text/javascript" language="javascript">
    function ValidateDate() {
        var Monthfourdigit = 'Please enter valid date as month, day, and four digit year : Format MM/dd/yyyy.';
        var Invalidyearentry = 'Invalid year entry';
        var Invalidmonthentry = 'Invalid month entry';
        var Invaliddateentry = 'Invalid date entry';
        var DateformatDDMONYYYY = 'Incorrect date format. Enter as DD-MON-YYYY';
        var Entertime = 'Enter time';
        var Valueforhours = 'Invalid value for hours:';
        var Invalidvalueforminutes = 'Invalid value for minutes:';
        var Invalidtimeformat = 'Invalid time format:';
        var EntervalidDateandTime = 'Please enter valid Date and Time';
        var ValiddatemonthMMDDYYHHMM = 'Please enter valid Date and Time MM/dd/yyyy HH:mm';
        var ValiddatemonthMMDDYYHHMMTT = 'Please enter valid Date and Time MM/dd/yyyy hh:mm tt';
        var EntervalidDateandTime = 'Please enter valid Date and Time';
        var Invalidvalueforhours = 'Invalid value for hours:';
        var Invalidvalueforminites = 'Invalid value for minutes:';
        var EnterToDate = 'Enter To Date';
        var EnterFromDate = 'Enter From Date';
        var MaxLength = 'Maximum length is';
        if (document.getElementById('txtFromDate').value != '') {
            var weekDay = document.getElementById('txtFromDate');
            var DateFormat = document.getElementById('Hidden1').value;
            if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                if (document.getElementById('txtToDate').value != '') {
                    var weekDay = document.getElementById('txtToDate');
                    var DateFormat = document.getElementById('Hidden1').value;
                    if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                    }
                    else {
                        return false;
                    }
                }
                else {
                    alert(EnterToDate);
                    return false;
                }
            }
            else {
                return false;
            }
        }
        else {
            alert(EnterFromDate);
            return false;
        }
    }
</script>

<script>
    $(".select2").select2();
</script>

