<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="UploadAtt.aspx.cs" Inherits="HRMS.HR.OverTimeRate_Setup.UploadAtt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main_panel">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                    <header class="panel-heading">
                        Upload Excel Data
                          <div class="pull-right">
                                <asp:Button ID="btn_upld" runat="server" CssClass="btn btn-info" Text="Get" OnClick="btn_upld_Click" />
                              <asp:Button ID="btn_save" runat="server" ValidationGroup="upd" CssClass="btn btn-info" Text="Upload" OnClick="btn_save_Click" />
                            </div>
                    </header>

                    <div class="panel-body">
                        <div class="row">
                            <label class="control-label col-md-2">Element</label>
                            <div class="col-md-4">
                                      <asp:HiddenField ID="hid_elem_id" runat="server"></asp:HiddenField>
                                      <asp:HiddenField ID="hid_elem_lnk_id" runat="server"></asp:HiddenField>
                                       <div class="input-group">
                                         <asp:TextBox ID="txt_elem_name" CssClass="form-control" runat="server" ></asp:TextBox>

                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_elem_name" ControlToValidate="txt_elem_name" ErrorMessage="Element is required. " ValidationGroup="upd" setfocusonerror="true"></asp:RequiredFieldValidator>
                                           
                                           <span class="input-group-btn">
                                              <button id="btn_lov_elem" type="button" runat="server" onserverclick="btn_lov_elem_ServerClick" class="btn btn-white">
                                               <i class="fa fa-search"></i></button>
                                           </span>
                                        </div>
                                   </div>


                        </div>

                        <div class="row">
                            <label class="control-label col-md-2">Period Start Date</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_dt_frm" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txt_dt_frm" ErrorMessage="Period Start Date is required. " ValidationGroup="upd" setfocusonerror="true"></asp:RequiredFieldValidator>
                            </div>

                            <label class="control-label col-md-2">Period End Date</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_dt_to" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="txt_dt_to" ErrorMessage="Period End Date is required. " ValidationGroup="upd" setfocusonerror="true"></asp:RequiredFieldValidator>
                            </div>
                        </div>


                        <div class="row">.
                            <label class="control-label col-md-2">Upload File</label>
                            <div class="col-md-4">
                                <asp:FileUpload ID="FileUpload1" runat="server" />
                            </div>
                          
                        </div>


                        <hr />


                          <asp:GridView ID="grd" runat="server" AutoGenerateColumns="false"  cellpadding="0" border="0" class="display">
                             <Columns>
                                 <asp:TemplateField>
                                     <ItemTemplate>
                                         <asp:CheckBox ID="chk" runat="server" Checked="true" />
                                     </ItemTemplate>
                                 </asp:TemplateField>
                                 <asp:BoundField DataField="ID" HeaderText="ID" />
                                 <asp:BoundField DataField="Name" HeaderText="Name" />
                                 <asp:BoundField DataField="OverTime" HeaderText="Over Time" />
                             </Columns>
            <%-- Mandatory--%>
            <RowStyle CssClass="rowStyle"/>
           <%-- Mandatory--%>
            <HeaderStyle CssClass="headerStyle" />
           <%-- optional--%>
           <FooterStyle  CssClass="footerStyle"  />
        </asp:GridView>
            <script src="/ThemeScrips/Datatables/media/js/jquery.js" type="text/javascript"></script>
            <script src="/ThemeScrips/Datatables/media/js/jquery.dataTables.min.js" type="text/javascript"></script>
            <script src="/ThemeScrips/Datatables/media/js/jquery.dataTables.js" type="text/javascript"></script>
            <script src="/ThemeScrips/Datatables/media/js/GridviewFix.js" type="text/javascript"></script>
            <script type="text/javascript">
                //without passing class names.
                $("#ContentPlaceHolder1_grd").GridviewFix().dataTable();
                //Passing class names
            </script>


                    </div>
                </section>
            </div>
        </div>
    </div>
    <script src="../../ThemeScrips/jquery.min.js"></script>
    <link href="../../ThemeScrips/select2.min.css"
        rel="stylesheet" />
    <script src="../../ThemeScrips/select2.min.js"></script>
    <script>
        $('.select2').select2();
    </script>
</asp:Content>
