profile coiffeur

This commit is contained in:
2017-02-28 14:52:33 +01:00
parent 208e339bf8
commit c8f082fbde
4 changed files with 249 additions and 152 deletions

View File

@ -24,95 +24,94 @@ namespace Yavsc.Models.Haircut
[Display(Name="Fin de la journée")] [Display(Name="Fin de la journée")]
public int EndOfTheDay { get; set;} public int EndOfTheDay { get; set;}
[Display(Name="Coût d'une coupe femme cheveux longs")] [Display(Name="Coupe femme cheveux longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal WomenLongCutPrice { get; set; } public decimal WomenLongCutPrice { get; set; }
[Display(Name="Coût d'une coupe femme cheveux mi-longs")] [Display(Name="Coupe femme cheveux mi-longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal WomenHalfCutPrice { get; set; } public decimal WomenHalfCutPrice { get; set; }
[Display(Name="Coût d'une coupe femme cheveux courts")] [Display(Name="Coupe femme cheveux courts"),DisplayFormat(DataFormatString="{0:C}")]
public decimal WomenShortCutPrice { get; set; } public decimal WomenShortCutPrice { get; set; }
[Display(Name="Coût d'une coupe homme")] [Display(Name="Coupe homme"),DisplayFormat(DataFormatString="{0:C}")]
public decimal ManCutPrice { get; set; } public decimal ManCutPrice { get; set; }
[Display(Name="Coût d'une coupe enfant")] [Display(Name="Coupe enfant"),DisplayFormat(DataFormatString="{0:C}")]
public decimal KidCutPrice { get; set; } public decimal KidCutPrice { get; set; }
[Display(Name="Coût d'un brushing cheveux longs")] [Display(Name="Brushing cheveux longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal LongBrushingPrice { get; set; } public decimal LongBrushingPrice { get; set; }
[Display(Name="Coût d'un brushing cheveux mi-longs")] [Display(Name="Brushing cheveux mi-longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal HalfBrushingPrice { get; set; } public decimal HalfBrushingPrice { get; set; }
[Display(Name="Coût d'un brushing cheveux courts")] [Display(Name="Brushing cheveux courts"),DisplayFormat(DataFormatString="{0:C}")]
public decimal ShortBrushingPrice { get; set; } public decimal ShortBrushingPrice { get; set; }
[Display(Name="Coût du shamoing")] [Display(Name="Shampoing"),DisplayFormat(DataFormatString="{0:C}")]
public decimal ShampooPrice { get; set; } public decimal ShampooPrice { get; set; }
[Display(Name="Coût du soin")] [Display(Name="Soin"),DisplayFormat(DataFormatString="{0:C}")]
public decimal CarePrice { get; set; } public decimal CarePrice { get; set; }
[Display(Name="Coût d'une couleur cheveux longs")] [Display(Name="couleur cheveux longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal LongColorPrice { get; set; } public decimal LongColorPrice { get; set; }
[Display(Name="Coût d'une couleur cheveux mi-longs")] [Display(Name="couleur cheveux mi-longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal HalfColorPrice { get; set; } public decimal HalfColorPrice { get; set; }
[Display(Name="Coût d'une couleur cheveux courts")] [Display(Name="couleur cheveux courts"),DisplayFormat(DataFormatString="{0:C}")]
public decimal ShortColorPrice { get; set; } public decimal ShortColorPrice { get; set; }
[Display(Name="Coût d'une couleur multiple cheveux longs")] [Display(Name="couleur multiple cheveux longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal LongMultiColorPrice { get; set; } public decimal LongMultiColorPrice { get; set; }
[Display(Name="Coût d'une couleur multiple cheveux mi-longs")] [Display(Name="couleur multiple cheveux mi-longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal HalfMultiColorPrice { get; set; } public decimal HalfMultiColorPrice { get; set; }
[Display(Name="Coût d'une couleur multiple cheveux courts")] [Display(Name="couleur multiple cheveux courts"),DisplayFormat(DataFormatString="{0:C}")]
public decimal ShortMultiColorPrice { get; set; } public decimal ShortMultiColorPrice { get; set; }
[Display(Name="Coût d'une permanente cheveux longs")] [Display(Name="permanente cheveux longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal LongPermanentPrice { get; set; } public decimal LongPermanentPrice { get; set; }
[Display(Name="Coût d'une permanente cheveux mi-longs")] [Display(Name="permanente cheveux mi-longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal HalfPermanentPrice { get; set; } public decimal HalfPermanentPrice { get; set; }
[Display(Name="Coût d'une permanente cheveux courts")] [Display(Name="permanente cheveux courts"),DisplayFormat(DataFormatString="{0:C}")]
public decimal ShortPermanentPrice { get; set; } public decimal ShortPermanentPrice { get; set; }
[Display(Name="Coût d'un défrisage cheveux longs")] [Display(Name="défrisage cheveux longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal LongDefrisPrice { get; set; } public decimal LongDefrisPrice { get; set; }
[Display(Name="Coût d'un défrisage cheveux mi-longs")] [Display(Name="défrisage cheveux mi-longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal HalfDefrisPrice { get; set; } public decimal HalfDefrisPrice { get; set; }
[Display(Name="Coût d'un défrisage cheveux courts")] [Display(Name="défrisage cheveux courts"),DisplayFormat(DataFormatString="{0:C}")]
public decimal ShortDefrisPrice { get; set; } public decimal ShortDefrisPrice { get; set; }
[Display(Name="Coût des mêches sur cheveux longs")] [Display(Name="mêches sur cheveux longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal LongMechPrice { get; set; } public decimal LongMechPrice { get; set; }
[Display(Name="Coût des mêches sur cheveux mi-longs")] [Display(Name="mêches sur cheveux mi-longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal HalfMechPrice { get; set; } public decimal HalfMechPrice { get; set; }
[Display(Name="Coût des mêches sur cheveux courts")] [Display(Name="mêches sur cheveux courts"),DisplayFormat(DataFormatString="{0:C}")]
public decimal ShortMechPrice { get; set; } public decimal ShortMechPrice { get; set; }
[Display(Name="Coût du balayage cheveux longs")] [Display(Name="balayage cheveux longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal LongBalayagePrice { get; set; } public decimal LongBalayagePrice { get; set; }
[Display(Name="Coût du balayage cheveux mi-longs")] [Display(Name="balayage cheveux mi-longs"),DisplayFormat(DataFormatString="{0:C}")]
public decimal HalfBalayagePrice { get; set; } public decimal HalfBalayagePrice { get; set; }
[Display(Name="Coût du balayage cheveux courts")] [Display(Name="balayage cheveux courts"),DisplayFormat(DataFormatString="{0:C}")]
public decimal ShortBalayagePrice { get; set; } public decimal ShortBalayagePrice { get; set; }
} }
} }

View File

@ -42,10 +42,10 @@ namespace Yavsc.Models.Workflow
[Display(Name="Active")] [Display(Name="Active")]
public bool Active { get; set; } public bool Active { get; set; }
[Display(Name="Maximal Daily Cost (euro/day)")] [Display(Name="Maximal Daily Cost (euro/day)"),DisplayFormat(DataFormatString="{0:C}")]
public int? MaxDailyCost { get; set; } public int? MaxDailyCost { get; set; }
[Display(Name="Minimal Daily Cost (euro/day)")] [Display(Name="Minimal Daily Cost (euro/day)"),DisplayFormat(DataFormatString="{0:C}")]
public int? MinDailyCost { get; set; } public int? MinDailyCost { get; set; }
[Display(Name="Rate from clients")] [Display(Name="Rate from clients")]

View File

@ -9,6 +9,11 @@
<div> <div>
<hr /> <hr />
@if (Model!=null) { @if (Model!=null) {
<fieldset>
<legend>Disponibilités</legend>
<dl class="dl-horizontal"> <dl class="dl-horizontal">
<dt> <dt>
@Html.DisplayNameFor(model => model.EndOfTheDay) @Html.DisplayNameFor(model => model.EndOfTheDay)
@ -22,6 +27,19 @@
<dd> <dd>
@Html.Partial("HourFromMinutes", Model.StartOfTheDay) @Html.Partial("HourFromMinutes", Model.StartOfTheDay)
</dd> </dd>
</dl>
</fieldset>
<fieldset>
<legend>Tarifs hors coiffure ou coupe</legend>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.ShampooPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.ShampooPrice)
</dd>
<dt> <dt>
@Html.DisplayNameFor(model => model.CarePrice) @Html.DisplayNameFor(model => model.CarePrice)
@ -29,71 +47,49 @@
<dd> <dd>
@Html.DisplayFor(model => model.CarePrice) @Html.DisplayFor(model => model.CarePrice)
</dd> </dd>
<dt>
@Html.DisplayNameFor(model => model.HalfBalayagePrice) </dl>
</dt> </fieldset>
<dd>
@Html.DisplayFor(model => model.HalfBalayagePrice) <fieldset>
</dd> <legend>Tarifs balayages</legend>
<dt>
@Html.DisplayNameFor(model => model.HalfBrushingPrice)
</dt> <dl class="dl-horizontal">
<dd>
@Html.DisplayFor(model => model.HalfBrushingPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.HalfColorPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfColorPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.HalfDefrisPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfDefrisPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.HalfMechPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfMechPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.HalfMultiColorPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfMultiColorPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.HalfPermanentPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfPermanentPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.KidCutPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.KidCutPrice)
</dd>
<dt> <dt>
@Html.DisplayNameFor(model => model.LongBalayagePrice) @Html.DisplayNameFor(model => model.LongBalayagePrice)
</dt> </dt>
<dd> <dd>
@Html.DisplayFor(model => model.LongBalayagePrice) @Html.DisplayFor(model => model.LongBalayagePrice)
</dd> </dd>
<dt> <dt>
@Html.DisplayNameFor(model => model.LongBrushingPrice) @Html.DisplayNameFor(model => model.HalfBalayagePrice)
</dt> </dt>
<dd> <dd>
@Html.DisplayFor(model => model.LongBrushingPrice) @Html.DisplayFor(model => model.HalfBalayagePrice)
</dd> </dd>
<dt>
@Html.DisplayNameFor(model => model.LongColorPrice) <dt>
@Html.DisplayNameFor(model => model.ShortBalayagePrice)
</dt> </dt>
<dd> <dd>
@Html.DisplayFor(model => model.LongColorPrice) @Html.DisplayFor(model => model.ShortBalayagePrice)
</dd>
</dl>
</fieldset>
<fieldset>
<legend>Tarifs défrisage</legend>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.HalfDefrisPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfDefrisPrice)
</dd> </dd>
<dt> <dt>
@Html.DisplayNameFor(model => model.LongDefrisPrice) @Html.DisplayNameFor(model => model.LongDefrisPrice)
@ -101,72 +97,186 @@
<dd> <dd>
@Html.DisplayFor(model => model.LongDefrisPrice) @Html.DisplayFor(model => model.LongDefrisPrice)
</dd> </dd>
<dt>
@Html.DisplayNameFor(model => model.LongMechPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.LongMechPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.LongMultiColorPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.LongMultiColorPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.LongPermanentPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.LongPermanentPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ManCutPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.ManCutPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ShampooPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.ShampooPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ShortBalayagePrice)
</dt>
<dd>
@Html.DisplayFor(model => model.ShortBalayagePrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ShortBrushingPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.ShortBrushingPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ShortColorPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.ShortColorPrice)
</dd>
<dt> <dt>
@Html.DisplayNameFor(model => model.ShortDefrisPrice) @Html.DisplayNameFor(model => model.ShortDefrisPrice)
</dt> </dt>
<dd> <dd>
@Html.DisplayFor(model => model.ShortDefrisPrice) @Html.DisplayFor(model => model.ShortDefrisPrice)
</dd> </dd>
</dl>
</fieldset>
<fieldset>
<legend>Tarifs mèches</legend>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.HalfMechPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfMechPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.LongMechPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.LongMechPrice)
</dd>
<dt> <dt>
@Html.DisplayNameFor(model => model.ShortMechPrice) @Html.DisplayNameFor(model => model.ShortMechPrice)
</dt> </dt>
<dd> <dd>
@Html.DisplayFor(model => model.ShortMechPrice) @Html.DisplayFor(model => model.ShortMechPrice)
</dd> </dd>
</dl>
</fieldset>
<fieldset>
<legend>Tarifs coupes</legend>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.WomenHalfCutPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.WomenHalfCutPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.WomenLongCutPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.WomenLongCutPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.WomenShortCutPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.WomenShortCutPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ManCutPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.ManCutPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.KidCutPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.KidCutPrice)
</dd>
</dl>
</fieldset>
<fieldset>
<legend>Tarifs couleurs</legend>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.LongColorPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.LongColorPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.HalfColorPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfColorPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ShortColorPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.ShortColorPrice)
</dd>
</dl>
<dl class="dl-horizontal">
<dt> <dt>
@Html.DisplayNameFor(model => model.ShortMultiColorPrice) @Html.DisplayNameFor(model => model.ShortMultiColorPrice)
</dt> </dt>
<dd> <dd>
@Html.DisplayFor(model => model.ShortMultiColorPrice) @Html.DisplayFor(model => model.ShortMultiColorPrice)
</dd> </dd>
<dt>
@Html.DisplayNameFor(model => model.HalfMultiColorPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfMultiColorPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.LongMultiColorPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.LongMultiColorPrice)
</dd>
</dl>
</fieldset>
<fieldset>
<legend>Tarifs burshing</legend>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.LongBrushingPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.LongBrushingPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.HalfBrushingPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfBrushingPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.ShortBrushingPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.ShortBrushingPrice)
</dd>
</dl>
</fieldset>
<fieldset>
<legend>Tarifs permanentes</legend>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.LongPermanentPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.LongPermanentPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.HalfPermanentPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.HalfPermanentPrice)
</dd>
<dt> <dt>
@Html.DisplayNameFor(model => model.ShortPermanentPrice) @Html.DisplayNameFor(model => model.ShortPermanentPrice)
</dt> </dt>
@ -174,25 +284,13 @@
@Html.DisplayFor(model => model.ShortPermanentPrice) @Html.DisplayFor(model => model.ShortPermanentPrice)
</dd> </dd>
<dt>
@Html.DisplayNameFor(model => model.WomenHalfCutPrice)
</dt> </dl>
<dd> </fieldset>
@Html.DisplayFor(model => model.WomenHalfCutPrice)
</dd>
<dt> }
@Html.DisplayNameFor(model => model.WomenLongCutPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.WomenLongCutPrice)
</dd>
<dt>
@Html.DisplayNameFor(model => model.WomenShortCutPrice)
</dt>
<dd>
@Html.DisplayFor(model => model.WomenShortCutPrice)
</dd>
</dl>}
else { else {
@SR["Aucun profile renseigné"] @SR["Aucun profile renseigné"]
} }

View File

@ -1,2 +1,2 @@
@model int @model int
@(Model/60):@(Model%60) @((Model/60).ToString("00")):@((Model%60).ToString("00"))