| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- @model economy.Models.View<economy.Models.Price.Global.NaturalGas.Request, economy.Models.Price.Global.NaturalGas.Response>
- @{
- ViewData["Title"] = "천연가스 시세";
- }
- <div class="container">
- <h3>@ViewData["Title"]</h3>
- <div class="row mt-3">
- <div class="col align-self-center">
- @((Model?.Response?.Data?.Count ?? 0).ToString("N0")) 개
- </div>
- <div class="col-auto">
- <div class="row g-2">
- <div class="col">
- <select name="perPage" id="perPage" class="form-select" asp-for="SelectedListPerPage" asp-items="Model.ListPerPage" form="fSearch"></select>
- </div>
- </div>
- </div>
- </div>
- <div class="table-responsive">
- <table id="globalPriceList" class="table table-bordered table-hover">
- <caption class="caption-top">
-
- </caption>
- <thead>
- <tr>
- <th>번호</th>
- <th>날짜</th>
- <th>달러($)</th>
- <th>원화(\)</th>
- </tr>
- </thead>
- <tbody>
- @if (Model.Response.Data != null && Model.Response.Data?.Count > 0)
- {
- @foreach (var row in Model.Response.Data)
- {
- <tr>
- <td>@row.Num</td>
- <td>@row.Date</td>
- <td>@row.Value</td>
- <td>@row.KRW</td>
- </tr>
- }
- }
- else
- {
- <tr>
- <td colspan="4">
- No data.
- </td>
- </tr>
- }
- </tbody>
- </table>
- </div>
-
- @await Html.PartialAsync("~/Views/Component/Pagination.cshtml", Model.Pagination)
- </div>
- @section Scripts {
- <script src="~/js/oil.js" asp-append-version="true"></script>
- }
- @section Styles {
- <link href="~/css/style.css" rel="stylesheet" asp-append-version="true" />
- }
|