* Estimate.aspx: from backoffice
* CatalogManager.cs: Uses GetDefaultProvider * Catalog.cs: the Catalog object now should support a unique id in the system : UID, exposed as one of its properties. * AccountController.cs: new static method te get an user profile by its name. * AdminController.cs: Uses the Yavsc.Admin namespace (refactoring) * Web.csproj: * BlogManager.cs: * BackOfficeController.cs: refactoring * BlogsController.cs: Fixes the Blog title * FrontOfficeController.cs: Changes on the go for the Command object * AddRole.aspx: minor syntax change * UserPosts.aspx: show the blog title * style.css: black transparent for the background of posts * Profile.cs: Method FromProfileBase became a constructor * Commande.cs: nothing * Estimate.aspx: moved to the frontoffice views * CatalogHelper.cs: Writting GetDefaultProvider
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
using System;
|
||||
using Yavsc.Model.Blogs;
|
||||
using Yavsc.Model.RolesAndMembers;
|
||||
using System.Web;
|
||||
|
||||
|
||||
namespace Yavsc.Model.Blogs
|
||||
|
@ -33,7 +33,11 @@ namespace Yavsc.Model.RolesAndMembers
|
||||
[DisplayName("Titre du blog")]
|
||||
public string BlogTitle { get; set; }
|
||||
|
||||
public void FromProfileBase(ProfileBase profile)
|
||||
public Profile():base()
|
||||
{
|
||||
}
|
||||
|
||||
public Profile(ProfileBase profile)
|
||||
{
|
||||
object b = profile.GetPropertyValue ("BlogVisible");
|
||||
BlogVisible = (b is DBNull) ? true : (bool)b;
|
||||
@ -52,11 +56,9 @@ namespace Yavsc.Model.RolesAndMembers
|
||||
|
||||
s = profile.GetPropertyValue("ZipCode");
|
||||
ZipCode = (s is DBNull)?null:(string)s;
|
||||
|
||||
|
||||
s = profile.GetPropertyValue ("WebSite");
|
||||
WebSite = (s is DBNull) ? null : (string)s;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,13 +4,17 @@ using SalesCatalog;
|
||||
using SalesCatalog.Model;
|
||||
using System.Collections.Specialized;
|
||||
|
||||
|
||||
namespace Yavsc.Model.WorkFlow
|
||||
{
|
||||
public class Commande
|
||||
{
|
||||
public Commande(NameValueCollection collection)
|
||||
public DateTime CreationDate { get; set; }
|
||||
long Id { get; set; }
|
||||
public Commande(long catid, long pref, NameValueCollection collection)
|
||||
{
|
||||
|
||||
CreationDate = DateTime.Now;
|
||||
//TODO save it and get the id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user