Fixe l'affichage du devis
This commit is contained in:
parent
7d0625f44d
commit
1b2b2ba612
4 changed files with 48 additions and 3 deletions
|
|
@ -50,6 +50,7 @@ namespace Yavsc.Controllers
|
|||
.Include(e => e.Query)
|
||||
.Include(e => e.Query.PerformerProfile)
|
||||
.Include(e => e.Query.PerformerProfile.Performer)
|
||||
.Include(e=> e.Bill)
|
||||
.Where(
|
||||
e=>e.OwnerId == uid || e.ClientId == uid
|
||||
)
|
||||
|
|
|
|||
|
|
@ -10,23 +10,34 @@
|
|||
<h4>Estimate</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Title)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Description)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Description)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Status)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Status)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
@Html.DisplayNameFor(model => model.Bill)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Title)
|
||||
@foreach (var cl in Model.Bill) {
|
||||
@await Html.PartialAsync("BillingLine", cl);
|
||||
}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
|
|
|||
33
Yavsc/Views/Shared/BillingLine.cshtml
Normal file
33
Yavsc/Views/Shared/BillingLine.cshtml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
@model Yavsc.Models.Billing.CommandLine
|
||||
|
||||
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Id)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Id)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Description)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Description)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Count)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Count)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UnitaryCost)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UnitaryCost)
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
|
@ -16,7 +16,7 @@ Da road to the hell
|
|||
☐ Signature de contrat
|
||||
✔ Chat privé (coté serveur) @done (October 13th 2016, 16:27)
|
||||
✔ Accès mobile au salon public @done (October 13th 2016, 16:27)
|
||||
☐ Accès Web au chat privé
|
||||
✔ Accès Web au chat privé @done (November 3rd 2016, 14:57)
|
||||
✔ Accès mobile au chat privé @done (November 3rd 2016, 11:15)
|
||||
|
||||
## Jalon 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue