<%@ page title="Employee Custom Field Master" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Hrm_Employee_EmployeeCustomFieldMaster, App_Web_a0ih5yyi" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            //debugger;
            HTMLInputElement.prototype.scrollIntoView = function (a) { this.scrollIntoViewIfNeeded(); }
            HTMLSelectElement.prototype.scrollIntoView = function (a) { this.scrollIntoViewIfNeeded(); }
            HTMLAreaElement.prototype.scrollIntoView = function (a) { this.scrollIntoViewIfNeeded(); }
        });
    </script>
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <asp:HiddenField ID="PIdHiddenField" runat="server" Value="0" />
            <asp:HiddenField ID="IndexHiddenField" runat="server" Value="0" />
            <div id="divContentPage" class="divcontentpagemargin">
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="leftUlMenu">
                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="164"
                                            Visible="true" runat="server" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-tasks"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Employee Custom Field Master"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <contenttemplate>
                                                    <div class="contentHolder">
                                                        <div class="tableContainer">
                                                            <div>
                                                                <%--changes for mantis: 32799--%>                                                            
                                                                <%--<div class="himsBoxHeader card-head inner" id="GridViewPagerDiv" runat="server">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                         <div class="pull-right col display-flex ">
                                                                            <asp:DropDownList ID="AddGridDropDownList1" runat="server" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control">
                                                                                <asp:ListItem Text="1" Value="0" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                                <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                                <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            </asp:DropDownList>&nbsp;&nbsp;
                                                                           <asp:Button ID="AddButton" runat="server" SkinID="0" CssClass="btn btn-add fas" OnClick="AddButton_Click"
                                                                              Text=" Add" />
                                                                        </div>
                                                                    </div>
                                                                </div>--%>
                                                           
                                                                <div id="Div2" class="himssuHeader6WireBox pTop5  col-md-12" runat="server">
                                                                    <div class="himsBoxContent table-responsive">
                                                                        <asp:GridView ID="EmployeeCustomFormGridView" runat="server" AutoGenerateColumns="False"
                                                                            EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover"
                                                                            DataKeyNames="Id,FieldTypeId,DataId" OnRowDataBound="EmployeeCustomFormGridView_RowDataBound" >
                                                                            <Columns>
                                                                                  <asp:TemplateField HeaderText="Data Type">
                                                                                    <ItemTemplate>
                                                                                        <asp:DropDownList ID="DataTypeGridviewDropDownList" runat="server"  class="form-control" Enabled="false"/>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="18%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Field Group">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="FieldGroupTextBox" MaxLength="200" runat="server" Enabled="false" SkinID="CustomWidthTextBox" Text='<%# Bind("FieldGroup") %>' />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Field Title">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="FieldTitleTextBox" MaxLength="500" runat="server" Enabled="false" TextMode="MultiLine" SkinID="CustomWidthTextBox" Text='<%# Bind("FieldTitle") %>' />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="25%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Type List">
                                                                                    <ItemTemplate>
                                                                                        <asp:DropDownList ID="TypeListGridviewDropDownList" runat="server" Enabled="false" OnSelectedIndexChanged="TypeListGridviewDropDownList_SelectedIndexChanged" AutoPostBack="True" class="form-control" />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="12%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                               
                                                                                <asp:TemplateField HeaderText="Field List">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="FieldListTextBox" MaxLength="500" runat="server" Enabled="false" SkinID="CustomWidthTextBox" Text='<%# Bind("FieldList") %>' />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="15%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                
                                                                                <asp:TemplateField HeaderText="Is Field Mandatory">
                                                                                    <ItemTemplate>
                                                                                        <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                                            <asp:CheckBox ID="IsFieldMandatoryCheckBox" runat="server" Checked='<%# Bind("IsFieldMandatory") %>' />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="5%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="IsObsolete">
                                                                                    <ItemTemplate>
                                                                                        <label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
                                                                                            <asp:CheckBox ID="IsActiveCheckBox" runat="server" Checked='<%# Bind("IsObsolete") %>' />
                                                                                            <span></span>
                                                                                        </label>
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="5%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Field Order">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="FieldOrderTextBox" TextMode="Number" MaxLength="4" runat="server" Text='<%# Bind("FieldOrder") %>' SkinID="CustomWidthTextBox" />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <%--<asp:TemplateField HeaderText="Delete">
                                                                                    <ItemTemplate>
                                                                                        <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton1" runat="server" CommandName="Select" OnClick="DeleteImageButton1_Click"
                                                                                            ToolTip="Delete" ImageUrl="../../../Images/icons/icon_delete.gif"  />
                                                                                        

                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                    <ItemStyle HorizontalAlign="Center" Width="10%" />
                                                                                </asp:TemplateField>--%>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                    <%--0038961 : Added Note for Dispaly: by Krunal K Patel --%>
                                                                    <div style="color: red;display: inline-block;background-color: #fcf8e3;">                                                                        
                                                                            </b>&nbsp; * Note - Don't Enter the same name in "Field group" and "Field Title" column given in the Employee Custom Field Master.
                                                                    </div>
                                                                </div>                                                                
                                                            </div>
                                                        </div>
                                                    </div>
                                                    
                                        </contenttemplate>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/Employee-Custom-Field-Master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <%--<script data-main='<%=ResolveUrl("~/JavaScript/rjs/stock-wac-update")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>--%>
</asp:Content>

