| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 | using System;using InABox.Core;namespace Comal.Classes{    [UserTracking(typeof(User))]    public class Activity : Entity, IPersistent, IRemotable, ILicense<CoreLicense>, IExportable, IImportable, IMergeable, IIssues, IProblems<ManagedProblem>    {        [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(8)]        [CodeEditor(Editable = Editable.Enabled)]        public string PayrollID { get; set; }                                [EditorSequence(9)]        public CostCentreLink CostCentre { get; set; }                [EditorSequence("Invoicing",1)]        public ActivityCharge Charge { get; set; }                [NullEditor]        [Obsolete("Replaced with IsLeave / IsDefault")]        public bool DefaultLeaveType { get; set; }        public override string ToString()        {            return string.Format("{0}: {1}", Code, Description);        }        [NullEditor]        [Obsolete("Replaced with Problem", true)]        public string Issues { get; set; }                [EditorSequence("Issues", 1)]        public ManagedProblem Problem { get; set; }    }}
 |