2014-07-16 20:35:03 +02:00
|
|
|
using System;
|
|
|
|
|
|
2015-01-28 15:04:07 +01:00
|
|
|
namespace Yavsc.Model.FrontOffice
|
2014-07-16 20:35:03 +02:00
|
|
|
{
|
|
|
|
|
public class Service : Product
|
|
|
|
|
{
|
|
|
|
|
public Service ()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Price HourPrice { get; set; }
|
|
|
|
|
|
2015-01-29 23:05:57 +01:00
|
|
|
#region implemented abstract members of Product
|
2014-07-16 20:35:03 +02:00
|
|
|
public override string [] GetSalesConditions ()
|
|
|
|
|
{
|
|
|
|
|
return new string [] { string.Format(
|
|
|
|
|
"Prix horaire de la prestation : {0} {1}",
|
|
|
|
|
HourPrice.Quantity.ToString(),
|
|
|
|
|
HourPrice.Unit.Name) } ;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
public override string ToString ()
|
|
|
|
|
{
|
|
|
|
|
return string.Format ("[Service: HourPrice={0}]", HourPrice);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|