32 lines
756 B
C#
32 lines
756 B
C#
|
11 years ago
|
using System;
|
||
|
|
using Yavsc;
|
||
|
|
using SalesCatalog;
|
||
|
|
using SalesCatalog.Model;
|
||
|
|
using System.Collections.Specialized;
|
||
|
11 years ago
|
using Yavsc.Model.WorkFlow;
|
||
|
11 years ago
|
|
||
|
11 years ago
|
|
||
|
11 years ago
|
namespace Yavsc.Model.FrontOffice
|
||
|
11 years ago
|
{
|
||
|
|
public class Commande
|
||
|
|
{
|
||
|
11 years ago
|
public DateTime CreationDate { get; set; }
|
||
|
11 years ago
|
public long Id { get; set; }
|
||
|
|
public string ProdRef { get; set; }
|
||
|
|
public Commande() {
|
||
|
|
}
|
||
|
|
|
||
|
|
public static Commande Create(NameValueCollection collection)
|
||
|
11 years ago
|
{
|
||
|
11 years ago
|
Commande cmd = new Commande ();
|
||
|
|
// string catref=collection["catref"]; // Catalog Url from which formdata has been built
|
||
|
11 years ago
|
cmd.ProdRef=collection["ref"]; // Required product reference
|
||
|
11 years ago
|
cmd.CreationDate = DateTime.Now;
|
||
|
|
WorkFlowManager wm = new WorkFlowManager ();
|
||
|
|
wm.RegisterCommand (cmd); // sets cmd.Id
|
||
|
|
return cmd;
|
||
|
11 years ago
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|