Advertisement
Guest User

Winfood

a guest
Sep 6th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.76 KB | None | 0 0
  1. @For Each Item As modelOffice.BancoModel In ViewBag.Banco
  2. @<tr>
  3. <td><input type="checkbox" value="true" class="checkalterarbanco" name="Banco[@I].AlteraBanco" /></td>
  4. <td><input type="hidden" value="@Item.numero" class="numero" name="Banco[@I].numero" />@Item.numero</td>
  5. <td><input type="hidden" value="@Item.banco" name="Banco[@I].banco" />@Item.banco</td>
  6. <td><input type="hidden" value="@Item.AGENCIA" name="Banco[@I].AGENCIA" />@Item.AGENCIA</td>
  7. <td><input type="hidden" value="@Item.contato" name="Banco[@I].contato" />@Item.contato</td>
  8. </tr>
  9. I = I + 1
  10. Next
  11. </tbody>
  12. End If
  13. </table>
  14. <input type="checkbox" id="bancoSelecionaTodos" title="Clique aqui para selecionar todos" /> Selecionar todos
  15. </div>
  16. <!-- banco -->
  17. <!-- clientes -->
  18. <div class="selecao hidden" id="cliente" style="height:300px;overflow:auto">
  19. <table class="table table-striped table-hover table-condensed">
  20. <tr>
  21. <th></th>
  22. <th>Código</th>
  23. <th>Descrição</th>
  24. <th>CPF/CNPJ</th>
  25. <th>Fone</th>
  26. </tr>
  27. @code
  28. I = 0
  29. end code
  30.  
  31. @if Not IsNothing(ViewBag.Cliente) Then
  32. For Each Item As modelOffice.ClienteModel In ViewBag.Cliente
  33. @<tr>
  34. <td><input type="checkbox" value="true" class="checkalterarcliente" /></td>
  35. <td><input type="hidden" class="codigo" value="@Item.codigo" />@Item.codigo</td>
  36. <td><input type="hidden" value="@Item.nome" />@Item.nome</td>
  37. <td><input type="hidden" value="@Item.cpf" />@Item.cpf</td>
  38. <td><input type="hidden" value="@Item.fone" />@Item.fone</td>
  39. </tr>
  40. I = I + 1
  41. Next
  42. End If
  43. </table>
  44. <input type="checkbox" id="clienteSelecionaTodos" title="Clique aqui para selecionar todos" /> Selecionar todos
  45. </div>
  46. <!-- cliente -->
  47. <!-- Fornecedores -->
  48. <div class="selecao hidden" id="fornecedor" style="height:300px;overflow:auto">
  49. <table class="table table-striped table-hover table-condensed">
  50. <tr>
  51. <th></th>
  52. <th>Código</th>
  53. <th>Descrição</th>
  54. </tr>
  55. @code
  56. I = 0
  57. end code
  58.  
  59. @if Not IsNothing(ViewBag.Fornecedor) Then
  60. For Each Item As modelOffice.FornecedorModel In ViewBag.Fornecedor
  61. @<tr>
  62. <td><input type="checkbox" value="true" class="checkalterarfornecedor" name="Fornecedor[@I].AlteraFornecedor" /></td>
  63. <td><input type="hidden" class="Codigo" value="@Item.Codigo" name="Fornecedor[@I].Codigo" />@Item.Codigo</td>
  64. <td><input type="hidden" value="@Item.Nome" name="Fornecedor[@I].Nome" />@Item.Nome</td>
  65. </tr>
  66. I = I + 1
  67. Next
  68. End If
  69. </table>
  70. <input type="checkbox" id="fornecedorSelecionaTodos" title="Clique aqui para selecionar todos" /> Selecionar todos
  71. </div>
  72. <!-- Fornecedores -->
  73. <!-- centro-custo -->
  74. <div class="selecao hidden" id="centroCusto" style="height:300px;overflow:auto">
  75. <table class="table table-striped table-hover table-condensed">
  76. <tr>
  77. <th></th>
  78. <th>Código</th>
  79. <th>Descrição</th>
  80. </tr>
  81. @code
  82. I = 0
  83. end code
  84.  
  85. @if Not IsNothing(ViewBag.CentroCusto) Then
  86. For Each Item As modelOffice.CentroCustoModel In ViewBag.CentroCusto
  87. @<tr>
  88. <td><input type="checkbox" value="true" class="checkalterarcentrocusto" name="CentroCusto[@I].Alterar" /></td>
  89. <td><input type="hidden" class="CODIGO" value="@Item.CODIGO" name="CentroCusto[@I].CODIGO" />@Item.CODIGO</td>
  90. <td><input type="hidden" value="@Item.DESCRIC" name="CentroCusto[@I].DESCRIC" />@Item.DESCRIC</td>
  91. </tr>
  92. I = I + 1
  93. Next
  94. End If
  95. </table>
  96. <input type="checkbox" id="centrocustoSelecionaTodos" title="Clique aqui para selecionar todos" /> Selecionar todos
  97. </div>
  98. <!-- centro-custo -->
  99. <!-- setor -->
  100. <div class="selecao hidden" id="setor" style="height:300px;overflow:auto">
  101. <table class="table table-striped table-hover table-condensed">
  102. <tr>
  103. <th></th>
  104. <th>Código</th>
  105. <th>Descrição</th>
  106. </tr>
  107. @code
  108. I = 0
  109. end code
  110.  
  111. @if Not IsNothing(ViewBag.Setor) Then
  112. For Each Item As modelOffice.SetorModel In ViewBag.Setor
  113. @<tr>
  114. <td><input type="checkbox" value="true" class="checkalterarsetor" name="Setor[@I].Alterar" /></td>
  115. <td><input type="hidden" class="GRUPO" value="@Item.GRUPO" name="Setor[@I].GRUPO" />@Item.GRUPO</td>
  116. <td><input type="hidden" value="@Item.NGRUPO" name="Setor[@I].NGRUPO" />@Item.NGRUPO</td>
  117. </tr>
  118. I = I + 1
  119. Next
  120. End If
  121. </table>
  122. <input type="checkbox" id="setorSelecionaTodos" title="Clique aqui para selecionar todos" /> Selecionar todos
  123. </div>
  124. <!-- setor -->
  125. <!-- funcionario -->
  126. <div class="selecao hidden" id="funcionario" style="height:300px;overflow:auto">
  127. <table class="table table-striped table-hover table-condensed">
  128. <tr>
  129. <th></th>
  130. <th>Código</th>
  131. <th>Descrição</th>
  132. </tr>
  133. @code
  134. I = 0
  135. end code
  136.  
  137. @if Not IsNothing(ViewBag.Funcionario) Then
  138. For Each Item As modelOffice.Funcionario.FuncionarioModel In ViewBag.Funcionario
  139. @<tr>
  140. <td><input type="checkbox" value="true" class="checkalterarfuncionario" name="Funcionario[@I].AlterarFuncionario" /></td>
  141. <td><input type="hidden" class="codigo" value="@Item.codigo" name="Funcionario[@I].codigo" />@Item.codigo</td>
  142. <td><input type="hidden" value="@Item.nome" name="Funcionario[@I].nome" />@Item.nome</td>
  143. </tr>
  144. I = I + 1
  145. Next
  146. End If
  147. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement