<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Variables.aspx.cs" Inherits="HRMS.Purcahsing.Variables" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main-panel">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                    <header class="panel-heading">
                     Contract Variables
                        <div class="pull-right">
                            <asp:button text="Save" CssClass="btn btn-info" ID="btn_save" Width="120px"  ValidationGroup="save"
                                runat="server" onclick="btn_save_Click"/>
                            <asp:button text="Back" CssClass="btn btn-info" ID="btn_cancel" 
                                runat="server" onclick="btn_cancel_Click"/>
                        </div>
                    </header>

                    <div class="panel-body">
                        <div class="span6">
                                <div id="divmessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <asp:label text="" ID="lbl_msg" CssClass="msg" runat="server"></asp:label>
                                </div>
                            </div>

                            <div class="span6">
                                <div id="diverrmessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <asp:label text="" id="lbl_err_msg" CssClass="msg" runat="server"></asp:label>
                                </div>
                            </div>


                            <div class="row" style="padding-top:10px">
                                
                                <asp:HiddenField ID="hid_VeriableID" runat="server" />
                                <asp:HiddenField ID="hid_valueset" runat="server" />

                            <label class="col-md-2 control-label">Variable Name</label>

                                <div class="col-md-3">
                                   
                                    <asp:TextBox ID="txt_Name" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="req_txt_Name" controltovalidate="txt_Name" errormessage="Name is Required!" />
                               
                                    </div>
                          <label class="col-md-2 control-label"></label>
                                <div class="col-md-3 text-left" >
                              <span class="checkbox"><input id="chk_Externalparty" runat="server" type="checkbox" name="ctl00$ContentPlaceHolder1$Externalparty" />
                                   <label class="col-md-1 control-label" ></label>External Party Updateable</span>                   
                               
                                </div>
                            </div>
                            <div class="row" style="padding-top:10px"> 
                                
                             <label class="control-label col-md-2">Description</label>
                                <div class="col-md-3">
                                     <asp:TextBox ID="txt_desc" runat="server" CssClass="form-control"></asp:TextBox>
                                 
                                </div>                  
                               
                                
                            <label class="col-md-2 control-label">Source</label>
                                <div class="col-md-3">
                                     <asp:DropDownList ID="ddl_Source" runat="server" CssClass="form-control">
                                        <asp:ListItem Selected="True" Text="--- Select ---">
                                            </asp:ListItem>
                                            <asp:ListItem Text="Normal" Value="1"></asp:ListItem>
                                         <asp:ListItem Text="PL/Sql Procedures" Value="2"></asp:ListItem>
                                        
                                    </asp:DropDownList>
                                       
                                    </div>   
                                      </div>   
                            <div class="row" style="padding-top:10px">       
                        <label class="col-md-2 control-label">Value Set</label>
                                <div class="col-md-3">
                                    <div class="input-group">
                                    <asp:TextBox ID="txt_Valueset" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_Valueset" controltovalidate="txt_Valueset" errormessage="Value Set is Required!" />
                               <span class="input-group-btn">
                                    <button id="btn_lov_Valueset" type="button" runat="server" class="btn btn-white" onserverclick="btn_lov_Valueset_Click"><i class="fa fa-search"></i></button>
                                    </span>
                                    </div>
                                    </div>
                              
                             <label class="control-label col-md-2">Procedures Name</label>
                                <div class="col-md-3">
                                 <asp:TextBox ID="txt_ProceduresName" runat="server" CssClass="form-control "></asp:TextBox>  
                                </div>                  
                               
                              
                            </div>
                                <div class="row" style="padding-top:10px">
                                 <label class="col-md-2 control-label">Intent</label>
                                <div class="col-md-3">
                                     <asp:DropDownList ID="ddl_Rlevel" runat="server" CssClass="form-control">
                                        <asp:ListItem Selected="True" Text="--- Select ---">
                                            </asp:ListItem>
                                            <asp:ListItem Text="Buy" Value="1"></asp:ListItem>
                                         <asp:ListItem Text="Sale" Value="2"></asp:ListItem>
                                    </asp:DropDownList>
                                     <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="req_Intent" controltovalidate="ddl_Rlevel" errormessage="Intent is Required!" />
                           
                                    </div>   

                                  <label class="control-label col-md-2">Variable Code</label>
                                <div class="col-md-3">
                                 <asp:TextBox ID="txt_VariableCode" runat="server" CssClass="form-control " ></asp:TextBox>  
                                </div>
                               </div>
                      
                            <hr />

                
                            <div class="row">
                                <asp:Label CssClass="control-label col-md-offset-2" ID="lbl_due" runat="server"></asp:Label>
                            </div>


                    </div>
                </section>
            </div>
        </div>
    </div>

</asp:Content>
