<%@ page language="C#" autoeventwireup="true" masterpagefile="~/MasterFile/TimeCheck.master" inherits="Transactions_TA_UI_Transaction_ShiftRequisitionAdd, App_Web_rkzxheiv" %>

<%--<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>--%>

<%@ Register TagPrefix="dxGridview" Namespace="DevExpress.Web" Assembly="DevExpress.Web.v14.2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="BodyContentPH" ContentPlaceHolderID="BodyContentPH" runat="Server">


    <link rel="stylesheet" type="text/css" href="../css/ProgressBar.css" />

    <script src="../plugins/datepicker/jquery-1.11.1.min.js"></script>

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

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

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

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

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

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

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

    <script src="../js/EmpShiftAllocationSingle.js"></script>
    <script>


        $(function () {
            $('#ctl00_BodyContentPH_txt_StartDate').datetimepicker({ format: 'MMM' }
            );
        });
        //$(function () {
        //    $('#ctl00_BodyContentPH_txt_ToDate').datetimepicker({ format: 'MMM' }
        //    );
        //});
    </script>

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

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

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

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

    <%--<script language="javascript" src="../js/ShiftExchange.js" type="text/javascript"></script>--%>

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

    <style type="text/css">
        .Rbllist label {
            margin-left: 4px;
            margin-right: 2px;
        }
    </style>

    <script type="text/javascript">
        if (navigator.userAgent.toLowerCase().indexOf('chrome') != -1)
            document.write('<link href="../css/safari.css" rel="stylesheet" type="text/css" />');
    </script>
    <script type="text/javascript">
        function ValidateFileUploader() {
            var array = ['csv'];
            var xyz = document.getElementById('<%= fup_ShiftImport.ClientID %>');
            if (xyz.value != '') {
                var Extension = xyz.value.substring(xyz.value.lastIndexOf('.') + 1).toLowerCase();
                if (array.indexOf(Extension) <= -1) {
                    alert("The Uploaded file is not CSV file");
                    return false;
                }
            }
            else {
                alert("You have not specified a file");
                return false;
            }
        }

        function Validation()
        {
            debugger;

            var confirmation = window.confirm("Do you want to save changes?");

            if (confirmation)
            {
                var Invalidyearentry = 'Select Month';
                var Emp = 'Select Employee';
                var gridView = document.getElementById('ctl00_BodyContentPH_grv_Employees');

                // Get all the rows in the grid view (excluding the header row)
                //var rows = gridView.getElementsByTagName('EmployeeId');

                // The length of the 'rows' NodeList will give you the row count
                //var rowCount = rows.length;

               // console.log('Row count: ' + rowCount);

                if (document.getElementById('ctl00_BodyContentPH_ddl_Month').value == '-Select-') {
                    alert(Invalidyearentry);
                    document.getElementById('ctl00_BodyContentPH_ddl_Month').focus();

                }
                else if (gridView == null) {
                    alert(Emp);
                    document.getElementById('ctl00_BodyContentPH_ddl_Month').focus();
                }
            }
            else {
                alert("Changes not saved.");
            }
            


        }


    </script>
    <script language="javascript" type="text/javascript">
        //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 ClickAddButton = "Please Click Add Button To Select Employee(s)";
        var EntertheEmployeeID = "Enter the Employee ID";

        //
        // TODO: Insert location value validation package Id
        //

        var SelectLocation = "Please Select Location"

        function ModeOfAllocation() {
            if (document.getElementById('ctl00_BodyContentPH_rbtnManual').checked == true) {
                document.getElementById("ctl00_BodyContentPH_divManual").style.display = "block";
                document.getElementById("ctl00_BodyContentPH_divImport").style.display = "none";
                if (document.getElementById("divShiftMan").style.display == "block") {
                    if (document.getElementById('ctl00_BodyContentPH_rbtnMultiple').checked == true) {
                        document.getElementById("ctl00_BodyContentPH_lblcount").textContent = "(1 No.)";
                    } else if (document.getElementById('ctl00_BodyContentPH_rbtnSingle').checked == true) {
                        document.getElementById("ctl00_BodyContentPH_lblcount").textContent = "(2 No.)";
                    }
                }
                else {
                    document.getElementById("ctl00_BodyContentPH_Label3").textContent = "(1 No.)";
                }
            }
            if (document.getElementById('ctl00_BodyContentPH_rbtnImport').checked == true) {
                document.getElementById("ctl00_BodyContentPH_divManual").style.display = "none";
                document.getElementById("ctl00_BodyContentPH_divImport").style.display = "block";
                document.getElementById("ctl00_BodyContentPH_lblcount").textContent = "(1 No.)";
                document.getElementById("ctl00_BodyContentPH_Label3").textContent = "(1 No.)";
            }
            return true;
        }
        function ShiftAllocationType() {
            if (document.getElementById('ctl00_BodyContentPH_rbtnMultiple').checked == true) {
                document.getElementById("ctl00_BodyContentPH_divMultiple").style.display = "block";
                document.getElementById("ctl00_BodyContentPH_divSingle").style.display = "none";
                document.getElementById("ctl00_BodyContentPH_lblcount").textContent = "(1 No.)";
            }
            if (document.getElementById('ctl00_BodyContentPH_rbtnSingle').checked == true) {
                document.getElementById("ctl00_BodyContentPH_divMultiple").style.display = "none";
                document.getElementById("ctl00_BodyContentPH_divSingle").style.display = "block";
                document.getElementById("ctl00_BodyContentPH_lblcount").textContent = "(2 No.)";
            }
            $('#ctl00_BodyContentPH_grv_Employees').remove();
            return true;
        }

        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;
        }
        var SelectShiftPattern = "Select Shift Pattern";
        var SelectStartday = "Select Startday";
        var SelectShiftRoaster = "Select ShiftRoaster";
        var SelectShift = "Select Shift";
        var SelectSheduleFrom = "Select Schedule From";
        var SelectSheduleTo = "Select Schedule To";
        var ConfirmSave = "Are you sure to, Save?";
        function SetAlertMessages(selectShiftPattern, selectStartday, selectShiftRoaster, selectShift, selectSheduleFrom, selectSheduleTo, confirmSave, clickaddbutton, entertheEmployeeID) {
            SelectShiftPattern = selectShiftPattern;
            SelectStartday = selectStartday;
            SelectShiftRoaster = selectShiftRoaster;
            SelectShift = selectShift;
            SelectSheduleFrom = selectSheduleFrom;
            SelectSheduleTo = selectSheduleTo;
            ConfirmSave = confirmSave;
            ClickAddButton = clickaddbutton;
            EntertheEmployeeID = entertheEmployeeID;
        }
        function showPattern() {
            if (document.aspnetForm.ctl00_BodyContentPH_rbtnShiftPattern.checked == true) {
                document.getElementById("divShiftPattern").style.display = "block";
                document.getElementById("divShiftRoaster").style.display = "none";
                document.getElementById("divShift").style.display = "none";
                document.getElementById("divShiftMan").style.display = "none";
                //document.getElementById("divPatternMan").style.display = "none";
                //document.getElementById("ctl00_BodyContentPH_lblcount").textContent = "(1 No.)";
                //document.getElementById("ctl00_BodyContentPH_Label3").textContent = "(4 No.)";
            }
            if (document.aspnetForm.ctl00_BodyContentPH_rbtnShiftRoaster.checked == true) {
                document.getElementById("divShiftRoaster").style.display = "block";
                document.getElementById("divShiftPattern").style.display = "none";
                document.getElementById("divShift").style.display = "none";
                //document.getElementById("divShiftMan").style.display = "block";
                //document.getElementById("divPatternMan").style.display = "none";
                //document.getElementById("ctl00_BodyContentPH_lblcount").textContent = "(3 No.)";
            }
            if (document.aspnetForm.ctl00_BodyContentPH_rbtnShifts.checked == true) {
                document.getElementById("divShift").style.display = "block";
                document.getElementById("divShiftPattern").style.display = "none";
                document.getElementById("divShiftRoaster").style.display = "none";
                //document.getElementById("divShiftMan").style.display = "block";
                // document.getElementById("divPatternMan").style.display = "none";
                //document.getElementById("ctl00_BodyContentPH_lblcount").textContent = "(3 No.)";
            }
            return true;
        }
        function validateShiftAllocation(SelectShiftPattern) {
            var rangeDemoFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
            var Gv = document.getElementById("<%=grv_Employeess.ClientID%>");
            if (Gv == null) {
                if (document.getElementById('ctl00_BodyContentPH_rbtnMultiple').checked == true) {
                    alert(ClickAddButton);
                }
                if (document.getElementById('ctl00_BodyContentPH_rbtnSingle').checked == true) {
                    alert(EntertheEmployeeID);
                    document.getElementById("ctl00_BodyContentPH_txt_EmployeeId").focus();
                }

                return false;
            }

            //
            // TODO: Insert location value validation package Id
            //

            var PackageId = '<%= Session["packageID"] %>';

            if (PackageId == "158") {
                if (document.aspnetForm.ctl00_BodyContentPH_ddlLocation.selectedIndex == "0") {
                    alert(SelectLocation);
                    return false;
                }
            }

            if (document.aspnetForm.ctl00_BodyContentPH_rbtnShiftPattern.checked == true) {
                var Patternindex = document.aspnetForm.ctl00_BodyContentPH_ddl_Pattern.selectedIndex;
                var Patternitem = document.aspnetForm.ctl00_BodyContentPH_ddl_Pattern.options[Patternindex].value;
                var Startdayindex = document.aspnetForm.ctl00_BodyContentPH_ddl_StartDay.selectedIndex;
                var Startdayitem = document.aspnetForm.ctl00_BodyContentPH_ddl_StartDay.options[Startdayindex].value;
                if (document.getElementById("divShiftPattern").style.display == "block") {
                    if (Patternitem == "-Select-") {
                        alert(SelectShiftPattern);
                        return false;
                    }
                    else if (Startdayitem == "-Select-") {
                        alert(SelectStartday);
                        return false;
                    }
                }
            }
            if (document.aspnetForm.ctl00_BodyContentPH_rbtnShiftRoaster.checked == true) {
                var Roasterindex = document.aspnetForm.ctl00_BodyContentPH_ddlShiftRoaster.selectedIndex;
                var Roasteritem = document.aspnetForm.ctl00_BodyContentPH_ddlShiftRoaster.options[Roasterindex].value;
                if (Roasteritem == "-Select-") {
                    alert(SelectShiftRoaster);
                    return false;
                }
            }
            if (document.aspnetForm.ctl00_BodyContentPH_rbtnShifts.checked == true) {
                if (document.aspnetForm.ctl00_BodyContentPH_ddlShifts.selectedIndex == 0) {
                    alert(SelectShift);
                    return false;
                }
            }
            if (document.aspnetForm.ctl00_BodyContentPH_txt_StartDate.value == "") {
                alert(SelectSheduleFrom);
                return false;
            }
            else if (document.aspnetForm.ctl00_BodyContentPH_txt_ToDate.value == "") {
                alert(SelectSheduleTo);
                return false;
            }
            else {
                if (document.aspnetForm.ctl00_BodyContentPH_txt_StartDate.value != '') {
                    var weekDay = document.aspnetForm.ctl00_BodyContentPH_txt_StartDate;
                    var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                    if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                        if (document.aspnetForm.ctl00_BodyContentPH_txt_ToDate.value != '') {
                            var weekDay = document.aspnetForm.ctl00_BodyContentPH_txt_ToDate;
                            var DateFormat = document.getElementById('ctl00_BodyContentPH_Hidden1').value;
                            if (checkDate(weekDay, DateFormat, Monthfourdigit, Datefourdigit, Invalidyearentry, Invalidmonthentry, Invaliddateentry, DateformatDDMONYYYY, Entertime, Valueforhours, Invalidvalueforminutes, Invalidtimeformat, EntervalidDateandTime, ValiddatemonthMMDDYYHHMM, ValiddatemonthMMDDYYHHMMTT, EntervalidDateandTime, Invalidvalueforhours, Invalidvalueforminites)) {
                                return confirm(ConfirmSave);
                            }
                            else {
                                return false;
                            }
                        }
                        else {
                            return false;
                        }
                    }
                    else {
                        return false;
                    }
                }
            }
            //return true;           
        }
    </script>

    <div class="content-header">
        <h1 style="background-image: url('../dist/img/shiftallocation.png'); background-repeat: no-repeat; padding-left: 35px">
            <asp:Label ID="lbl_Header" runat="server"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <asp:UpdatePanel ID="upLeave" runat="server">
            <ContentTemplate>
                <asp:Panel ID="pnlProgress" runat="server" Style="display: none;">
                    <asp:Panel ID="pnlLoading" runat="server" HorizontalAlign="center">
                        <div class="InsideProgressBar">
                            <div class="row" style="margin-top: 10px">
                                <img src="../dist/img/logo-Progress.png" />
                            </div>
                            <div class="row" style="min-width: 280px">
                                <img src="../dist/img/default.gif" style="width: 100px" />
                            </div>
                            <div class="row" style="margin-bottom: 10px">
                                <asp:Label ID="lblLoading" runat="server" ForeColor="black" Style="text-align: center"
                                    Text="Please Wait..." Font-Bold="true" Font-Size="12px" Font-Italic="true" Font-Family="Arial"></asp:Label>
                            </div>
                            <div class="clear clearfix">
                            </div>
                        </div>
                    </asp:Panel>
                </asp:Panel>
                <asp:HiddenField ID="hdnProgress" runat="server" />
                <cc1:ModalPopupExtender ID="popupProgress" runat="server" TargetControlID="hdnProgress"
                    BackgroundCssClass="ModalPopup" PopupControlID="pnlProgress" BehaviorID="popupProgress">
                </cc1:ModalPopupExtender>
            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="btn_Save" />
            </Triggers>
        </asp:UpdatePanel>
        <div id="myModal" class="modal modal-default fade" role="dialog">
            <div class="modal-dialog" style="min-width: 85%;">
                <!-- Modal content-->
                <div class="modal-content" style="margin-top: 50px">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" style="border-radius: 50px;">
                            &times;</button>
                        <h4 class="modal-title" style="padding-bottom: 10px">
                            <asp:Label ID="lblSelectEmployee" runat="server" Text="Select Employee(s)"></asp:Label>
                        </h4>
                    </div>
                    <div class="modal-body" style="padding-top: 0px">
                        <iframe id="iframePopup" runat="server" scrolling="auto" width="100%" height="680px"
                            style="border-style: none"></iframe>
                    </div>

                    <div class="modal-footer" style="display: none">
                        <button type="button" class="btn btn-primary pull-right" data-dismiss="modal">
                            Close</button>
                    </div>
                </div>
            </div>
        </div>
        <div id="ViewAllocated" class="modal modal-default fade" role="dialog">
            <div class="modal-dialog" style="min-width: 85%;">
                <!-- Modal content-->
                <div class="modal-content" style="margin-top: 50px">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" style="border-radius: 50px;">
                            &times;</button>
                        <h4 class="modal-title" style="padding-bottom: 10px">
                            <asp:Label ID="lblDataView" runat="server" Text="Data View"></asp:Label>
                        </h4>
                    </div>
                    <div class="modal-body" style="padding-top: 0px">
                        <iframe id="iframePopup2" runat="server" scrolling="auto" width="100%" height="680px"
                            style="border-style: none"></iframe>
                    </div>
                    <div class="modal-footer" style="display: none">
                        <button type="button" class="btn btn-primary pull-right" data-dismiss="modal">
                            Close</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-12" style="color: Red; display: none">
            <span class="fa fa-asterisk"></span>
            <asp:Label ID="lbl_IndicatesMandatoryFields" runat="server"></asp:Label>
            <asp:Label ID="lblError" runat="server"></asp:Label>
        </div>
        <div class="inr-ftr">
            <div class="row">
                <div class="col-sm-12">
                    <div class="pull-right" id="divShiftMan">
                        <h6>
                            <span style="color: Red">|</span><span style="padding-left: 10px; padding-right: 10px">
                                <asp:Label ID="lbl_Mandatory" runat="server" Text="Mandatory" Style="padding: 0"></asp:Label>
                                <asp:Label ID="lblcount" runat="server" Text="(2 No.)">
                                </asp:Label>
                            </span>
                        </h6>
                    </div>
                    <%--  <div class="pull-right" id="divPatternMan">
                        <h6>
                            <span style="color: Red">|</span><span style="padding-left: 10px; padding-right: 10px">
                                <asp:Label ID="lbl_Mandatory1" runat="server" Text="Mandatory" Style="padding: 0"></asp:Label>
                                <asp:Label ID="Label3" runat="server" Text="(4 No.)">
                                </asp:Label>
                            </span>
                        </h6>
                    </div>--%>
                </div>
                <div class="clearfix">
                </div>
            </div>
        </div>
        <div class="emp-filter">
            <div class="form-horizontal">
                <%--<div class="row">
                    <div class="col-md-6">
                        <div class="row form-group">lblMode
                            <div class="col-md-6">
                                <asp:Label ID="lblMode" runat="server" Text="Mode of Allocation"></asp:Label>
                            </div>
                            <div class="col-md-6 Pad-left-7px">
                                <div class="col-md-6">
                                    <asp:RadioButton ID="rbtnManual" runat="server" GroupName="AllocType" Text="Manual"
                                        Checked="true" CssClass="radioLeave radioLeave-primary" onclick="ModeOfAllocation();" />
                                </div>
                                <div class="col-md-6">
                                    <asp:RadioButton ID="rbtnImport" runat="server" GroupName="AllocType" Text="Import"
                                        CssClass="radioLeave radioLeave-primary" onclick="ModeOfAllocation();" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>--%>
                <div class="row" id="divManual" runat="server">
                    <div class="col-md-6">
                        <div id="actualdiv">
                            <div class="row form-group">
                                <div class="col-md-6">
                                    <asp:Label ID="lblAllocationType" runat="server" Text="Allocation Type"></asp:Label>
                                </div>
                                <div class="col-md-6 Pad-left-7px">
                                    <div class="col-md-6">
                                        <asp:RadioButton ID="rbtnSingle" runat="server" GroupName="ShiftAllocate" Text="Single"
                                            CssClass="radioLeave radioLeave-primary" onclick="ShiftAllocationType();" />
                                    </div>
                                    <div class="col-md-6">
                                        <asp:RadioButton ID="rbtnMultiple" runat="server" GroupName="ShiftAllocate" Text="Multiple"
                                            Checked="true" CssClass="radioLeave radioLeave-primary" onclick="ShiftAllocationType();" />
                                    </div>
                                </div>
                            </div>
                            <%--<div runat="server">
                                <div class="row form-group">
                                    <div class="col-md-6">
                                    </div>
                                    <div class="col-md-6">
                                        <asp:LinkButton ID="btn_ShiftAllocationView" runat="server" CssClass="btn save-btn fa-eye"
                                            OnClientClick="return OpenShiftAllocationViewWindow();" style="margin-left:0px;" data-toggle="modal" data-target="#ViewAllocated" />
                                    </div>
                                </div>
                            </div>--%>
                            <div id="divMultiple" runat="server">
                                <div class="row form-group">
                                    <div class="col-md-6">
                                        <asp:Label ID="lbl_SelectedEmployees" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-6">
                                        <asp:LinkButton ID="btn_Add" CssClass="btn add-btn fa-plus" runat="server" OnClick="btn_Add_Click"
                                            OnClientClick="return OpenWindowShiftRequisition();" data-toggle="modal" data-target="#myModal" />
                                    </div>
                                </div>
                            </div>

                            <div id="divSingle" style="display: none" runat="server">
                                <div class="row form-group">
                                    <div class="col-md-6">
                                        <asp:Label ID="lblEmployeeCode" runat="server" Text="Employee Code"></asp:Label>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="input-group input-group-sm">
                                            <asp:TextBox onpaste="return true" ID="txt_EmployeeId" runat="server" CssClass="form-control man-dat"
                                                MaxLength="15" onblur="ajaxShiftAllocationSingle();" onkeypress="return acceptCharsNum_MaxLength(event,this,15,MaxLength);"></asp:TextBox>
                                            <span class="input-group-btn">
                                                <asp:LinkButton ID="btn_Search" data-toggle="modal" data-target="#myModal" CssClass="btn save-btn btn-flat fa fa-search"
                                                    runat="server" OnClientClick="return OpenWindowShiftExchangeGrid('txt_EmployeeId');" />
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>


                        <div class="row form-group">
                            <div class="col-md-6">
                                <asp:Label ID="lbl_ScheduleFrom" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-6">
                                <asp:DropDownList ID="ddl_Month" runat="server" CssClass="form-control select2 Man-dat"
                                    AutoPostBack="true" OnSelectedIndexChanged="ddl_NoDays_SelectedIndexChanged">
                                    <asp:ListItem Text="-Select-" Value="-Select-"></asp:ListItem>
                                    <%--<asp:ListItem Value="0" Text="--Select--"></asp:ListItem>--%>
                                    <%--<asp:ListItem Value="02" Text="FEB"></asp:ListItem>
                                    <asp:ListItem Value="03" Text="MAR"></asp:ListItem>
                                    <asp:ListItem Value="04" Text="APR"></asp:ListItem>
                                    <asp:ListItem Value="05" Text="MAY"></asp:ListItem> 
                                    <asp:ListItem Value="06" Text="JUN"></asp:ListItem>
                                    <asp:ListItem Value="07" Text="JUL"></asp:ListItem>
                                    <asp:ListItem Value="08" Text="AUG"></asp:ListItem>
                                    <asp:ListItem Value="09" Text="SEP"></asp:ListItem>
                                    <asp:ListItem Value="10" Text="OCT"></asp:ListItem>
                                    <asp:ListItem Value="11" Text="NOV"></asp:ListItem>
                                    <asp:ListItem Value="12" Text="DEC"></asp:ListItem>--%>
                                </asp:DropDownList>
                            </div>


                        </div>

                        <div class="row">
                            <div class="col-md-12">
                                <asp:Label ID="lbl_Info" runat="server"></asp:Label>
                            </div>
                        </div>
                        <div>
                            <div id="divShiftLocation" runat="server" style="display: none">
                                <div class="row form-group" style="display: none">
                                    <div class="col-md-6">
                                        <asp:Label ID="lblShiftLocation" runat="server" Text="Work Location"></asp:Label>
                                    </div>
                                    <div class="col-md-6" style="display: none">
                                        <asp:DropDownList ID="ddlLocation" runat="server" CssClass="form-control select2"
                                            AppendDataBoundItems="True">
                                            <asp:ListItem Text="-Select-" Value="-Select-"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="row">
                                </div>
                                <div class="row form-group">
                                    <div class="col-md-12">
                                        <div class="table-responsive">
                                            <asp:GridView ID="grv_Employees" runat="server" AutoGenerateColumns="False" AllowPaging="true"
                                                PageSize="10" OnPageIndexChanging="grv_Employees_PageIndexChanging" CellPadding="4"
                                                OnRowDeleting="grv_Employees_RowDeleting" OnRowDataBound="grv_Employees_RowDataBound"
                                                AutoGenerateDeleteButton="true" CssClass="table das-table1">
                                                <Columns>

                                                    <asp:TemplateField HeaderText="EmpId" Visible="false" HeaderStyle-CssClass="empheader"
                                                        ItemStyle-CssClass="table-icons">
                                                        <ItemTemplate>
                                                            <itemstyle horizontalalign="Center" />
                                                            <headerstyle horizontalalign="Center" />
                                                            <asp:Label ID="lbl_EmpAutoId" Text='<%# Eval("EmpId")%>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="LoginEmployeeId" Visible="false" HeaderStyle-CssClass="empheader"
                                                        ItemStyle-CssClass="table-icons">
                                                        <ItemTemplate>
                                                            <itemstyle horizontalalign="Center" />
                                                            <headerstyle horizontalalign="Center" />
                                                            <asp:Label ID="lbl_LoginEmployeeId" Text='<%# Eval("LoginEmployeeId")%>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Employee Id" HeaderStyle-CssClass="empheader">
                                                        <ItemTemplate>
                                                            <itemstyle horizontalalign="Center" />
                                                            <headerstyle horizontalalign="Center" />
                                                            <asp:Label ID="lbl_EmpId" Text='<%# Eval("EmployeeId")%>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Employee Name" HeaderStyle-CssClass="empheader">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbl_EmpName" Text='<%# Eval("EmployeeName")%>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                </Columns>
                                                <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>
                    <div class="row form-group">
                        <div class="col-md-12">
                            <div class="table-responsive">
                                <asp:GridView CssClass="table" ID="grv_Employeess" Width="100%" runat="server"
                                    AllowPaging="True" AutoGenerateColumns="false" PageSize="10" OnPageIndexChanging="grv_Employeess_PageIndexChanging"
                                    OnRowDataBound="grv_Employeess_RowDataBound" Font-Size="13px">
                                    <Columns>
                                       

                                        <asp:TemplateField HeaderText="EmpId" Visible="false" HeaderStyle-CssClass="empheader"
                                            ItemStyle-CssClass="table-icons">
                                            <ItemTemplate>
                                                <itemstyle horizontalalign="Center" />
                                                <headerstyle horizontalalign="Center" />
                                                <asp:Label ID="lbl_EmpAutoId" Text='<%# Eval("EmpId")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="LoginEmployeeId" Visible="false" HeaderStyle-CssClass="empheader"
                                            ItemStyle-CssClass="table-icons">
                                            <ItemTemplate>
                                                <itemstyle horizontalalign="Center" />
                                                <headerstyle horizontalalign="Center" />
                                                <asp:Label ID="lbl_LoginEmployeeId" Text='<%# Eval("LoginEmployeeId")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Employee Id" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <itemstyle horizontalalign="Center" />
                                                <headerstyle horizontalalign="Center" />
                                                <asp:Label ID="lbl_EmpId" Text='<%# Eval("EmployeeId")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Employee Name" ControlStyle-Width="100px" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_EmpName" Text='<%# Eval("EmployeeName")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>


                                        <asp:TemplateField HeaderText="DAY1" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift" runat="server" Text='<%# Eval("Day1Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName" Style="word-wrap: break-word; display: inline-block; width: 90px;"
                                                    CssClass="pull-left-button" runat="server" AutoPostBack="true" 
                                                    OnSelectedIndexChanged="ddl_shiftShortNames">
                                                      <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY2" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift2" runat="server" Text='<%# Eval("Day2Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName2" Style="word-wrap: break-word; display: inline-block; width: 90px;" 
                                                    CssClass="pull-left-button" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddl_shiftShortNames" >
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY3" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift3" runat="server" Text='<%# Eval("Day3Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName3" Style="word-wrap: break-word; display: inline-block; 
                                                  width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY4" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift4" runat="server" Text='<%# Eval("Day4Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName4" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY5" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift5" runat="server" Text='<%# Eval("Day5Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName5" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY6" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift6" runat="server" Text='<%# Eval("Day6Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName6" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY7" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift7" runat="server" Text='<%# Eval("Day7Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName7" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY8" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift8" runat="server" Text='<%# Eval("Day8Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName8" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY9" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift9" runat="server" Text='<%# Eval("Day9Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName9" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY10" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift10" runat="server" Text='<%# Eval("Day10Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName10" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY11" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift11" runat="server" Text='<%# Eval("Day11Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName11" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY12" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift12" runat="server" Text='<%# Eval("Day12Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName12" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY13" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift13" runat="server" Text='<%# Eval("Day13Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName13" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY14" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift14" runat="server" Text='<%# Eval("Day14Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName14" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY15" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift15" runat="server" Text='<%# Eval("Day15Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName15" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY16" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift16" runat="server" Text='<%# Eval("Day16Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName16" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY17" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift17" runat="server" Text='<%# Eval("Day17Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName17" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY18" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift18" runat="server" Text='<%# Eval("Day18Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName18" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY19" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift19" runat="server" Text='<%# Eval("Day19Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName19" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY20" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift20" runat="server" Text='<%# Eval("Day20Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName20" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY21" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift21" runat="server" Text='<%# Eval("Day21Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName21" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY22" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift22" runat="server" Text='<%# Eval("Day22Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName22" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY23" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift23" runat="server" Text='<%# Eval("Day23Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName23" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY24" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift24" runat="server" Text='<%# Eval("Day24Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName24" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY25" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift25" runat="server" Text='<%# Eval("Day25Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName25" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY26" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift26" runat="server" Text='<%# Eval("Day26Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName26" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY27" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift27" runat="server" Text='<%# Eval("Day27Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName27" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY28" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift28" runat="server" Text='<%# Eval("Day28Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName28" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY29" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift29" runat="server" Text='<%# Eval("Day29Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName29" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY30" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift30" runat="server" Text='<%# Eval("Day30Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName30" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY31" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lblShift31" runat="server" Text='<%# Eval("Day31Shift") %>' Visible="false" />
                                                <asp:DropDownList ID="ddlShiftShortName31" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                    <asp:ListItem Value="-Select-" Selected="True" Text="-Select-"></asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                    </Columns>
                                    
                                    <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 class="row form-group" >

                            </div>
                            <asp:UpdatePanel ID="Update" runat="server">
                                <ContentTemplate>
                                    <div class="pull-right-button">
                                        <asp:LinkButton ID="btn_Save" CssClass="btn save-btn fa-floppy-o" runat="server"
                                            OnClick="btn_Save_Click" OnClientClick="return Validation();"/>
                                        <asp:LinkButton ID="btn_Cancel" CssClass="btn save-btn fa-angle-left" runat="server"
                                            CausesValidation="False" OnClick="btn_Cancel_Click" />
                                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                            ShowSummary="False" />
                                        <asp:HiddenField ID="Hidden1" runat="server" />
                                    </div>
                                </ContentTemplate>
                                <%--OnClientClick="if(validateShiftAllocation(SelectShiftPattern)) $find('popupProgress').show();else return false;"--%> 
                            </asp:UpdatePanel>


                        </div>

                    </div>

                </div>

                <div class="inr-ftr">
                    <div class="row">
                        <div class="col-sm-12">
                            <%--<div class="pull-right" id="divShiftMan">
                                <h6>
                                    <span style="color: Red">Requisition List</span><span style="padding-right: 1000px;">
                                        
                                    </span>
                                </h6>
                            </div>--%>
                          
                        </div>
                        <div class="clearfix">
                        </div>
                    </div>
                </div>


                <div class="row form-group">
                    <div class="col-md-12">
                        <div class="table-responsive">
                            <asp:GridView CssClass="table" ID="GridView3" Width="100%" runat="server"
                                AllowPaging="True" AutoGenerateColumns="false" PageSize="10" 
                                 Font-Size="13px">

                                <Columns>
                                       
                                    <asp:TemplateField HeaderText="CompanyID" Visible="false" HeaderStyle-CssClass="empheader"
                                            ItemStyle-CssClass="table-icons">
                                            <ItemTemplate>
                                                <itemstyle horizontalalign="Center" />
                                                <headerstyle horizontalalign="Center" />
                                                <asp:Label ID="lbl_CompanyID" Text='<%# Eval("CompanyID")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="EmployeeAuto_Id" Visible="true" HeaderStyle-CssClass="empheader"
                                            ItemStyle-CssClass="table-icons">
                                            <ItemTemplate>
                                                <itemstyle horizontalalign="Center" />
                                                <headerstyle horizontalalign="Center" />
                                                <asp:Label ID="lbl_EmplAutoId" Text='<%# Eval("Employee_Code_Id")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Employee Id" HeaderStyle-CssClass="empheader" Visible="false">
                                            <ItemTemplate>
                                                <itemstyle horizontalalign="Center" />
                                                <headerstyle horizontalalign="Center" />
                                                <asp:Label ID="lbl_EmplId" Text='<%# Eval("EmployeeId")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Employee Name" ControlStyle-Width="100px" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_EmplName" Text='<%# Eval("EmployeeName")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Shift Month" Visible="true" ControlStyle-Width="90px" HeaderStyle-CssClass="empheader"
                                            ItemStyle-CssClass="table-icons">
                                            <ItemTemplate>
                                                <itemstyle horizontalalign="Center" />
                                                <headerstyle horizontalalign="Center" />
                                                <asp:Label ID="lbl_RequisitionDate" Text='<%# Eval("RequisitionDate")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                     <asp:TemplateField HeaderText="Status" Visible="true" HeaderStyle-CssClass="empheader"
                                            ItemStyle-CssClass="table-icons">
                                            <ItemTemplate>
                                                <itemstyle horizontalalign="Center" />
                                                <headerstyle horizontalalign="Center" />
                                                <asp:Label ID="lbl_Status" Text='<%# Eval("Status")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                    <%--<asp:TemplateField HeaderText="LoginEmployeeId" Visible="false" HeaderStyle-CssClass="empheader"
                                            ItemStyle-CssClass="table-icons">
                                            <ItemTemplate>
                                                <itemstyle horizontalalign="Center" />
                                                <headerstyle horizontalalign="Center" />
                                                <asp:Label ID="lbl_LoginEmployeeId" Text='<%# Eval("Status")%>' runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>--%>
                                        
                                        


                                        <asp:TemplateField HeaderText="DAY1" HeaderStyle-CssClass="empheader">
                                            <ItemTemplate>
                                                 <itemstyle horizontalalign="Center" />
                                                <headerstyle horizontalalign="Center" />
                                                <asp:Label ID="lbllShift" runat="server" Text='<%# Eval("DAY1") %>' Visible="true" />
                                               <%-- <asp:DropDownList ID="ddlShiftShortName" Style="word-wrap: break-word; display: inline-block; width: 90px;"
                                                    CssClass="pull-left-button" runat="server" AutoPostBack="true" 
                                                    OnSelectedIndexChanged="ddl_shiftShortNames">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY2" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift2" runat="server" Text='<%# Eval("DAY2") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName2" Style="word-wrap: break-word; display: inline-block; width: 90px;" 
                                                    CssClass="pull-left-button" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddl_shiftShortNames" >
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY3" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift3" runat="server" Text='<%# Eval("DAY3") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName3" Style="word-wrap: break-word; display: inline-block; 
                                                  width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY4" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift4" runat="server" Text='<%# Eval("DAY4") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName4" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY5" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift5" runat="server" Text='<%# Eval("DAY5") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName5" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY6" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift6" runat="server" Text='<%# Eval("DAY6") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName6" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY7" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift7" runat="server" Text='<%# Eval("DAY7") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName7" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY8" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift8" runat="server" Text='<%# Eval("DAY8") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName8" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY9" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift9" runat="server" Text='<%# Eval("DAY9") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName9" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY10" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift10" runat="server" Text='<%# Eval("DAY10") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName10" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY11" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift11" runat="server" Text='<%# Eval("DAY11") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName11" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY12" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift12" runat="server" Text='<%# Eval("DAY12") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName12" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY13" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift13" runat="server" Text='<%# Eval("DAY13") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName13" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY14" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift14" runat="server" Text='<%# Eval("DAY14") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName14" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY15" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift15" runat="server" Text='<%# Eval("DAY15") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName15" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY16" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift16" runat="server" Text='<%# Eval("DAY16") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName16" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY17" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift17" runat="server" Text='<%# Eval("DAY17") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName17" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY18" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift18" runat="server" Text='<%# Eval("DAY18") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName18" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY19" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift19" runat="server" Text='<%# Eval("DAY19") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName19" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY20" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift20" runat="server" Text='<%# Eval("DAY20") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName20" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY21" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift21" runat="server" Text='<%# Eval("DAY21") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName21" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY22" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift22" runat="server" Text='<%# Eval("DAY22") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName22" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY23" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift23" runat="server" Text='<%# Eval("DAY23") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName23" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY24" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift24" runat="server" Text='<%# Eval("DAY24") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName24" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY25" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift25" runat="server" Text='<%# Eval("DAY25") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName25" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY26" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift26" runat="server" Text='<%# Eval("DAY26") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName26" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY27" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift27" runat="server" Text='<%# Eval("DAY27") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName27" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY28" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift28" runat="server" Text='<%# Eval("DAY28") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName28" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY29" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift29" runat="server" Text='<%# Eval("DAY29") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName29" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY30" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift30" runat="server" Text='<%# Eval("DAY30") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName30" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="DAY31" HeaderStyle-CssClass="empheader GridColumn50 pull-left-button">
                                            <ItemTemplate>
                                                <asp:Label ID="lbllShift31" runat="server" Text='<%# Eval("DAY31") %>' Visible="true" />
                                                <%--<asp:DropDownList ID="ddlShiftShortName31" Style="word-wrap: break-word; display: inline-block; width: 90px;" CssClass="pull-left-button" runat="server">
                                                </asp:DropDownList>--%>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                    </Columns>
                                
                            
                                <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 class="row" id="divImport" runat="server" style="display: none">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <div class="col-md-3">
                                        <asp:Label ID="lblImportFilePath" runat="server" Text="Select Excel File"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:FileUpload ID="fup_ShiftImport" runat="server" />
                                    </div>
                                </div>
                                <div class="form-group src-padbottomMargin">
                                    <div class="col-md-3">
                                        <asp:Label ID="Label1" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-9 pad-left-10px">
                                        <div class="col-md-2">
                                            <asp:CheckBox ID="ChbMonday" runat="server" CssClass="checkboxShift checkboxShift-primary" />
                                        </div>
                                        <div class="col-md-2">
                                            <asp:CheckBox ID="ChbTuesday" runat="server" CssClass="checkboxShift checkboxShift-primary" />
                                        </div>
                                        <div class="col-md-2">
                                            <asp:CheckBox ID="ChbWednesday" runat="server" CssClass="checkboxShift checkboxShift-primary" />
                                        </div>
                                        <div class="col-md-2">
                                            <asp:CheckBox ID="ChbThuday" runat="server" CssClass="checkboxShift checkboxShift-primary" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group src-padTopMargin">
                                    <div class="col-md-3">
                                    </div>
                                    <div class="col-md-9 pad-left-10px">
                                        <div class="col-md-2">
                                            <asp:CheckBox ID="ChbFriday" runat="server" CssClass="checkboxShift checkboxShift-primary" />
                                        </div>
                                        <div class="col-md-2">
                                            <asp:CheckBox ID="ChbSaturday" runat="server" CssClass="checkboxShift checkboxShift-primary" />
                                        </div>
                                        <div class="col-md-2">
                                            <asp:CheckBox ID="ChbSunday" runat="server" CssClass="checkboxShift checkboxShift-primary" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="callout callout-info" style="margin-bottom: 0!important;">
                                            <asp:Label ID="lblImportNote" runat="server"></asp:Label>
                                        </div>
                                        <br />
                                        <ul>
                                            <li>
                                                <asp:Label ID="Label5" runat="server" Text="Dont remove / modify any field in the downloaded template file while importing. if the current month is not having <B style='color:red'>29th,30th and 31st day</B>, pls leave those columns as blank in template file."></asp:Label>
                                            <li>
                                                <asp:Label ID="Label6" runat="server" Text="if you want to specify Week off in downloaded template file, use shift short name as <B style='color:red'>Off</B> in the corresponding day column."></asp:Label>
                                            <li>
                                                <asp:Label ID="Label7" runat="server" Text="While importing, check whether the file has been opened or not. If it is opened try an import after closing the file which is minimized in the taskbar"></asp:Label>
                                            </li>
                                            <li>
                                                <asp:Label ID="Label8" runat="server" Text="Save the file as <B style='color:red'>.csv</B> format before import."></asp:Label>
                                            </li>
                                        </ul>
                                    </div>
                                </div>


                                <div class="row" style="display: none; visibility: hidden;">
                                    <div class="col-md-12">
                                        <asp:Label ID="lblSkip" runat="server" Text="Skip Validation"></asp:Label>
                                    </div>
                                    <div class="col-md-12">
                                        <asp:CheckBox ID="chkSkip" runat="server" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-12">
                                        <div class="pull-right-button">
                                            <asp:LinkButton ID="btn_Upload" CssClass="btn save-btn fa-upload" runat="server" OnClick="btn_btn_Upload" OnClientClick="javascript:return ValidateFileUploader();" />
                                            <asp:LinkButton ID="btn_Template" CssClass="btn save-btn fa-download" runat="server" OnClick="btnTemplate_Click" />
                                            <asp:LinkButton ID="LinkButton1" CssClass="btn save-btn fa-angle-left" runat="server"
                                                Style="display: none" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="clearfix">
                            </div>
                            <div class="row">
                                <div class="line16">
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="form-group">
                                    <div class="col-md-12">
                                        <strong>
                                            <asp:Label ID="lblUnProcess" runat="server" Text="Un Processed Record"></asp:Label></strong>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="table-responsive" style="padding-bottom: 10px">
                                    <dxGridview:ASPxGridView ID="grvImportDetails" EnableCallBacks="false" runat="server"
                                        ClientInstanceName="grvImportDetails" AutoGenerateColumns="false" Width="100%">
                                        <Columns>
                                            <dxGridview:GridViewDataTextColumn Caption="Employee Id" FieldName="Employee_Id"
                                                VisibleIndex="1">
                                                <DataItemTemplate>
                                                    <asp:Label ID="lblEmployeeId" Text='<%# Eval("Employee_Id") %>' runat="server"></asp:Label>
                                                </DataItemTemplate>
                                                <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                            </dxGridview:GridViewDataTextColumn>
                                            <dxGridview:GridViewDataTextColumn Caption="Year" FieldName="Year" VisibleIndex="1">
                                                <DataItemTemplate>
                                                    <asp:Label ID="lblYear" Text='<%# Eval("Year") %>' runat="server"></asp:Label>
                                                </DataItemTemplate>
                                                <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                            </dxGridview:GridViewDataTextColumn>
                                            <dxGridview:GridViewDataTextColumn Caption="Month" FieldName="Month" VisibleIndex="1">
                                                <DataItemTemplate>
                                                    <asp:Label ID="lblMonth" Text='<%# Eval("Month") %>' runat="server"></asp:Label>
                                                </DataItemTemplate>
                                                <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                            </dxGridview:GridViewDataTextColumn>
                                            <dxGridview:GridViewDataTextColumn Caption="Error Message" FieldName="Err_Msg" VisibleIndex="1">
                                                <DataItemTemplate>
                                                    <asp:Label ID="Label2" Text='<%# Eval("Error_Msg") %>' runat="server"></asp:Label>
                                                </DataItemTemplate>
                                                <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                            </dxGridview:GridViewDataTextColumn>
                                            <dxGridview:GridViewDataTextColumn Caption="Record Number" FieldName="ImportID" VisibleIndex="1">
                                                <DataItemTemplate>
                                                    <asp:Label ID="lblImportID" Text='<%# Eval("ImportID") %>' runat="server"></asp:Label>
                                                </DataItemTemplate>
                                                <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                            </dxGridview:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsText EmptyDataRow="No Records Found" />
                                        <SettingsPager PageSize="10">
                                        </SettingsPager>
                                        <SettingsBehavior AllowSort="false" AllowDragDrop="false" />
                                        <Styles AlternatingRow-CssClass="table-bg">
                                        </Styles>
                                    </dxGridview:ASPxGridView>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                </div>
    </div>
        </div>
</asp:Content>

