* Fixed the Pdf generation under Slackware

* Estimate view developpement
This commit is contained in:
Paul Schneider
2014-11-03 16:55:09 +01:00
parent 312585d4f0
commit f695d108fb
27 changed files with 459 additions and 242 deletions

View File

@ -11,7 +11,7 @@ namespace Yavsc.Model.WorkFlow
{
}
[Required]
[DisplayName("Titre")]
[Display(ResourceType = typeof(LocalizedText),Name="Title")]
public string Title { get; set; }
[Required]
[DisplayName("Description")]
@ -24,7 +24,7 @@ namespace Yavsc.Model.WorkFlow
public string Client { get; set; }
public long Id { get; set; }
[DisplayName("Chiffre")]
[Display(ResourceType = typeof(LocalizedText),Name="Ciffer")]
public decimal Ciffer {
get {
decimal total = 0;

View File

@ -1,5 +1,6 @@
using System;
using System.ComponentModel.DataAnnotations;
using Yavsc.Model;
namespace Yavsc.Model.WorkFlow
{
@ -20,13 +21,14 @@ namespace Yavsc.Model.WorkFlow
/// Who knows?
/// </summary>
/// <value>The unitary cost.</value>
[Display(Name="Coût unitaire")]
[Display(ResourceType = typeof(LocalizedText),Name="Unitary_cost")]
[Required(ErrorMessage="Veuillez renseigner un coût unitaire")]
public decimal UnitaryCost { get; set; }
/// <summary>
/// Gets or sets the count.
/// </summary>
/// <value>The count.</value>
[Display(ResourceType = typeof(LocalizedText),Name="Count")]
[Required(ErrorMessage="Veuillez renseigner un multiplicateur pour cette imputation")]
public int Count { get; set; }
/// <summary>
@ -35,6 +37,7 @@ namespace Yavsc.Model.WorkFlow
/// <value>The product reference.</value>
[Required(ErrorMessage="Veuillez renseigner une référence produit")]
[StringLength(512)]
[Display(ResourceType = typeof(LocalizedText),Name="Product_reference")]
public string ProductReference { get; set; }
/// <summary>
/// Gets or sets the description.
@ -42,6 +45,7 @@ namespace Yavsc.Model.WorkFlow
/// <value>The description.</value>
[Required(ErrorMessage="Veuillez renseigner une description de cette imputation.")]
[StringLength (2048)]
[Display(ResourceType = typeof(LocalizedText),Name="Description")]
public string Description { get; set; }
public override string ToString ()