using System; using InABox.Core; namespace Comal.Classes { [UserTracking(typeof(User))] public class Activity : Entity, IPersistent, IRemotable, ILicense, 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(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); } } }