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

<%@ 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:UpdatePanel runat="server" ID="upMain" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>

    <asp:Panel ID="main_pnl" runat ="server" >
   
     <div class="row">
        <div class="col-md-12">
            <section class="panel">
               <header class="panel-heading" style="padding-bottom:30px">
                           <span class="label label-primary">Monthly PaySlip Report</span>


               </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">
                                      <asp:HiddenField ID="hid_person_id" runat="server"></asp:HiddenField>
                                      <asp:HiddenField ID="hid_assignment_id" runat="server"></asp:HiddenField>

                                      
                                   </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>
                                      
                                       <div class="input-group">
                                         <asp:TextBox ID="txt_period_name" CssClass="form-control " runat="server" ></asp:TextBox>
                                    <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>
                                     <asp:Button ID="btn_run" runat="server" Text="Run Report"  onclick="btn_run_Click" ValidationGroup="Run"
                                           CssClass="btn btn-default" ></asp:Button>
                                   </div>
                                 <br />
                                 <br />
                           <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>

   </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btn_run" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>

</asp:Content>
