| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | using System;using InABox.Core;namespace Comal.Classes{    [UserTracking(typeof(User))]    public class Activity : Entity, IPersistent, IRemotable, ILicense<CoreLicense>, IExportable, IImportable, IMergeable    {        [EditorSequence(1)]        [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]        public string Code { get; set; }        [EditorSequence(2)]        public string Description { get; set; }        [EditorSequence(3)]        [ColorEditor]        public string Color { get; set; }        [EditorSequence(4)]        public bool IsLeave { get; set; }        [EditorSequence(5)]        public bool IsDefault { get; set; }        [EditorSequence(6)]        [CurrencyEditor]        public double ChargeRate { get; set; }        [EditorSequence(7)]        public TaxCodeLink TaxCode { get; set; }        [EditorSequence(8)]        [CodeEditor(Editable = Editable.Enabled)]        public string PayrollID { get; set; }        [NullEditor]        [Obsolete("Replaced with IsLeave / IsDefault")]        public bool DefaultLeaveType { get; set; }        public override string ToString()        {            return string.Format("{0}: {1}", Code, Description);        }        protected override void Init()        {            base.Init();            TaxCode = new TaxCodeLink(() => this);        }    }}
 |