120
/// <summary>
/// Конструктор, заполняющий список свойств
/// </summary>
protected XUsers()
{
Init("xUsers", "InsertUser", "DeleteUser", " ORDER BY Name, Fired", true);
// m_ValidateNameDelegate = new ValidationDelegate(this.ValidateName);
// Заполняем список свойств
Properties.Add("FIO", "ФИО", XPropertyType.ptString, "", 255);
Properties.Add("Password", "Пароль", XPropertyType.ptString, "", 255);
Properties.Add("Administrator", "Администратор", XPropertyType.ptBool,
false);
Properties.Add("Manager", "Менеджер", XPropertyType.ptBool, true);
Properties.Add("Fired", "Не работает", XPropertyType.ptBool, false);
Properties.Add("Phone", "Телефон", XPropertyType.ptString, "", 255);
Properties.Add("MobilePhone", "Мобильный телефон",
XPropertyType.ptString, "", 255);
}
protected static XUsers m_Instance = null;
/// <summary>
/// Экземпляр XPersons
/// </summary>
public static XUsers Instance
{
get
{
if (m_Instance == null)
{
m_Instance = new XUsers();