using System;
using System.Collections.Generic;
using System.Text;
using Ubik.Engine.Client;
namespace StoresAndStockPricing.Model{
/// <summary>
/// Describes the purpose of a retail store group, e.g. geography, ownership, pricing group etc.
/// </summary>
public class RetailStoreGroupFunction : Individual
{
private NonEmptyTrackedString _name;
private TrackedProperty<bool> _isSystemFunction;
protected RetailStoreGroupFunction(Session session)
: base(session)
{
_name = new NonEmptyTrackedString(this, "Name");
_isSystemFunction = new TrackedProperty<bool>(this, "IsSystemFunction");
}
public RetailStoreGroupFunction(Session session, string name)
: this(session)
{
_name.Reset(name);
}
public string Name
{
get
{
return _name.Value;
}
set
{
_name.Value = value;
}
}
/// <summary>
/// Used internally to designate the group function used to manipulate all sites and individual sites.
/// </summary>
public bool IsSystemFunction
{
get
{
return _isSystemFunction.Value;
}
internal set
{
_isSystemFunction.Value = value;
}
}
}
}
|