yavsc/yavscModel/FrontOffice/Catalog/Service.cs
Paul Schneider da90e2cb10 * Yavsc.sln:
* Web.csproj:
* TestAPI.csproj:
* YavscModel.csproj:
* Automate.cs:
* TaskOutput.cs:
* AssemblyInfo.cs:
* Service.cs:
* FinalStateException.cs:
* FrontOfficeController.cs:
* InvalidLetterException.cs:
* PriceOnItemCount.cs:

* TestAutomate.cs: Tests an Automate

* packages.config: using Machine.Specifications
2015-07-17 05:07:05 +02:00

58 lines
1.5 KiB
C#

using System;
using Yavsc.Model.FrontOffice.Billing;
namespace Yavsc.Model.FrontOffice
{
/// <summary>
/// Service.
/// </summary>
public class Service : Product
{
/// <summary>
/// Initializes a new instance of the <see cref="Yavsc.Model.FrontOffice.Service"/> class.
/// </summary>
public Service ()
{
}
/// <summary>
/// Gets or sets the hour price.
/// </summary>
/// <value>The hour price.</value>
public Price HourPrice { get; set; }
/// <summary>
/// Gets or sets the set prices.
/// </summary>
/// <value>The set prices.</value>
public PriceOnItemCount[] SetPrices { get; set; }
/// <summary>
/// Role names involved in this kind of service
/// </summary>
/// <value>The providers.</value>
public string[] Providers { get; set; }
#region implemented abstract members of Product
/// <summary>
/// Gets the sales conditions.
/// </summary>
/// <returns>The sales conditions.</returns>
public override string [] GetSalesConditions ()
{
return new string [] { string.Format(
"Prix horaire de la prestation : {0} {1}",
HourPrice.Quantity.ToString(),
HourPrice.Unit.Name) } ;
}
#endregion
/// <summary>
/// Returns a <see cref="System.String"/> that represents the current <see cref="Yavsc.Model.FrontOffice.Service"/>.
/// </summary>
/// <returns>A <see cref="System.String"/> that represents the current <see cref="Yavsc.Model.FrontOffice.Service"/>.</returns>
public override string ToString ()
{
return string.Format ("[Service: HourPrice={0}]", HourPrice);
}
}
}