<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TA_UI_Master_Employee_Transfer.aspx.cs" 
    MasterPageFile="~/MasterFile/TimeCheck.master"
    Inherits="Masters_TA_UI_Master_Employee_Transfer" %>

<%--<!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 Src="~/UserControls/TA_uc_OrganizationLevels.ascx" TagName="OrganizationLevel"
    TagPrefix="uc" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="BodyContentPH" ID="conEmployee" runat="server">
    <!--[if gt IE 5.5]>
	<link rel="stylesheet" type="text/css" href="../css/anytimeIE.css" />
	<link rel="stylesheet" type="text/css" href="../css/ProgressforIE.css" />
 <![endif]-->

    <script type="text/javascript">
        function DisplayReminderDaysField(chkPassport) {
            var txtPassportNumber = document.getElementById("ctl00_BodyContentPH_txtPassVisaRemindDays");
            txtPassportNumber.disabled = chkPassport.checked ? false : true;
            if (!txtPassportNumber.disabled) {
                txtPassportNumber.focus();
            }
            else {
                txtPassportNumber.value = "";
            }
        }
        function Validate_reminderDays() {
            var chkPassport = document.getElementById("ctl00_BodyContentPH_chkboxRemind_PassVisa");
            var txtPassportNumber = document.getElementById("ctl00_BodyContentPH_txtPassVisaRemindDays");
            if (chkPassport.checked) {
                if (txtPassportNumber.value == "") {
                    alert("Enter number of days in expiry field");
                    txtPassportNumber.disabled = false;
                    txtPassportNumber.focus();
                    return false;
                }
            }
            else {
                txtPassportNumber.disabled = true;
            }
        }
        function UpdateCustomizationWindowValue() {
            var element = document.getElementById("btnCustWindow");
            if (element == null) return;
            element.value = (grv_EmpDetails.IsCustomizationWindowVisible() ? "Hide" : "Show") + " Customization Window";
        }
        function ShowHideCustomizationWindow() {
            if (grv_EmpDetails.IsCustomizationWindowVisible())
                grv_EmpDetails.HideCustomizationWindow();
            else grv_EmpDetails.ShowCustomizationWindow();
            UpdateCustomizationWindowValue();
        }
        function navi(loc) {
            document.getElementById('ctl00_BodyContentPH_iframePopup').src = loc;
            return false;
        }
        function Delete_Conf(id) {
            var ControlID = id;
            if (document.getElementById(ControlID).Disabled == false) {
                return confirm('Are you sure to Delete ?');
            }
        }
        function getFilter() {
            $('#collapseThree').collapse('show');
            var text = document.getElementById('ctl00_BodyContentPH_btn_Show').innerHTML;
            var ss = text.split(" ");
            if (document.getElementById('ctl00_BodyContentPH_trFiller').style.display == "none") {
                document.getElementById('ctl00_BodyContentPH_trFiller').style.display = "";
                document.getElementById('ctl00_BodyContentPH_hdnAdvancedplus').value = 1;
                if (ss.length > 1) {
                    //document.getElementById('ctl00_BodyContentPH_btn_Show').innerHTML = "- " + ss[1];
                }
            }
            else {
                document.getElementById('ctl00_BodyContentPH_trFiller').style.display = "none";
                var text = document.getElementById('ctl00_BodyContentPH_btn_Show').innerHTML;
                document.getElementById('ctl00_BodyContentPH_hdnAdvancedplus').value = 0;
                if (ss.length > 1) {
                    //document.getElementById('ctl00_BodyContentPH_btn_Show').innerHTML = "+ " + ss[1];
                }
            }
            return false;
        }
    </script>
    <style type="text/css">
        .checkbox label {
            padding-right: 0px !important;
        }
    </style>
    <script type="text/javascript" src="../bootstrap/js/1.4.3/jquery.min.js"></script>
    <script src="../bootstrap/js/1.8.5/jquery-ui.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#<%= txtEmployeeId.ClientID %>").autocomplete({
                source: function (request, response) {
                    $.getJSON("../AutoCompleteByEmployeeId.ashx?EmpAutoid=" + '<%= Convert.ToString(Session["EmpAutoID"]) %>', {
                        term: extractLast(request.term)
                    }, response);
                },
                search: function () {
                    var term = extractLast(this.value);
                    if (term.length < 1) {
                        return false;
                    }
                },
                focus: function () {
                    return false;
                },
                select: function (event, ui) {
                    var terms = split(this.value);
                    terms.pop();
                    terms.push(ui.item.value);
                    terms.push("");
                    this.value = terms.join(",");
                    return false;
                }
            });
            function split(val) {
                return val.split(/,\s*/);
            }
            function extractLast(term) {
                return split(term).pop();
            }
        });
            $(function () {
                $("#<%= txt_EmpName.ClientID %>").autocomplete({
                    source: function (request, response) {
                        $.getJSON("../AutoCompleteByName.ashx?EmpAutoid=" + '<%= Convert.ToString(Session["EmpAutoID"]) %>', {
                            term: extractLast(request.term)
                        }, response);
                    },
                    search: function () {
                        var term = extractLast(this.value);
                        if (term.length < 1) {
                            return false;
                        }
                    },
                    focus: function () {
                        return false;
                    },
                    select: function (event, ui) {
                        var terms = split(this.value);
                        terms.pop();
                        terms.push(ui.item.value);
                        terms.push("");
                        this.value = terms.join(",");
                        return false;
                    }
                });
                function split(val) {
                    return val.split(/,\s*/);
                }
                function extractLast(term) {
                    return split(term).pop();
                }
                Loaddropdown();
            });
    </script>
    <div class="content-header">
        <h1 style="background-image: url('../dist/img/emp-master.png'); background-repeat: no-repeat; padding-left: 35px">
            <asp:Label ID="lbl_HeaderEmployeeTranfer" Text="Employee Transfer" runat="server"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <div id="myModal" class="modal modal-default fade" role="dialog">
            <div class="modal-dialog" style="min-width: 85%;">
                <div class="modal-content" style="margin-top: 20px">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" style="border-radius: 50px;">
                            &times;</button>
                        <h4 class="modal-title">
                            <asp:Label ID="lblDataView" runat="server"></asp:Label>
                        </h4>
                    </div>
                    <div class="modal-body">
                        <iframe id="iframePopup" runat="server" scrolling="auto" width="100%" style="border-style: none"
                            height="700px"></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="Search2" runat="server">
            <div class="inr-ftr">
                <div class="row">
                    <div class="col-sm-2">
                        <div class="inr-fil-text">
                            <asp:Label ID="lblFilter" runat="server"></asp:Label>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-horizontal">
            <div id="Search1" runat="server">
                <div class="emp-filter">
                    <div class="row form-group" style="display: none">
                        <div class="col-md-3">
                            <asp:Label ID="lblEmpSwipe" runat="server"></asp:Label>
                        </div>
                        <div class="col-md-3">
                            <asp:DropDownList ID="ddlSwipeOpt" runat="server">
                                <asp:ListItem Text="Select" Value="Select"></asp:ListItem>
                                <asp:ListItem Text="All" Value="All"></asp:ListItem>
                                <asp:ListItem Text="Exists" Value="Exists"></asp:ListItem>
                                <asp:ListItem Text="Not Exists" Value="Not Exists"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="row" id="trOrgLevel" runat="server">
                        <div class="col-md-12">
                            <asp:UpdatePanel ID="upOrgLevel" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <asp:PlaceHolder ID="PlaceHolderLateEntry" runat="server">
                                        <uc:OrganizationLevel ID="ucOrganizationLevel" runat="server" />
                                    </asp:PlaceHolder>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </div>
                    <div class="clearfix">
                    </div>
                    <div class="row">
                        <div class="row">
                            <div class="line16">
                            </div>
                        </div>
                    </div>
                    <div class="row form-group" id="trSwipeCardNo" runat="server" style="display: none">
                        <div class="col-md-3">
                            <asp:Label ID="lblEmpSwipeCard" runat="server"></asp:Label>
                        </div>
                        <div class="col-md-3">
                            <asp:TextBox onpaste="return true" ID="txtSwipeCard" MaxLength="20" runat="server"
                                CssClass="form-control input-sm" onkeypress="return acceptCharsNum_MaxLength(event,this,20,MaxLength);"></asp:TextBox>
                            <cc1:AutoCompleteExtender ID="acSwipeCardNo" runat="server" CompletionSetCount="10"
                                CompletionListItemCssClass="item" CompletionListHighlightedItemCssClass="AutocompleteCSS"
                                CompletionInterval="10" Enabled="true" MinimumPrefixLength="1" TargetControlID="txtSwipeCard"
                                ServicePath="../WebServices/AutoCompleteExtender.asmx" ServiceMethod="GetCardNo"
                                CompletionListCssClass="autocomplete_completionListElement" FirstRowSelected="true">
                            </cc1:AutoCompleteExtender>
                        </div>
                    </div>
                    <div class="row form-group">
                        <div class="col-md-2">
                            <asp:Label ID="lbl_EmployeeName" runat="server"></asp:Label>
                        </div>
                        <div class="col-md-3">
                            <asp:TextBox onpaste="return true" ID="txt_EmpName" runat="server" CssClass="form-control input-sm"
                                Style="resize: none" TextMode="multiLine" onkeypress="return acceptChars_MaxLength(event,this,500);"></asp:TextBox>
                        </div>
                        <div class="col-md-1">
                        </div>
                        <div class="col-md-2">
                            <asp:Label ID="lbl_EmployeeId" runat="server"></asp:Label>
                        </div>
                        <div class="col-md-3">
                            <asp:TextBox onpaste="return true" ID="txtEmployeeId" runat="server" CssClass="form-control input-sm"
                                Style="resize: none" TextMode="multiLine" onkeypress="return acceptCharsNum_MaxLength(event,this,500,MaxLength);"></asp:TextBox>
                        </div>
                        <div class="col-md-1">
                        </div>
                    </div>

                    <div class="panel-collapse" id="trFiller" runat="server">
                        <div>
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="row form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lblEmpCategory" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddlEmpCatagory" runat="server" CssClass="form-control select2"
                                                AppendDataBoundItems="true">
                                                <asp:ListItem Value="0" Selected="True" Text="-Select-"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lblEmpType" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddlEmpType" runat="server" CssClass="form-control select2"
                                                AppendDataBoundItems="true">
                                                <asp:ListItem Value="0" Selected="True" Text="-Select-"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="row form-group" id="Search3" runat="server">
                                        <div class="col-md-2">
                                            <asp:Label ID="lblGender" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddlGender" runat="server" CssClass="form-control select2">
                                                <asp:ListItem Value="Both" Text="Both"></asp:ListItem>
                                                <asp:ListItem Value="Male" Text="Male"></asp:ListItem>
                                                <asp:ListItem Value="Female" Text="Female"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lblAdvanced" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddlAdvanced" runat="server" CssClass="form-control select2">
                                                <asp:ListItem Text="All" Value="0"></asp:ListItem>
                                                <asp:ListItem Text="OT Eligible" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="Compensation Off Eligible" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="OT And Compensation Off Eligible" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="OT And Compensation Off Not Eligible" Value="9"></asp:ListItem>
                                                <asp:ListItem Text="Leave Policy Not Assigned" Value="4"></asp:ListItem>
                                                <asp:ListItem Text="Active Employee(s)" Value="10"></asp:ListItem>
                                                <asp:ListItem Text="In Active Employee(s)" Value="5"></asp:ListItem>
                                                <asp:ListItem Text="Hostel Employee(s)" Value="6"></asp:ListItem>
                                                <asp:ListItem Text="Exclude From Reports - Yes" Value="7"></asp:ListItem>
                                                <asp:ListItem Text="User Group Not Assigned Employee(s)" Value="8"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="row  form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lblUserGroup" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddl_UserGroup" runat="server" CssClass="form-control select2" AppendDataBoundItems="true">
                                                <asp:ListItem Text="-Select-" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lblLeavepolicy" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddl_LeavePolicy" runat="server" CssClass="form-control select2" AppendDataBoundItems="true">
                                                <asp:ListItem Text="-Select-" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="form-group" id="trStatus" runat="server">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_ReportingTo" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddl_ReportingTo" CssClass="form-control select2" runat="server"
                                                AppendDataBoundItems="true">
                                                <asp:ListItem Text="-Select-" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_LeaveSanctioninguthority" runat="server" class="control-label"></asp:Label>
                                        </div>
                                        <div class="col-md-3">
                                            <asp:DropDownList ID="ddl_LeaveSancAuthority" CssClass="form-control select2" runat="server"
                                                AppendDataBoundItems="true">
                                                <asp:ListItem Text="-Select-" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="row  form-group">
                                        <div class="col-md-2">
                                            <asp:Label ID="lbl_EmailID" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="row">
                                                <div class="col-md-6 pad-left-0px">
                                                    <asp:CheckBox ID="ckb_EmailAvail" runat="server" Checked="true" CssClass="checkboxEmployee checkboxEmployee-primary checkbox-circle" />
                                                </div>
                                                <div class="col-md-6 pad-left-0px">
                                                    <asp:CheckBox ID="ckb_EmailNotAvail" runat="server" Checked="true" CssClass="checkboxEmployee checkboxEmployee-primary checkbox-circle" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-ks-8" style="padding-left: 8px !important; padding-right: 0px">
                                            <div class="col-ks-13_5">
                                                <asp:CheckBox Text="List only employees whose passport or visa is getting expired in" ID="chkboxRemind_PassVisa" runat="server" CssClass="checkbox checkbox-primary" onclick="DisplayReminderDaysField(this)" />
                                            </div>
                                            <div class="col-ks-2">
                                                <asp:TextBox onpaste="return true" ID="txtPassVisaRemindDays" runat="server" CssClass="form-control"
                                                    Enabled="false" onCut="return false" MaxLength="3" onDrop="return false" onkeypress="return number_dot(event,this)"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="col-ks-8" style="padding-left: 0px !important;">
                                            <asp:Label ID="lblDays" Text="Days" runat="server"></asp:Label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                             </div>
                        </div>
                  </div>


                    <div class="row  form-group" id="trSearchButton" runat="server">
                        <div class="col-md-2">
                        </div>
                        <div class="col-md-3">
                        </div>
                        <div class="col-md-1">
                        </div>
                        <div class="col-md-5">
                            <div class="pull-right-button">
                                <%--<asp:LinkButton ID="btn_Show" runat="server" CssClass="btn src-btn fa-search" OnClientClick="return getFilter()">
                                </asp:LinkButton>--%>
                                <asp:LinkButton ID="btn_Search" OnClientClick="return Validate_reminderDays();" runat="server" OnClick="btn_Search_Click" CssClass="btn src-btn fa-search">
                                </asp:LinkButton>
                                <asp:LinkButton ID="btn_Clear" runat="server" OnClick="btn_Clear_Click" CssClass="btn clr-btn fa-refresh">
                                </asp:LinkButton>
                            </div>
                        </div>
                        <div class="col-md-1">
                        </div>
                    </div>
                    <%--<div class="row">
                        <div class="col-md-12">
                            <div style="font-size: 10px;">
                                <asp:Label ID="lbl_totEmployee" runat="server" Text="Total license Emp.Count"></asp:Label>
                                :
                                <asp:Label ID="lbltotEmployee" runat="server" Text="" ForeColor="Red"></asp:Label>
                                |
                                <asp:Label ID="Label1" runat="server" Text="Added Emp.Count"></asp:Label>
                                :
                                <asp:Label ID="lblAddedEmpCount" runat="server" Text="" ForeColor="Red"></asp:Label>
                                | 
                                <asp:Label ID="Label3" runat="server" Text="Active Emp.Count"></asp:Label>
                                :
                                <asp:Label ID="lblActiveEmp" runat="server" Text="" ForeColor="Red"></asp:Label>
                                | 
                                <asp:Label ID="Label5" runat="server" Text="In-Active Emp.Count"></asp:Label>
                                :
                                <asp:Label ID="lblInActiveEmp" runat="server" Text="" ForeColor="Red"></asp:Label>
                                | 
                                <asp:Label ID="Label2" runat="server" Text="Balance Emp.Count"></asp:Label>
                                :
                                <asp:Label ID="lblbalanceEmpCount" runat="server" Text="" ForeColor="Red"></asp:Label>
                            </div>
                        </div>
                    </div>--%>
                </div>
            </div>

            <div class="border-table new-space">
                <div class="row form-group">
                    <div class="col-md-10" id="trSaveButton" runat="server">
                        <div class="pull-right-button">
                            <asp:LinkButton ID="btn_Add" runat="server" OnClick="btn_Add_Click" CssClass="btn add-btn fa-plus">
                            </asp:LinkButton>
                            <%--<asp:LinkButton ID="btn_PermanentDelete" runat="server" OnClick="btn_PermanentDelete_Click"
                                OnClientClick="return confirmdelete(this.form);" CssClass="btn del-btn fa-trash-o">
                            </asp:LinkButton>
                            <asp:HyperLink ID="hlbulk" data-toggle="tooltip" data-placement="top" runat="server"
                                CssClass="btn bulk-btn fa-wrench" NavigateUrl="TA_UI_BulkEmployeeConfiguration.aspx"></asp:HyperLink>
                            <asp:LinkButton ID="btn_Delete" CssClass="btn del-btn" runat="server" CausesValidation="False"
                                OnClick="btn_Delete_Click" OnClientClick="return confirmdelete(this.form);" Style="display: none"></asp:LinkButton>
                            <asp:LinkButton ID="btn_Restore" runat="server" CausesValidation="true" CssClass="btn btn-block btn-info fa fa-undo"
                                OnClientClick="return RestoreData();" OnClick="btn_Restore_Click" Style="display: none"></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="btn_Delete_Click" CssClass="btn del-btn fa-close"
                                Style="display: none"></asp:LinkButton>
                            <asp:HiddenField ID="hdnDeletedData" runat="server" />
                            <asp:LinkButton ID="btnCustWindow" runat="server" CssClass="btn save-btn fa-folder-open-o"
                                Text="&nbsp;&nbsp;Field Lists" OnClientClick="ShowHideCustomizationWindow();"></asp:LinkButton>
                            <asp:HyperLink ID="hlLeavebalance" data-toggle="tooltip" data-placement="top" runat="server"
                                CssClass="btn bulk-btn fa-wrench" NavigateUrl="TA_UI_BulkEmployeeConfiguration.aspx"></asp:HyperLink>
                            <asp:HiddenField ID="HiddenField1" runat="server" />--%>
                        </div>
                    </div>
                    <%--<div class="input-group">
                        <div class="input-group-btn">
                            <button type="button" class="btn add-btn dropdown-toggle" data-toggle="dropdown">
                                Export
                    <span class="fa fa-caret-down"></span>
                            </button>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="#" runat="server" onserverclick="btnExport_Click" class="fa-file-excel-o">&nbsp;&nbsp;Excel</a>
                                  
                                </li>
                                <li>
                                    <a href="#" runat="server" onserverclick="btnExport_Click" class="fa-file-pdf-o">&nbsp;&nbsp;PDF</a>
                              
                                </li>
                                <li>
                                    <a href="#" runat="server" onserverclick="btnExport_Click" lass="fa-file-pdf-csv">&nbsp;&nbsp;CSV</a>
                                
                                </li>
                            </ul>
                        </div>
                    </div>--%>
                </div>
                <div class="form-group">
                    <div class="col-md-12" style="overflow: auto; padding-bottom: 10px">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:HiddenField ID="hdnAdvancedplus" runat="server" Value="0" />
                                <asp:HiddenField ID="hdnSelectRow" runat="server" />
                                <asp:HiddenField ID="hdnGetAllid" runat="server" />
                                <dxGridview:ASPxGridView ID="grv_EmpDetails" EnableCallBacks="false" runat="server"
                                    OnHtmlRowCreated="grv_EmpDetails_HtmlRowCreated" ClientInstanceName="grv_EmpDetails"
                                    AutoGenerateColumns="false" Width="100%" KeyFieldName="Employee_Id">

                                    <Columns>
                                        <dxGridview:GridViewDataColumn VisibleIndex="0" HeaderStyle-VerticalAlign="Middle"
                                            Width="30px" HeaderStyle-HorizontalAlign="Center" CellStyle-VerticalAlign="Middle"
                                            CellStyle-HorizontalAlign="Center">
                                            <Settings AllowAutoFilter="false" />
                                            <HeaderTemplate>
                                                <input id="chkSelectAll" runat="server" type="checkbox" onclick="SelectAllOnThisPage(this)" />
                                            </HeaderTemplate>
                                            <DataItemTemplate>
                                                <input id="chkSelect" runat="server" type="checkbox" onclick="SelectOnRow(this)"
                                                    accesskey='<%# Eval("Employee_Id") %>' />
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataColumn>
                                        <dxGridview:GridViewDataTextColumn FieldName="Employee_Id" VisibleIndex="4" Visible="false">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblEID" Text='<%# Eval("Employee_Id") %>' runat="server" Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                            <Settings ShowInFilterControl="False" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Caption="Employee Name" FieldName="Employee_FirstName"
                                            VisibleIndex="1" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblEname" Text='<%# Eval("Employee_FirstName") %>' runat="server"
                                                    Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn FieldName="Employee_Code_Id" VisibleIndex="2"
                                            Width="100px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblEmpCode" Text='<%# Eval("Employee_Code_Id") %>' runat="server"
                                                    Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn FieldName="TitleName" VisibleIndex="3" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lbldesg" Text='<%# Eval("TitleName") %>' runat="server" Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn FieldName="Isdeleted" VisibleIndex="4" Visible="false">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblIsDeleted" runat="server" Text=' <%# Eval("Isdeleted")%>' ForeColor='<%#((Eval("IsDeleted").ToString()=="True")?System.Drawing.ColorTranslator.FromHtml("#FF0033"):System.Drawing.ColorTranslator.FromHtml("black")) %> '></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn FieldName="Employee_Status" VisibleIndex="5" Width="120px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblStatus" runat="server" Text='<%# Bind("Employee_Status") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn FieldName="EmailId" VisibleIndex="6" Width="250px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblEmailId" runat="server" Text='<%# Bind("EmailId") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn FieldName="Mobile_number" VisibleIndex="7" Width="150px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblMobile_Number" runat="server" Text='<%# Bind("Mobile_number") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn FieldName="Contact_Address" VisibleIndex="8" Width="150px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblContact_Address" runat="server" Text='<%# Bind("Contact_Address") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>

                                        <%--<dxGridview:GridViewDataColumn HeaderStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center"
                                            CellStyle-VerticalAlign="Middle" CellStyle-HorizontalAlign="Center" Width="50px">
                                            <Settings AllowAutoFilter="false" />
                                            <DataItemTemplate>
                                                <a data-toggle="modal" title='<%# Session["View"] %>' data-placement="top" data-target="#myModal" onclick="return navi('TA_UI_Master_EmployeeView.aspx?Emp_Id=<%# Eval("Employee_Id")%>')"
                                                    href="#"><span class="btn btn-defalut view-icons"></span></a>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataColumn>--%>
                                        <%--<dxGridview:GridViewDataColumn HeaderStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center"
                                            CellStyle-VerticalAlign="Middle" CellStyle-HorizontalAlign="Center" Width="50px">
                                            <Settings AllowAutoFilter="false" />
                                            <DataItemTemplate>
                                                <asp:LinkButton ID="btnEdit" runat="server" ToolTip='<%# Session["Edit"] %>' data-toggle="tooltip"
                                                    data-placement="top" CssClass="btn btn-defalut edit-icons" Style="color: #3C8DBC"
                                                    OnClick="EditLinkButton_Click" CommandName='<%# Eval("Employee_Id")%>'></asp:LinkButton>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataColumn>--%>
                                       <%-- <dxGridview:GridViewDataColumn HeaderStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center"
                                            CellStyle-VerticalAlign="Middle" CellStyle-HorizontalAlign="Center" Width="50px">
                                            <Settings AllowAutoFilter="false" />
                                            <DataItemTemplate>
                                                <asp:LinkButton ID="btnDelete" runat="server" ToolTip='<%# Session["Delete"] %>' data-toggle="tooltip"
                                                    data-placement="top" CssClass="btn btn-defalut del-icons" Style="color: Red"
                                                    CommandName='<%# Eval("Employee_Id")%>' OnClick="btn_delete_Click_1" OnClientClick="return Delete_Conf(this.id);"></asp:LinkButton>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataColumn>--%>
                                        <dxGridview:GridViewDataColumn HeaderStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Center"
                                            CellStyle-VerticalAlign="Middle" CellStyle-HorizontalAlign="Center" Width="50px">
                                            <Settings AllowAutoFilter="false" />
                                            <DataItemTemplate>
                                                <asp:LinkButton ID="btnreset" runat="server" ToolTip='Reset Password' data-toggle="tooltip"
                                                    data-placement="top" CssClass="btn btn-defalut reset-icons" Style="color: Red"
                                                    CommandName='<%# Eval("Employee_Code_Id")%>' OnClick="btnreset_Click"></asp:LinkButton>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataColumn>

                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Father_name" VisibleIndex="13" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblFatherName" runat="server" Text='<%# Bind("Father_name") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>

                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Mother_name" VisibleIndex="14" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblMotherName" runat="server" Text='<%# Bind("Mother_name") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>

                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="DateofBirth" VisibleIndex="15" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblDOB" runat="server" Text='<%# Bind("DateofBirth") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>

                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="DateofBirth_Record" VisibleIndex="16" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblDOBRec" runat="server" Text='<%# Bind("DateofBirth_Record") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>

                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Blood_Group" VisibleIndex="17" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblBloodGroup" runat="server" Text='<%# Bind("Blood_Group") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Permanent_Address" VisibleIndex="18" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblPermanentAddress" runat="server" Text='<%# Bind("Permanent_Address") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Phone_Number" VisibleIndex="19" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblPhoneNumber" runat="server" Text='<%# Bind("Phone_Number") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Mobile_Number" VisibleIndex="20" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblMobileNumber" runat="server" Text='<%# Bind("Mobile_Number") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <%--<dxGridview:GridViewDataTextColumn Visible="false" FieldName="Gender" VisibleIndex="21" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblGender" runat="server" Text='<%# Bind("Gender") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Marital_status" VisibleIndex="22" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblMaritalStatus" runat="server" Text='<%# Bind("Marital_status") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Personal_mailid" VisibleIndex="23" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblPersonalMailid" runat="server" Text='<%# Bind("Personal_mailid") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Passport_No" VisibleIndex="24" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblPassportNo" runat="server" Text='<%# Bind("Passport_No") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Passport_expirydate" VisibleIndex="25" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblPassportExpiryDate" runat="server" Text='<%# Bind("Passport_expirydate") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Visa_No" VisibleIndex="26" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblVisaNo" runat="server" Text='<%# Bind("Visa_No") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>

                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Visa_expirydate" VisibleIndex="27" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblVisaExpiryDate" runat="server" Text='<%# Bind("Visa_expirydate") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Vehicle_No" VisibleIndex="28" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblVehicleNo" runat="server" Text='<%# Bind("Vehicle_No") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Anniversary_Date" VisibleIndex="29" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblAnniversaryDate" runat="server" Text='<%# Bind("Anniversary_Date") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Date Of Joining" VisibleIndex="30" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblDateOfJoining" runat="server" Text='<%# Bind("DateOfJoining") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Reporting_To" VisibleIndex="31" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblApprover1" runat="server" Text='<%# Bind("Reporting_To") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Leave_Sanc_Authority" VisibleIndex="32" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblApprover2" runat="server" Text='<%# Bind("Leave_Sanc_Authority") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="CompOff_Eligible" VisibleIndex="33" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblCompOffEligible" runat="server" Text='<%# Bind("CompOff_Eligible") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="OT_Eligible" VisibleIndex="34" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblOTEligible" runat="server" Text='<%# Bind("OT_Eligible") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>

                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Report_Exclude" VisibleIndex="35" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblReportExclude" runat="server" Text='<%# Bind("Report_Exclude") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>

                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="InActiveDate" VisibleIndex="36" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblInActiveDate" runat="server" Text='<%# Bind("InActiveDate") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="CustomField1" VisibleIndex="37" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblCustomField1" runat="server" Text='<%# Bind("CustomField1") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="CustomField2" VisibleIndex="38" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblCustomField2" runat="server" Text='<%# Bind("CustomField2") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="CustomField3" VisibleIndex="39" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblCustomField3" runat="server" Text='<%# Bind("CustomField3") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="CustomField4" VisibleIndex="40" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblCustomField4" runat="server" Text='<%# Bind("CustomField4") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>--%>
                                        <%--<dxGridview:GridViewDataTextColumn Visible="false" FieldName="CustomField5" VisibleIndex="41" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblCustomField5" runat="server" Text='<%# Bind("CustomField5") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="Imported" VisibleIndex="42" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblImported" runat="server" Text='<%# Bind("Imported") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="MobileClockIn" VisibleIndex="43" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblMobileClockIn" runat="server" Text='<%# Bind("MobileClockIn") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="DepartmentName" VisibleIndex="44" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblDepartmentName" runat="server" Text='<%# Bind("DepartmentName") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="CategoryName" VisibleIndex="45" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblCategoryName" runat="server" Text='<%# Bind("CategoryName") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="TypeName" VisibleIndex="46" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblTypeName" runat="server" Text='<%# Bind("TypeName") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="CreatedDate" VisibleIndex="47" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblCreatedDate" runat="server" Text='<%# Bind("CreatedDate") %>'></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>
                                        <dxGridview:GridViewDataTextColumn Visible="false" FieldName="groupName" VisibleIndex="48" Width="200px">
                                            <DataItemTemplate>
                                                <asp:Label ID="lblgroupName" runat="server" Text='<%# Bind("groupName") %>' Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"></asp:Label>
                                            </DataItemTemplate>
                                            <HeaderStyle HorizontalAlign="center" Wrap="true" />
                                        </dxGridview:GridViewDataTextColumn>--%>
                                    </Columns>
                                    <ClientSideEvents CustomizationWindowCloseUp="function(s, e) { UpdateCustomizationWindowValue(); }" />
                                    <SettingsPager PageSize="15">
                                        <PageSizeItemSettings Visible="true" ShowAllItem="true" Items="10,20,50,100,200,500" />
                                    </SettingsPager>
                                    <Settings ShowFilterRow="true" ShowFilterRowMenu="true" HorizontalScrollBarMode="Auto" ShowGroupPanel="true" VerticalScrollBarMode="Hidden" VerticalScrollableHeight="400" />
                                    <SettingsText EmptyDataRow="No Records Found" />
                                    <SettingsSearchPanel Visible="true" HighlightResults="true" ShowApplyButton="true" ShowClearButton="true" />
                                    <SettingsCustomizationWindow Enabled="True" />
                                    <SettingsBehavior AutoExpandAllGroups="True" ColumnResizeMode="Control" />
                                    <GroupSummary>
                                        <dxGridview:ASPxSummaryItem FieldName="DepartmentName" SummaryType="Count" />
                                    </GroupSummary>
                                    <SettingsBehavior AllowDragDrop="true" />
                                </dxGridview:ASPxGridView>
                                <dxGridview:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="grv_EmpDetails">
                                    <PageFooter Right="[Page # of Pages #]">
                                    </PageFooter>
                                </dxGridview:ASPxGridViewExporter>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </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="lblnotes1" runat="server" Text="If you want to update any particular details (like email,usergroup,Overtime,Previous year leave balance..etc) for <B>n</B> number of employees through excel means click Bulk configuration button in above, it will assist you how to do that in application."></asp:Label>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>--%>
        <script type="text/javascript">
            var Year = "Select Year";
            var MaxLength = "Maximum length is ";
            function MaxLengthh(maxLength) {
                MaxLength = maxLength;
            }
            function SelectAllOnThisPage(chkSelectAll) {
                var hdnSelectRow = document.getElementById('<%= hdnSelectRow.ClientID %>');
                var hdnSelectAll = document.getElementById('<%= hdnGetAllid.ClientID %>');
                if (chkSelectAll.checked == true) {
                    for (var i = 0; i < grv_EmpDetails.pageRowCount; i++) {
                        if (document.getElementById('ctl00_BodyContentPH_grv_EmpDetails_cell' + (i + grv_EmpDetails.visibleStartIndex) + '_0_chkSelect').disabled == false) {
                            document.getElementById('ctl00_BodyContentPH_grv_EmpDetails_cell' + (i + grv_EmpDetails.visibleStartIndex) + '_0_chkSelect').checked = true;
                            var hdnUserId = document.getElementById('ctl00_BodyContentPH_grv_EmpDetails_cell' + (i + grv_EmpDetails.visibleStartIndex) + '_0_chkSelect').accessKey;
                            var hdnSelectRow = document.getElementById('<%= hdnSelectRow.ClientID %>');
                            var removeId = hdnSelectRow.value.split(",");
                            if (hdnUserId != "" && !Array.contains(removeId, hdnUserId)) {
                                if (hdnSelectRow.value != "")
                                    hdnSelectRow.value += ",";
                                hdnSelectRow.value += hdnUserId;
                            }
                        }
                    }
                }
                else {
                    for (var i = 0; i < grv_EmpDetails.pageRowCount; i++) {
                        document.getElementById('ctl00_BodyContentPH_grv_EmpDetails_cell' + (i + grv_EmpDetails.visibleStartIndex) + '_0_chkSelect').checked = false;
                    }
                    hdnSelectRow.value = '';
                }
            }
            function SelectOnRow(chkOnSelect) {
                var hdnUserId = chkOnSelect.accessKey;
                var hdnSelectRow = document.getElementById('<%= hdnSelectRow.ClientID %>');
                var removeId = hdnSelectRow.value.split(",");
                if (chkOnSelect.checked) {
                    if (hdnUserId != "" && !Array.contains(removeId, hdnUserId)) {
                        if (hdnSelectRow.value != "")
                            hdnSelectRow.value += ",";
                        hdnSelectRow.value += hdnUserId;
                    }
                    var varTotalCheckedCount = 0;
                    var varTotalEnabled = 0;
                    for (var i = 0; i < grv_EmpDetails.pageRowCount; i++) {
                        if (document.getElementById('ctl00_BodyContentPH_grv_EmpDetails_cell' + (i + grv_EmpDetails.visibleStartIndex) + '_0_chkSelect').disabled == false) {
                            varTotalEnabled = varTotalEnabled + 1;
                        }
                        if (document.getElementById('ctl00_BodyContentPH_grv_EmpDetails_cell' + (i + grv_EmpDetails.visibleStartIndex) + '_0_chkSelect').checked)
                            varTotalCheckedCount = varTotalCheckedCount + 1;
                    }
                    if (varTotalCheckedCount == varTotalEnabled)
                        document.getElementById('ctl00_BodyContentPH_grv_EmpDetails_header0_chkSelectAll').checked = true;
                    else
                        document.getElementById('ctl00_BodyContentPH_grv_EmpDetails_header0_chkSelectAll').checked = false;
                }
                else {
                    if (Array.contains(removeId, hdnUserId)) {
                        Array.remove(removeId, hdnUserId);
                    }
                    hdnSelectRow.value = removeId;
                    document.getElementById('ctl00_BodyContentPH_grv_EmpDetails_header0_chkSelectAll').checked = false;
                }
            }
            var Norecordsavailable = "No records available ";
            var AreyousuretoRestore = "Are you sure to Restore? ";
            var Selecteddataisnotindeletedstatus = "Selected data is not in deleted status ";
            var Selectdatatorestore = "Select data to restore ";
            var Nodeletedrecordsavailable = "No deleted records available ";
            function RestoreAlert(norecordsavailable, areyousuretoRestore, selecteddataisnotindeletedstatus, selectdatatorestore, nodeletedrecordsavailable) {
                Norecordsavailable = norecordsavailable;
                AreyousuretoRestore = areyousuretoRestore;
                Selecteddataisnotindeletedstatus = selecteddataisnotindeletedstatus;
                Selectdatatorestore = selectdatatorestore;
                Nodeletedrecordsavailable = nodeletedrecordsavailable;
            }
            function RestoreData() {
                var rowscount = grv_EmpDetails.pageRowCount;
                if (rowscount == 0) {
                    alert(Norecordsavailable);
                    return false;
                }
                var hdnSelectRow = document.getElementById('<%= hdnSelectRow.ClientID %>');
             <%--   //var DeleteDataRow = document.getElementById('<%= hdnDeletedData.ClientID %>');--%>
                if (DeleteDataRow.value != '') {
                    if (hdnSelectRow.value != '') {
                        var selectedRow = new Array();
                        selectedRow = hdnSelectRow.value.split(",");
                        var deletedRow = new Array();
                        deletedRow = DeleteDataRow.value.split(",");
                        var Status = false;
                        for (var i = 0; i < selectedRow.length; i++) {
                            if (Array.contains(deletedRow, selectedRow[i])) {
                                Status = true;
                            }
                        }
                        if (Status == true) {
                            return confirm(AreyousuretoRestore);
                        }
                        else {
                            alert(Selecteddataisnotindeletedstatus);
                            return false;
                        }
                    }
                    else {
                        alert(Selectdatatorestore);
                        return false;
                    }
                }
                else {
                    if (hdnSelectRow.value == '') {
                        alert(Nodeletedrecordsavailable);
                        return false;
                    }
                    else {
                        alert(Selecteddataisnotindeletedstatus);
                        return false;
                    }
                }
            }
        </script>
    </div>
</asp:Content>

