<%@ control language="VB" autoeventwireup="false" inherits="RCC_O365_CC_CSPSubscriptionsReport, MachSol.MachPanel.Web" %>


<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>

<div class="row">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN00001320%>                                                                                                                                 
                </h3>
            </div>
            <div class="body">
                <div class="clearfix">

                    <div class="col-md-4 col-sm-6 col-xs-12">
                        <asp:Button ID="Btn_CSPSubscriptionReport_ExportToExcel" class="btn btn-primary waves-effect" runat="server"
                            Text='<%$ Resources:Content,Ex001 %>' />

                        <asp:Button ID="Btn_CSPSubscriptionReport_ExportToPDF" class="btn btn-primary waves-effect" runat="server"
                            Text='<%$ Resources:Content,strExportToPDF %>' Visible="false" />
                    </div>

                    <div class="col-md-4 col-sm-6 col-xs-12">
                        <div class="form-group form-float">
                            <asp:DropDownList ID="DDL_SubscriptionSrch" runat="server" AutoPostBack="true">
                                <asp:ListItem Text="<%$ Resources:Content,strSelectSubscriptions %>" Value="0"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,strNewOrderSevenDays %>" Value="1"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,strExpiringThirtydays %>" Value="2"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,strExpiringSevendays %>" Value="3"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,strRenewedlastSevenDays %>" Value="4"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<asp:Panel ID="Pnl_CSPSubscription_Filter" runat="server" DefaultButton="Btn_CSPSubscriptionReport_Filter">
    <div class="row">
        <div class="col-xs-12" id="tblFilter3" runat="server">
            <div class="row">
                <div class="panel-group search-panel" id="AS_CSPSubscriptionReport" role="tablist" aria-multiselectable="true">
                    <div class="col-xs-12" role="tab" id="SH_CSPSubscriptionReport">
                        <div class="card">
                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_CSPSubscriptionReport" href="#<%= CSP_CSPSubscriptionReport.ClientID%>" aria-expanded="true" aria-controls="SH_CSPSubscriptionReport">
                                <h3>
                                    <%= Resources.Content.GN0000395%>
                                </h3>
                            </div>
                            <div id="CSP_CSPSubscriptionReport" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_CSPSubscriptionReport" aria-expanded="false">
                                <div class="row">

                                    <div class="col-md-3 col-sm-6 col-xs-12" id="td_CSPSubscription_DDL_Owner" runat="server">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="DDL_CSPSubscription_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">
                                            <asp:DropDownList ID="Ddl_ProdLevel" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content,StrAnyCategory %>" Value="-1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN000129 %>" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,SPT002744 %>" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="Ddl_ProdCategory" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content,StrAnyLevel %>" Value="-1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN00001544 %>" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,GN0000267 %>" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="Ddl_SubsStatus" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="Ddl_Renewalble" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content,StrAnyRenewal %>" Value="-1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,StrAutoRenewEnabled %>" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,StrAutoRenewDisabled %>" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="Ddl_Publisher" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content,StrAnyPublisher %>" Value="-1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,StrMicrosoft %>" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,StrPartner %>" Value="0"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="Ddl_ProductType" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content,StrAnyProductType %>" Value=""></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,Azure %>" Value="Azure"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,NewCommerceExperience %>" Value="OnlineServicesNCE"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,StrLegacyOffers %>" Value="Legacy"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>


                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <asp:DropDownList ID="Ddl_RenewalChangesScheduled" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content,StrChangesScheduledOnRenewal %>" Value="-1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,Yes %>" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,No %>" Value="0"></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_TenantName" MaxLength="200" runat="server"></asp:TextBox>
                                                <asp:Label ID="Ltrl_CSPSubscription_TenantName" runat="server" class="form-label" Text='<%$ Resources:Content,TenantName %>'></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12" id="td_CSPSubscription_customername" runat="server">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_CustomerName" MaxLength="255" runat="server"></asp:TextBox>
                                                <asp:Label ID="Label1" runat="server" class="form-label" Text="<%$ Resources:Content,GN0000268%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12" id="td_CSPSubscription_companyname" runat="server">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_CustCompanyName" MaxLength="255" runat="server"></asp:TextBox>
                                                <asp:Label ID="Ltrl_CSPSubscription_CompanyName" runat="server" class="form-label" Text='<%$ Resources:Content,GN00001077%>'></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_SubsName" MaxLength="255" runat="server"></asp:TextBox>
                                                <asp:Label ID="Ltrl_CSPSubscription_SubsName" runat="server" class="form-label" Text='<%$ Resources:Content,DGN1110287%>'></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                </div>


                                <div class="row">

                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                        <div class="row">
                                            <div class="col-sm-5">
                                                <label>
                                                    <asp:Literal ID="Ltrl_CSPSubscription_SetupFromDate" runat="server" Text='<%$Resources:Content,StrSetupFromDate%>'></asp:Literal>:
                                                </label>
                                            </div>
                                            <div class="col-sm-6">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SetupFromDate" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-1">
                                                <asp:Image ImageUrl="~/images/icons/SmallCalendar.png" runat="server" ID="Img_CSPSubscription_SetupFromDate" />
                                            </div>
                                            <ajax:calendarextender id="CE_CSPSubscription_SetupFromDate" runat="server" targetcontrolid="TxBx_SetupFromDate"
                                                format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                popupbuttonid="Img_CSPSubscription_SetupFromDate" cssclass="date__calendar">
                                            </ajax:calendarextender>
                                        </div>
                                    </div>
                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                        <div class="row">
                                            <div class="col-sm-5">
                                                <label>
                                                    <asp:Literal ID="Ltrl_CSPSubscription_SetupToDate" runat="server" Text='<%$Resources:Content,StrSetupToDate%>'></asp:Literal>:
                                                </label>
                                            </div>
                                            <div class="col-sm-6">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SetupToDate" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-1">
                                                <asp:Image ImageUrl="~/images/icons/SmallCalendar.png" runat="server" ID="Img_CSPSubscription_SetupToDate" />
                                            </div>
                                            <ajax:calendarextender id="CE_CSPSubscription_SetupToDate" runat="server" targetcontrolid="TxBx_SetupToDate"
                                                format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                popupbuttonid="Img_CSPSubscription_SetupToDate" cssclass="date__calendar">
                                            </ajax:calendarextender>
                                        </div>
                                    </div>

                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                        <div class="row">
                                            <div class="col-sm-5">
                                                <label>
                                                    <asp:Literal ID="Ltrl_CSPSubscription_EndFromDate" runat="server" Text='<%$Resources:Content,ComEndFromDate%>'></asp:Literal>:
                                                </label>
                                            </div>
                                            <div class="col-sm-6">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_EndFromDate" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-1">
                                                <asp:Image ImageUrl="~/images/icons/SmallCalendar.png" runat="server" ID="Img_CSPSubscription_EndFromDate" />
                                            </div>
                                            <ajax:calendarextender id="CE_CSPSubscription_EndFromDate" runat="server" targetcontrolid="TxBx_EndFromDate"
                                                format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                popupbuttonid="Img_CSPSubscription_EndFromDate" cssclass="date__calendar">
                                            </ajax:calendarextender>
                                        </div>
                                    </div>
                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                        <div class="row">
                                            <div class="col-sm-5">
                                                <label>
                                                    <asp:Literal ID="Ltrl_CSPSubscription_EndToDate" runat="server" Text='<%$Resources:Content,ComEndToDate%>'></asp:Literal>:
                                                </label>
                                            </div>
                                            <div class="col-sm-6">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_EndToDate" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-1">
                                                <asp:Image ImageUrl="~/images/icons/SmallCalendar.png" runat="server" ID="Img_CSPSubscription_EndToDate" />
                                            </div>
                                            <ajax:calendarextender id="Calendarextender1" runat="server" targetcontrolid="TxBx_EndToDate"
                                                format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                popupbuttonid="Img_CSPSubscription_EndToDate" cssclass="date__calendar">
                                            </ajax:calendarextender>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                        <div class="row">
                                            <div class="col-sm-5">
                                                <label>
                                                    <asp:Literal ID="Ltrl_CSPSubscription_RenFromDate" runat="server" Text='<%$Resources:Content,ComRenFromDate%>'></asp:Literal>:
                                                </label>
                                            </div>
                                            <div class="col-sm-6">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_RenFromDate" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-1">
                                                <asp:Image ImageUrl="~/images/icons/SmallCalendar.png" runat="server" ID="Img_CSPSubscription_RenFromDate" />
                                            </div>
                                            <ajax:calendarextender id="CE_CSPSubscription_RenFromDate" runat="server" targetcontrolid="TxBx_RenFromDate"
                                                format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                popupbuttonid="Img_CSPSubscription_RenFromDate" cssclass="date__calendar">
                                            </ajax:calendarextender>
                                        </div>
                                    </div>
                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                        <div class="row">
                                            <div class="col-sm-5">
                                                <label>
                                                    <asp:Literal ID="Ltrl_CSPSubscription_RenToDate" runat="server" Text='<%$Resources:Content,ComRenToDate%>'></asp:Literal>:
                                                </label>
                                            </div>
                                            <div class="col-sm-6">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_RenToDate" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-1">
                                                <asp:Image ImageUrl="~/images/icons/SmallCalendar.png" runat="server" ID="Img_CSPSubscription_RenToDate" />
                                            </div>
                                            <ajax:calendarextender id="CE_CSPSubscription_EndToDate" runat="server" targetcontrolid="TxBx_RenToDate"
                                                format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                popupbuttonid="Img_CSPSubscription_RenToDate" cssclass="date__calendar">
                                            </ajax:calendarextender>
                                        </div>
                                    </div>

                                </div>

                                <div class="row">

                                    <div class="col-xs-12">
                                        <div class="form-group pull-right">
                                            <asp:Button ID="Btn_CSPSubscriptionReport_Filter" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000395 %>' />
                                            <asp:Button ID="Btn_CSPSubscriptionReport_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />

                                        </div>
                                    </div>

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

</asp:Panel>

<div class="row">
    <div class="col-xs-12">

        <div class="double-scroll-wrapper1">
            <div>
            </div>
        </div>
        <div class="double-scroll-wrapper2">
            <asp:GridView ID="GV_CSPSubscriptionReport" Style="width: 3700px" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true"
                AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                <Columns>
                    <asp:TemplateField SortExpression="SubscriptionName" HeaderText='<%$ Resources:Content,DGN1110287%>'
                        HeaderStyle-Width="150px">
                        <ItemTemplate>
                            <asp:HyperLink ID="HL_Subscription" runat="server" NavigateUrl='<%# string.Format("/RCC/O365/O365Sub.aspx?SubId={0}&T=S&DetailId={1}", Eval("ServiceHostingId"), Eval("O365HostingDetailId")) %>' Text='<%#Eval("SubscriptionName")%>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="Quantity" HeaderText='<%$ Resources:Content,String35%>'
                        HeaderStyle-Width="100px">
                        <ItemTemplate>
                            <%#Eval("Quantity")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="CustomOfferName" HeaderText='<%$ Resources:Content,SPT002744%>'
                        HeaderStyle-Width="150px">
                        <ItemTemplate>
                            <%#Eval("ProductTitle")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="MSOfferName" HeaderText='<%$ Resources:Content,StrSku%>'
                        HeaderStyle-Width="200px" Visible="false">
                        <ItemTemplate>
                            <%#Eval("SkuTitle")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="SubscriptionSetupDate" HeaderText='<%$ Resources:Content,GN00001082%>'
                        HeaderStyle-Width="200px">
                        <ItemTemplate>
                            <%#Eval("SubscriptionSetupDate")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="SubscriptionEndDate" HeaderText='<%$ Resources:Content,DGN1119986%>'
                        HeaderStyle-Width="150px">
                        <ItemTemplate>
                            <%#Eval("SubscriptionEndDate")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="MSStatus" HeaderText='<%$ Resources:Content,strStatus%>'
                        HeaderStyle-Width="100px">
                        <ItemTemplate>
                            <%# [Enum].GetName(GetType(MachSol.O365.DataModels.Entities.CSP.Order.SubscriptionStatus),Eval("MSStatus"))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="IsAddOn" HeaderText='<%$ Resources:Content,strIsAddOn%>'
                        HeaderStyle-Width="80px">
                        <ItemTemplate>
                            <%# IIf(Eval("IsAddOn"), Resources.Content.Yes, Resources.Content.No) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="IsTrial" HeaderText='<%$ Resources:Content,StrIsTrial%>'
                        HeaderStyle-Width="80px">
                        <ItemTemplate>
                            <%# IIf(Eval("IsTrial"), Resources.Content.Yes, Resources.Content.No) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="AutoRenewEnabled" HeaderText='<%$ Resources:Content,GN0000902%>'
                        HeaderStyle-Width="80px">
                        <ItemTemplate>
                            <%# IIf(Eval("AutoRenewEnabled"), Resources.Content.Yes, Resources.Content.No) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="Is3rdPartyProduct" HeaderText='<%$ Resources:Content,StrIsCommercialSaaSProduct%>'
                        HeaderStyle-Width="150px">
                        <ItemTemplate>
                            <%# IIf(Eval("Is3rdPartyProduct"), Resources.Content.Yes, Resources.Content.No) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="Billing" HeaderText='<%$ Resources:Content,StrBillingType%>'
                        HeaderStyle-Width="100px">
                        <ItemTemplate>
                            <%# Eval("BillingType") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="ProductType" HeaderText='<%$ Resources:Content,GN0000101%>'
                        HeaderStyle-Width="100px">
                        <ItemTemplate>
                            <%# Eval("ProductType") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="Publisher" HeaderText='<%$ Resources:Content,StrPublisher%>'
                        HeaderStyle-Width="100px">
                        <ItemTemplate>
                            <%# Eval("Publisher") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="TenantCompanyName" HeaderText='<%$ Resources:Content,StrTenantCompanyName%>'
                        HeaderStyle-Width="200px">
                        <ItemTemplate>
                            <%# Eval("TenantCompanyName") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="TenantName" HeaderText='<%$ Resources:Content,TenantName%>'
                        HeaderStyle-Width="200px">
                        <ItemTemplate>
                            <asp:HyperLink ID="Hl_Tenant" runat="server" Text='<%# Eval("TenantName") %>' NavigateUrl='<%# IIf(Eval("TenantId") > 0, string.Format("/RCC/O365/TenantDetail.aspx?TID={0}", Eval("TenantId")), "javascript:void(0)") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="PrimaryDomainName" HeaderText='<%$ Resources:Content,GN000125%>'
                        HeaderStyle-Width="200px">
                        <ItemTemplate>
                            <asp:HyperLink ID="Hl_TenantDomain" runat="server" Text='<%# Eval("PrimaryDomainName") %>' NavigateUrl='<%# IIf(Eval("TenantId") > 0, string.Format("/RCC/O365/TenantDetail.aspx?TID={0}", Eval("TenantId")), "javascript:void(0)") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="ServiceSignupDate" HeaderText='<%$ Resources:Content,String62%>'
                        HeaderStyle-Width="100px">
                        <ItemTemplate>
                            <%# Eval("ServiceSignupDate") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="PackageName" HeaderText='<%$ Resources:Content,GN000141%>'
                        HeaderStyle-Width="200px">
                        <ItemTemplate>
                            <%# Eval("PackageName") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField Visible="false" SortExpression="ResellerPackage" HeaderText='<%$ Resources:Content,ResellerPackage%>'
                        HeaderStyle-Width="80px">
                        <ItemTemplate>
                            <%# IIf(Eval("ResellerPackage"), Resources.Content.Yes, Resources.Content.No) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="CustomerId" HeaderText='<%$ Resources:Content,Customer%>'
                        HeaderStyle-Width="200px">
                        <ItemTemplate>
                            <asp:HyperLink ID="HL_Customer" runat="server" NavigateUrl='<%# string.Format("/RCC/Clients/ClientDetail.aspx?CID={0}", Eval("CustomerId")) %>' Text='<%# string.Format("#{0}-{1} [{2}]",Eval("CustomerId"), Eval("Customer"),Eval("CustomerCompanyName")) %>'>
                            </asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField SortExpression="CustomerNumber"
                        HeaderText='<%$ Resources:Content,GN000924%>' HeaderStyle-Width="100px">
                        <ItemTemplate>
                            <%#Eval("CustomerNumber")%>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText='<%$ Resources:Content, SPT002811 %>'
                        HeaderStyle-Width="150px">
                        <ItemTemplate>
                            <asp:HyperLink ID="HL_Reseller" runat="server" NavigateUrl='<%# IIf(Eval("ResellerId") > 0, string.Format("/RCC/Clients/ClientDetail.aspx?RD=1&CID={0}", Eval("ResellerId")), "javascript:void(0)") %>' Text='<%# Eval("Owner") %>'>
                            </asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField SortExpression="ServiceName" HeaderText='<%$ Resources:Content, DGN1119975 %>'
                        HeaderStyle-Width="200px" Visible="false">
                        <ItemTemplate>
                            <%#Eval("ServiceName")%>
                        </ItemTemplate>
                    </asp:TemplateField>

                </Columns>
                <%--PagerTemplate Start--%>
                <PagerTemplate>
                    <UC:Pager ID="Pager4" runat="server" />
                </PagerTemplate>
                <%--PagerTemplate End--%>
            </asp:GridView>
        </div>

    </div>
</div>
