yavsc/yavscModel/WorkFlow/Estimate.cs
Paul Schneider 8fee293665 * style.css:
* UserPost.aspx:
* Estimate.cs:
* Writting.cs:
* WorkFlowController.cs:
* NpgsqlContentProvider.cs: 
* FrontOfficeApiController.cs: Fixed the GetEstimate function,
  refactoring
2014-09-23 12:25:41 +02:00

26 lines
421 B
C#

using System;
namespace yavscModel.WorkFlow
{
public class Estimate
{
public Estimate ()
{
}
public string Title { get; set; }
public string Owner { 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; }
}
}