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

<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">
                        Work Flow Setup
                            <div class ="pull-right">
                                
                            <asp:Button  CssClass="btn btn-info" ID ="Btnsave" Text ="Save" runat="server"  ValidationGroup="save"/>
                           <asp:Button  CssClass="btn btn-info" ID ="btn_cancel" Text ="Back" 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_header_id" runat ="server" />
                          <label class="control-label col-md-4">Form Function Name</label>
                          <div class="col-md-3">
                              <asp:DropDownList CssClass="form-control select2" runat ="server" ID ="ddlformfuncname" >
                                  
                              </asp:DropDownList>
                              <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup="save" runat="server" id="Req_ddlformfuncname" controltovalidate="ddlformfuncname" errormessage="Function Name is Required!" />
                          </div>
                              
                          </div>

                          <div class ="row"style="padding-top:10px">
                              
                          <label class="control-label col-md-4">Active</label>
                          <div class="col-md-2">
                              <asp:DropDownList CssClass="form-control" runat ="server" ID ="ddlactive" >
                                  <asp:ListItem>---- Select ----</asp:ListItem>
                                  <asp:ListItem Value="Y">Yes</asp:ListItem>
                                  <asp:ListItem Value="N">No</asp:ListItem>
                              </asp:DropDownList>
                          </div>
                              </div>
                              <div class="row">
                              <div class="pull-right" style ="padding-top:10px">
                              <asp:Button style="margin-right:20px" runat="server" ID ="btndetail" Text ="Add Detail" CssClass ="btn btn-info" />
                              </div>
                         </div>

                          <asp:GridView ID="GridView1" CssClass="display"  CellPadding="0" border="0" runat="server" AutoGenerateColumns="False">
                <Columns>
                    <asp:BoundField DataField ="line_id" HeaderText="ID" />
                    <asp:BoundField DataField ="username" HeaderText ="User" />
                     <asp:BoundField DataField ="process_type" HeaderText ="Process Type" />
                    <asp:BoundField DataField ="URL" HeaderText ="URL" />
                    <asp:BoundField DataField ="Active" HeaderText ="Active" />
                    <asp:BoundField DataField ="procedure_Name" HeaderText ="Procedure Name" />
                    <asp:BoundField DataField ="attachment" HeaderText ="Attachments" />
                                       
                    <asp:TemplateField HeaderText ="Action">
                       <ItemTemplate>
                            <asp:LinkButton Text="text" runat="server" id="linkbtn" CommandName="edit">
                                <span class ="fa  fa-pencil" style="font-size:20px"></span>
                            </asp:LinkButton>&nbsp&nbsp&nbsp   
                           <asp:LinkButton Text ="txt" runat ="server" ID="lnkbtn" OnClientClick="return confirm('Are you sure to delete?')" CommandName="idelete">
                               <span class ="fa fa-trash" style="font-size:20px"></span>
                           </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                        <FooterStyle CssClass="footerStyle" />
                            <HeaderStyle CssClass="headerStyle" />
                            <RowStyle CssClass="rowStyle" />
                            
            </asp:GridView>
                          <script src="/ThemeScrips/Datatables/media/js/jquery.js" type="text/javascript"></script>
                    <script src="/ThemeScrips/Datatables/media/js/jquery.datatables.min.js" type="text/javascript"></script>
                    <script src="/ThemeScrips/Datatables/media/js/jquery.Datatables.js" type="text/javascript"></script>
                    <script src="/ThemeScrips/Datatables/media/js/GridviewFix.js" type="text/javascript"></script>
                    <script type="text/javascript">
                        $("#ContentPlaceHolder1_GridView1").GridviewFix().dataTable();
                    </script>



                          </div>
                    </section>
            </div>
        </div>
    </div>
    <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>
