<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="True" CodeBehind="PAY_ACCRUAL_PLANS.aspx.cs"
    Inherits="HRMS.PAY_ACCRUAL_PLANS" Title="Cloud HR - Accural Plan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="main_pnl" runat="server">
        <div class="row">
            <div class="col-lg-12">
                <section class="panel">
<header class="panel-heading" style="padding-bottom:30px">
                           <span class="label label-primary">Accrual Plan</span>
<div class="pull-right">
<asp:Button ID="btnSave" class="btn btn-info" runat="server" Text="Save"  onclick="btnSave_Click" ValidationGroup="save" ></asp:Button>
<a href="#" id="aCancel" runat="server" class="btn btn-info">Back</a>

</div>

</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-11 col-md-offset-1">
           <label class="control-label col-md-2">Business Group</label>
             <div class="col-md-4">
              <asp:DropDownList ID="ddl_BUSINESS_GROUP_ID" runat="server" CssClass="form-control select2"></asp:DropDownList>
               <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_ddl_BUSINESS_GROUP_ID" controltovalidate="ddl_BUSINESS_GROUP_ID" errormessage="Business Group is Required!" />
             </div>
           </div>
        </div>



        <div class="row">
          <div class="col-md-11 col-md-offset-1">
              <label class="control-label col-md-2">Plan Name</label>
              <div class="col-md-3">
                <asp:TextBox ID="txt_ACCRUAL_PLAN_NAME" runat="server" CssClass="form-control"></asp:TextBox>
                <asp:HiddenField ID="hid_ACCRUAL_PLAN_ID" runat="server"></asp:HiddenField>
                  <asp:HiddenField ID="hid_elem" runat="server" />
                <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_txt_ACCRUAL_PLAN_NAME" controltovalidate="txt_ACCRUAL_PLAN_NAME" errormessage="Plan Name is Required!" />
              </div>
             <label class="control-label col-md-2">Accrual Start</label>
              <div class="col-md-3">
                <asp:DropDownList ID="ddl_txt_ACCRUAL_START" runat="server" CssClass="form-control">
                    <asp:ListItem Value="">----Select----</asp:ListItem>
                    <asp:ListItem Value="B">Beginning of Year</asp:ListItem>
                    <asp:ListItem Value="H">Hire Date</asp:ListItem>
                    <asp:ListItem Value="S">Six Months After Hire</asp:ListItem>
                  </asp:DropDownList>
              </div>
           </div>
        </div>
        <div class="row">
          <div class="col-md-11 col-md-offset-1">
              <label class="control-label col-md-2">Description</label>
              <div class="col-md-8">
                 <asp:TextBox ID="txt_DESCRIPTION" runat="server"  CssClass="form-control"></asp:TextBox>
                 <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_txt_DESCRIPTION" controltovalidate="txt_DESCRIPTION" errormessage="Description is Required!" />
              </div>
          </div>
          

        </div>
        
        
         <div class="row">
           <div class="col-md-11 col-md-offset-1">
            <h5>Absence Information</h5>
            <hr />
              <label class="control-label col-md-2">Element Name</label>
              <div class="col-md-3">
               <asp:DropDownList ID="ddl_ACCRUAL_PLAN_ELEMENT_TYPE_ID" runat="server" CssClass="form-control select2"></asp:DropDownList>
              </div>
             <label class="control-label col-md-2">Units</label>
              <div class="col-md-3">
              <asp:DropDownList ID="ddl_PTO_INPUT_VALUE_ID" runat="server" CssClass="form-control select2"></asp:DropDownList>
              </div>
           </div>
         </div>


     <div class="row">
          <div class="col-md-11 col-md-offset-1">
              <label class="control-label col-md-2">Start Date</label>
              <div class="col-md-3">
                 <asp:TextBox ID="txt_date" runat="server"  CssClass="form-control datetime"></asp:TextBox>
                 <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="RequiredFieldValidator1" controltovalidate="txt_date" errormessage="Date is Required!" />
              </div>
          </div>
          

        </div>

         <br>
         <div class="row" runat="server" visible="false">
            <div class="col-md-4 col-md-offset-3">
            <h5>Payroll Balance Reset Date</h5>
            <hr />
             <asp:RadioButtonList ID="rdo_BALANCE_ELEMENT_TYPE_ID" CssClass="radio" runat="server" RepeatDirection="Vertical" ></asp:RadioButtonList>
            </div>

         </div>
         <br />
         <br />

         <div class="row">
            <div class="col-md-3 col-md-offset-3">
            <a href="#" id="btn_accural_bands" runat="server" class="btn btn-block btn-info">Accrual Bands</a>

            </div>
            <div class="col-md-3">
            <a href="#" id="btn_calc_rule" runat="server" class="btn btn-block btn-info">Net Calculation Rule</a>

            </div>
         </div>
        
        

<div class="form-group">
<asp:Repeater ID="add_info" runat="server">
<HeaderTemplate> <header class="panel-heading">Additional Information</header><br /></HeaderTemplate>
<ItemTemplate>
<div class="form-group">
<div class="col-lg-1"></div>
<asp:Label ID="r_lbl" runat="server" class="col-lg-2 col-sm-2 control-label" Text='<%# Eval("PROMPT") %>'></asp:Label>
<div class="col-lg-4">
<asp:TextBox ID="txt_r_value" runat="server"  placeholder='<%# Eval("PROMPT") %>' Text='<%# Eval("value") %>' CssClass="form-control"></asp:TextBox>
<asp:HiddenField ID="hid_field_name" runat="server" Value='<%# Eval("col_name") %>' ></asp:HiddenField>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
</div>



</div>
</section>
            </div>
        </div>
    </asp:Panel>
    <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>
