netadsubscriptionreport.component.html
7.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<div class="row" style="margin-right: auto;">
<div class="col-sm-12 pageHeading" style="margin-left: 15px;">
<h4>Net AD Subscription Report</h4>
</div>
<div class="col-sm-12">
<div class="container-fluid main-full">
<div class="row" style="margin-right:-40px">
<div class="well no-margin-btm">
<div class="col-xs-12" *ngIf="alerts !== ''">
<div class="alert alert-danger" [innerHTML]="alerts">
</div>
</div>
<div class="row" [formGroup]="NetAdSubscriptionReportForm">
<div class="col-lg-4 col-sm-4">
<div class="row">
<div class="col-sm-12">
<div class="form-group marginTop5">
<label for="sFromDate" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">From Date :</label>
<div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
<div id="sFromDate" class="input-group input-group-sm input-append date">
<input type="text" class="form-control" [bsConfig]="bsConfig" formControlName="sFromDate" #dp1="bsDatepicker" bsDatepicker [(bsValue)]="bsValue1"
(bsValueChange)="FromDateChange(dp1)" (change)="FromDateChange(dp1)" placeholder="mm/dd/yyyy">
<span class="input-group-btn add-on">
<button class="btn btn-default" type="button" (click)="dp1.toggle()"><i class="fa fa-calendar"></i></button>
</span>
</div>
</div>
</div>
</div>
<div class="col-sm-12">
<div class="form-group marginTop5">
<label for="sToDate" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">To Date :</label>
<div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
<div id="sToDate" class="input-group input-group-sm input-append date">
<input type="text" class="form-control" [bsConfig]="bsConfig" formControlName="sToDate" #dp2="bsDatepicker" bsDatepicker [(bsValue)]="bsValue2"
(bsValueChange)="ToDateChange(dp2)" (change)="ToDateChange(dp2)" placeholder="mm/dd/yyyy">
<span class="input-group-btn add-on">
<button class="btn btn-default" type="button" (click)="dp2.toggle()"><i class="fa fa-calendar"></i></button>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-sm-4">
<div class="row">
<div class="col-sm-12">
<div class="form-group marginTop5">
<label for="SubscriptionStart" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Subscription Start Price :</label>
</div>
<div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
<input type="text" class="form-control input-sm" id="SubscriptionStart" placeholder="" formControlName="iStartPrice">
</div>
</div>
<div class="col-sm-12">
<div class="form-group marginTop5">
<label for="SubscriptionEnd" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">Subscription End Price :</label>
</div>
<div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
<input type="text" class="form-control input-sm" id="SubscriptionEnd" placeholder="" formControlName="iEndPrice">
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-sm-4">
<div class="row">
<div class="col-sm-12">
<div class="form-group marginTop5">
<label for="LicenseType" class="col-sm-12 col-lg-6 control-label text-right-lg paddTop7 padd-left0">License Type :</label>
</div>
<div class="col-sm-12 col-lg-6 padd-left0 padd-right0">
<select class="form-control input-sm" id="LicenseType" formControlName="iLicenseTypeId">
<option selected="selected" value="0">All</option>
<option *ngFor="let lcitem of lstLicenceType" value="{{lcitem.Id}}">{{lcitem.Title}}</option>
</select>
</div>
</div>
<div class="col-sm-12">
<div class="form-group marginTop5 text-right">
<button class="btn btn-primary btn-sm" data-toggle="modal" data-target="#mymodal" (click)="SearchRecords()" [disabled]="!NetAdSubscriptionReportForm.valid || alerts != ''"><i class="fa fa-file"></i> Generate Report</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="well">
<table id="fixed_hdr2" class="table-hover ui-widget-header sorttable">
<thead>
<tr>
<th id="LicenseType">License Type</th>
<th id="AccountType">Account Type</th>
<th id="InstitutionName">Institution Name</th>
<th id="LicenseCreationDate">Original Entry Date</th>
<th id="ActiveSubscription">Total Active Subscriptions</th>
<th id="RenewSubscription">Total Renew Subscriptions</th>
<th id="InActiveSubscription">No. of Cancelled Subscription</th>
<th id="NetAdSubscription">Net Ads</th>
</tr>
</thead>
<tbody>
<tr *ngIf="NoRecord !== ''">
<td colspan="6"><b style="color: red;text-align: center; padding-left: 606px;"><span [innerHTML]="NoRecord"></span></b></td>
</tr>
<tr *ngFor="let item of lstNetAdSubscriptionReport">
<td>{{item.LicenseType}}</td>
<td>{{item.AccountType}}</td>
<td>{{item.InstitutionName}}</td>
<td>{{item.LicenseCreationDate| date: 'MM/dd/yyyy'}}</td>
<td>{{item.ActiveSubscription}}</td>
<td>{{item.RenewSubscription}}</td>
<td>{{item.InActiveSubscription}}</td>
<td>{{item.NetAdSubscription}}</td>
</tr>
</tbody>
<tfoot *ngFor="let total of TotalNetAdSubscription" style="font-weight: bold;background-color: #e3dbf3;">
<tr>
<td>{{total.LicenseType}}</td>
<td>{{total.AccountType}}</td>
<td>{{total.InstitutionName}}</td>
<td>{{total.LicenseCreationDate}}</td>
<td>{{total.ActiveSubscription}}</td>
<td>{{total.RenewSubscription}}</td>
<td>{{total.InActiveSubscription}}</td>
<td>{{total.NetAdSubscription}}</td>
</tr>
</tfoot>
</table>
<admin-pager [recordCount]="recordCount" [pageNo]="pageNo" [pageLength]="pageLength" (pagerEvent)="GetNetAdSummaryReport($event)"></admin-pager>
<div class="row">
<div class="col-sm-12 marginTop20 text-center">
<button type="button" class="btn btn-primary btn-sm" [ngClass]="{disabled : !buttonStatus}" (click)="ExportEvent()"><i class="fa fa-file-excel-o"></i> Export To CSV</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>