<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_System_Reports, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/RCC/System/CC/UsageReports.ascx" TagName="UsageReports" TagPrefix="UC" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <EM:TabContainer ID="TC_UsageReports" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_UsageReports" runat="server" HeaderText="<%$ Resources:Content,FAM00137 %>" Enabled="true">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server" Visible="true">

                                <UC:UsageReports ID="UsageReports1" runat="server"></UC:UsageReports>

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_UsageReportSchedules" runat="server" HeaderText="<%$ Resources:Content,USM0045 %>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <div class="row Div_OpsRow" id="tbl_Operations" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3><%= Resources.Content.GN00001320%>  </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_AddSchedule" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,SMI732%>" />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <asp:Panel ID="Pnl_Schedule_Detail" runat="server" Visible="false">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3><%= Resources.Content.ScheduleGroupSettings%>  </h3>
                                                </div>
                                                <div class="body">

                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,ScheduleGroupName %>"></asp:Literal>
                                                        </div>
                                                        <div class="col-sm-8 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_Description" runat="server"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_Description" runat="server" ControlToValidate="TxBx_Description"
                                                                        ErrorMessage="<%$ Resources:Content,GN00008027%>" SetFocusOnError="true" ValidationGroup="saveschedule"
                                                                        Display="None" Enabled="true">
                                                                    </asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <%--<div id="accordion" class="panel-group hide">
                                                        <div class="panel panel-primary">
                                                            <div class="panel-heading">
                                                                <h4 class="panel-title">
                                                                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"><%= Resources.Content.USM0046%></a>
                                                                </h4>
                                                            </div>
                                                            <div id="collapseOne" class="panel-collapse collapse in">
                                                                <div class="panel-body">
                                                                    <div class="row">
                                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                                            <asp:Literal ID="Ltrl_SelectReport" runat="server" Text="<%$ Resources:Content,USM0046 %>"></asp:Literal>
                                                                        </div>
                                                                        <div class="col-sm-9 col-xs-12">
                                                                            <asp:CheckBoxList ID="CB_ReportsList" runat="server" CssClass="table" RepeatLayout="Table" RepeatColumns="2" RepeatDirection="vertical"></asp:CheckBoxList>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>--%>

                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <div class="panel-group" id="accordion_1" role="tablist" aria-multiselectable="true">
                                                                <asp:Repeater ID="Rep_ReportGroups" runat="server">
                                                                    <ItemTemplate>
                                                                        <div class="p-b-5">
                                                                            <div class="panel panel-primary" id="AccordionPane1" runat="server">
                                                                                <div class="panel panel-heading" role="tab" id="PanelHeading" runat="server">
                                                                                    <h2 class="panel-title">
                                                                                        <a role="button" id="A_Head" runat="server" data-toggle="collapse" data-parent="#accordion_1" href="#collapseOne"
                                                                                            aria-expanded="false" aria-controls="collapseOne" class="">
                                                                                            <div id="Ltrl_PackageType" runat="server" />
                                                                                            <asp:HiddenField ID="Lbl_PackageTypeId" runat="server"></asp:HiddenField>
                                                                                        </a>
                                                                                    </h2>
                                                                                </div>

                                                                                <div id="collapseOne" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="PanelHeading">
                                                                                    <div class="panel-body">
                                                                                        <input id="Txt" runat="server" type="text" style='display: none;' class='hfclass2' />

                                                                                        <div class="row">
                                                                                            <div class="col-xs-12">
                                                                                                <asp:CheckBoxList ID="CB_ReportsList" runat="server" CssClass="table" RepeatLayout="Table" RepeatColumns="2" RepeatDirection="vertical"></asp:CheckBoxList>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:Repeater>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *<asp:Literal ID="Ltrl_SendTo" runat="server" Text="<%$ Resources:Content,String320 %>"></asp:Literal>
                                                        </div>
                                                        <div class="col-sm-8 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <%--<asp:TextBox ID="TxBx_SendTo" runat="server"></asp:TextBox>--%>
                                                                    <asp:TextBox ID="TxBx_SendTo" runat="server" MaxLength="2000" TextMode="MultiLine"
                                                                        CssClass="col-xs-12" Height="110"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RFV_SendTo" runat="server" ControlToValidate="TxBx_SendTo"
                                                                        Display="None"
                                                                        ErrorMessage="<%$ Resources:Content,GN00008027%>" SetFocusOnError="true" ValidationGroup="saveschedule"
                                                                        Enabled="true">
                                                                    </asp:RequiredFieldValidator>
                                                                    <%--<asp:RegularExpressionValidator ID="REV_SendTo" Display="None" runat="server"
                                                                        ErrorMessage="<%$ Resources:Content,DGN1110038%>" ControlToValidate="TxBx_SendTo"
                                                                        SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                                        Enabled="true" ValidationGroup="saveschedule"></asp:RegularExpressionValidator>--%>
                                                                </div>
                                                            </div>
                                                            <br />
                                                            <small class="row-label"><%= Resources.Content.SpecifyCommaSeparatedEmails %></small>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *
                                            <asp:Literal ID="Ltrl_FromEmail" runat="server" Text="<%$ Resources:Content,DGN1110162 %>">
                                            </asp:Literal>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_FromEmail" runat="server"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RFV_FromEmail" runat="server" ControlToValidate="TxBx_FromEmail"
                                                                        Display="None"
                                                                        ErrorMessage="From address is required" SetFocusOnError="true" ValidationGroup="saveschedule"
                                                                        Enabled="true">
                                                                    </asp:RequiredFieldValidator>
                                                                    <%--<asp:RegularExpressionValidator ID="REV_FromEmail" Display="None" runat="server"
                                                                        ErrorMessage="<%$ Resources:Content,DGN1110038%>" ControlToValidate="TxBx_FromEmail"
                                                                        SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                                        Enabled="true" ValidationGroup="saveschedule"></asp:RegularExpressionValidator>--%>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            <asp:Literal ID="Ltrl_MailContent" runat="server" Text="<%$ Resources:Content,USM0052 %>"></asp:Literal>
                                                        </div>
                                                        <div class="col-sm-8 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:TextBox ID="TxBx_MailContent" runat="server" MaxLength="2000" TextMode="MultiLine"
                                                                    CssClass="col-xs-12" Height="110"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            <asp:Literal ID="Ltrl_SendFreq" runat="server" Text="<%$ Resources:Content,USM0047 %>">
                                                            </asp:Literal>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="Ddl_SendFrequency" runat="server" AutoPostBack="true">
                                                                    <asp:ListItem Text="<%$ Resources:Content,GN0000912 %>" Value="0"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content,DGN1110290 %>" Value="1"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, DGN1110293 %>" Value="2"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *
                                            <asp:Literal ID="Ltrl_TimeToSend" runat="server" Text="<%$ Resources:Content,USM0048 %>"></asp:Literal>
                                                        </div>
                                                        <div class="col-sm-3 col-xs-12">
                                                            <div class="form-group form-float">
                                                                <div class="form-line" id="Div_formline_TxBx_TimeHour" runat="server">
                                                                    <asp:TextBox ID="TxBx_TimeHour" runat="server" MaxLength="2"
                                                                        CausesValidation="true" ValidationGroup="saveschedule"></asp:TextBox>
                                                                    <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001133%>" CssClass="form-label"></asp:Label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-3 col-xs-12">
                                                            <div class="form-group form-float">
                                                                <div class="form-line" id="Div_formline_TxBx_TimeMins" runat="server">
                                                                    <asp:TextBox ID="TxBx_TimeMins" runat="server" MaxLength="2"
                                                                        CausesValidation="true" ValidationGroup="saveschedule"></asp:TextBox>
                                                                    <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001132%>" CssClass="form-label"></asp:Label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-3 col-xs-12">
                                                            <label><b>[<asp:Literal ID="Ltrl_TimeNote" runat="server" Text="<%$ Resources:Content,USM0049 %>"></asp:Literal>]</b></label>
                                                        </div>

                                                        <div class="col-xs-12">
                                                            <asp:RequiredFieldValidator ID="RFV_TimeHour" runat="server" ControlToValidate="TxBx_TimeHour"
                                                                Display="None"
                                                                ErrorMessage="Time: Hour is required" SetFocusOnError="true" ValidationGroup="saveschedule"
                                                                Enabled="true"></asp:RequiredFieldValidator>
                                                            <asp:RequiredFieldValidator ID="RFV_TimeMins" runat="server" ControlToValidate="TxBx_TimeMins"
                                                                Display="None"
                                                                ErrorMessage="Time: Minutes is required" SetFocusOnError="true" ValidationGroup="saveschedule"
                                                                Enabled="true"></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ID="REV_TimeHour" Display="None" runat="server"
                                                                ErrorMessage='Only upto two digit value is allowed for hour' ControlToValidate="TxBx_TimeHour"
                                                                SetFocusOnError="True" ValidationExpression="[0-9]{1,2}"
                                                                Enabled="true" ValidationGroup="saveschedule"></asp:RegularExpressionValidator>
                                                            <asp:RegularExpressionValidator ID="REV_TimeMins" Display="None" runat="server"
                                                                ErrorMessage='Only upto two digit value is allowed for minutes' ControlToValidate="TxBx_TimeMins"
                                                                SetFocusOnError="True" ValidationExpression="[0-9]{1,2}"
                                                                Enabled="true" ValidationGroup="saveschedule"></asp:RegularExpressionValidator>
                                                        </div>
                                                    </div>
                                                    <div class="row" id="tr_weekyday" runat="server" visible="false">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            <asp:Literal ID="Ltrl_WeekDayToSend" runat="server" Text="<%$ Resources:Content,USM0050 %>"></asp:Literal>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="ddl_WeekDays" runat="server">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row" id="tr_dateToSend" runat="server" visible="false">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            <asp:Literal ID="Ltrl_DateToSend" runat="server" Text="<%$ Resources:Content,USM0051 %>"></asp:Literal>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="Ddl_DayToSend" runat="server"></asp:DropDownList>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_SaveSchedule" runat="server" SkinID="saveButton" Text="<%$ Resources:Content,GN0000281 %>"
                                                                CausesValidation="true" ValidationGroup="saveschedule" />
                                                            <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_CancelSchedule" runat="server" SkinID="cancelButton" Text=" <%$ Resources:Content,GN0000572 %>"
                                                                CausesValidation="false" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <asp:ValidationSummary DisplayMode="List" ShowMessageBox="true" ID="vs_saveschedule"
                                        runat="server" ValidationGroup="saveschedule" ShowSummary="false" />
                                </asp:Panel>
                                <asp:Panel ID="Pnl_Schedule_Listing" runat="server">
                                    <%--Search Option--%>
                                    <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_Srch">
                                        <div class="row">
                                            <div class="panel-group search-panel" id="AS_Mailboxes" role="tablist" aria-multiselectable="true">
                                                <div class="col-xs-12" role="tab" id="SH_Mailboxes">
                                                    <div class="card">
                                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Mailboxes" href="#<%= CSB_Mailboxes.ClientID%>" aria-expanded="true" aria-controls="SH_Mailboxes">
                                                            <h3>
                                                                <%= Resources.Content.GN0000395%>
                                                            </h3>
                                                        </div>
                                                        <div id="CSB_Mailboxes" runat="server" class="body panel-collapse collapse in" role="tabpanel" aria-labelledby="SH_Mailboxes" aria-expanded="true">
                                                            <div class="row">
                                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="td_Owner">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDl_Owner" runat="server" onchange="setOwnerCookie(this)"></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_DescriptionFilter" runat="server"></asp:TextBox>
                                                                            <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,ScheduleGroupName%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </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_SendToFilter" runat="server" MaxLength="200"></asp:TextBox>
                                                                            <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMI734%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </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_FromEmailFilter" runat="server"></asp:TextBox>
                                                                            <asp:Label ID="Label5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,FromEmail%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </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_ReportNameFilter" runat="server" MaxLength="200"></asp:TextBox>
                                                                            <asp:Label ID="Label6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,ReportName%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="Ddl_SendFrequencyFilter" runat="server">
                                                                            <asp:ListItem Text="<%$ Resources:Content,SelectSendingFrequency %>" Value="-1"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content,GN0000912 %>" Value="0"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content,DGN1110290 %>" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content, DGN1110293 %>" Value="2"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="DDL_StatusFilter" runat="server">
                                                                            <asp:ListItem Text="<%$ Resources:Content,SelectStatus %>" Value="-1"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content,strDisabled %>" Value="0"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content,strActive %>" Value="1"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:Button ID="Btn_Srch" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                        <asp:Button ID="Btn_ClearSearch" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                            Text="<%$ Resources:Content,String289 %>" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>

                                    <asp:GridView ID="GV_Schedules" runat="server" CssClass="table table-bordered table-striped table-hover table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                        AutoGenerateColumns="False" DataKeyNames="CompanyId,SendTo,FromEmail,MailContent,SendingDuration,TimeToSend,DayToSend,DateToSend,Description,IsActive,LastSendAt">

                                        <Columns>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,ScheduleGroupName%>" HeaderStyle-CssClass="col-xs-3">
                                                <ItemTemplate>
                                                    <asp:Literal ID="Ltrl_Description" runat="server"></asp:Literal>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content, DGN1110431 %>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                                <ItemTemplate>
                                                    <table class="table small">
                                                        <tr>
                                                            <td width="30%" class="row-label"><%= Resources.Content.USM0047%>:</td>
                                                            <td>
                                                                <asp:Literal ID="Ltrl_SendFrequecy" runat="server" Text='<%# GetDurationString(Eval("SendingDuration"))%>'></asp:Literal>
                                                                <asp:Label ID="Lbl_TimeToSend" runat="server" Text="<%$Resources:Content,GN0000005 %>"></asp:Label>
                                                                <asp:Label ID="Lbl_DayToSend" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="row-label"><%= Resources.Content.GN0000372%>:</td>
                                                            <td>
                                                                <asp:Literal ID="Ltrl_From" runat="server" Text='<%# Eval("FromEmail")%>'></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="row-label"><%= Resources.Content.SMI734%>:</td>
                                                            <td>
                                                                <asp:Literal ID="Ltrl_SendTo" runat="server" Text='<%# Eval("SendTo")%>'></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr id="TR_Owner" runat="server">
                                                            <td class="row-label"><%= Resources.Content.OwnerName%>:</td>
                                                            <td>
                                                                <asp:HyperLink ID="HL_OwnerName" runat="server"></asp:HyperLink>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000368%>" HeaderStyle-CssClass="col-xs-2">
                                                <ItemTemplate>
                                                    <asp:LinkButton CssClass="btn btn-primary" ID="Lbtn_edit" runat="server" Text="<%$ Resources:Content,GN0000276%>"
                                                        SkinID="linkButtonEdit" CommandName="change" CommandArgument='<%# Eval("ScheduleGroupId")%>'></asp:LinkButton>

                                                    <asp:LinkButton CssClass="btn btn-primary btnAction" ID="Lbtn_delete" runat="server" Text="<%$ Resources:Content,GN0000278%>"
                                                        SkinID="linkButtonDelete"
                                                        CommandName="remove" CommandArgument='<%# Eval("ScheduleGroupId")%>'
                                                        OnClientClick='<%# "return confirm(""" + Resources.Content.CBE001.Replace("%operand%", Eval("Description")) + """);"%>'>
                                                    </asp:LinkButton>
                                                    <asp:LinkButton CssClass="btn btn-primary btnAction" ID="btn_SendNow" runat="server" Text="<%$ Resources:Content,SendNow%>"
                                                        SkinID="linkButtonEdit" CommandName="sendnow" CommandArgument='<%# Eval("ScheduleGroupId") & "|" & Eval("CompanyId") %>'></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <%--PagerTemplate Start--%>
                                        <PagerTemplate>
                                            <EM:Pager ID="Pager1" runat="server" />
                                        </PagerTemplate>
                                        <%--PagerTemplate End--%>
                                    </asp:GridView>
                                </asp:Panel>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
</asp:Content>

