xml doc
This commit is contained in:
parent
7558e11bd6
commit
93c18633b9
28 changed files with 338 additions and 150 deletions
35
yavscModel/FrontOffice/Basket.cs
Normal file
35
yavscModel/FrontOffice/Basket.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
//
|
||||
// Basket.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
//
|
||||
// Copyright (c) 2015 Paul Schneider
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Yavsc.Model.WorkFlow;
|
||||
|
||||
namespace Yavsc.Model.FrontOffice
|
||||
{
|
||||
public class Basket: List<Commande>
|
||||
{
|
||||
public Basket ()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
31
yavscModel/FrontOffice/Commande.cs
Normal file
31
yavscModel/FrontOffice/Commande.cs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using Yavsc;
|
||||
using SalesCatalog;
|
||||
using SalesCatalog.Model;
|
||||
using System.Collections.Specialized;
|
||||
using Yavsc.Model.WorkFlow;
|
||||
|
||||
|
||||
namespace Yavsc.Model.FrontOffice
|
||||
{
|
||||
public class Commande
|
||||
{
|
||||
public DateTime CreationDate { get; set; }
|
||||
public long Id { get; set; }
|
||||
public string ProdRef { get; set; }
|
||||
public Commande() {
|
||||
}
|
||||
|
||||
public static Commande Create(NameValueCollection collection)
|
||||
{
|
||||
Commande cmd = new Commande ();
|
||||
// string catref=collection["catref"]; // Catalog Url from which formdata has been built
|
||||
cmd.ProdRef=collection["ref"]; // Required product reference
|
||||
cmd.CreationDate = DateTime.Now;
|
||||
WorkFlowManager wm = new WorkFlowManager ();
|
||||
wm.RegisterCommand (cmd); // sets cmd.Id
|
||||
return cmd;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue