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

<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-md-12">
                <section class="panel">
                         <header class="panel-heading" style="padding-bottom:30px">
                           <span class="label label-primary">Period Date</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="form-group">
                                          <div class="col-md-1"></div>
                                          <label for="inputPassword1" class="col-md-2 col-sm-2 control-label">Period</label>
                                         <div class="col-md-4">
                                            <asp:HiddenField ID="hid_TIME_PERIOD_ID" runat="server"></asp:HiddenField>
                                            <asp:HiddenField ID="hid_PAYROLL_ID" runat="server"></asp:HiddenField>
                                            <asp:TextBox ID="txt_PERIOD_NAME" runat="server"  CssClass="form-control"></asp:TextBox>
                                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_PERIOD_NAME" ControlToValidate="txt_PERIOD_NAME" ErrorMessage="Period is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                          </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-md-1"></div>
                                        <label for="inputPassword1" class="col-md-2 col-sm-2 control-label">Description</label>
                                        <div class="col-md-5">
                                            <asp:TextBox ID="txt_DESCRIPTION" runat="server" CssClass="form-control"></asp:TextBox>
                                        </div>
                                    </div>


                                    <div class="form-group">
                                        <div class="col-md-1"></div>
                                            <label for="inputPassword1" class="col-md-2 col-sm-2 control-label">Start Date</label>
                                            <div class="col-md-3">
                                                <asp:TextBox ID="txt_START_DATE" runat="server"  CssClass="form-control datetime"></asp:TextBox>
                                            </div>
                                    </div>


                                    <div class="form-group">
                                        <div class="col-md-1"></div>
                                            <label for="inputPassword1" class="col-md-2 col-sm-2 control-label">End Date</label>
                                            <div class="col-md-3">
                                                <asp:TextBox ID="txt_END_DATE" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                            </div>
                                    </div>

                                    <div class="form-group">
                                    <div class="col-md-1"></div>
                                    <label for="inputPassword1" class="col-md-2 col-sm-2 control-label">Status</label>
                                    <div class="col-md-3">
                                    <asp:DropDownList ID="ddl_STATUS" runat="server" CssClass="form-control">
                                        <asp:ListItem Value="">-----Select----</asp:ListItem>
                                        <asp:ListItem Value="O">Open</asp:ListItem>
                                        <asp:ListItem Value="C">Closed</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_STATUS" ControlToValidate="ddl_STATUS" ErrorMessage="Status is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
                                    </div>
                                    </div>
                                    <div class="row">
                                          <div class="col-md-8 col-md-offset-2">
                                            <h5>Default Dates</h5>
                                            <hr />
                                                <div class="row">
                                                  <div class="col-md-12 col-md-offset-1">
                                                    <label class="control-label col-md-3">Check</label>
                                                    <div class="col-md-4">
                                                        <asp:TextBox ID="txt_REGULAR_PAYMENT_DATE" runat="server"  CssClass="form-control datetime" ></asp:TextBox>
                                                    </div>   
                                                  </div>
                                                </div>
                                                <div class="row">
                                                  <div class="col-md-12 col-md-offset-1">
                                                    <label class="control-label col-md-3">Scheduled Run</label>
                                                    <div class="col-md-4">
                                                        <asp:TextBox ID="txt_DEFAULT_DD_DATE" runat="server"  CssClass="form-control datetime"></asp:TextBox>
                                                    </div>   
                                                  </div>
                                                </div>
                                      
                                                <div class="row">
                                                  <div class="col-md-12 col-md-offset-1">
                                                    <label class="control-label col-md-3">Cut off</label>
                                                    <div class="col-md-4">
                                                       <asp:TextBox ID="txt_CUT_OFF_DATE" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                                    </div>   
                                                  </div>
                                                </div>
                                                <div class="row">
                                                  <div class="col-md-12 col-md-offset-1">
                                                    <label class="control-label col-md-3">Payslip view</label>
                                                    <div class="col-md-4">
                                                       <asp:TextBox ID="txt_PAYSLIP_VIEW_DATE" runat="server" CssClass="form-control datetime"></asp:TextBox>
                                                    
                                                    </div>   
                                                  </div>
                                                </div>
                                      
                                          </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-md-1"></div>
<asp:Label ID="r_lbl" runat="server" class="col-md-2 col-sm-2 control-label" Text='<%# Eval("PROMPT") %>'></asp:Label>
<div class="col-md-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>
</asp:Content>
