* minor changes (like an [em] BBcode)

* Trying to use OAuth2 Google Login
This commit is contained in:
Paul Schneider 2014-12-09 01:59:38 +01:00
commit 3f41636719
32 changed files with 16285 additions and 119 deletions

View file

@ -82,12 +82,24 @@ namespace Yavsc.Model {
}
}
public static string access_denied {
get {
return ResourceManager.GetString("access_denied", resourceCulture);
}
}
public static string Product_reference {
get {
return ResourceManager.GetString("Product_reference", resourceCulture);
}
}
public static string Google_error {
get {
return ResourceManager.GetString("Google_error", resourceCulture);
}
}
public static string Welcome {
get {
return ResourceManager.GetString("Welcome", resourceCulture);

View file

@ -30,4 +30,6 @@
<data name="Pdf_version"><value>Version Pdf</value></data>
<data name="Tex_version"><value>Version LaTeX</value></data>
<data name="User_name"><value>Nom d'utilisateur</value></data>
<data name="Google_error"><value>Erreur Google : {0}</value></data>
<data name="access_denied"><value>Accès refusé</value></data>
</root>

View file

@ -30,4 +30,6 @@
<data name="Pdf_version"><value>Pdf version</value></data>
<data name="Tex_version"><value>LaTeX version</value></data>
<data name="User_name"><value>User name</value></data>
<data name="Google_error"><value>Google error : {0}</value></data>
<data name="access_denied"><value>Access denied</value></data>
</root>

View file

@ -9,10 +9,14 @@ namespace Yavsc.Model.WorkFlow
/// Gets the unique Identifier for this order, in this application.
/// </summary>
/// <value>The unique I.</value>
string UniqueID {
long UniqueID {
get;
}
event EventHandler<OrderStatusChangedEventArgs> StatusChanged;
/// <summary>
/// Gets the actual status for this order.
/// </summary>
/// <returns>The status.</returns>
string GetStatus();
}
}

View file

@ -5,41 +5,60 @@ namespace Yavsc.Model.WorkFlow
{
public class WFOrder : IWFOrder
{
private Product p;
private DateTime date;
private string catref;
private string id = null;
public WFOrder(Product prod,string catalogReference){
date = DateTime.Now;
catref=catalogReference;
p = prod;
id = Guid.NewGuid ().ToString();
}
public override string ToString ()
public string GetStatus ()
{
return string.Format ("[Commande date={0} prodref={1}, cat={2}]",date,p.Reference,catref);
// TODO Manager.GetStatus(this.id);
throw new NotImplementedException ();
}
public event EventHandler<OrderStatusChangedEventArgs> StatusChanged;
private long prodid;
#region IWFCommand implementation
/// <summary>
/// Gets the catalog reference, a unique id for the catalog (not a product id).
/// </summary>
/// <value>The catalog reference.</value>
public string UniqueID {
public long ProductId {
get {
return prodid;
}
}
private long id = 0;
public long UniqueID {
get {
return id;
}
}
private DateTime date;
public DateTime OrderDate {
get {
return date;
}
}
#endregion
private string catref;
/// <summary>
/// Gets the catalog reference, a unique id for the catalog (not a product id).
/// </summary>
/// <value>The catalog reference.</value>
public string CatalogReference {
get {
return catref;
}
}
public static WFOrder CreateOrder(long productId,string catalogReference){
return new WFOrder() {date = DateTime.Now,
catref=catalogReference,
prodid = productId};
//TODO id = Manager.Order(...)
}
public override string ToString ()
{
return string.Format ("[Commande date={0} prodref={1}, cat={2}]",date,prodid,catref);
}
}
}