Advertisement
Benevides09

HTML

Jan 25th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.38 KB | None | 0 0
  1. <table class="table table-bordered table-hover" id="myTable">
  2.  
  3.     <thead>
  4.         <tr>
  5.             <th>
  6.                 @Html.DisplayNameFor(model => model.CadastroEmpresa.NomeEmpresa)
  7.             </th>
  8.             <th>
  9.                 @Html.DisplayNameFor(model => model.Fornecedor.NomeFornecedor)
  10.             </th>
  11.             <th>
  12.                 @Html.DisplayNameFor(model => model.DataL)
  13.             </th>
  14.             <th>
  15.                 @Html.DisplayNameFor(model => model.NumeroNFE)
  16.             </th>
  17.             <th>
  18.                 @Html.DisplayNameFor(model => model.Valor)
  19.             </th>
  20.             <th>
  21.                 @Html.DisplayNameFor(model => model.Icms)
  22.             </th>
  23.             <th>
  24.                 @Html.DisplayNameFor(model => model.Vencimento)
  25.             </th>
  26.             <th></th>
  27.         </tr>
  28.     </thead>
  29.     <tfoot>
  30.         <tr>
  31.                 //Posso estar errando aqui!
  32.             <th colspan="4" style="text-align:right" id="total">.</th>
  33.             <th> </th>
  34.        </tr>
  35.  
  36.     </tfoot>
  37.  
  38.    
  39.     <tbody>
  40.  
  41.         @foreach (var item in Model)
  42.         {
  43.             <tr>
  44.                 <td>
  45.                     @Html.DisplayFor(modelItem => item.CadastroEmpresa.NomeEmpresa)
  46.                 </td>
  47.                 <td>
  48.                     @Html.DisplayFor(modelItem => item.Fornecedor.NomeFornecedor)
  49.                 </td>
  50.                 <td>
  51.                     @Html.DisplayFor(modelItem => item.DataL)
  52.                 </td>
  53.                 <td>
  54.                     @Html.DisplayFor(modelItem => item.NumeroNFE)
  55.                 </td>
  56.                 <td>
  57.                     @Html.DisplayFor(modelItem => item.Valor)
  58.                 </td>
  59.                 <td>
  60.                     @Html.DisplayFor(modelItem => item.Icms)
  61.                 </td>
  62.                 <td>
  63.                     @Html.DisplayFor(modelItem => item.Vencimento)
  64.                 </td>
  65.                 <td>
  66.  
  67.  
  68.                     @Html.ActionLink("Editar", "Edit", new { id = item.CadastroNFEID }, new { @class = "btn btn-primary" })
  69.                     @Html.ActionLink("Detalhes", "Details", new { id = item.CadastroNFEID }, new { @class = "btn btn-info" })
  70.                     @Html.ActionLink("Excluir", "Delete", new { id = item.CadastroNFEID }, new { @class = "btn btn-danger" })
  71.  
  72.                 </td>
  73.             </tr>
  74.         }
  75.     </tbody>
  76.  
  77. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement