50 lines
877 B
C#
50 lines
877 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Csla;
|
|
using System.Collections;
|
|
|
|
namespace Volian.CSLA.Library
|
|
{
|
|
[Serializable]
|
|
public class HLStepInfo : VEReadOnlyBase<HLStepInfo>
|
|
{
|
|
#region Business methods
|
|
private int _item;
|
|
public int Item
|
|
{
|
|
get { return _item; }
|
|
}
|
|
public string Number
|
|
{
|
|
get { return (1+_item).ToString().PadLeft(3,' '); }
|
|
}
|
|
public override string ToString()
|
|
{
|
|
return Number + " - " + _name;
|
|
}
|
|
protected override void LoadChildren(int id)
|
|
{
|
|
// TODO: Load High Level Steps - if ContentType = ??
|
|
}
|
|
public override bool HasChildren()
|
|
{
|
|
return false;
|
|
}
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public HLStepInfo()
|
|
{ /* require use of factory methods */ }
|
|
|
|
internal HLStepInfo(int id, string name, int item)
|
|
{
|
|
_id = id;
|
|
_name = name;
|
|
_item = item;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|