Guest User

Untitled

a guest
May 29th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 KB | None | 0 0
  1. @using PagedList.Mvc;
  2. @model PagedList.IPagedList<BlogWeb.Models.Abastecimento>
  3. <!DOCTYPE HTML>
  4.  
  5. <p>@Html.ActionLink("Novo Abastecimento ", "Form")</p>
  6. @Html.ActionLink("Gerar Relatório Resumo", "PeriodoResumo")
  7.  
  8. <div>
  9. <table id="customers">
  10. <thead>
  11. <tr>
  12. <th>Nº do Carro</th>
  13. <th>Data</th>
  14. <th>Km</th>
  15. <th>Produto</th>
  16. <th>Litro</th>
  17. <th>Valor Unitario</th>
  18. <th>Valor Total</th>
  19. <th>Usuario</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. @foreach (var a in Model)
  24. {
  25. <tr>
  26. <td>@a.NumCarro.NCarro</td>
  27. <td>@a.DtAbastecido</td>
  28. <td>@a.Km</td>
  29. <td>@a.Produto.NomeProduto</td>
  30. <td>@a.Litro</td>
  31. <td>@a.VlrUnit</td>
  32. <td>@a.TotalGasto</td>
  33. <td>@a.Autor.Nome</td>
  34. <td>@Html.ActionLink("Remover", "Remove", new { id = a.Id }, new { @class = "icon-cancel" })</td>
  35. <td>@Html.ActionLink("Atualizar", "FormUpdate", new { id = a.Id }, new { @class = "icon-edit" })</td>
  36.  
  37. </tr>
  38. }
  39. @Html.ActionLink("Gerar Relatório por Período","FormData")
  40. </tbody>
  41. </table>
  42. </div>
  43. <div class="static">
  44. Página @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) de @Model.PageCount
  45. </div>
  46. @{
  47. if (Model.TotalItemCount != Model.Count)
  48. {
  49. <div class="pagination-lg">
  50.  
  51. @if (Model.HasPreviousPage)
  52. {
  53. @Html.ActionLink("<<", "Index", new
  54. {
  55. pagina = 1,
  56. sortOrder = ViewBag.CurrentSort,
  57. currentFilter = ViewBag.CurrentFilter
  58. })
  59. @Html.Raw(" ");
  60. @Html.ActionLink("< Anterior", "Index", new
  61. {
  62. pagina = Model.PageNumber - 1,
  63. sortOrder = ViewBag.CurrentSort,
  64. currentFilter = ViewBag.CurrentFilter
  65. })
  66. }
  67. else
  68. {
  69. @:<<
  70. @Html.Raw(" ");
  71. @:< Anterior
  72. }
  73.  
  74. @if (Model.HasNextPage)
  75. {
  76. @Html.ActionLink("Próxima >", "Index", new { pagina = Model.PageNumber + 1, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter })
  77. @Html.Raw(" ");
  78. @Html.ActionLink(">>", "Index", new { pagina = Model.PageCount, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter })
  79. }
  80. else
  81. {
  82. @:Próxima >
  83. @Html.Raw(" ")
  84. @:>>
  85. }
  86. </div>
  87.  
  88. }
  89. }
  90.  
  91. <!DOCTYPE html>
  92. <html>
  93. <head>
  94. <meta name="viewport" content="width=device-width" />
  95. <title>Ribeira</title>
  96. <link href="~/Content/Css/normalize.css" rel="stylesheet" />
  97. <link href="~/Content/Css/blog.css" rel="stylesheet" />
  98. <link href="~/Content/Css/fontello-codes.css" rel="stylesheet" />
  99. <link href="~/Content/Css/fontello.css" rel="stylesheet" />
  100. </head>
  101. <body>
  102. <nav>
  103. <ul>
  104. <li>@Html.ActionLink("Home","Index","Home")</li>
  105. <li>@Html.ActionLink("Post","Index","Post")</li>
  106. <li>@Html.ActionLink("Usuario", "Index", "usuario")</li>
  107. <li>@Html.ActionLink("Plano Ação", "Form", "ItemPlanoAcao")</li>
  108. <li>@Html.ActionLink("Veiculos", "Form", "Veiculo")</li>
  109. <li>@Html.ActionLink("Rota", "Index", "Rota")</li>
  110. <li>@Html.ActionLink("Abastecimento", "Index", "Abastecimento")</li>
  111. <li>@Html.ActionLink("Fornecedores", "Index", "Fornecedores")</li>
  112. <li>@Html.ActionLink("Compra", "Index", "Compra")</li>
  113. <li>@Html.ActionLink("Estoque", "Index", "Estoque")</li>
  114. <li>@Html.ActionLink("Visita", "Index", "Visita")</li>
  115.  
  116. </ul>
  117. </nav>
  118. <header>
  119. <h1>
  120. Ribeira Beer Distribuidora de Bebidas Ltda
  121. </h1>
  122. <p>
  123. Descricao
  124. </p>
  125. </header>
  126. <div class="conteudo">
  127. <main>
  128. @RenderBody()
  129. </main>
  130. @Html.Action("Index","Menu")
  131. </div>
  132.  
  133. <footer>
  134. Copyright 2017 - RibeiraBeer
  135. </footer>
  136. @RenderSection("Scripts",false)
  137. </body>
  138. </html>
Add Comment
Please, Sign In to add comment