<%@ control language="VB" autoeventwireup="false" inherits="RCC_Exchange_CC_Retention, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="CC" %>
<CC:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl1" runat="server">
    <script type="text/javascript">

        function CBChange() {
            var CB_Disable = document.getElementById('<%=CB_Disable.ClientID%>');
        var Tr_Days = document.getElementById('<%=Tr_Days.ClientID%>');
        var Tr_Action = document.getElementById('<%=Tr_Action.ClientID%>');
        var TxBx_Days = document.getElementById('<%=TxBx_Days.ClientID%>');
        var RFV_Days = document.getElementById('<%=RFV_Days.ClientID%>');

            if (CB_Disable.checked == true) {
                Tr_Action.style.display = 'none';
                Tr_Days.style.display = 'none';
                TxBx_Days.value = '';
                ValidatorEnable(RFV_Days, false);
            }
            else {
                Tr_Action.style.display = '';
                Tr_Days.style.display = '';
                ValidatorEnable(RFV_Days, true);
            }

        }

    </script>
</CC:UpdatePanelInlineScriptControl>
<div class="row">
    <%--<div class="col-xs-12">
        <div class="products-step">
            <span id="div_Tag" runat="server" nowrap="true" class="label label-success">
                <asp:LinkButton ID="lb_Tag" runat="server" Text='<%$ Resources:Content, Exch048 %>' />
            </span>
            <span id="div_Policy" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_Policy" runat="server" Text='<%$ Resources:Content, Exch049 %>' />
            </span>
            <span id="div1" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_Advanced1" runat="server" Text='' />
            </span>
        </div>
    </div>--%>
    <div class="col-xs-12">
        <asp:MultiView ID="MV_Retention" runat="server" ActiveViewIndex="0">
            <asp:View ID="V_Tags" runat="server">
                <div id="Pnl_ListingTag" runat="server">
                    <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                    </h3>
                                </div>
                                <div class="body">
                                    <asp:Button ID="Btn_AddTag" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,AddNewTag%>' />
                                </div>
                            </div>
                        </div>
                    </div>

                    <%--Search Option--%>
                    <asp:Panel ID="Pnl_SearchTag" runat="server" DefaultButton="Btn_SrchTag">
                        <div class="row">
                            <div class="panel-group search-panel" id="AS_Tags" role="tablist" aria-multiselectable="true">
                                <div class="col-xs-12" role="tab" id="SH_Tags">
                                    <div class="card">
                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Tags" href="#<%= CSB_Tags.ClientID%>" aria-expanded="true" aria-controls="SH_Tags">
                                            <h3>
                                                <%= Resources.Content.GN0000395%>
                                            </h3>
                                        </div>
                                        <div id="CSB_Tags" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Tags" aria-expanded="false">
                                            <div class="row">
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_TagNameFilter" runat="server" MaxLength="1000"></asp:TextBox>
                                                            <asp:Label ID="Label32" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Exch050%>" CssClass="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_TagTypeFilter" runat="server">
                                                            <asp:ListItem Text="<%$ Resources:Content,SelectTagType %>" Value="-1"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0379%>" Value="All"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,strCalendar%>" Value="Calendar"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,DGN1110415%>" Value="Contacts"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0380%>" Value="ConversationHistory"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0381%>" Value="DeletedItems"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0382%>" Value="Drafts"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0383%>" Value="Inbox"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0384%>" Value="Journal"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0385%>" Value="JunkEmail"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,GN00001336%>" Value="Notes"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0386%>" Value="Outbox"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0387%>" Value="Personal"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0388%>" Value="RecoverableItems"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0389%>" Value="RssSubscriptions"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0390%>" Value="SentItems"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0391%>" Value="SyncIssues"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,strTask%>" Value="Task"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_TagAgeFilter" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label35" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Exch056%>" CssClass="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:Button ID="Btn_SrchTag" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                        <asp:Button ID="Btn_ClearTag" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                            Text="<%$ Resources:Content,String289 %>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>

                    <div class="row">
                        <div class="col-xs-12">
                            <EM:MPGridView ID="GV_Tags" CurrentSortExpression="TagName" CurrentSortDirection="Asc"
                                CssClass="table table-bordered table-striped table-hover" runat="server" AllowPaging="true" AllowSorting="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                AutoGenerateColumns="false" DataKeyNames='TagId,TagName,Age'>

                                <Columns>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content, Exch050 %>" SortExpression="TagName" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="Lb_TagName" CommandName="Details" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.TagId") %>'
                                                runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TagName") %>'></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content, Exch051 %>" SortExpression="TagType" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_TagType" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content, Exch053 %>" SortExpression="Action" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Action" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content, Exch056%>" SortExpression="Age" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Age" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Age") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content, Exch055%>" SortExpression="Enabled" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Enabled" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Edit" class="btn btn-primary waves-effect" CommandName="Details"
                                                CommandArgument='<%# DataBinder.Eval(Container, "DataItem.TagId") %>' runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                            <asp:LinkButton class="btn btn-primary waves-effect btnAction" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.TagId") %>'
                                                ID="LB_Remove" CommandName="RemoveTag" runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                TargetControlID="LB_Remove" runat="server">
                                            </EM:ConfirmButtonExtender>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerTemplate>
                                    <EM:Pager ID="Pager" runat="server" />
                                </PagerTemplate>
                            </EM:MPGridView>
                        </div>
                    </div>
                </div>

                <asp:Panel CssClass="row" ID="Pnl_AddTag" runat="server" DefaultButton="Btn_Save" Visible="false">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="Literal33" runat="server" Text="<%$ Resources:Content,Exch057%>" EnableViewState="false"></asp:Literal>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,Exch050%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txt_TagName" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="Txt_TagName"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="RetentionTag"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-5 col-xs-12">
                                        <asp:Label ID="Lbl_OUName" runat="server"></asp:Label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,Exch051%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_TagType" runat="server" AutoPostBack="true">
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0379%>" Value="All"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,strCalendar%>" Value="Calendar"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,DGN1110415%>" Value="Contacts"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0380%>" Value="ConversationHistory"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0381%>" Value="DeletedItems"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0382%>" Value="Drafts"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0383%>" Value="Inbox"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0384%>" Value="Journal"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0385%>" Value="JunkEmail"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN00001336%>" Value="Notes"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0386%>" Value="Outbox"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0387%>" Value="Personal"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0388%>" Value="RecoverableItems"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0389%>" Value="RssSubscriptions"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0390%>" Value="SentItems"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SMI0391%>" Value="SyncIssues"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,strTask%>" Value="Task"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,Exch054%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:CheckBox ID="CB_Disable" onChange="CBChange();" runat="server" Text=" " />
                                        </div>
                                    </div>
                                </div>
                                <div class="row" id="Tr_Days" runat="server">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,Exch052%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Days" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFV_Days" runat="server" ControlToValidate="TxBx_Days"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="RetentionTag"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                        <asp:RangeValidator ID="rvCPU" runat="server" Text="*" ControlToValidate="TxBx_Days" Display="None"
                                            ErrorMessage="Must be non-zero numeric. Valid Range (1-10000)." MinimumValue="1"
                                            MaximumValue="10000" Type="Integer" ValidationGroup="RetentionTag"></asp:RangeValidator>
                                    </div>
                                </div>
                                <div class="row" id="Tr_Action" runat="server">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,Exch053%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_Action" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content,String449%>" Value="DeleteAndAllowRecovery"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,String451%>" Value="PermanentlyDelete"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,String450%>" Value="MovetoArchive"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,GN000148%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:TextBox ID="TxBx_Comments" runat="server" TextMode="MultiLine" Height="150px" Width="100%"></asp:TextBox>
                                             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_Comments"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="RetentionTag"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:ValidationSummary ID="ValidationSummary4" runat="server" ShowMessageBox="true"
                                            ShowSummary="false" ValidationGroup="RetentionTag" HeaderText="<%$ Resources:Content,EM000001%>" />

                                        <asp:Button ID="Btn_Save" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                            class="btn btn-primary waves-effect btnAction" ValidationGroup="RetentionTag" CausesValidation="true" />
                                        <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>"
                                            class="btn btn-primary waves-effect" CausesValidation="false" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
            </asp:View>
            <asp:View ID="V_Policy" runat="server">
                <div id="Pnl_ListingPolicy" runat="server">
                    <div class="row Div_OpsRow" id="Div_OpsRow2" runat="server">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                    </h3>
                                </div>
                                <div class="body">
                                    <asp:Button ID="Btn_AddPolicy" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,AddPolicy%>' />
                                </div>
                            </div>
                        </div>
                    </div>

                    <%--Search Option--%>
                    <asp:Panel ID="Pnl_SearchPolicy" runat="server" DefaultButton="Btn_SrchPolicy">
                        <div class="row">
                            <div class="panel-group search-panel" id="AS_Policies" role="tablist" aria-multiselectable="true">
                                <div class="col-xs-12" role="tab" id="SH_Policies">
                                    <div class="card">
                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Policies" href="#<%= CSB_Policies.ClientID%>" aria-expanded="true" aria-controls="SH_Policies">
                                            <h3>
                                                <%= Resources.Content.GN0000395%>
                                            </h3>
                                        </div>
                                        <div id="CSB_Policies" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Policies" aria-expanded="false">
                                            <div class="row">
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_PolicyNameFilter" runat="server" MaxLength="1000"></asp:TextBox>
                                                            <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,L00189%>" CssClass="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:Button ID="Btn_SrchPolicy" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                        <asp:Button ID="Btn_ClearPolicy" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                            Text="<%$ Resources:Content,String289 %>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>

                    <div class="row">
                        <div class="col-xs-12">
                            <EM:MPGridView ID="GV_Policy" CurrentSortExpression="PolicyName" CurrentSortDirection="Asc"
                                CssClass="table table-bordered table-striped table-hover" runat="server" AllowPaging="true" AllowSorting="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                AutoGenerateColumns="false" DataKeyNames='PolicyId,PolicyName'>

                                <Columns>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content, L00189 %>" SortExpression="PolicyName" HeaderStyle-CssClass="col-xs-10" ItemStyle-CssClass="col-xs-10">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="Lb_PolicyName" CommandName="Details" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.PolicyId") %>'
                                                runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PolicyName") %>'></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Edit" class="btn btn-primary waves-effect" CommandName="Details"
                                                CommandArgument='<%# DataBinder.Eval(Container, "DataItem.PolicyId") %>' runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                            <asp:LinkButton class="btn btn-primary waves-effect btnAction" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.PolicyId") %>'
                                                ID="LB_Remove" CommandName="RemovePolicy" runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,GN000200%>"
                                                TargetControlID="LB_Remove" runat="server">
                                            </EM:ConfirmButtonExtender>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerTemplate>
                                    <EM:Pager ID="Pager" runat="server" />
                                </PagerTemplate>
                            </EM:MPGridView>
                        </div>
                    </div>
                </div>

                <asp:Panel CssClass="row" ID="Pnl_AddPolicy" runat="server" Visible="false" DefaultButton="Btn_PolicySave">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,Exch059%>" EnableViewState="false"></asp:Literal>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,GN000170%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_PolicyName" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_PolicyName"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="RetentionPolicy"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>

                                    </div>
                                    <div class="col-sm-6 col-xs-12">
                                        <asp:Label ID="Lbl_PolicyOU" runat="server"></asp:Label>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 row-label">
                                        <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,Exch057%>" EnableViewState="false" />:
                                    </div>
                                    <div class="col-xs-12">
                                        <EM:MPGridView ID="GV_PolicyTag" CurrentSortExpression="TagName" CurrentSortDirection="Asc"
                                            CssClass="table table-bordered table-striped table-hover" runat="server" AllowPaging="false" AllowSorting="true"
                                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' AutoGenerateColumns="false">

                                            <Columns>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000370 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox runat="server" value="PolicyTagId" ID="ChkBx_All" onclick="SetChecked2(this.checked, this, 'PolicyTagId');"
                                                            Text=" " class="option-menu" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:HiddenField ID="HF_TagId" Value='<%# DataBinder.Eval(Container, "DataItem.TagId") %>'
                                                            runat="server" />
                                                        <asp:CheckBox runat="server" value="PolicyTagId" ID="ChkBx_All" Text=" " CssClass="option-menu" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content, Exch050 %>" SortExpression="TagName" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_TagName" Text='<%# DataBinder.Eval(Container, "DataItem.TagName") %>'
                                                            runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content, Exch051 %>" SortExpression="TagType" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_TagType" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content, Exch053 %>" SortExpression="Action" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Action" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content, Exch056%>" SortExpression="Age" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Age" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Age") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content, Exch055%>" SortExpression="Enabled" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Enabled" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager" runat="server" />
                                            </PagerTemplate>
                                        </EM:MPGridView>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,DGN1110429%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-xs-12">
                                        <ajax:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <EM:AddSelectableSelected ID="UCRetentionPolicy" runat="server" />
                                            </ContentTemplate>
                                        </ajax:UpdatePanel>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
                                            ShowSummary="false" ValidationGroup="RetentionPolicy" HeaderText="<%$ Resources:Content,EM000001%>" />

                                        <asp:Button ID="Btn_PolicySave" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                            class="btn btn-primary waves-effect btnAction" ValidationGroup="RetentionPolicy" CausesValidation="true" />
                                        <asp:Button ID="Btn_PolicyCancel" runat="server" Text="<%$ Resources:Content,GN0000572%>"
                                            class="btn btn-primary waves-effect" CausesValidation="false" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
            </asp:View>
        </asp:MultiView>
    </div>
</div>
