Number.cshtml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. @using economy.Models.Business.Number
  2. @{
  3. ViewData["Title"] = "사업자등록번호 조회";
  4. }
  5. <div id="businessNumber" class="container">
  6. <h3>@ViewData["Title"]</h3>
  7. <br/>
  8. <form id="fSearch" method="post" accept-charset="UTF-8" rel="search" autocomplete="off" asp-controller="Business" asp-action="Search">
  9. <div class="row justify-content-center">
  10. <div class="col col-md-4">
  11. <div class="input-group">
  12. <input type="text" name="query" class="form-control" value="@ViewBag?.Query" placeholder="예) 123-456-789101" aria-label="예) 123-456-789101" aria-describedby="123-456-789101" autofocus maxlength="255" />
  13. <button class="btn btn-outline-danger" type="submit"><i class="bi bi-search"></i></button>
  14. </div>
  15. </div>
  16. </div>
  17. @if (@ViewBag?.Query is not null && @ViewBag.isError)
  18. {
  19. <div class="no-data">
  20. 조회 결과가 없습니다.
  21. </div>
  22. }
  23. else
  24. {
  25. var result = (economy.Models.Business.Number.Response)ViewBag.result;
  26. @if (result?.Data != null && result.Data.Count > 0)
  27. {
  28. <div class="result w-75 m-auto mt-3 bg-transparent">
  29. <table class="table table-bordered">
  30. <colgroup>
  31. <col width="30%" />
  32. <col width="*" />
  33. </colgroup>
  34. <tbody>
  35. @if (result?.Data != null && result.Data.Any())
  36. {
  37. @foreach(var row in result.Data)
  38. {
  39. <tr>
  40. <th>사업자등록번호</th>
  41. <td>@row.BNo</td>
  42. </tr>
  43. <tr>
  44. <th>납세자상태</th>
  45. <td>
  46. @if (row.BStt != "")
  47. {
  48. <text>(@row.BSttCd) @row.BStt</text>
  49. }
  50. else
  51. {
  52. <text>-</text>
  53. }
  54. </td>
  55. </tr>
  56. <tr>
  57. <th>과세유형메세지</th>
  58. <td>
  59. @if (row.TaxTypeCd != "")
  60. {
  61. <text>(@row.TaxTypeCd)</text>
  62. }
  63. @row.TaxType
  64. </td>
  65. </tr>
  66. @if (row.EndDt != "")
  67. {
  68. <tr>
  69. <th>폐업일</th>
  70. <td>@(row?.EndDt ?? "-")</td>
  71. </tr>
  72. }
  73. @if (row.UtccYn != "")
  74. {
  75. <tr>
  76. <th>단위과세전환폐업여부</th>
  77. <td>@(row?.UtccYn ?? "-")</td>
  78. </tr>
  79. }
  80. @if (row.TaxTypeChangeDt != "")
  81. {
  82. <tr>
  83. <th>최근과세유형전환일자</th>
  84. <td>@(row?.TaxTypeChangeDt ?? "-")</td>
  85. </tr>
  86. }
  87. @if (row.StaxInvoicePrintYnDt != "")
  88. {
  89. <tr>
  90. <th>세금계산서적용일자</th>
  91. <td>@(row?.StaxInvoicePrintYnDt ?? "-")</td>
  92. </tr>
  93. }
  94. @if (row.RbfTaxType != "")
  95. {
  96. <tr>
  97. <th>직전과세유형메세지</th>
  98. <td>
  99. @if (row.RbfTaxType != "")
  100. {
  101. <text>(@row.RbfTaxTypeCd) @row.RbfTaxType</text>
  102. }
  103. </td>
  104. </tr>
  105. }
  106. }
  107. }
  108. </tbody>
  109. </table>
  110. <blockquote>
  111. 01:부가가치세 일반과세자<br/>
  112. 02:부가가치세 간이과세자<br />
  113. 07:부가가치세 간이과세자(세금계산서 발급사업자)<br />
  114. 99:해당없음
  115. </blockquote>
  116. </div>
  117. }
  118. else
  119. {
  120. <div class="row mt-2">
  121. <div class="col text-center">
  122. <small>국세청에서 제공하는 사업자등록정보 진위확인 및 사업자등록 상태조회 API 서비스입니다.</small>
  123. </div>
  124. </div>
  125. <br />
  126. }
  127. }
  128. </form>
  129. </div>
  130. @section Scripts {
  131. <script src="~/js/business.js" asp-append-version="true"></script>
  132. }
  133. @section Styles {
  134. <link href="~/css/style.css" rel="stylesheet" asp-append-version="true" />
  135. }