
* 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
66 lines
1.5 KiB
C#
66 lines
1.5 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Web.Profile;
|
|
|
|
namespace Yavsc.Model.RolesAndMembers
|
|
{
|
|
public class Profile
|
|
{
|
|
[DisplayName("Adresse")]
|
|
[StringLength(2047)]
|
|
public string Address { get; set; }
|
|
|
|
[DisplayName("Ville")]
|
|
[StringLength(255)]
|
|
public string CityAndState { get; set; }
|
|
|
|
[DisplayName("Code Postal")]
|
|
[StringLength(9)]
|
|
public string ZipCode { get; set; }
|
|
|
|
[DisplayName("Pays")]
|
|
[StringLength(99)]
|
|
public string Country { get; set; }
|
|
|
|
[DisplayName("Site Web")]
|
|
[StringLength(255)]
|
|
public string WebSite { get; set; }
|
|
|
|
[DisplayName("Blog visible")]
|
|
public bool BlogVisible { get; set; }
|
|
|
|
[DisplayName("Titre du blog")]
|
|
public string BlogTitle { get; set; }
|
|
|
|
public Profile():base()
|
|
{
|
|
}
|
|
|
|
public Profile(ProfileBase profile)
|
|
{
|
|
object b = profile.GetPropertyValue ("BlogVisible");
|
|
BlogVisible = (b is DBNull) ? true : (bool)b;
|
|
|
|
object s = profile.GetPropertyValue ("BlogTitle");
|
|
BlogTitle = (s is DBNull) ? null : (string)s;
|
|
|
|
s = profile.GetPropertyValue("Address");
|
|
Address = (s is DBNull)?null:(string)s;
|
|
|
|
s = profile.GetPropertyValue("CityAndState");
|
|
CityAndState = (s is DBNull)?null:(string)s;
|
|
|
|
s = profile.GetPropertyValue("Country");
|
|
Country = (s is DBNull)?null:(string)s;
|
|
|
|
s = profile.GetPropertyValue("ZipCode");
|
|
ZipCode = (s is DBNull)?null:(string)s;
|
|
|
|
s = profile.GetPropertyValue ("WebSite");
|
|
WebSite = (s is DBNull) ? null : (string)s;
|
|
}
|
|
}
|
|
}
|
|
|