소스 검색

Added ClientReference to Job and JobLink
Added ability to change Job on Job Forms

frogsoftware 1 년 전
부모
커밋
112b1fe36a
3개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      prs.classes/Entities/Job/Job.cs
  2. 5 0
      prs.classes/Entities/Job/JobForm.cs
  3. 3 0
      prs.classes/Entities/Job/JobLink.cs

+ 4 - 0
prs.classes/Entities/Job/Job.cs

@@ -45,6 +45,10 @@ namespace Comal.Classes
         [EditorSequence(7)]
         [Caption("Bill To")]
         public AccountLink Account { get; set; }
+        
+        [EditorSequence(8)]
+        [TextBoxEditor]
+        public String ClientReference { get; set; }
 
         #endregion
 

+ 5 - 0
prs.classes/Entities/Job/JobForm.cs

@@ -4,6 +4,11 @@ namespace Comal.Classes
 {
     public class JobForm : EntityForm<Job, JobLink, JobForm>, IDigitalForm<Job>, ILicense<ProjectManagementLicense>
     {
+        [EditorSequence(998)]
+        [EntityRelationship(DeleteAction.Cascade)]
+        public override  JobLink Parent { get; set; }
+        
+        [EditorSequence(999)]
         public JobScopeLink JobScope { get; set; }
 
         public override string AutoIncrementPrefix() => "JF";

+ 3 - 0
prs.classes/Entities/Job/JobLink.cs

@@ -26,6 +26,9 @@ namespace Comal.Classes
         
         public AccountLink Account { get; set; }
         
+        [TextBoxEditor(Editable = Editable.Disabled)]
+        public String ClientReference { get; set; }
+        
         public Address SiteAddress { get; set; }
         
         public ContactLink Contact { get; set; }