12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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}";
- public override string ToString()
- {
- return string.Format("{0}: {1}", Code, Description);
- }
- }
- }
|