yavsc/yavscModel/WorkFlow/Estimate.cs

42 lines
822 B
C#
Raw Normal View History

2014-07-16 20:35:03 +02:00
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
2014-07-16 20:35:03 +02:00
2014-10-06 04:58:47 +02:00
namespace Yavsc.Model.WorkFlow
2014-07-16 20:35:03 +02:00
{
[Serializable]
public class Estimate
2014-07-16 20:35:03 +02:00
{
public Estimate ()
{
}
[Required]
[DisplayName("Titre")]
public string Title { get; set; }
[Required]
[DisplayName("Description")]
public string Description { get; set; }
[Required]
[DisplayName("Responsable")]
public string Responsible { get; set; }
[Required]
[DisplayName("Client")]
public string Client { get; set; }
public long Id { get; set; }
[DisplayName("Chiffre")]
2014-07-16 20:35:03 +02:00
public decimal Ciffer {
get {
decimal total = 0;
if (Lines == null)
return total;
2014-07-16 20:35:03 +02:00
foreach (Writting l in Lines)
total += l.UnitaryCost * l.Count;
return total;
}
}
2014-07-16 20:35:03 +02:00
public Writting[] Lines { get; set; }
}
}