Initial import

This commit is contained in:
Paul Schneider 2014-07-16 20:35:03 +02:00
commit 04804b89a9
279 changed files with 12945 additions and 0 deletions

View file

@ -0,0 +1,22 @@
using System;
namespace yavscModel.WorkFlow
{
public class Estimate
{
public Estimate ()
{
}
public string Description { get; set; }
public decimal Ciffer {
get {
decimal total = 0;
foreach (Writting l in Lines)
total += l.UnitaryCost * l.Count;
return total;
}
}
public Writting[] Lines { get; set; }
}
}

View file

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace yavscModel.WorkFlow
{
public interface IContent
{
object Data { get; set; }
string MimeType { get; set; }
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
namespace yavscModel.WorkFlow
{
public interface IContentProvider: IDisposable
{
string Order (IWFCommand c);
IContent Get (string orderId);
}
}

View file

@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
namespace yavscModel.WorkFlow
{
public interface IWFCommand
{
}
}

View file

@ -0,0 +1,13 @@
using System;
using yavscModel.WorkFlow;
using System.Web.Mvc;
namespace WorkFlow
{
public interface IWFModule
{
int GetState (IWFCommand c);
int Handle (IWFCommand c,FormCollection collection);
}
}

View file

@ -0,0 +1,23 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
namespace yavscModel.WorkFlow
{
public class NewProjectModel
{
[DisplayName("Nom du projet")]
[Required()]
public string Name { get; set; }
[DisplayName("Manager du projet")]
[Required]
public string Manager { get; set; }
[DisplayName("Description du projet")]
[Required]
public string Description { get; set; }
}
}

View 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
}
}

View file

@ -0,0 +1,13 @@
using System;
namespace yavscModel.WorkFlow
{
public class Writting
{
public decimal UnitaryCost { get; set; }
public int Count { get; set; }
public string ProductReference { get; set; }
public string Description { get; set; }
}
}