Exchange.cshtml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @model economy.Models.View<economy.Models.Financial.Exchange.Request, economy.Models.Financial.Exchange.Response>
  2. @{
  3. ViewData["Title"] = "환율";
  4. }
  5. <div class="container">
  6. <h3>환율</h3>
  7. <div class="row mt-3">
  8. <div class="col align-self-center">
  9. @(Model?.Response?.Items?.Count().ToString("N0")) 개
  10. </div>
  11. <div class="col-auto">
  12. <input type="date" name="date" id="date" class="form-control" value="@Model.Request.DateFormatted" form="fSearch" />
  13. </div>
  14. </div>
  15. <div class="table-responsive">
  16. <table id="financialExchange" class="table table-bordered table-hover">
  17. <caption class="caption-top">
  18. 한국수출입은행이 제공하는 환율정보입니다.
  19. </caption>
  20. <colgroup>
  21. <col width="10%"/>
  22. <col width="10%"/>
  23. <col width="10%"/>
  24. <col width="10%"/>
  25. <col width="10%"/>
  26. <col width="10%"/>
  27. <col width="10%"/>
  28. <col width="10%"/>
  29. <col width="10%"/>
  30. <col width="10%"/>
  31. </colgroup>
  32. <thead>
  33. <tr>
  34. <th>통화 단위</th>
  35. <th>국가/통화명</th>
  36. <th>매입 환율</th>
  37. <th>매도 환율</th>
  38. <th>기준 환율</th>
  39. <th>은행 판매율</th>
  40. <th>년환가료율</th>
  41. <th>10일환가료율</th>
  42. <th>서울외국환중개 매매기준율</th>
  43. <th>서울외국환중개 장부가격</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. @if (Model?.Response?.Items != null && Model?.Response?.Items.Count() > 0)
  48. {
  49. @foreach (var row in Model.Response.Items)
  50. {
  51. <tr>
  52. <td>@row.CurUnit</td>
  53. <td>@row.CurNm</td>
  54. <td>@row.Ttb</td>
  55. <td>@row.Tts</td>
  56. <td>@row.DealBasRate</td>
  57. <td>@row.BankSellingRate</td>
  58. <td>@row.YearlyExchangeFeeRate</td>
  59. <td>@row.TenDayExchangeFeeRate</td>
  60. <td>@row.KftcBankSellingRate</td>
  61. <td>@row.KftcDealBaseRate</td>
  62. </tr>
  63. }
  64. }
  65. else
  66. {
  67. <tr>
  68. <td colspan="10">
  69. No data.
  70. </td>
  71. </tr>
  72. }
  73. </tbody>
  74. </table>
  75. </div>
  76. <form id="fSearch" method="get" accept-charset="UTF-8" rel="search" autocomplete="off" asp-controller="Financial" asp-action="Exchange"></form>
  77. </div>
  78. @section Scripts {
  79. <script src="~/js/financial.js" asp-append-version="true"></script>
  80. }
  81. @section Styles {
  82. <link href="~/css/style.css" rel="stylesheet" asp-append-version="true" />
  83. }