Initial import
This commit is contained in:
parent
0c865416ca
commit
04804b89a9
279 changed files with 12945 additions and 0 deletions
39
yavscModel/WorkFlow/WFOrder.cs
Normal file
39
yavscModel/WorkFlow/WFOrder.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
using System;
|
||||
using SalesCatalog.Model;
|
||||
using yavscModel.WorkFlow;
|
||||
|
||||
namespace WorkFlow
|
||||
{
|
||||
public class WFOrder : IWFCommand
|
||||
{
|
||||
private Product p;
|
||||
private DateTime date;
|
||||
private string catref;
|
||||
public WFOrder(Product prod,string catalogReference){
|
||||
date = DateTime.Now;
|
||||
catref=catalogReference;
|
||||
p = prod;
|
||||
}
|
||||
public override string ToString ()
|
||||
{
|
||||
return string.Format ("[Commande date={0} prodref={1}, cat={2}]",date,p.Reference,catref);
|
||||
}
|
||||
|
||||
#region IWFCommand implementation
|
||||
|
||||
public string CatalogReference {
|
||||
get {
|
||||
return catref;
|
||||
}
|
||||
}
|
||||
|
||||
public DateTime OrderDate {
|
||||
get {
|
||||
return date;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue