Files
yavsc/yavscModel/WorkFlow/Writting.cs
Paul Schneider 312585d4f0 * 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
2014-10-31 11:41:28 +01:00

54 lines
1.6 KiB
C#

using System;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Model.WorkFlow
{
/// <summary>
/// A Writting.
/// Une ligne d'écriture dans un devis ou une facture
/// </summary>
[Serializable]
public class Writting
{
/// <summary>
/// Gets or sets the identifier.
/// </summary>
/// <value>The identifier.</value>
public long Id { get; set; }
/// <summary>
/// Gets or sets the unitary cost, per unit, or per hour ...
/// Who knows?
/// </summary>
/// <value>The unitary cost.</value>
[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(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(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(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);
}
}
}