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

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Panel ID="main_pnl" runat="server">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
               <header class="panel-heading">Monthly Payroll Summary Report</header>
                <div class="panel-body">
                          <div class="span6">
                                <div id="divMessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <i class="icon-check-sign"></i>
                                    <asp:Label ID="lblMessage" class="msg" runat="server" Text="" ></asp:Label>
                                </div>
                                <div class="span6">
                                    <div id="diverrorMessage" runat="server" visible="false" class="alert alert-danger alert-dismissable">
                                         <i class="icon-check-sign"></i>
                                        <asp:Label ID="lblerrorMessage" class="msg" runat="server" Text="" ></asp:Label>
                                    </div>
                                </div>
                           </div>

                              <div class ="row">
                                   <div class="col-md-6 col-md-offset-2">
                                      <label class="control-label col-md-4">Person</label>
                                      <asp:HiddenField ID="hid_person_id" runat="server"></asp:HiddenField>
                                      <asp:HiddenField ID="hid_assignment_id" runat="server"></asp:HiddenField>

                                       <div class="input-group">
                                         <asp:TextBox ID="txt_person_name" CssClass="form-control " runat="server" ></asp:TextBox>
                                           <span class="input-group-btn">
                                              <button id="btn_lov_person" type="button" runat="server" onserverclick="btn_lov_person_Click" class="btn btn-white">
                                               <i class="fa fa-search"></i></button>
                                           </span>
                                        </div>
                                   </div>
                                 </div>
                              <div class ="row">
                                   <div class="col-md-6 col-md-offset-2">
                                      <label class="control-label col-md-4">Period</label>
                                      <asp:HiddenField ID="hid_payroll_id" runat="server"></asp:HiddenField>
                                      <asp:HiddenField ID="hid_period_id" runat="server"></asp:HiddenField>
                                      <asp:HiddenField ID="hid_period_start_date" runat="server"></asp:HiddenField>
                                      <asp:HiddenField ID="hid_period_end_date" runat="server"></asp:HiddenField>
                                      <asp:HiddenField ID="hid_payroll" runat="server"></asp:HiddenField>
                                      
                                       <div class="input-group">
                                         <asp:TextBox ID="txt_period_name" CssClass="form-control " runat="server" ></asp:TextBox>
                                         <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="run" runat="server" id="Req_txt_period_name" controltovalidate="txt_period_name" errormessage="Period Name is Required!" />
                                    <%--<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_period_name" ControlToValidate="txt_period_name" ErrorMessage="Period is required. " ValidationGroup="Run" setfocusonerror="true"></asp:RequiredFieldValidator>--%>
                                           
                                           <span class="input-group-btn">
                                              <button id="btn_lov_period" type="button" runat="server" onserverclick="btn_lov_period_Click" class="btn btn-white">
                                               <i class="fa fa-search"></i></button>
                                           </span>
                                        </div>
                                         
                                   </div>
                                     
                                   </div>


                                     <div class ="row">
                                   <div class="col-md-6 col-md-offset-2">
                                      <label class="control-label col-md-4">Payroll</label>
                                      <asp:HiddenField ID="hid_pay_roll" runat="server"></asp:HiddenField>
                                      
                                       <div class="input-group">
                                         <asp:TextBox ID="txt_pay_roll" CssClass="form-control " runat="server" ></asp:TextBox>
                                          <asp:TextBox ID="txt_multi_payroll" CssClass="form-control " runat="server" Visible="false" ></asp:TextBox>
                                           <span class="input-group-btn">
                                              <button id="btn_payroll" type="button" runat="server" onserverclick="btn_payroll_Click" class="btn btn-white">
                                               <i class="fa fa-search"></i></button>
                                           </span>
                                        </div>
                                   </div>
                                   <asp:Button ID="btn_run" runat="server" Text="Run Report" ValidationGroup="run"
                                           CssClass="btn btn-default" onclick="btn_run_Click"></asp:Button>

                                   </div>






                           <div class="row">
                              <div class="col-md-11">

                             
                                 <br />
                                 <br />
                                 <div class="row">
                                 <rsweb:ReportViewer ID="ReportViewer1" runat="server" BackColor="#E2E2E2" 
                                   ShowPrintButton="False" Width="100%"></rsweb:ReportViewer>
                                 </div>
                              </div>
                           </div>



                </div>
            
             
            </section>
            </div>
        </div>
    </asp:Panel>
</asp:Content>
