* LocalizedText.fr.resx: internationalisation de la saisie de
l'estimation * LocalizedText.resx: * FrontOfficeApiController.cs: renamed the Tex generation method * FrontOfficeController.cs: fixed the Estimate creation * WorkFlowController.cs: return model validation errors when updating a writting. * TexFormatter.cs: Simple mime-type content declaration * Global.asax.cs: * T4TemplateEstimate.cs: cleanning * BBCodeHelper.cs: BBCodes: docpage summary gone into a new aside element * App.master: thanks links are now contained in a div element * style.css: clearer * Estimate.aspx: Fixed the creation/edition/removal processes * Estim.tt: added the column "Count" to the writtings table. * RegisterViewModel.cs: internationalization * Writting.cs: stronger model * Estim.tex: cleaning
This commit is contained in:
parent
b4fefbce7e
commit
312585d4f0
16 changed files with 130 additions and 244 deletions
|
|
@ -20,26 +20,34 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// Who knows?
|
||||
/// </summary>
|
||||
/// <value>The unitary cost.</value>
|
||||
[Required()]
|
||||
[Display(Name="Coût unitaire")]
|
||||
[Required(ErrorMessage="Veuillez renseigner un coût unitaire")]
|
||||
public decimal UnitaryCost { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the count.
|
||||
/// </summary>
|
||||
/// <value>The count.</value>
|
||||
[Required()]
|
||||
[Required(ErrorMessage="Veuillez renseigner un multiplicateur pour cette imputation")]
|
||||
public int Count { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the product reference.
|
||||
/// </summary>
|
||||
/// <value>The product reference.</value>
|
||||
[Required()]
|
||||
[Required(ErrorMessage="Veuillez renseigner une référence produit")]
|
||||
[StringLength(512)]
|
||||
public string ProductReference { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the description.
|
||||
/// </summary>
|
||||
/// <value>The description.</value>
|
||||
[Required()]
|
||||
[Required(ErrorMessage="Veuillez renseigner une description de cette imputation.")]
|
||||
[StringLength (2048)]
|
||||
public string Description { get; set; }
|
||||
|
||||
public override string ToString ()
|
||||
{
|
||||
return string.Format ("[Writting: Id={0}, UnitaryCost={1}, Count={2}, ProductReference={3}, Description={4}]", Id, UnitaryCost, Count, ProductReference, Description);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue