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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="DepartmentGroupUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage">
                <div style="width: 100%">
                    <table width="100%" cellpadding="0" cellspacing="0">
                    </table>
                    <div class="spacer5">
                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif"></asp:Image>
                    </div>
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="dashBoardLeftCont" style="width: 160px" valign="top">
                                <div id="leftContainer">
                                    <dl class="expandMenu">
                                        <table width="100%" border="0">
                                            <tr>
                                                <td>
                                                    <div class="himssuHeader3WireBox">
                                                        <dt id="dtSETTINGS" onclick="showHideSwitch('ddSETTINGS')">
                                                            <table width="100%" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td>
                                                                        <div class="himsBoxHeader">
                                                                            <div class="leftdiv">
                                                                            </div>
                                                                            <div class="himsBoxTitle">
                                                                                <table width="100%">
                                                                                    <tr>
                                                                                        <td style="width: 100%">
                                                                                            <div class="headerText">
                                                                                                Master
                                                                                            </div>
                                                                                        </td>
                                                                                        <td>
                                                                                            <img name="ddSETTINGSButton" id="ddSETTINGSButton" src="../../../Images/buttonCollapse.gif"></img>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </div>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </dt>
                                                        <dd style="text-align: left; margin: 0px" id="ddSETTINGS">
                                                            <table width="160px" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td>
                                                                        <div class="himsBoxContent leftTableContainer">
                                                                            <div class="leftUlMenu">
                                                                                <ul id="sidebarmenu1">
                                                                                    <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="125"
                                                                                        Visible="true" runat="server" />
                                                                                </ul>
                                                                            </div>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <div class="himsBoxFooter">
                                                                <div>
                                                                </div>
                                                            </div>
                                                        </dd>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </dl>
                                </div>
                            </td>
                            <td class="minMaxButton" style="width: 1%; margin: 0; vertical-align: top">
                                <asp:Image ID="Image7" runat="server" ImageUrl="~/Images/spacer.gif"></asp:Image>
                            </td>
                            <td style="vertical-align: top" width="99%">
                                <div class="himssuHeader2WireBox">
                                    <div class="himsBoxHeader">
                                        <asp:Panel ID="Panel1" runat="server" meta:resourcekey="Panel1Resource1">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <asp:Image ID="Image2" runat="server" class="fLeft" meta:resourcekey="Image2Resource1" />
                                                <div class="headerText">
                                                    <asp:Label ID="Label3" runat="server" Text="Search" meta:resourcekey="Label3Resource1"></asp:Label>
                                                    <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="DetailPanel"
                                                        ExpandControlID="Image2" CollapseControlID="Image2" TextLabelID="Label3" Collapsed="True"
                                                        ImageControlID="Image2" ExpandedImage="~/images/buttonCollapse.gif" CollapsedImage="~/images/buttonExpand.gif"
                                                        Enabled="True" />
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent">
                                        <asp:Panel ID="DetailPanel" runat="server" meta:resourcekey="DetailPanelResource1">
                                            <div class="contentHolder">
                                                <asp:Panel ID="SearchCriteriaPanel" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                    <div class="outerBox pTop5">
                                                        <asp:HiddenField Value="0" ID="IdHiddenField" runat="server" />
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label1" Text="Code" runat="server" meta:resourcekey="Label1Resource1"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="DepartmentGroupCodeSearchTextbox" SkinID="CustomWidthTextBox" Width="150px"
                                                                runat="server" onkeypress="return fnKeyPressForNameField(event)" onblur="return fnonTextChangeNameField(this)"
                                                                meta:resourcekey="DepartmentGroupCodeSearchTextboxResource1" MaxLength="50"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBoxPreBtn pTop5">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label2" Text="Name" runat="server" meta:resourcekey="Label2Resource1"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="DepartmentGroupNameSearchTextbox" SkinID="CustomWidthTextBox" Width="150px"
                                                                runat="server" onkeypress="return fnKeyPressForDescriptionField(event)" onblur="return fnonTextChangeDescriptionField(this)"
                                                                meta:resourcekey="DepartmentGroupNameSearchTextboxResource1" MaxLength="50"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5">
                                                        <div class="searchBoxBtn">
                                                            <asp:Button ID="SearchButton" Text="Search" runat="server" OnClick="SearchButton_Click"
                                                                SkinID="0" CssClass="PrimaryButton" />
                                                            <asp:Button ID="ResetButton" runat="server" Text="Clear" onblur="fnClearTabIndexChange()"
                                                                OnClick="ResetButton_Click" meta:resourcekey="ResetButtonResource1" />
                                                        </div>
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>
                                                </asp:Panel>
                                                <div id="Div1" class="himssuHeader1WireBox" runat="server" style="width: 100%; margin-right: 5px;">
                                                    <div id="DepartmentGroupMasterDetailDiv" visible="False" runat="server">
                                                        <div class="spacer">
                                                            <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image3Resource1" />
                                                        </div>
                                                        <div class="himsBoxHeader" id="PatientRelationDiv" runat="server">
                                                            <div class="leftdiv">
                                                            </div>
                                                            <div class="himsBoxTitle" style="width: 99%">
                                                                <div class="headerText">
                                                                    <div class="fLeft">
                                                                        <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                                    </div>
                                                                </div>
                                                                <div align="right" class="fRight" style="margin-top: -3px;">
                                                                    <uc1:GridViewPager ID="DepartmentGroupMasterGridView_GridViewPager" runat="server"
                                                                        OnFirstRecordClick="DepartmentGroupMasterGridView_GridViewPager_FirstRecordClick"
                                                                        OnLastRecordClick="DepartmentGroupMasterGridView_GridViewPager_LastRecordClick"
                                                                        OnNextRecordClick="DepartmentGroupMasterGridView_GridViewPager_NextRecordClick"
                                                                        OnPrevRecordClick="DepartmentGroupMasterGridView_GridViewPager_PrevRecordClick"
                                                                        OnTextBoxValueChange="DepartmentGroupMasterGridView_GridViewPager_TextBoxValueChange"
                                                                        ParentGridView="DepartmentGroupMasterGridView" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="himsBoxContent">
                                                            <div class="himsBoxContentMsg" id="GridMessageDiv" runat="server" visible="False">
                                                            </div>
                                                            <asp:GridView ID="DepartmentGroupMasterGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                OnSelectedIndexChanged="DepartmentGroupMasterGridView_SelectedIndexChanged" DataKeyNames="Id,FunctionId,Code,Title,FunctionName"
                                                                OnPageIndexChanging="DepartmentGroupMasterGridView_PageIndexChanging" AllowPaging="True"
                                                                PageSize="5" EmptyDataText="No Service Category Available" ShowHeader="True"
                                                                meta:resourcekey="DepartmentGroupMasterGridViewResource1">
                                                                <Columns>
                                                                    <asp:CommandField ShowHeader="True" ShowSelectButton="True" meta:resourcekey="CommandFieldResource1">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" ForeColor="Blue" Width="8%" />
                                                                    </asp:CommandField>
                                                                    <asp:BoundField HeaderText="Id" DataField="Id" Visible="False" meta:resourcekey="BoundFieldResource1">
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="FunctionId" DataField="FunctionId" Visible="False" meta:resourcekey="BoundFieldResource2">
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Code" DataField="Code" meta:resourcekey="BoundFieldResource3"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="20%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Name" DataField="Title" meta:resourcekey="BoundFieldResource4"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="24%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Function" DataField="FunctionName" meta:resourcekey="BoundFieldResource5"
                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemStyle Width="20%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="InActive" Visible="False" DataField="IsObsolete" meta:resourcekey="BoundFieldResource6">
                                                                        <ItemStyle Width="0%" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="InActive" DataField="IsObsoleteYN" meta:resourcekey="BoundFieldResource7">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" Width="8%" />
                                                                    </asp:BoundField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                                <div class="spacer">
                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image1Resource1" />
                                </div>
                                <div class="himssuHeader1WireBox">
                                    <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <asp:Label ID="DepartmentGroupDetailsLabel" runat="server" Text="Maintenance" meta:resourcekey="DepartmentGroupDetailsLabelResource1"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepartmentGroupDetailsCodeLabel" runat="server" Text="Code" SkinID="MandatoryLabel"
                                                        meta:resourcekey="DepartmentGroupDetailsCodeLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="DepartmentGroupCodeTextBox" SkinID="CustomWidthTextBox" Width="150px"
                                                        runat="server" MaxLength="50" AutoPostBack="True" OnTextChanged="DepartmentGroupCodeTextBox_TextChanged"
                                                        onkeypress="return fnKeyPressForCodeField(event)" onblur="return fnonTextChangeCodeField(this)"
                                                        meta:resourcekey="DepartmentGroupCodeTextBoxResource1"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepartmentGroupDetailsNameLabel" runat="server" Text="Name" SkinID="MandatoryLabel"
                                                        meta:resourcekey="DepartmentGroupDetailsNameLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox runat="server" ID="DepartmentGroupNameTextbox" SkinID="CustomWidthTextBox"
                                                        Width="150px" MaxLength="50" meta:resourcekey="DepartmentGroupNameTextboxResource1"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="DepartmentGroupDetailsTypeLabel" runat="server" Text="Function" SkinID="MandatoryLabel"
                                                        meta:resourcekey="DepartmentGroupDetailsTypeLabelResource1"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList ID="FunctionDropDownList" SkinID="CustomWidthTextBox" Width="155px"
                                                        runat="server" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        meta:resourcekey="FunctionDropDownListResource1">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                            <div class="outerBox pTop5">
                                                <div class="fLeft">
                                                    <asp:CheckBox ID="DepartmentGroupObsoleteCheckBox" runat="server" meta:resourcekey="DepartmentGroupObsoleteCheckBoxResource1" />
                                                </div>
                                                <div class="fLeft pLeft5 pTop5">
                                                    <asp:Label ID="DepartmentGroupObsoleteLabel" runat="server" Text="InActive" meta:resourcekey="DepartmentGroupObsoleteLabelResource1"></asp:Label>
                                                </div>
                                            </div>
                                            <div class="cBoth">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../../JavaScript/rjs/encrypt/department-group-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>    
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/department-group")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>