<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_InstituteManagement_OrganizationMaster, App_Web_b4gbvcnm" title="Organization Master" enableEventValidation="false" viewStateEncryptionMode="Never" %>

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <asp:HiddenField ID="HiddenField1" runat="server" />
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="101"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <asp:Panel ID="SearchCriteriaPanel" runat="Server">
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchCodeLabel" Text="Code" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="Server" MaxLength="20"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchTitleLabel" Text="Title" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:TextBox ID="SearchTitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                    SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                            </div>
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="alignCenter pTop5">
                                            <asp:Button ID="SearchButton" runat="Server" OnClick="SearchButton_Click"
                                                SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                    </asp:Panel>
                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="ReasonMasterDetailDiv" visible="false" runat="server">
                                                <asp:HiddenField runat="server" ID="ButtonIdHiddenField" />
                                            <div class="himsBoxHeader" id="PatientRelationDiv" visible="false" runat="server">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <div align="right" class="fRight" style="margin-top: 0px;">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="himsBoxContent pTop10">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" visible="false">
                                                            <div id="Div4" runat="server" class="table-responsive">
                                                                <asp:GridView ID="OrganizationMasterGridView" runat="server" AutoGenerateColumns="False"
                                                                    CssClass="table table-striped table-bordered table-hover" OnRowDataBound="OrganizationMasterGridView_RowDataBound"
                                                                    OnPageIndexChanging="OrganizationMasterGridView_PageIndexChanging" SkinID=""
                                                                    ShowHeader="True" PagerSettings-Visible="false" DataKeyNames="Id">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                    Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="OrgGroupId" HeaderText="Organization Group" ItemStyle-Width="150px" />

                                                                        <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="150px" HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:TemplateField HeaderText="Title" ItemStyle-Width="190px" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="TitleLabel" CssClass="boxEllips" ToolTip='<%# Bind("Title") %>' runat="server"
                                                                                    Text='<%# Bind("Title") %>' Width="185px"></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Short Title" ItemStyle-Width="190px" HeaderStyle-HorizontalAlign="Left"
                                                                            ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="DisplayTitleLabel" CssClass="boxEllips" ToolTip='<%# Bind("DisplayTitle") %>'
                                                                                    runat="server" Text='<%# Bind("DisplayTitle") %>' Width="185px"></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="AffiliationTitle" HeaderText="Affiliation" ItemStyle-Width="150px"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                        <asp:BoundField DataField="LanguageTitle" HeaderText="Language" ItemStyle-Width="100px"
                                                                            HeaderStyle-HorizontalAlign="Left" />
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText">
                                    <header>
                                        <i class="fas fa-cog"></i>
                                        <asp:Label ID="ReasonMasterDetailLabel" runat="server" Text="Organization Master Detail"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">
                                 <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" />
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                     <div class="pTop5 col-md-12" id="GeneralDetaildiv" runat="server">
                                  <%--          <div class="himsBoxHeader  card-head inner" id="Div2" runat="server" visible="True">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText fLeft">
                                                        <header>
                                                            <asp:Label ID="GeneralDetailLabel" Text="Basic Detail in General " runat="server" />
                                                        </header>
                                                    </div>
                                                </div>
                                            </div>--%>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="CodeLabel" runat="server" Text="Code" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="CodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="20" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        <asp:HiddenField ID="IdHiddenField" runat="server" />
                                        <asp:HiddenField ID="RemoveHiddenField" runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrgGroupLabel" runat="server" Text="Organization Group" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="OrgGroupTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="4" SkinID="CustomWidthTextbox" onkeypress="return isNumberKey(this)"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrderIndexLabel" runat="server" Text="Order Index"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="OrderIndexTextBox" onkeypress="return isNumberKey(event)" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthTextbox" runat="server"
                                            MaxLength="9"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox11 pTop5 col-md-3">
                                    <asp:Image ID="OrgLogo" Visible="true" runat="server" Height="50px" Width="50px"
                                        AlternateText="Upload Logo" />
                                </div>
                                <div class="outerBox pTop5 col-md-6">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="TitleLabel" runat="server" Text="Title" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="TitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-6">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DisplayTitleLabel" runat="server" Text="Short Title" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="DisplayTitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AffiliationLabel" runat="server" Text="Affiliation" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="AffiliationDropDownList" SkinID="CustomWidthDropDownList"
                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LanguageLabel" runat="server" Text="Language" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="LanguageDropDownList" SkinID="CustomWidthDropDownList"
                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrgTypeCaptionLabel" runat="server" Text="OrgType Caption"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="OrgTypeCaptionTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="DegreeAwardedLabel" runat="server" Text="Degree Awarded"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="DegreeAwardedTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="StreetOneLabel" runat="server" Text="Street One"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="StreetOneTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="50" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="StreetTwoLabel" runat="server" Text="Street Two"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="StreetTwoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="50" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="StreetThreeLabel" runat="server" Text="Street Three"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="StreetThreeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="50" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="CityLabel" runat="server" Text="City"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="CityTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="StateLabel" runat="server" Text="State"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="StateTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="CountryLabel" runat="server" Text="Country"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="CountryTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ZipCodeLabel" runat="server" Text="Zip Code"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ZipCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="20" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="HomePageLabel" runat="server" Text="Home Page"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="HomePageTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="PhoneNoLabel" runat="server" Text="Phone Number"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="PhoneNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="50" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="FaxNoLabel" runat="server" Text="Fax Number"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="FaxNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmailLabel" runat="server" Text="Email ID"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="EmailTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="OrgSubGroupLabel" runat="server" Text="Org Sub Group"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="OrgSubGroupDropDownList" SkinID="CustomWidthDropDownList"
                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="TermPatternLabel1" runat="server" Text="Term Pattern"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="TermPatternDropDownList" SkinID="CustomWidthDropDownList"
                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="NameFormateLabel" runat="server" Text="Name Format" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="NameFormateDropDownList" SkinID="CustomWidthDropDownList"
                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmployeeNameFormateLabel" runat="server" Text="Employee Name Format" SkinID="MandatoryLabel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="EmployeeNameFormatDropDownList" SkinID="CustomWidthDropDownList"
                                            CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ShortCodeLabel" runat="server" Text="Short Code"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ShortCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="20" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="NoOfTermLabel" runat="server" Text="No Of Term"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="NoOfTermTextBox" onkeypress="return isNumberKey(event)" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthTextbox" runat="server"
                                            MaxLength="5"></asp:TextBox>
                                    </div>
                                </div>

                                        </div>
                                         <div class="pTop5 col-md-12" id="InchargeDetailDiv" runat="server">
                                            <div class="himsBoxHeader card-head inner" id="Div6" runat="server" visible="True">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText fLeft">
                                                        <header>
                                                            <asp:Label ID="Label11" Text="Incharge Detail" runat="server" />
                                                        </header>
                                                    </div>
                                                </div>
                                            </div>
                                           <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmployeeCodeLabel" runat="server" Text="Incharge Employee Code"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5 display-flex">
                                        <asp:TextBox ID="EmployeeCodeTextBox" SkinID="CustomWidthTextBox" runat="server"
                                            MaxLength="100" AutoPostBack="true" OnTextChanged="EmployeeCodeTextBox_TextChanged"> </asp:TextBox>
                                        <asp:ImageButton SkinID="FindImage" ToolTip="Drug Search" ID="EmployeeCodeImageButton"
                                            ImageUrl="~/Images/icons/icon_find.gif" runat="server" />
                                        <asp:HiddenField ID="EmployeeIdHiddenField" runat="server" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmployeeNameLabel" runat="server" Text="Incharge Employee Name"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="EmployeeNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="100"> </asp:TextBox>
                                    </div>
                                </div>
                                        </div>
      <div class="pTop5 col-md-12" id="ReportDetailDiv" runat="server">
                                            <div class="himsBoxHeader card-head inner" id="ReportDetailHeaderDiv" runat="server" visible="True">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText fLeft">
                                                        <header>
                                                            <asp:Label ID="ReportDetailLabel" Text="Report Detail" runat="server" />
                                                        </header>
                                                    </div>
                                                </div>
                                            </div>
          
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ReportOrgGroupTitleLabel" runat="server" Text="Report Org Group Title"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ReportOrgGroupTitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="200" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="ReportOrgTitleLabel" runat="server" Text="Report Org Title"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="ReportOrgTitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="200" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SmallAddress1Label" runat="server" Text="Report Address1"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="SmallAddress1TextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SmallAddress2Label" runat="server" Text="Report Address2"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="SmallAddress2TextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="RegistrationDetailLabel" runat="server" Text="Registration Detail"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="RegistrationDetailTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" AutoPostBack="false" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="LetterHeaderMarginLabel" runat="server" Text="Letter Head Margin"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="LetterHeaderMarginTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="UniversityLabel" runat="server" Text="University"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="UniversityTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-12">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="FooterSignatureLabel" runat="server" Text="Footer Signture"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="FooterSignatureTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="300" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
           <div class="pTop5 col-md-12" style="margin-bottom:10px">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="Label1" runat="server" Text="Org Title Builder"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5" style="margin-bottom:20px">

                                        <textarea id="txtTileOrg" runat="server" contenteditable="false"></textarea>
                                        <%-- <asp:TextBox ID="txtTileOrg" runat="server" TextMode="MultiLine"/>--%>
                                    </div>
                                </div>
                                        </div>
                                      <div class="pTop5 col-md-12" id="weekoffDetailDiv" runat="server">
                                            <div class="himsBoxHeader card-head inner" id="Div3" runat="server" visible="True">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText fLeft">
                                                        <header>
                                                            <asp:Label ID="weekoffDetailLabel" Text="Week Off Detail" runat="server" />
                                                        </header>
                                                    </div>
                                                </div>
                                            </div>
                                                    <div class="outerBox pTop5 col-md-3" runat="server" visible="false">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="WeekOffsLabel" Text="Week Offs" runat="server"></asp:Label>
                                    </div>
                                    <asp:TextBox ID="WeekOffsTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                        runat="server" MaxLength="200" SkinID="CustomWidthTextbox" Visible="false"></asp:TextBox>
                                    <asp:CheckBoxList ID="WeekOffsCheckBoxList" runat="server" RepeatColumns="3"
                                        RepeatDirection="Horizontal"
                                        class="pTop10">
                                        <asp:ListItem Text="Sunday" Value="0"></asp:ListItem>
                                        <asp:ListItem Text="Monday" Value="1"></asp:ListItem>
                                        <asp:ListItem Text="Tuesday" Value="2"></asp:ListItem>
                                        <asp:ListItem Text="Wednesday" Value="3"></asp:ListItem>
                                        <asp:ListItem Text="Thursday" Value="4"></asp:ListItem>
                                        <asp:ListItem Text="Friday" Value="5"></asp:ListItem>
                                        <asp:ListItem Text="Saturday" Value="6"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmpFirstWOLabel" runat="server" Text="Employee First Week Off"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="EmpFirstWODropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmpFirstWORuleLabel" runat="server" Text="Employee First Week Off Rule"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="EmpFirstWORuleDropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmpSecondWOLabel" runat="server" Text="Employee Second Week Off"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="EmpSecondWODropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="EmpSecondRuleLabel" runat="server" Text="Employee Second Week Off Rule"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="EmpSecondRuleDropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="StudentFirstWOLabel" runat="server" Text="Student First Week Off"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="StudentFirstWODropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="StudentFirstWORuleLabel" runat="server" Text="Student First Week Off Rule"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="StudentFirstWORuleDropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SecondStudentWOLabel" runat="server" Text="Student Second Week Off"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SecondStudentWODropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SecondStudentWORuleLabel" runat="server" Text="Student Second Week Off Rule"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SecondStudentWORuleDropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
                                    </div>
                                </div>
                                        </div>
                            <div class="pTop5 col-md-12" id="OtherDetailDiv" runat="server">
                                            <div class="himsBoxHeader card-head inner" id="Div7" runat="server" visible="True">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle">
                                                    <div class="headerText fLeft">
                                                        <header>
                                                            <asp:Label ID="OtherDetailLabel" Text="Other Detail" runat="server" />
                                                        </header>
                                                    </div>
                                                </div>
                                            </div>
                                     <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="PANNumberLabel" runat="server" Text="PAN Number"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="PANNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="40" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="TANNumberLabel" runat="server" Text="TANNumber"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="TANNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="40" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="TaxOfficeDetailLabel" runat="server" Text="Income Tax Office Detail"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="TaxOfficeDetailTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="500" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AuthorityNameLabel" runat="server" Text="Authority Name"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="AuthorityNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AuthorityFatherNameLabel" runat="server" Text="Authority Father Name"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="AuthorityFatherNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AuthorityRelationLabel" runat="server" Text="AuthorityRelation"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="AuthorityRelationTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AuthorityDesignationLabel" runat="server" Text="Authority Designation"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="AuthorityDesignationTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="AcountNumberLabel" runat="server" Text="Account Number"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="AccountNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                <div id="AllowGSTDiv" runat="server">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="GSTINNoLabel" runat="server" Text="GSTIN No"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="GSTINNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="50" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="HSNSACCodeLabel" runat="server" Text="HSN/SAC Code"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="HSNSACCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                runat="server" MaxLength="15" SkinID="CustomWidthTextbox"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>

                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="PFEstbCodeLabel" runat="server" Text="PF Establishment Code"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="PFEstbCodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                    </div>
                                </div>
                                        </div>
                             
                           
                               


                                <div class="outerBox pTop5 col-md-3">
                                    <%--  <div class="controlLabelWidth">
                                                                <asp:CheckBox ID="InActiveCheckBox" runat="server" />
                                                                <asp:Label ID="InActiveLabel" runat="server" Text="InActive"></asp:Label>
                                                            </div>--%>
                                    <div class="controlLabelWidth ">

                                        <asp:CheckBox ID="InActiveCheckBox" runat="server" Text="InActive" />

                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                    </div>
                                </div>



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

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/organization-master-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/organization-master")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>

    <%--   <script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.5.6/tinymce.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/tinymce/4.5.6/jquery.tinymce.min.js"></script>   --%>

  
    <script src="../../JavaScript/tinymce/plugins/advlist/plugin.min.js"></script>
    <script src="../../JavaScript/tinymce/plugins/anchor/plugin.min.js"></script>
    <script src="../../JavaScript/tinymce/plugins/autolink/plugin.min.js"></script>
    <script src="../../JavaScript/tinymce/plugins/autoresize/plugin.min.js"></script>
    <script src="../../JavaScript/tinymce/plugins/autosave/plugin.min.js"></script>
    <script src="../../JavaScript/tinymce/plugins/bbcode/plugin.min.js"></script>
    <script src="../../JavaScript/tinymce/plugins/charmap/plugin.min.js"></script>
    <script src="../../JavaScript/tinymce/plugins/code/plugin.min.js"></script>
    <script src="../../JavaScript/tinymce/plugins/codesample/plugin.min.js"></script>
    <script src="../../JavaScript/tinymce/tinymce.js"></script>
    <script src="../../JavaScript/tinymce/tinymce.min.js"></script>
    <script src="../../JavaScript/tinymce/jquery.tinymce.min.js"></script>
  
    <script type="text/javascript">
        var id = 1;
        function add_tiny(status) {
            //alert(status);
            tinymce.remove();
            TinyMCE(status);
        }
        function TinyMCE(status) {
            //  alert("hi");
            // alert(status);
            tinymce.init({
                selector: '#ctl00_CP_txtTileOrg',
                height: 150,
                width: 770,
                menubar: false,
                encoding: "",
                menubar: false,
                statusbar: false,
                toolbar: false,
                setup: function (ed) {
                    debugger;
                    ed.on('change', function (e) {
                        
                        $("#ctl00_CP_txtTileOrg").text(ed.getContent());
                        
                    });
                    ed.on('init', function () {
                        debugger;
                        $("div.mce-toolbar-grp").hide();
                        if (status == "E" || status == "C") {
                            $("div.mce-toolbar-grp").hide();
                            this.setMode('');
                        }
                        else {
                            this.setMode('readonly');
                        }
                    });
                    ed.on('focus', function () {
                        $("div.mce-toolbar-grp").show();
                    });
                    ed.on('blur', function () {
                        $("div.mce-toolbar-grp").hide();
                    });
                    ed.on("init", function () {
                        $("div.mce-toolbar-grp").hide();
                    });
                },
                plugins: [
                  'advlist autolink lists link image charmap print preview anchor',
                  'searchreplace visualblocks code fullscreen',
                  'insertdatetime media table contextmenu paste code'
                ],
                //toolbar: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | fontselect | fontsizeselect',
                toolbar1: 'bold italic | alignleft aligncenter alignright alignjustify | fontsizeselect',
                content_css: '//www.tinymce.com/css/codepen.min.css'
            });
        }
    </script>
    <script type="text/javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler_Page);
        function EndRequestHandler_Page(sender, args) {
            
            TinyMCE('T');
           
        }

        $(document).ready(function () {
            
            TinyMCE('T');
           
            
        });
        //Added by dhananajay for mantis Start- 40740
        function RedirectToInstituteSetup(InstituteSetupURL) {
            var newTab = window.open(InstituteSetupURL, '_blank');
            window.location.href = '../../../Pages/BaseFramework/MyDashBoard.aspx';
        }
        //Added by dhananajay for mantis End - 40740
    </script>

</asp:Content>
