1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
<div class="searchEngine secteur">
<% foreach (var lot in Model.Select(m => new { m.ID_LOT, m.ID_OPERATION, m.LIB_LOT }).Distinct())
{ %>
<% using (Html.BeginForm("Step3", "Operation", FormMethod.Post))
{ %>
<div class="lotSurface">
<h3>LOT - <%: lot.LIB_LOT%> </h3>
<input type="hidden" id="idLot" value="<%: lot.ID_LOT %>" />
<div class="desc">
<% foreach (var idSecteur in Model.Select(m => new { m.ID_SECTEUR_FCT, m.LIB_SECTEUR_FCT }).Distinct())
{ %>
<div class="editor-label nameSecteur">
<%: idSecteur.LIB_SECTEUR_FCT%>
</div>
<% foreach (var item in Model.Where(m => m.ID_LOT == lot.ID_LOT && m.ID_SECTEUR_FCT == idSecteur.ID_SECTEUR_FCT))
{ %>
<div class="editor-field nameSecteur">
<input type="text" id="<%: lot.ID_LOT %><%: item.ID_SECTEUR_FCT %>" name="" value="<%: item.MTT_HT %>" />
</div>
<% } %>
<% } %>
<input class = "enregistrer" type="submit" id="<%: lot.ID_LOT %>" value="Enregistrer" title="Enregistrer le lot" />
</div>
<div class="shadow"></div>
</div>
<div class="clear"></div>
<% } %>
<% } %>
</div> |