<%@ page title="Traceability Track" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_CustomerSupport_TraceabilityTrack, App_Web_ydigo3qb" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/Common/ScreenGroup/SuperAdminScreenGroup.ascx" TagName="SuperAdminScreenGroupControl" TagPrefix="SuperAdminScreenGroup" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>

            <div id="divContentPage" class="divcontentpagemargin">
                <asp:HiddenField ID="IdHiddenField" runat="server" />
                <asp:HiddenField ID="MaxRowHiddenField" runat="server" />
                <asp:HiddenField ID="ModeHiddenField" runat="server" />
                <div class="dashBoardLeftCont">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <SuperAdminScreenGroup:SuperAdminScreenGroupControl EnableViewState="true" ID="SuperAdminScreenGroupControl"
                                                ScreenGroupId="153" 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="SearchLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButton" runat="server" SkinID="0"
                                            CssClass="btn btn-add fas" Text="&#xf067; Add" OnClick="AddNewButton_Click" />
                                    </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="SearchModuleLabel" Text="Module" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchModuleDropDownList" runat="server" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                    meta:resourcekey="ModuleDropDownListResource1" OnSelectedIndexChanged="SearchModuleDropDownList_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchScreenLabel" Text="Screen" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchScreenDropDownList" runat="server" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()"
                                                    meta:resourcekey="ScreenDropDownListResource1">
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="outerBox pTop5 col-md-3">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="SearchTraceabilityLabel" Text="Traceability" runat="server"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <asp:DropDownList ID="SearchTraceAbilityFromDropDownList" runat="server" CssClass="form-control" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()">
                                                </asp:DropDownList>
                                            </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="NewsDetailDiv" visible="false" runat="server">
                                            <div class="spacer">
                                                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                            </div>
                                            <div class="himsBoxContent">
                                                <asp:UpdatePanel ID="FunctionalityDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server" visible="false">
                                                            <div id="Div4" runat="server" class="table-responsive">
                                                                <asp:GridView ID="Traceabilitytrackgridview" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                    CssClass="table table-striped table-bordered table-hover" OnRowDataBound="Traceabilitytrackgridview_RowDataBound"
                                                                    SkinID="" ShowHeader="true" PagerSettings-Visible="false" EmptyDataText="No Record Available For Search Criteria" DataKeyNames="ScreenId,TraceabilityId,TraceabilitySourceId">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                            HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:LinkButton ID="TraceabilityEditButton" runat="server" CommandName="Select"
                                                                                    Text="Select" CausesValidation="false" OnClick="EditLinkButton_Click"></asp:LinkButton>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Module" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ModuleLabel" runat="server" CssClass="boxEllips" Text='<%#Bind("Module")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Screen" ItemStyle-Width="20%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="ScreenLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("ScreenTitle")%>'
                                                                                    Text='<%#Bind("ScreenTitle")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Traceability" ItemStyle-Width="20%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="TraceabilityLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("Traceability")%>'
                                                                                    Text='<%#Bind("Traceability")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Source" ItemStyle-Width="30%" meta:resourcekey="TemplateFieldResource1" HeaderStyle-HorizontalAlign="Left">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="SourceLabel" runat="server" CssClass="boxEllips" ToolTip='<%#Bind("SourceData")%>'
                                                                                    Text='<%#Bind("SourceData")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </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">
                        <cc1:TabContainer Width="100%" ID="TraceabilityTrackTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default pTop5"
                            AutoPostBack="true" meta:resourcekey="TraceabilityTrackTabContainerResource" OnActiveTabChanged="TraceabilityTrackTabContainer_ActiveTabChanged">
                            <cc1:TabPanel Width="100%" ID="TraceabilityTrackInsertTabPanel" runat="server" HeaderText="TraceabilityTrackInsert">
                                <HeaderTemplate>
                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                        <li class="fancyTab">
                                            <a><i class="fas  fa-bars"></i>&nbsp;TraceabilityTrack Insert</a></li>
                                    </ul>
                                </HeaderTemplate>
                                <ContentTemplate>
                                    <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="ScreenDetailLabel" runat="server" Text="Traceability Track"></asp:Label>
                                                </header>
                                            </div>
                                        </div>
                                        <div class="fRight mt-27 pagination display-flex">
                                            <table>
                                                <tr>
                                                    <td class="formLabel">
                                                        <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                            <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton" OnClick="FirstRecordImageButton_Click"
                                                                runat="server" CommandName="Page" CommandArgument="First"
                                                                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" OnClick="NextImageButton_Click"
                                                    runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Next">
                                                     <i class="fa fa-play"></i>
                                                </asp:LinkButton>
                                                            <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton" OnClick="LastRecordImageButton_Click"
                                                                runat="server" CssClass="btn btn-default gridviewpagerbuttonpadding" CommandName="Page" CommandArgument="Last">
                                                      <i class="fa fa-fast-forward" ></i>
                                                            </asp:LinkButton>
                                                            &nbsp;  &nbsp; &nbsp;
                                                        </div>
                                            </table>
                                            <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" />
                                        </div>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <div class="contentHolder">
                                            <div class="tableContainer">
                                                <div class="contentHolder">
                                                    <asp:HiddenField ID="ScreenId" runat="server" />
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ModuleLabel" runat="server" Text="Module" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="ModuleDropDownList" OnSelectedIndexChanged="ModuleDropDownList_SelectedIndexChanged" runat="server" CssClass="form-control"
                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="ModuleDropDownListResource1" AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="ScreenLabel" runat="server" Text="Screen" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="ScreenDropDownList" runat="server" CssClass="form-control"
                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                meta:resourcekey="ScreenDropDownListResource">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="TraceabilityLabel" runat="server" Text="Traceability" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="TraceabilityDropDownList" OnSelectedIndexChanged="TraceabilityDropDownList_SelectedIndexChanged" runat="server" CssClass="form-control"
                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="TraceabilityDropDownListResource" AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Module2Label" runat="server" Text="Module" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="TraceabilityModuleDropDownList" OnSelectedIndexChanged="Module2DropDownList_SelectedIndexChanged" runat="server" CssClass="form-control"
                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                meta:resourcekey="Module2DropDownResource2" AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="SourceLabel" runat="server" Text="Source" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="SourceDropDownList" runat="server" CssClass="form-control"
                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" meta:resourcekey="SourceDropDownListResource">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <br />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </cc1:TabPanel>
                            <cc1:TabPanel Width="100%" ID="TraceabilityTrackBulkInsert" runat="server" HeaderText="TraceabilityTrackBulkInsert">
                                <HeaderTemplate>
                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                        <li class="fancyTab">
                                            <a><i class="fas  fa-bars"></i>&nbsp;TraceabilityTrack Bulk Insert</a></li>
                                    </ul>
                                </HeaderTemplate>
                                <ContentTemplate>

                                    <div class="col-md-12 text-center mb-28 position-fixed z10" style="margin-top: 5px;">
                                        <asp:Button ID="BulkSaveButton" runat="server" Text="&#xf0c7; Save" CssClass="fas btn btn-save "
                                            OnClick="BulkSaveButton_Click" />
                                        <asp:Button ID="BulkClearButton" runat="server" Text="&#xf12d; Clear" OnClick="BulkClearButton_Click"
                                            SkinID="0" class="fas btn btn-clear " Font-Bold="true" CommandName="Clear" />
                                    </div>
                                    <br />
                                    <br />
                                    <br />
                                    <div id="Div2" class="himssuHeader7WireBox col-md-12" runat="server" style="width: 99%; margin-right: 5px;">
                                        <div id="Div3" visible="True" runat="server">
                                            <div class="himsBoxHeader card-head inner" id="NewsDiv" visible="True" runat="server">
                                                <div class="leftdiv">
                                                </div>


                                                <div class="himsBoxTitle" style="width: 99%">
                                                    <div class="cBoth"></div>
                                                    <div  style="float: right; padding-left: 2px;margin-left:10px;">
                                                         <asp:Button ID="AddButton" runat="server" CssClass="btn btn-add fas" Text="&#xf067; Add" SkinID="0" EnableViewState="true" OnClick="AddButton_Click" />
                                                          
                                                    </div>
                                                    
                                                    <div class="pTop5" style="float: right; padding-left: 2px;">
                                                        <asp:TextBox ID="AddTextBox" SkinID="CustomWidthTextBox" runat="server" MaxLength="9" style="margin-left:20px;">
                                                               </asp:TextBox>
                                                      </div>
                                                 
                                                    <div style="float: right">
                                                        <asp:Button ID="ApplyButton" runat="server" SkinID="0" Text="Apply All" OnClick="ApplyButton_Click" CssClass="btn btn-assign fas"/>
                                                    </div>
                                                    <div class="pTop5 "  style="float:right; padding-right:5px;">
                                                        <asp:TextBox ID="ApplyTextBox" runat="server" SkinID="CustomWidthTextBox"></asp:TextBox> 
                                                    </div>
                                                    <div class="pTop5 "style="float: right; padding-left: 5px;">
                                                        <asp:DropDownList ID="ApplyDropDownList" runat="server" SkinID="CustomWidthDropDownList" CssClass="form-control" AutoPostBack="true"></asp:DropDownList>
                                                   </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 table-responsive">
                                                <asp:GridView ID="TraceabilitytrackBulkInsertGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                    CssClass="table table-striped table-bordered table-hover" OnRowDataBound="TraceabilitytrackBulkInsertGridView_RowDataBound"
                                                    SkinID="" ShowHeader="true" EmptyDataText="No Records Found" ShowFooter="true">
                                                    <Columns>
                                                        <asp:TemplateField ItemStyle-Wrap="true" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Center">
                                                            <HeaderTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="HeaderDataCheckBox" runat="server" onClick="checkAllRows(this);" />
                                                                    <span></span>
                                                                </label>
                                                            </HeaderTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                            <ItemTemplate>
                                                                <label class="rt-chkbox rt-chkbox-outline">
                                                                    <asp:CheckBox ID="DataCheckBox" runat="server" onClick="checkUncheckHeaderCheckBox(this);" CssClass="fa-align-center" />
                                                                    <span></span>
                                                                </label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField ItemStyle-Width="20%" HeaderText="Module" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:DropDownList ID="BulkInsertModuleDropDownList" runat="server" CssClass="form-control" Width="98%" OnSelectedIndexChanged="BulkInsertModuleDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                                            </ItemTemplate>

                                                        </asp:TemplateField>
                                                        <asp:TemplateField ItemStyle-Width="20%" HeaderText="Screen" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:DropDownList ID="BulkInsertScreenDropDownList" runat="server" CssClass="form-control" Width="98%"></asp:DropDownList>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ItemStyle-Width="20%" HeaderText="Traceability" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:DropDownList ID="BulkInsertTraceabilityDropDownList" runat="server" CssClass="form-control" Width="98%" OnSelectedIndexChanged="BulkInsertTraceabilityDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ItemStyle-Width="20%" HeaderText="Module" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:DropDownList ID="BulkInsertModuleSourceDropDownList" runat="server" CssClass="form-control" Width="98%" OnSelectedIndexChanged="BulkInsertModuleSourceDropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ItemStyle-Width="20%" HeaderText="Source" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                            <ItemTemplate>
                                                                <asp:DropDownList ID="BulkInsertSourceDropDownList" runat="server" CssClass="form-control" Width="98%"></asp:DropDownList>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ShowHeader="true" HeaderText="Dlt" 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="5%" />
                                                            <FooterStyle HorizontalAlign="Center" BorderStyle="None" />
                                                            <FooterTemplate>
                                                                <asp:ImageButton ID="AddrowImageButton" runat="server" OnClick="AddrowImageButton_Click"
                                                                    ToolTip="Add row" ImageUrl="../../Images/icons/expandtab.png" />
                                                            </FooterTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>

                                            </div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </cc1:TabPanel>
                        </cc1:TabContainer>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        function checkAllRows(obj) {
            var objGridview = obj.closest('table');
            var list = objGridview.getElementsByTagName("input");
            for (var i = 0; i < list.length; i++) {
                var objRow = list[i].parentNode.parentNode;
                if (list[i].type == "checkbox" && obj != list[i]) {
                    if (obj.checked) {
                        list[i].checked = true;
                    }
                    else {
                        list[i].checked = false;
                    }
                }
            }
        }
        function checkUncheckHeaderCheckBox(obj) {
            var objGridView = obj.closest('table');
            var list = objGridView.getElementsByTagName("input");
            for (var i = 0; i < list.length; i++) {
                var objHeaderChkBox = list[0];
                var checked = true;
                if (list[i].type == "checkbox" && list[i] != objHeaderChkBox) {
                    if (!list[i].checked) {
                        checked = false;
                        break;
                    }
                }
            }
            objHeaderChkBox.checked = checked;
        }
    </script>
</asp:Content>
