Details.cshtml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. @model GreenTree.Strohrmann.ERP.Web.Models.Business.MaterialModel
  2. @{
  3. ViewData["Title"] = "Materialdetails";
  4. }
  5. <h1>Materialdetails</h1>
  6. <h4>@Model.Name</h4>
  7. <hr />
  8. <div class="card-deck">
  9. <div class="card">
  10. <div class="card-header pb-1">
  11. <h6>Allgemein</h6>
  12. </div>
  13. <div class="card-body">
  14. <dl class="row">
  15. <dt class = "col-sm-6">
  16. @Html.DisplayNameFor(model => model.Id)
  17. </dt>
  18. <dd class = "col-sm-6">
  19. @Html.DisplayFor(model => model.Id)
  20. </dd>
  21. <dt class = "col-sm-6">
  22. @Html.DisplayNameFor(model => model.Name)
  23. </dt>
  24. <dd class = "col-sm-6">
  25. @Html.DisplayFor(model => model.Name)
  26. </dd>
  27. <dt class = "col-sm-6">
  28. @Html.DisplayNameFor(model => model.Description)
  29. </dt>
  30. <dd class = "col-sm-6">
  31. @Html.DisplayFor(model => model.Description)
  32. </dd>
  33. </dl>
  34. </div>
  35. </div>
  36. <div class="card">
  37. <div class="card-header pb-1">
  38. <h6>Bemaßung</h6>
  39. </div>
  40. <div class="card-body">
  41. <dl class="row">
  42. <dt class = "col-sm-6">
  43. @Html.DisplayNameFor(model => model.DefaultUnit)
  44. </dt>
  45. <dd class = "col-sm-6">
  46. @Html.DisplayFor(model => model.DefaultUnit)
  47. </dd>
  48. <dt class = "col-sm-6">
  49. @Html.DisplayNameFor(model => model.Height)
  50. </dt>
  51. <dd class = "col-sm-6">
  52. @Html.DisplayFor(model => model.Height)
  53. </dd>
  54. <dt class = "col-sm-6">
  55. @Html.DisplayNameFor(model => model.Width)
  56. </dt>
  57. <dd class = "col-sm-6">
  58. @Html.DisplayFor(model => model.Width)
  59. </dd>
  60. <dt class = "col-sm-6">
  61. @Html.DisplayNameFor(model => model.Depth)
  62. </dt>
  63. <dd class = "col-sm-6">
  64. @Html.DisplayFor(model => model.Depth)
  65. </dd>
  66. <dt class = "col-sm-6">
  67. @Html.DisplayNameFor(model => model.PackageSize)
  68. </dt>
  69. <dd class = "col-sm-6">
  70. @Html.DisplayFor(model => model.PackageSize)
  71. </dd>
  72. </dl>
  73. </div>
  74. </div>
  75. <div class="card">
  76. <div class="card-header pb-1">
  77. <h6>Herstellerdaten</h6>
  78. </div>
  79. <div class="card-body">
  80. <dl class="row">
  81. <dt class = "col-sm-6">
  82. @Html.DisplayNameFor(model => model.Supplier)
  83. </dt>
  84. <dd class = "col-sm-6">
  85. @Html.DisplayFor(model => model.Supplier.Name)
  86. </dd>
  87. <dt class = "col-sm-6">
  88. @Html.DisplayNameFor(model => model.ItemNumber)
  89. </dt>
  90. <dd class = "col-sm-6">
  91. @Html.DisplayFor(model => model.ItemNumber)
  92. </dd>
  93. </dl>
  94. </div>
  95. </div>
  96. </div>
  97. <hr />
  98. <div class="d-flex">
  99. @Html.ActionLink("Bearbeiten", "Edit", new { id = Model.Id })
  100. <div class="align-self-center ml-3">
  101. <a asp-action="Index">Zurück zur Liste</a>
  102. </div>
  103. <div class="align-self-center ml-auto">
  104. <a href="#" data-toggle="modal" data-target="#trackingModal">Änderungsinfo</a>
  105. </div>
  106. </div>
  107. <div id="trackingModal" class="modal fade" tabindex="-1" role="dialog">
  108. <div class="modal-dialog" role="document">
  109. <div class="modal-content modal-content-header-custom">
  110. <div class="modal-header modal-header-info text-white">
  111. <h5 class="modal-title">Änderungsinfo - @Model.Name</h5>
  112. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  113. <span aria-hidden="true">&times;</span>
  114. </button>
  115. </div>
  116. <div class="modal-body">
  117. <dl class="row">
  118. <dt class = "col-sm-4">
  119. @Html.DisplayNameFor(model => model.CreatedBy)
  120. </dt>
  121. <dd class = "col-sm-6">
  122. @Html.DisplayFor(model => model.CreatedBy)
  123. </dd>
  124. <dt class = "col-sm-4">
  125. @Html.DisplayNameFor(model => model.CreatedOn)
  126. </dt>
  127. <dd class = "col-sm-6">
  128. @Html.DisplayFor(model => model.CreatedOn)
  129. </dd>
  130. </dl>
  131. <dl class="row">
  132. <dt class = "col-sm-4">
  133. @Html.DisplayNameFor(model => model.ChangedBy)
  134. </dt>
  135. <dd class = "col-sm-6">
  136. @Html.DisplayFor(model => model.ChangedBy)
  137. </dd>
  138. <dt class = "col-sm-4">
  139. @Html.DisplayNameFor(model => model.ChangedOn)
  140. </dt>
  141. <dd class = "col-sm-6">
  142. @Html.DisplayFor(model => model.ChangedOn)
  143. </dd>
  144. </dl>
  145. </div>
  146. <div class="modal-footer">
  147. <button type="button" class="btn btn-secondary" data-dismiss="modal">Schließen</button>
  148. </div>
  149. </div>
  150. </div>
  151. </div>