| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- @model economy.Models.View<economy.Models.Price.Domestic.Emission.Request, economy.Models.Price.Domestic.Emission.Response>
- @{
- ViewData["Title"] = "배출권 시세";
- }
- <div class="container">
- <h3>배출권 시세</h3>
- <div class="row mt-3">
- <div class="col align-self-center">
- @((Model?.Response?.Body?.TotalCount ?? 0).ToString("N0")) 개
- </div>
- <div class="col-auto">
- <div class="row g-2">
- <div class="col">
- <input type="date" name="sDate" id="sDate" class="form-control" value="@Model.Request.StartDate.ToString("yyyy-MM-dd")" form="fSearch" />
- </div>
- <div class="col">
- <input type="date" name="eDate" id="eDate" class="form-control" value="@Model.Request.EndDate.ToString("yyyy-MM-dd")" form="fSearch" />
- </div>
- <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="emissionPriceInfo" class="table table-bordered table-hover">
- <caption class="caption-top">
-
- </caption>
- <thead>
- <tr>
- <th>번호</th>
- <th>기준일자</th>
- <th>종목명</th>
- <th>종가</th>
- <th>대비</th>
- <th>등락률</th>
- <th>시가</th>
- <th>고가</th>
- <th>저가</th>
- <th>거래량</th>
- <th>거래대금</th>
- </tr>
- </thead>
- <tbody>
- @if (Model.Response.Body != null && Model.Response.Body?.TotalCount > 0)
- {
- @foreach (var row in Model.Response.Body.Items.ItemList)
- {
- <tr>
- <td>@row.Num</td>
- <td>@row.BasDt</td>
- <td>
- <a asp-controller="Emission" asp-action="Index" asp-route-code="@row.SrtnCd" asp-route-sDate="@Model.Request.StartDate.ToString("yyyy-MM-dd")" asp-route-eDate="@Model.Request.EndDate.ToString("yyyy-MM-dd")">@row.ItmsNm</a>
- <span class="text-primary" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-html="true" data-bs-title="코드: @row.SrtnCd<br/>ISIN: @row.IsinCd">
- <i class="bi bi-exclamation-circle"></i>
- </span>
- </td>
- <td>@row.Clpr</td>
- <td>@row.Vs</td>
- <td>
- @{
- double tmpNum;
- bool isPlus = double.TryParse(row.FltRt, out tmpNum);
- }
- @if (isPlus && tmpNum > 0)
- {
- <span class="text-danger">▲ @row.FltRt</span>
- } else{
- <span class="text-primary">▼ @row.FltRt</span>
- }
- </td>
- <td>@row.Mkp</td>
- <td>@row.Hipr</td>
- <td>@row.Lopr</td>
- <td>@row.Trqu</td>
- <td>@row.TrPrc</td>
- </tr>
- }
- }
- else
- {
- <tr>
- <td colspan="11">
- No data.
- </td>
- </tr>
- }
- </tbody>
- </table>
- </div>
- <form id="fSearch" method="get" accept-charset="UTF-8" rel="search" autocomplete="off" asp-controller="Emission" asp-action="Index">
- <input type="hidden" name="page" value="@Model.Request.PageNo" />
- </form>
- @await Html.PartialAsync("~/Views/Component/Pagination.cshtml", Model.Pagination)
- </div>
- @section Scripts {
- <script src="~/js/emission.js" asp-append-version="true"></script>
- }
- @section Styles {
- <link href="~/css/style.css" rel="stylesheet" asp-append-version="true" />
- }
|