| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 | using System;using System.Linq.Expressions;using InABox.Core;namespace Comal.Classes{    [UserTracking(typeof(Job))]    public class JobITP : Entity, IRemotable, IPersistent, IOneToMany<Job>, IStringAutoIncrement<JobITP>, ILicense<ProjectManagementLicense>,        IExportable,        IImportable, IMergeable    {        [NullEditor]        [EditorSequence(0)]        public JobLink Job { get; set; }        [CodeEditor(Editable = Editable.Enabled)]        [EditorSequence(1)]        public string Code { get; set; }        [TextBoxEditor]        [EditorSequence(2)]        public string Description { get; set; }        [MemoEditor]        [EditorSequence(3)]        public string Comments { get; set; }        [EditorSequence(4)]        public EmployeeLink EmployeeLink { get; set; }        [DateEditor]        [EditorSequence(5)]        public DateTime DueDate { get; set; }        [Caption("ITP Form Type")]        [EditorSequence(6)]        public DigitalFormLink DigitalForm { get; set; }        public Expression<Func<JobITP, string>> AutoIncrementField()        {            return x => x.Code;        }        public Filter<JobITP> AutoIncrementFilter()        {            return null;        }        public string AutoIncrementPrefix() => "";        public string AutoIncrementFormat() => "{0:D4}";        protected override void Init()        {            base.Init();            Job = new JobLink();            EmployeeLink = new EmployeeLink();            DigitalForm = new DigitalFormLink();        }        public override string ToString()        {            return string.Format("{0}: {1}", Code, Description);        }    }}
 |