yavsc/yavscModel/WorkFlow/Estimate.cs

26 lines
452 B
C#
Raw Normal View History

2014-07-16 20:35:03 +02:00
using System;
2014-10-06 04:58:47 +02:00
namespace Yavsc.Model.WorkFlow
2014-07-16 20:35:03 +02:00
{
public class Estimate
{
public Estimate ()
{
}
public string Title { get; set; }
public string Owner { get; set; }
public long Id { get; set; }
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;
}
}
public Writting[] Lines { get; set; }
}
}