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

<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">HR Segment Setup
 <div class="pull-right">
                        <asp:Button ID="Button1" 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-lg-1"></div>
<label for="inputPassword1" class="col-lg-2 col-sm-2 control-label"></label>
<div class="col-lg-4">
<asp:HiddenField ID="hid_SEG_ID" runat="server"></asp:HiddenField>
</div>
</div>

<div class="form-group" style="padding-top:10px">
<div class="col-lg-1"></div>
<label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Code</label>
<div class="col-lg-4">
<asp:TextBox ID="txt_SEG_CODE" runat="server" CssClass="form-control"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_SEG_CODE" ControlToValidate="txt_SEG_CODE" ErrorMessage="Code is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
</div>
</div>

<div class="form-group">
<div class="col-lg-1"></div>
<label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Name</label>
<div class="col-lg-4">
<asp:TextBox ID="txt_SEG_NAME" runat="server" CssClass="form-control"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_SEG_NAME" ControlToValidate="txt_SEG_NAME" ErrorMessage="Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
</div>
</div>

<div class="form-group">
<div class="col-lg-1"></div>
<label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Window Prompt</label>
<div class="col-lg-4">
<asp:TextBox ID="txt_SEG_PROMPT" runat="server" CssClass="form-control"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_txt_SEG_PROMPT" ControlToValidate="txt_SEG_PROMPT" ErrorMessage="Window Prompt is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
</div>
</div>

<div class="form-group">
<div class="col-lg-1"></div>
<label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Column</label>
<div class="col-lg-4">
<asp:DropDownList ID="ddl_SEG_COLUMN" runat="server" CssClass="form-control"></asp:DropDownList><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_SEG_COLUMN" ControlToValidate="ddl_SEG_COLUMN" ErrorMessage="Column is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
</div>
</div>

<div class="form-group">
<div class="col-lg-1"></div>
<label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Value  Set</label>
<div class="col-lg-4">
<asp:DropDownList ID="ddl_SEG_VALUE_SET" runat="server" CssClass="form-control"></asp:DropDownList><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator_ddl_SEG_VALUE_SET" ControlToValidate="ddl_SEG_VALUE_SET" ErrorMessage="Value  Set is required. " ValidationGroup="save" setfocusonerror="true"></asp:RequiredFieldValidator>
</div>
</div>

<div class="form-group">
<div class="col-lg-1"></div>
<label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Enable</label>
<div class="col-lg-4">
<asp:CheckBox runat="server" ID ="chk_enable" CssClass="checkbox" Text=""/>

</div>
</div>

<div class="form-group">
<div class="col-lg-1"></div>
<label for="inputPassword1" class="col-lg-2 col-sm-2 control-label">Display</label>
<div class="col-lg-4">
<asp:CheckBox runat="server" ID ="chk_display" CssClass="checkbox" Text=""/>
</div>
</div>

 <div class="row">
   <div class="col-md-2 col-md-offset-3">
    <a href="#" data-target="#QualVal" data-toggle="modal" id="btn_QualVal"   runat="server" class="btn btn-block btn-default">Qualifier</a>
   </div>
  </div>




 <div class="modal fade" id="QualVal" role="dialog">
   <div class="modal-dialog modal-dialog-center" style="width:70%;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Segment Qualifier :</h4>
      </div>
      <div class="modal-body">
        
             <asp:GridView ID="grd_screenName" runat="server"  AutoGenerateColumns="False" cellpadding="0" border="0" class="table table-bordered table-hover" Width="100%">
              <Columns>
                <asp:BoundField HeaderText="Name" DataField="Name" />
                <asp:BoundField HeaderText="Description" DataField="Description" />

                <asp:TemplateField ItemStyle-Width="6%" HeaderText="Enable">
                    <ItemTemplate>
                        <asp:CheckBox ID="chk_enable" runat="server" Checked='<%# (Eval("IsEnable").ToString() == "Y" ? true : false) %>' />
                   <asp:HiddenField ID="hid_screen" runat="server" Value='<%# Eval("Id") %>' ></asp:HiddenField>

                     </ItemTemplate>

<ItemStyle Width="6%"></ItemStyle>
                </asp:TemplateField>
            </Columns>
             
             </asp:GridView>
         
      </div>
      <div class="modal-footer">
        <asp:Button ID="btn_save_qual" class="btn btn-info" runat="server" Text="Save"  OnClick="btn_save_qual_Click"></asp:Button>
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>
   </div>
</div>


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