Browse Source

DESKTOP/CLASSES - locking down setout documents to import via staging screen only

Nick-PRSDigital@bitbucket.org 1 year ago
parent
commit
007b17a2bb

+ 1 - 1
prs.classes/Entities/Setout/SetoutDocument.cs

@@ -3,7 +3,7 @@
 namespace Comal.Classes
 {
     [UserTracking(typeof(ManufacturingPacket))]
-    public class SetoutDocument : EntityDocument<SetoutLink>, IManyToMany<Setout, Document>, ILicense<ManufacturingLicense>
+    public class SetoutDocument : EntityDocument<SetoutLink>, ILicense<ManufacturingLicense>
     {
     }
 }

+ 4 - 0
prs.desktop/Panels/Jobs/JobDesignDocumentGrid.cs

@@ -25,6 +25,10 @@ namespace PRSDesktop
                 PRSDesktop.Resources.tick.AsBitmapImage(),
                 SupercedeDocument
             ));
+            Options.Remove(DynamicGridOption.AddRows);
+            Options.Remove(DynamicGridOption.DeleteRows);
+            Options.Remove(DynamicGridOption.ImportData);
+            Options.Remove(DynamicGridOption.ExportData);
         }
 
         public Guid SetoutID { get; set; }