<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="Reports_GetEmailIds, App_Web_moruchtp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../UserControls/TA_uc_OrgLevelFilter_Updated.ascx" TagName="TA_uc_OrgLevel_Filter"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" runat="server" id="Report_htmlGetEmail">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>TimeCheck</title>
    <link id="stylebootstrap" rel="stylesheet" runat="server" type="text/css" />
    <link id="stylefontawesome" rel="stylesheet" runat="server" type="text/css" />
    <link id="styleAdminLTE" rel="stylesheet" runat="server" type="text/css" />
    <link id="stylecustom" rel="stylesheet" runat="server" type="text/css" />
    <link id="stylefonts" rel="stylesheet" runat="server" type="text/css" />
    <link id="styleselect2" rel="stylesheet" runat="server" type="text/css" />
    <link id="styleGrid" rel="stylesheet" runat="server" type="text/css" />
    <link id="styleAutocomp" rel="stylesheet" runat="server" type="text/css" />

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

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

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

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

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

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

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

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

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

    <script type="text/javascript">
        function GetEmailList(Type) {
            //alert(Type);
            var EmailList;
            if (Type == "CC") {
                EmailList = window.opener.parent.aspnetForm['ctl00_BodyContentPH_txtApprovalCC'].value;
                document.forms['aspnetForm'].elements['txtAddCC'].value = EmailList;
            }
            else {
                EmailList = window.opener.parent.aspnetForm['ctl00_BodyContentPH_txtApprovalTO'].value;
                document.forms['aspnetForm'].elements['txtAddCC'].value = EmailList;
            }
        }
    </script>

</head>
<body oncontextmenu="return false" style="overflow: auto">
    <form id="aspnetForm" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div>
            <div class="content" style="overflow: auto">
                <div class="exda-table">
                    <h6>

                        <span style="color: Red">|</span>
                        <asp:Label ID="lbl_IndicatesMandatoryFields" runat="server" Text="Mandatory"></asp:Label>
                        (1 No.)</h6>
                </div>
                <div class="emp-filter">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-horizontal">
                                <div class="row form-group">
                                    <div class="col-md-2">
                                        <asp:Label ID="lblEmployeeName" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox ID="txtEmployeeName" runat="server" CssClass="form-control"></asp:TextBox>
                                        <cc1:AutoCompleteExtender ID="acEmployeeName" runat="server" CompletionSetCount="10"
                                            CompletionListItemCssClass="item" CompletionListHighlightedItemCssClass="AutocompleteCSS"
                                            CompletionInterval="10" Enabled="true" MinimumPrefixLength="1" TargetControlID="txtEmployeeName"
                                            ServicePath="../WebServices/AutoCompleteExtender.asmx" ServiceMethod="GetEmployeeNameForReports"
                                            CompletionListCssClass="autocomplete_completionListElement" FirstRowSelected="true">
                                        </cc1:AutoCompleteExtender>
                                    </div>
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-2">
                                        <asp:Label ID="lblEmployeeCode" runat="server"></asp:Label>
                                    </div>
                                    <div class="col-md-3">
                                        <asp:TextBox ID="txtEmployeeCode" runat="server" CssClass="form-control"></asp:TextBox>
                                        <cc1:AutoCompleteExtender ID="acEmployeeId" runat="server" CompletionSetCount="10"
                                            CompletionListItemCssClass="item" CompletionListHighlightedItemCssClass="AutocompleteCSS"
                                            CompletionInterval="10" Enabled="true" MinimumPrefixLength="1" TargetControlID="txtEmployeeCode"
                                            ServicePath="../WebServices/AutoCompleteExtender.asmx" ServiceMethod="GetEmployeeIdForReports"
                                            CompletionListCssClass="autocomplete_completionListElement" FirstRowSelected="true">
                                        </cc1:AutoCompleteExtender>
                                    </div>
                                </div>
                                <asp:PlaceHolder ID="PlaceHolder1" runat="server">
                                    <uc1:TA_uc_OrgLevel_Filter ID="TA_uc_OrgLevel_Filter1" runat="server" />
                                </asp:PlaceHolder>
                                <div class="row form-group">
                                    <div class="col-md-5">
                                        <asp:Label ID="lblError" runat="server" Visible="true" Style="color: Red;"></asp:Label>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="pull-right-button">
                                            <asp:LinkButton ID="btn_Go" CssClass="btn save-btn fa-angle-right" runat="server"
                                                CausesValidation="False" OnClick="btn_Go_Click" />
                                        </div>
                                    </div>
                                </div>
                                <div id="Grid" runat="server">
                                    <div class="row form-group">
                                        <div class="col-md-11">
                                            <asp:GridView ID="grv_Employee" Width="100%" Visible="false" runat="server" AllowPaging="True"
                                                CssClass="table das-table1" AutoGenerateColumns="False" PageSize="10" OnPageIndexChanging="grv_Employee_PageIndexChanging"
                                                OnRowDataBound="grv_Employee_RowDataBound">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <HeaderTemplate>
                                                            <asp:Label ID="Label1" Text="All" runat="server"></asp:Label>
                                                            <asp:CheckBox ID="checkall" runat="server" Text="" AutoPostBack="true" OnCheckedChanged="grv_CheckAll_CheckedChanged"
                                                                TextAlign="Right" />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="deletethis" runat="server" AutoPostBack="true" OnCheckedChanged="grv_Check_CheckedChanged"></asp:CheckBox>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Right" Width="6%" />
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Employee Id">
                                                        <ItemTemplate>
                                                            &nbsp;&nbsp;
                                                            <asp:Label ID="lbl_EmpId" Text='<%# Eval("Employee_Code_Id")%>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Employee Name">
                                                        <ItemTemplate>
                                                            &nbsp;&nbsp;
                                                            <asp:Label ID="lbl_EmpName" Text='<%# Eval("Employee Name")%>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Email Id">
                                                        <ItemTemplate>
                                                            &nbsp;&nbsp;
                                                            <asp:Label ID="lbl_EmailId" Text='<%# Eval("EmailId")%>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <EmptyDataTemplate>
                                                    No Records Found
                                                </EmptyDataTemplate>
                                                <HeaderStyle CssClass="empheader" />
                                                <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 class="row form-group">
                                        <div class="col-md-11">
                                            <div class="pull-right-button">
                                                <asp:LinkButton ID="btnAddCC" runat="server" CssClass="btn add-btn fa-plus" Text=" Add CC"
                                                    OnClick="btnAddCC_Click" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row form-group" id="trAddCC">
                                        <div class="col-md-11">
                                            <asp:TextBox ID="txtAddCC" runat="server" TextMode="MultiLine" CssClass="form-control"
                                                Style="resize: none;"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-11">
                                            <div class="pull-right-button">
                                                <asp:LinkButton ID="btn_Ok" CssClass="btn save-btn fa-check-circle-o" runat="server"
                                                    CausesValidation="False" OnClick="btn_Ok_Click" />
                                                <asp:Button ID="btn_Back" runat="server" CssClass="but" Visible="false" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
