yavsc/yavscModel/WorkFlow/Estimate.cs

27 lines
452 B
C#

using System;
namespace Yavsc.Model.WorkFlow
{
public class Estimate
{
public Estimate ()
{
}
public string Title { get; set; }
public string Owner { get; set; }
public long Id { get; set; }
public decimal Ciffer {
get {
decimal total = 0;
if (Lines == null)
return total;
foreach (Writting l in Lines)
total += l.UnitaryCost * l.Count;
return total;
}
}
public Writting[] Lines { get; set; }
}
}