Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Usage/Index.cshtml @ 11187

Last change on this file since 11187 was 9586, checked in by fschoepp, 11 years ago

#1888:

  • Billing Component may now be deactivated by setting the BillingEnabled flag within the OaaS service configuration.
  • Added views for invoices and usage data.
  • Changed appearance of the SaveOrder view.
File size: 741 bytes
Line 
1@model HeuristicLab.Services.Optimization.Web.Models.UsageModel
2
3@{
4    ViewBag.Title = "Usage statistics";
5}
6
7<h2>Your usage records:</h2>
8
9@if (Model.Records.Count == 0) {
10    <h3>You don't have any records yet.</h3>
11}
12else {
13<table>
14<thead>
15<tr><th>Record Id</th><th>Product</th><th>Service Identifier</th><th>Resource Identifier</th><th>Begin of usage</th><th>End of usage</th><th>Duration</th></tr>
16</thead>
17<tbody>
18@foreach (var record in Model.Records) {
19    <tr>
20    <td>@record.UsageRecordId</td><td>@record.Product.Name</td><td>@record.ServiceIdentifier</td><td>@record.ResourceIdentifier</td><td>@record.Begin</td><td>@record.End</td><td>@(record.End - record.Begin)</td>
21    </tr>
22}
23</tbody>
24</table>
25}
Note: See TracBrowser for help on using the repository browser.