<%@ Page Title="Devis" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %> <%= Html.ValidationSummary("Devis") %> <% using (Html.BeginForm("Estimate","FrontOffice")) { %> <%= Html.LabelFor(model => model.Title) %>:<%= Html.TextBox( "Title" ) %> <%= Html.ValidationMessage("Title", "*") %>
<%= Html.LabelFor(model => model.Responsible) %>:<%=Model.Responsible%> <%= Html.Hidden ("Responsible") %> <%= Html.ValidationMessage("Responsible", "*") %>
<%= Html.LabelFor(model => model.Client) %>:<%=Html.TextBox( "Client" ) %> <%= Html.ValidationMessage("Client", "*") %>
<%= Html.LabelFor(model => model.Description) %>:<%=Html.TextArea( "Description") %> <%= Html.ValidationMessage("Description", "*") %>
<%= Html.LabelFor(model => model.Id) %>:<%=Model.Id%> <%= Html.Hidden( "Id" ) %>
<% if (Model.Id==0) { %> <% } else { %> <% } %> <% if (Model.Id>0) { %> <% int lc=0; if (Model.Lines!=null) foreach (Writting wr in Model.Lines) { lc++; %> row" id="wr<%=wr.Id%>"> <% } %>
Description Product Reference Count Unitary Cost
<%=wr.Description%> <%=wr.ProductReference%> <%=wr.Count%> <%=wr.UnitaryCost%>
<% } %> <% } %>