yavsc/SalesCatalog/Model/PhysicalProduct.cs
Paul Schneider b835053e5f * Makefile:
* CatalogManager.cs: Let the catalog manager ensure all command form
  are instancied

* PhysicalProduct.cs: A better ToString method

* SaleForm.cs: doc

* NpgsqlContentProvider.cs: registers a command

* FrontOfficeApiController.cs: Set the catalog referer uri in each
  command form found in the catalog

* FrontOfficeController.cs: creates the catalog with referer uri

* instdbws.sql: the command has got a client, as registered user

* Commande.cs: The command has an id and a product reference

* IContentProvider.cs: new RegisterCommand method

* WorkFlowManager.cs: yavscModel/WorkFlow/IContentProvider.cs
2015-01-26 16:44:41 +01:00

27 lines
611 B
C#

using System;
namespace SalesCatalog.Model
{
public class PhysicalProduct : Product
{
public PhysicalProduct ()
{
}
public Price UnitaryPrice { get; set; }
#region implemented abstract members of SalesCatalog.Model.Product
public override string[] GetSalesConditions ()
{
return new string [] { string.Format(
"Prix unitaire : {0} {1}",
UnitaryPrice.Quantity.ToString(),
UnitaryPrice.Unit.Name) };
}
#endregion
public override string ToString ()
{
return string.Format ("[PhysicalProduct: Reference:{0} UnitaryPrice={1}]", Reference, UnitaryPrice);
}
}
}