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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../../../UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="MainUpdatePanel" runat="server">
        <ContentTemplate>
            <div class="himssuHeader2WireBox">
                <div class="himsBoxHeader">
                    <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle">
                            <asp:Image ID="buttonImage" runat="server" class="fLeft"
                                meta:resourcekey="buttonImageResource1" />
                            <div class="headerText">
                                <asp:Label ID="headerTextLabel" runat="server"
                                    meta:resourcekey="headerTextLabelResource1"></asp:Label>
                                <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="DetailPanel"
                                    ExpandControlID="buttonImage" CollapseControlID="buttonImage" TextLabelID="headerTextLabel"
                                    Collapsed="True" CollapsedText="Search" ExpandedText="Search" ImageControlID="buttonImage"
                                    ExpandedImage="~/images/buttonCollapse.gif"
                                    CollapsedImage="~/images/buttonExpand.gif" Enabled="True" />
                            </div>
                        </div>
                    </asp:Panel>
                </div>
                <asp:Panel ID="DetailPanel" runat="server"
                    meta:resourcekey="DetailPanelResource1">
                    <div class="himsBoxContent">
                        <div class="contentHolder">
                            <asp:Panel ID="PanelSearch" runat="server"
                                meta:resourcekey="PanelSearchResource1">
                                <table cellpadding="0" cellspacing="0" style="width: 0%!important;">
                                    <tr>
                                        <td class="formLabel">
                                            <asp:Label ID="CodeSerachLabel" Text="Code" runat="server"
                                                meta:resourcekey="CodeSerachLabelResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="CodeSearchTextBox" onkeypress="return fnKeyPressForDescriptionField(event)"
                                                onblur="return fnonTextChangeDescriptionField(this)" runat="server"
                                                meta:resourcekey="CodeSearchTextBoxResource1"></asp:TextBox>
                                        </td>
                                        <td class="formLabel">
                                            <asp:Label ID="NameSearchLabel" Text="Name" runat="server"
                                                meta:resourcekey="NameSearchLabelResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="NameSearchTextbox" onkeypress="return fnKeyPressForDescriptionField(event)"
                                                onblur="return fnonTextChangeDescriptionField(this)" runat="server"
                                                meta:resourcekey="NameSearchTextboxResource1"></asp:TextBox>
                                        </td>
                                        <td class="formLabel pLeft40">
                                            <asp:Label ID="GradeSearchLabel" Text="Grade" runat="server"
                                                meta:resourcekey="GradeSearchLabelResource1"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="GradeSearchDropDownList" runat="server" Width="150px"
                                                meta:resourcekey="GradeSearchDropDownListResource1">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="pLeft20">
                                            <asp:Button ID="SearchButton" Text="Search" runat="server"
                                                OnClick="SearchButton_Click" SkinID="0" CssClass="PrimaryButton" />
                                        </td>
                                        <td class="pLeft5">
                                            <asp:Button ID="ResetButton" runat="server" Text="Clear"
                                                OnClick="ResetButton_Click" meta:resourcekey="ResetButtonResource1" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <div id="AllergyGridDiv" runat="server" visible="False">
                                <div class="spacer">
                                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif"
                                        meta:resourcekey="Image3Resource1" />
                                </div>
                                <div class="himssuHeader1WireBox" id="PatientRelationDiv" runat="server" style="width: 100%">
                                    <div class="himsBoxHeader" id="ListDiv" runat="server" visible="False">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle" style="width: 99%">
                                            <div class="headerText">
                                                <div class="fLeft">
                                                    List
                                                </div>
                                            </div>
                                            <div align="right" class="fRight" style="margin-top: -3px;">
                                                <uc1:GridViewPager ID="EmployeeJobTitleMasterGridView_GridViewPager" runat="server"
                                                    OnFirstRecordClick="EmployeeJobTitleMasterGridView_GridViewPager_FirstRecordClick"
                                                    OnLastRecordClick="EmployeeJobTitleMasterGridView_GridViewPager_LastRecordClick"
                                                    OnNextRecordClick="EmployeeJobTitleMasterGridView_GridViewPager_NextRecordClick"
                                                    OnPrevRecordClick="EmployeeJobTitleMasterGridView_GridViewPager_PrevRecordClick"
                                                    OnTextBoxValueChange="EmployeeJobTitleMasterGridView_GridViewPager_TextBoxValueChange"
                                                    ParentGridView="EmployeeJobTitleMasterGridView" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div class="himsBoxContentMsg" id="GridMessageDiv" runat="server"
                                            visible="False">
                                        </div>
                                        <asp:GridView ID="EmployeeJobTitleMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                            OnSelectedIndexChanged="EmployeeJobTitleMasterGridView_SelectedIndexChanged"
                                            DataKeyNames="EmployeeJobTitleMasterId,EmployeeGradeId" OnPageIndexChanging="EmployeeJobTitleMasterGridView_PageIndexChanging"
                                            AllowPaging="True" PageSize="5" EmptyDataText="No Data Found"
                                            meta:resourcekey="EmployeeJobTitleMasterGridViewResource1">
                                            <Columns>
                                                <asp:CommandField ShowHeader="True" ShowSelectButton="True"
                                                    meta:resourcekey="CommandFieldResource1">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:CommandField>
                                                <asp:BoundField HeaderText="Code" DataField="EmployeeJobTitleMasterCode"
                                                    meta:resourcekey="BoundFieldResource1"></asp:BoundField>
                                                <asp:BoundField HeaderText="Name" DataField="EmployeeJobTitle"
                                                    meta:resourcekey="BoundFieldResource2"></asp:BoundField>
                                                <asp:BoundField HeaderText="Grade" DataField="EmployeeGrade"
                                                    meta:resourcekey="BoundFieldResource3"></asp:BoundField>
                                                <asp:BoundField HeaderText="InActive" DataField="ObsoleteText"
                                                    meta:resourcekey="BoundFieldResource4"></asp:BoundField>
                                                <asp:BoundField HeaderText="Id" DataField="EmployeeJobTitleMasterId"
                                                    Visible="False" meta:resourcekey="BoundFieldResource5"></asp:BoundField>
                                                <asp:BoundField HeaderText="EmployeeGrade" DataField="EmployeeGradeId"
                                                    Visible="False" meta:resourcekey="BoundFieldResource6"></asp:BoundField>
                                            </Columns>
                                            <PagerSettings Visible="False" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
            </div>
            <div class="spacer">
                <asp:Image ID="spacerImage" runat="server" ImageUrl="~/Images/spacer.gif"
                    meta:resourcekey="spacerImageResource1" />
            </div>
            <div class="himssuHeader1WireBox">
                <div class="himsBoxHeader">
                    <div class="leftdiv">
                    </div>
                    <div class="himsBoxTitle">
                        <div class="headerText">
                            <asp:Label ID="Label1" runat="server" Text="Maintenance"
                                meta:resourcekey="Label1Resource1" />
                        </div>
                    </div>
                </div>
                <div class="himsBoxContent">
                    <div class="contentHolder">
                        <table>
                            <tr>
                                <td class="formLabel">
                                    <asp:Label ID="CodeLabel" runat="server" Text="Code" SkinID="MandatoryLabel"
                                        meta:resourcekey="CodeLabelResource1"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="CodeTextbox" onkeypress="return fnKeyPressForDescriptionField(event)"
                                        onblur="return fnonTextChangeDescriptionField(this)" runat="server" MaxLength="100"
                                        AutoPostBack="True" OnTextChanged="CodeTextbox_TextChanged"
                                        meta:resourcekey="CodeTextboxResource1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="formLabel">
                                    <asp:Label ID="NameLabel" runat="server" Text="Name" SkinID="MandatoryLabel"
                                        meta:resourcekey="NameLabelResource1"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="NameTextBox" onkeypress="return fnKeyPressForDescriptionField(event)"
                                        onblur="return fnonTextChangeDescriptionField(this)" runat="server"
                                        MaxLength="100" meta:resourcekey="NameTextBoxResource1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="formLabel">
                                    <asp:Label ID="GradeLabel" runat="server" Text="Grade" SkinID="MandatoryLabel"
                                        meta:resourcekey="GradeLabelResource1"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="GradeDropDownList" runat="server" AutoPostBack="True"
                                        Width="150px" meta:resourcekey="GradeDropDownListResource1">
                                    </asp:DropDownList>
                                    <asp:ImageButton ID="MasterLinkButtonGrade" runat="server" SkinID="MasterLinkImage"
                                        ToolTip="Click here to open Employee Grade Master."
                                        OnClick="MasterLinkButtonGrade_Click"
                                        meta:resourcekey="MasterLinkButtonGradeResource1" />
                                </td>
                            </tr>
                            <tr>
                                <td class="formLabel">
                                    <asp:Label ID="InActiveLabel" runat="server" Text="InActive"
                                        meta:resourcekey="InActiveLabelResource1"></asp:Label>
                                </td>
                                <td>
                                    <asp:CheckBox ID="ObsoleteCheckBox" runat="server"
                                        meta:resourcekey="ObsoleteCheckBoxResource1" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
   <script data-main="../../../JavaScript/rjs/encrypt/jobtitle-master-encrypt" src="../../../JavaScript/rjs/require.js"></script>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/jobtitle-maste")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>