Guest User

Untitled

a guest
Jul 3rd, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.14 KB | None | 0 0
  1. @model IEnumerable<RBR.AdministraBlu.Web.Models.PedidoBlu>
  2.  
  3. @{
  4. ViewData["Title"] = "Pedidos - BLU";
  5. }
  6.  
  7. <link rel="stylesheet" href="~/dist/js/datatables.net-bs/css/dataTables.bootstrap.min.css">
  8.  
  9. <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"></script>
  10.  
  11. <!-- DataTables -->
  12. <script src="~/dist/js/datatables.net/js/jquery.dataTables.min.js"></script>
  13. <script src="~/dist/js/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
  14. <!-- SlimScroll -->
  15. <script src="~/dist/js/jquery-slimscroll/jquery.slimscroll.min.js"></script>
  16. <!-- FastClick -->
  17. <script src="~/dist/js/fastclick/lib/fastclick.js"></script>
  18.  
  19. <script src="//cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
  20.  
  21. <script src="~/dist/js/adminlte.min.js"></script>
  22. <!-- AdminLTE for demo purposes -->
  23. <script src="~/dist/js/demo.js"></script>
  24.  
  25. <style>
  26. .normal {
  27. font-weight: normal;
  28. }
  29. </style>
  30.  
  31. <!-- Content Header (Page header) -->
  32. <!-- Main content -->
  33. <section class="content">
  34. <div class="row">
  35. <div class="col-xs-12">
  36. <div class="box">
  37. <div class="box-header">
  38. <h3 class="box-title">Pedidos - BLU</h3>
  39. </div>
  40. <!-- /.box-header -->
  41. <div class="box-body">
  42. <table id="example2" class="table table-bordered table-striped table-responsive responsive">
  43. <thead>
  44. <tr>
  45. <th>Pedido</th>
  46. <th>Cnpj</th>
  47. <th>Cliente</th>
  48. <th>Os Cliente</th>
  49. <th>Valor</th>
  50. <th>Extra</th>
  51. <th>Aprovado</th>
  52. <th>Data</th>
  53. <th></th>
  54.  
  55. </tr>
  56. </thead>
  57. <tbody>
  58. @foreach (var item in Model)
  59. {
  60. <tr>
  61. <td>@Html.DisplayFor(modelItem => item.NumeroPedido)</td>
  62. <td>@Html.DisplayFor(modelItem => item.Cnpj)</td>
  63. <td>@Html.DisplayFor(modelItem => item.Cliente)</td>
  64. <td>@Html.DisplayFor(modelItem => item.OsCliente)</td>
  65. <td>@Html.DisplayFor(modelItem => item.Valor)</td>
  66. <td>@Html.DisplayFor(modelItem => item.CobrancaExtra)</td>
  67. <td>@Html.DisplayFor(modelItem => item.Aprovado)</td>
  68. <td>@Html.DisplayFor(modelItem => item.DataCriacao)</td>
  69. @*<td><button class="btn btn-default details" data-id="@item.NumeroPedido"><i class="glyphicon glyphicon-file"></i></button></td>*@
  70. <td>
  71. <button data-target='#AtivarLimiteModal' data-toggle='modal' onclick="CarregaDados('@item.Cnpj','@item.Cliente','@item.OsCliente','@item.Valor','@item.CobrancaExtra' ,'@item.Status', '@item.DataCriacao','@item.Tentativas')"
  72. class='btn btn-primary btn-xs'>
  73. Ver
  74. </button>
  75. </td>
  76.  
  77. </tr>
  78. }
  79. </tbody>
  80. <tfoot>
  81. <tr>
  82. <th>Pedido</th>
  83. <th>Cnpj</th>
  84. <th>Cliente</th>
  85. <th>Os Cliente</th>
  86. <th>Valor</th>
  87. <th>Extra</th>
  88. <th>Aprovado</th>
  89. <th>Data</th>
  90. <th></th>
  91. </tr>
  92. </tfoot>
  93. </table>
  94. </div>
  95. <!-- /.box-body -->
  96. </div>
  97. <!-- /.box -->
  98. </div>
  99. <!-- /.col -->
  100. </div>
  101. <!-- /.row -->
  102. </section>
  103.  
  104. <!-- Modal Observacao -->
  105. <div class="modal fade" id="AtivarLimiteModal">
  106. <div class="modal-dialog">
  107. <div class="modal-content">
  108. <div class="modal-header bg-primary">
  109. <h3>Detalhes da cobrança</h3>
  110. </div>
  111. <div class="modal-body">
  112. <b>CNPJ:</b>&nbsp;<label id="lblCnpj" class="normal"></label><br />
  113. <b>CLIENTE:</b>&nbsp;<label id="lblCliente" class="normal"></label><br />
  114. <b>OS CLIENTE:</b>&nbsp;<label id="lblosCliente" class="normal"></label><br />
  115. <b>VALOR:</b>&nbsp;<label id="lblValor" class="normal"></label><br />
  116. <b>COBRANÇA EXTRA:</b>&nbsp;<label id="lblCobrancaExtra" class="normal"></label><br />
  117. <b>STATUS:</b>&nbsp;<label id="lblStatus" class="normal"></label><br />
  118. <b>DATA COBRANÇA:</b>&nbsp;<label id="lblData" class="normal"></label><br />
  119. <b>TENTATIVAS:</b>&nbsp;<label id="lblTentativas" class="normal"></label>
  120. </div>
  121. <div class="modal-footer">
  122. <button id="btnConfirmacao" class="btn btn-danger"
  123. data-dismiss="modal">
  124. FECHAR
  125. </button>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130.  
  131.  
  132. <!-- /.content -->
  133. <!-- page script -->
  134. <script>
  135. $(document).ready(function () {
  136. $('#example2').DataTable({
  137. "order": [[0, "desc"]]
  138. });
  139. });
  140.  
  141. function CarregaDados(cnpj, cliente, osCliente, valor, cobrancaExtra, status, data, tentativas) {
  142.  
  143. $("#lblCnpj").html(cnpj);
  144. $("#lblCliente").html(cliente);
  145. $("#lblosCliente").html(osCliente);
  146. $("#lblValor").html(valor);
  147. $("#lblCobrancaExtra").html(cobrancaExtra);
  148. $("#lblStatus").html(status);
  149. $("#lblData").html(data);
  150. $("#lblTentativas").html(tentativas);
  151. }
  152. </script>
  153.  
  154. <script>
  155. //$(function () {
  156. // $(".details").click(function () {
  157. // var id = $(this).attr("data-id");
  158. // $("#modal").load("PedidoBlu/" + id, function () {
  159. // $("#modal").modal();
  160. // })
  161. // });
  162. //})
  163. </script>
  164.  
  165.  
  166. @*<table class="table">
  167. <thead>
  168. <tr>
  169. <th>
  170. @Html.DisplayName("Pedido")
  171. </th>
  172. <th>
  173. @Html.DisplayNameFor(model => model.Cnpj)
  174. </th>
  175. <th>
  176. @Html.DisplayNameFor(model => model.Cliente)
  177. </th>
  178. <th>
  179. @Html.DisplayName("OS Cliente")
  180. </th>
  181. <th>
  182. @Html.DisplayNameFor(model => model.Valor)
  183. </th>
  184. <th>
  185. @Html.DisplayName("Cobrança Extra")
  186. </th>
  187. <th>
  188. @Html.DisplayNameFor(model => model.Status)
  189. </th>
  190. <th>
  191. @Html.DisplayNameFor(model => model.Aprovado)
  192. </th>
  193. <th>
  194. @Html.DisplayNameFor(model => model.Tentativas)
  195. </th>
  196. <th>
  197. @Html.DisplayNameFor(model => model.DataCriacao)
  198. </th>
  199. <th></th>
  200. </tr>
  201. </thead>
  202. <tbody>
  203. @foreach (var item in Model)
  204. {
  205. <tr>
  206. <td>
  207. @Html.DisplayFor(modelItem => item.NumeroPedido)
  208. </td>
  209. <td>
  210. @Html.DisplayFor(modelItem => item.Cnpj)
  211. </td>
  212. <td>
  213. @Html.DisplayFor(modelItem => item.Cliente)
  214. </td>
  215. <td>
  216. @Html.DisplayFor(modelItem => item.OsCliente)
  217. </td>
  218. <td>
  219. @Html.DisplayFor(modelItem => item.Valor)
  220. </td>
  221. <td>
  222. @Html.DisplayFor(modelItem => item.CobrancaExtra)
  223. </td>
  224. <td>
  225. @Html.DisplayFor(modelItem => item.Status)
  226. </td>
  227. <td>
  228. @Html.DisplayFor(modelItem => item.Aprovado)
  229. </td>
  230. <td>
  231. @Html.DisplayFor(modelItem => item.Tentativas)
  232. </td>
  233. <td>
  234. @Html.DisplayFor(modelItem => item.DataCriacao)
  235. </td>
  236. <td>
  237. <a asp-action="Details" asp-route-id="@item.NumeroPedido">Details</a>
  238. </td>
  239. </tr>
  240. }
  241. </tbody>
  242. </table>*@
Add Comment
Please, Sign In to add comment