
refactiring, docpage * Yavsc.sln: * Web.csproj: * YavscModel.csproj: * OtherWebException.cs: * ProjectInfo.cs: * IValueProvider.cs: * CalendarApi.cs: * HomeController.cs: * TemplateException.cs: * WorkFlowController.cs: * NpgsqlWorkflow.csproj: * GoogleErrorMessage.cs: * ITCPNpgsqlProvider.cs: * NpgsqlContentProvider.cs: * ITContentProvider.csproj: * FrontOfficeApiController.cs: * NpgsqlContentProvider.csproj: refactoring * App.master: * WebApiConfig.cs: New Web api configuration architecture * SalesCatalog.csproj: * XmlCatalogProvider.cs: using MVC to get the catalog xml filename * WorkFlowManager.cs: * FrontOfficeController.cs: * CatalogManager.cs: No more extra argument to get the catalog * DateQuery.aspx: * AskForADate.cs: * GoogleController.cs: Google Date new query model * style.css: * BBCodeHelper.cs: Doc page responsive design * Service.cs: * SetPrice.cs: xml doc * WebApiConfig.cs: refactioring
59 lines
1.5 KiB
C#
59 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 SetPrice[] 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);
|
|
}
|
|
}
|
|
}
|
|
|