<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_ZCRM_CustomerOrg, App_Web_0ea2lprs" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ 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 Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="227"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <%--<div class="himssuHeader5WireBox whitebox" id="SearchDiv" runat="server">
                                    <div class="himsBoxHeader note note1 box box-danger">
                                        <asp:Panel ID="Panel1" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                              <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                                </div>
                                                <div class="fRight" style="margin-top: -20px">
                                                    <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                                        CssClass="AddButton" Text="Add" />
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    
                                </div>--%>

                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel2" 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 class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                            CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="SearchPanel" runat="Server">
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchOrgGroupIdLabel" Text="OrgGroup Id" runat="server"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="SearchOrgGroupIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="true"
                                            SkinID="CustomWidthTextBox" runat="Server" MaxLength="10" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>

                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchOrganizationNoLabel" Text="Organization No." runat="server"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="SearchOrganizationNoTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" runat="Server" MaxLength="10" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchOrganizationNameLabel" Text="Organization Name" runat="server"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:TextBox ID="SearchOrganizationNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            SkinID="CustomWidthTextBox" runat="Server" MaxLength="200"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="cBoth">
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchCustomerStatusSearchLabel" runat="server" Text="Customer Status"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList runat="server" ID="SearchCustomerStatusDropDownList" 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="SearchChannelLabel" runat="server" Text="Channel"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SearchChannelDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            AutoPostBack="true" />
                                    </div>
                                </div>
                                <div class="outerBox pTop5 col-md-3">
                                    <div class="controlLabelWidth">
                                        <asp:Label ID="SearchInstallationTypeLabel" runat="server" Text="Installation Type"></asp:Label>
                                    </div>
                                    <div class="fLeft pRight5">
                                        <asp:DropDownList ID="SearchInstallationTypeDropDownList" runat="server" CssClass="form-control" SkinID="CustomWidthDropDownList"
                                            onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                            AutoPostBack="true" />
                                    </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="ClearSearchButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ClearSearchButton_Click" />
                                    <asp:Button ID="ExportButton" runat="server" Text="&#xf093; Export" CssClass="btn-examcommon btn fas" SkinID="0" OnClick="ExportButton_Click" />

                                </div>
                                <div class="cBoth">
                                </div>

                            </asp:Panel>

                            <div id="Div2" class="himssuHeader7WireBox col-md-12" runat="server">
                                <div id="CustemerOrgListDiv" visible="false" runat="server">
                                    <div class="spacer">
                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif" />
                                    </div>
                                    <div class="himsBoxHeader" id="Div4" 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">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                                            <ContentTemplate>
                                                <div id="CustomerOrgListGridViewDiv" runat="server" visible="false">
                                                    <div id="Div6" runat="server" class="table-responsive">
                                                                                                                                       <asp:Label ID="NoOfLabelDiv" runat="server" Text=""></asp:Label>
                                                        <b><asp:Label ID="NoOfRecordLabel" runat="server" style="font-size:16px" Text=""></asp:Label></b>


                                                        <asp:GridView ID="CustomerOrgListGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            OnRowDataBound="CustomerOrgListGridView_RowDataBound" OnPageIndexChanging="CustomerOrgListGridView_PageIndexChanging" 
                                                            CssClass="table table-striped table-bordered table-hover"
                                                            SkinID="" EmptyDataText="No Records Found" ShowHeader="true" PagerSettings-Visible="false" DataKeyNames="OrgGroupId,OrgNumber,CustomerId">
                                                            <Columns>
                                                                <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                    HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="SelectLinkButton_Click"
                                                                            Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Org Group" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="OrgGroupIdLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("OrgGroupId")%>'
                                                                            Text='<%#Bind("OrgGroupId")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Customer Name" ItemStyle-Width="20%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CustomerNameLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("CustomerName")%>'
                                                                            Text='<%#Bind("CustomerName")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>


                                                                <asp:TemplateField HeaderText="Org Id" ItemStyle-Width="5%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="OrgNumberLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("OrgNumber")%>'
                                                                            Text='<%#Bind("OrgNumber")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Organization Name" ItemStyle-Width="17%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="OrgNameLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("OrgName")%>'
                                                                            Text='<%#Bind("OrgName")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="Activation Date" ItemStyle-Width="7%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ActivationDateLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("ActivationDate","{0:dd/MM/yyyy}")%>'
                                                                            Text='<%#Bind("ActivationDate","{0:dd/MM/yyyy}")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="InActivation Date" ItemStyle-Width="7%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="InActiveDateLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("InActiveDate","{0:dd/MM/yyyy}")%>'
                                                                            Text='<%#Bind("InActiveDate","{0:dd/MM/yyyy}")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Customer Status" ItemStyle-Width="7%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="CustomerStatusLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("CustomerStatus")%>'
                                                                            Text='<%#Bind("CustomerStatus")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Channel" ItemStyle-Width="10%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="ChannelNameLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("ChannelName")%>'
                                                                            Text='<%#Bind("ChannelName")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Installation Type" ItemStyle-Width="13%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="InstallationTypeLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("InstallationType")%>'
                                                                            Text='<%#Bind("InstallationType")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <%--<asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />
                                                                                <asp:BoundField DataField="Title" HeaderText="Title" ItemStyle-Width="40%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                                <%--                                                                                <asp:BoundField DataField="IsObsolete" HeaderText="IsObsolete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                                <asp:TemplateField HeaderText="In Active" ItemStyle-Width="5%" SortExpression="IsObsolete"
                                                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="IsObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsActive").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </div>
                            </div>
                        </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="NewsDetailLabel" runat="server" Text="Maintenance"></asp:Label>
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex">
                                <%--  <table>
                                                <tr>
                                                    <td class="formLabel">
                                                        <div id="NumberOfRecordDiv" runat="server" visible="false">
                                                            <asp:ImageButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                                OnClick="FirstRecordImageButton_Click" />
                                                            <asp:ImageButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                                OnClick="PreviousImageButton_Click" />
                                                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                            <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                            <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                            <asp:Label ID="TotalRecord" runat="server" />
                                                            <asp:ImageButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" />
                                                            <asp:ImageButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                                runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                                OnClick="LastRecordImageButton_Click" />
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                                            CssClass="BackButton" Text="Back" />
                                                    </td>
                                                </tr>
                                            </table>--%>
                             
                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="First"
                                                    OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-fast-backward"></i>
                                                </asp:LinkButton>
                                                <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                    runat="server" CommandName="Page" CommandArgument="Prev"
                                                    OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                    <i class="fa fa-play fa-rotate-180"></i>

                                                </asp:LinkButton>
                                              
                                                <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                &nbsp;  <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                &nbsp;  <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                &nbsp;  <asp:Label ID="TotalRecord" runat="server" />
                                                &nbsp;
                                                <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next"
                                                    OnClick="NextImageButton_Click">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>

                                                <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last"
                                                    OnClick="LastRecordImageButton_Click">
                                                      <i class="fa fa-fast-forward"></i>
                                                </asp:LinkButton>
                                                &nbsp;  &nbsp; &nbsp;
                                            </div>
                                       
                                            <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">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="CustomerIdLabel" Text="OrgGroup Id" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="OrgGroupIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" AutoPostBack="True"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="10" onkeypress="javascript:return isNumberKey(this)" OnTextChanged="OrgGroupId_TextBox_Change"></asp:TextBox>
                                            <asp:HiddenField ID="IdHiddenField" runat="server" />
                                            <asp:HiddenField ID="CustomerIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="OgGroupIdHiddenField" runat="server" />
                                            <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="Label" Text="Customer Name" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="CustomerNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                            <asp:HiddenField ID="HiddenField1" runat="server" />
                                        </div>
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="cBoth">
                                    </div>
                                    <div class="himsBoxContent card-body padd-0">
                                        <cc1:TabContainer Width="100%" ID="CircularTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                            meta:resourcekey="CircularTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="CircularDetails" runat="server" HeaderText="Circular">
                                                <HeaderTemplate>
                                                    <%--  <ul class="nav nav-tabs ajaxnavtabs">
                                                        <li><a style="padding: 10px 15px !important;">Add Seprate </a></li>
                                                    </ul>--%>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-plus"></i>&nbsp;Add Seprate </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>

                                                    <asp:Panel ID="SearchCriteriaPanel" runat="server">

                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="alignCenter pTop5">
                                                            <asp:Button ID="AddButton" runat="server" OnClick="AddButton_Click"
                                                                SkinID="0" CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                                            <asp:Button ID="EditButton1" runat="server" OnClick="EditButton_Click" Text="&#xf2ed; Edit" CssClass="btn-edit btn fas" SkinID="0" />
                                                            <asp:Button ID="DeleteButton1" Text="&#xf2ed; Delete" CssClass="btn-delete btn fas" SkinID="0" runat="server" OnClick="DeleteButton_Click" />
                                                            <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ResetButton_Click" />
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="OrganizationIdLabel" Text="Organization No." runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="OrganizationIdTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="10" onkeypress="javascript:return isNumberKey(this)"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="OrganizationNameLabel" Text="Organization Name" runat="server"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="OrganizationNameTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                                            </div>
                                                        </div>



                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="ActivationDateLabel" runat="server" Text="Activation Date" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <Date:DatePickerControl DisplayDatePicker="true" ID="ActivationDatePickerControl"
                                                                    runat="server" />
                                                            </div>
                                                        </div>


                                                        <div class="outerBox pTop15 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <%--    <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" AutoPostBack="True" OnCheckedChanged="IsInactive_Checked_Change" />
                                                                            <asp:Label ID="ObsoleteLabel" runat="server" Text="InActive"></asp:Label>--%>
                                                                <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Text="InActive" AutoPostBack="True" OnCheckedChanged="IsInactive_Checked_Change" />
                                                                <asp:Label runat="server" AssociatedControlID="IsObsoleteCheckBox" ID="ObsoleteLabel">
                                                                </asp:Label>
                                                            </div>
                                                        </div>

                                                        <div class="cBoth">
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3" id="InactivationDateDiv" runat="server" visible="False">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="InActivationLabel" runat="server" Text="InActivation Date" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <Date:DatePickerControl DisplayDatePicker="true" ID="InActivationDatePickerControl"
                                                                    runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="cBoth">
                                                        </div>

                                                    </asp:Panel>
                                                    <div id="Div1" class="himssuHeader7WireBox col-md-12" runat="server">
                                                        <div id="NewsDetailDiv" visible="False" runat="server">
                                                            <div class="spacer">
                                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                            </div>
                                                            <div class="himsBoxHeader" id="NewsDiv" 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">
                                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server">
                                                                    <ContentTemplate>
                                                                        <div id="Div5" runat="server" visible="false">
                                                                            <div id="Div8" runat="server" class="table-responsive">
                                                                                <asp:GridView ID="PrintTemplateGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                                    OnRowDataBound="PrintTemplateGridView_RowDataBound" OnPageIndexChanging="PrintTemplateGridView_PageIndexChanging" 
                                                                                    CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found"
                                                                                    SkinID="" ShowHeader="true" PagerSettings-Visible="false" DataKeyNames="CustomerId,CustomerStatusId,OrgNumber">
                                                                                    <Columns>
                                                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                                            <ItemTemplate>
                                                                                                <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="LinkButton_Click"
                                                                                                    Text="Select" CausesValidation="false"></asp:LinkButton>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                        <%--                                                                                                <asp:BoundField DataField="CustomerName" HeaderText="CustomerName" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                                                        <asp:BoundField DataField="OrgNumber" HeaderText="OrgNumber" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                                        <asp:BoundField DataField="OrgName" HeaderText="OrgName" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                                        <asp:BoundField DataField="ActivationDate" HeaderText="ActivationDate" ItemStyle-Width="10%" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-HorizontalAlign="Left" />
                                                                                        <asp:BoundField DataField="InActiveDate" HeaderText="InActiveDate" ItemStyle-Width="10%" DataFormatString="{0:dd/MM/yyyy}" HeaderStyle-HorizontalAlign="Left" />

                                                                                        <%--                                                                                                <asp:BoundField DataField="CustomerStatus" HeaderText="CustomerStatus" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                                                        <%--                                                                                <asp:BoundField DataField="CustomerStatusId" HeaderText="CustomerStatusId" Visible="false" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />--%>
                                                                                        <asp:TemplateField HeaderText="In Active" ItemStyle-Width="10%" SortExpression="IsActive"
                                                                                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                                            <ItemTemplate>
                                                                                                <asp:Label ID="IsObsoleteLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"IsActive").ToString().ToUpper()=="TRUE"?"Y":"N" %>'></asp:Label>
                                                                                            </ItemTemplate>
                                                                                        </asp:TemplateField>
                                                                                    </Columns>
                                                                                </asp:GridView>
                                                                            </div>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </asp:UpdatePanel>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>


                                            <cc1:TabPanel Width="100%" ID="CircularScope" ClientIDMode="Static" runat="server"
                                                HeaderText="Assign To">
                                                <HeaderTemplate>
                                                    <%--   <ul class="nav nav-tabs ajaxnavtabs">
                                                        <li><a style="padding: 10px 15px !important;">Add In Bulk</a></li>
                                                    </ul>--%>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-plus"></i>&nbsp;Add In Bulk </a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <%-- <div class="contentHolder">
                                                                    <div class="himsBoxContent">--%>
                                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always">
                                                        <ContentTemplate>

                                                            <div class="cBoth">
                                                            </div>
                                                            <div class="himsBoxHeader himssuHeader7WireBox"  id="GridViewPagerDiv" runat="server" visible="True">
                                                                <div class="leftdiv"></div>

                                                                <div class="himsBoxTitle">
                                                                    <div class="headerText ">
                                                                     <%--   <header>
                                                                            <asp:Label ID="GridViewLabel" Text="Set Up List"
                                                                                runat="server" />
                                                                        </header>--%>
                                                                        <asp:HiddenField ID="DetailHiddenField" runat="server" />

                                                                    </div>
                                                                    <div class="fRight mt-27 display-flex">
                                                                        <%--<asp:DropDownList ID="AddGridDropDownList" runat="server" SkinID="CustomWidthDropDownList" Width="100px" AutoPostBack="false">
                                                                                        <asp:ListItem Text="1" Value="0" Selected="True"></asp:ListItem>
                                                                                        <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                                        <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                                        <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                                    </asp:DropDownList>--%>
                                                                        <asp:TextBox ID="AddRowTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                            SkinID="CustomWidthTextBox" runat="server" MaxLength="200"></asp:TextBox>
                                                                        &nbsp; &nbsp; &nbsp;
                                                                        <asp:Button ID="AddBulkButton" runat="server" OnClick="AddBulkButton_Click"
                                                                            CssClass="btn btn-add fas" Text="&#xf067; Add" Style="vertical-align: top;" SkinID="0" />
                                                                    </div>


                                                                </div>

                                                            </div>
                                                            <div class="alignCenter col-md-12 pTop5">
                                                                <asp:Button ID="SaveBulkButton" runat="server" OnClick="SaveBulkButton_Click"
                                                                    SkinID="0" CssClass="btn btn-add fas" Text="&#xf067; Add" />
                                                                <%-- <asp:Button ID="EditBulkButton" Text="Edit" runat="server" OnClick="EditBulkButton_Click" />
                                                                                    <asp:Button ID="Button3" Text="Delete" runat="server" OnClick="DeleteButton_Click" />--%>
                                                                <asp:Button ID="ClearBulkButton" runat="server" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" SkinID="0" OnClick="ClearBulkButton_Click" />
                                                            </div>
                                                            <div id="Div3" class="himssuHeader7WireBox col-md-12" runat="server">
                                                                <div id="Div7" runat="server" class="table-responsive">
                                                                    <asp:GridView ID="CustomerOrgBulkAddGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                        EmptyDataText="No Records Found !!"
                                                                        AllowPaging="false" ShowHeader="True"
                                                                        DataKeyNames="RowIndex"
                                                                        CssClass="table table-striped table-bordered table-hover" OnRowDataBound="CustomerOrgBulkAddGridView_RowDataBound">


                                                                        <Columns>

                                                                            <asp:TemplateField HeaderText="Organization No." ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="OrgNoTextBox" runat="server" SkinID="CustomWidthTextBox" MaxLength="100" Text='<%# Bind("OrgNumber") %>'></asp:TextBox>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField HeaderText="Organization Name" ItemStyle-Width="20%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="OrgNameTextBox" runat="server" SkinID="CustomWidthTextBox" MaxLength="100" Text='<%# Bind("OrgName") %>'></asp:TextBox>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <%-- <asp:TemplateField HeaderText="Customer Status" ItemStyle-Width="20%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:DropDownList runat="server" ID="CustomerStatusBulkDropDownList" SkinID="CustomWidthDropDownList"
                                                                                                Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                                            </asp:DropDownList>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>--%>
                                                                            <asp:TemplateField HeaderText="Activation Date" ItemStyle-Width="20%" ItemStyle-Wrap="true"
                                                                                HeaderStyle-HorizontalAlign="Left">
                                                                                <ItemTemplate>
                                                                                    <Date:DatePickerControl DisplayDatePicker="true" ID="ActivationDateBulkPickerControl"
                                                                                        Visible="True" runat="Server" Text='<%# Bind("ActivationDate") %>'></Date:DatePickerControl>
                                                                                </ItemTemplate>
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                <ItemStyle Width="20%" Wrap="True" />
                                                                            </asp:TemplateField>
                                                                            <%-- <asp:TemplateField HeaderText="InActivation Date" ItemStyle-Width="20%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="InActivationDateBulkPickerControl"
                                                                                                Visible="True" runat="Server" Text='<%# Bind("InActivationDate") %>'></Date:DatePickerControl>
                                                                                        </ItemTemplate>
                                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                                        <ItemStyle Width="20%" Wrap="True" />
                                                                                    </asp:TemplateField>--%>
                                                                            <%--<asp:TemplateField HeaderText="Is InActivation" ItemStyle-Width="20%" ItemStyle-Wrap="true"
                                                                                        HeaderStyle-HorizontalAlign="Left">
                                                                                        <HeaderTemplate  >
                                                                                            <asp:CheckBox ID="IsInActiveAllBulkCheckBox" runat="server" onclick="CheckAll(this);" />
                                                                                            <asp:Label ID="aaLabel" Text="In Active"  runat="server"></asp:Label>
                                                                                        </HeaderTemplate>
                                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                                        <ItemTemplate>
                                                                                            <asp:CheckBox ID="IsInActiveBulkCheckBox" runat="server" Checked='<%# Eval("IsActive") %>' />
                                                                                        </ItemTemplate>                                                                                                                                                                              
                                                                                    </asp:TemplateField>--%>
                                                                            <asp:TemplateField ShowHeader="true" HeaderText="Delete" HeaderStyle-HorizontalAlign="Center">
                                                                                <ItemTemplate>
                                                                                    <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                                                        ToolTip="Delete" ImageUrl="../../../Images/icons/icon_delete.gif" />
                                                                                </ItemTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" Width="7%" />
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                    <%-- </div>
                                                                </div>--%>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>


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

    <%--    <script type="text/javascript" language="javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            if (args.get_error() != undefined) {
                args.set_errorHandled(true);
            }
        }
    </script>--%>
</asp:Content>
