|
|
@@ -17,6 +17,7 @@ using System.Reflection;
|
|
|
using System.Collections.Immutable;
|
|
|
using StagingManufacturingPacketComponent = Comal.Classes.StagingManufacturingPacketComponent;
|
|
|
using System.Threading.Tasks;
|
|
|
+using NPOI.SS.Formula.Functions;
|
|
|
|
|
|
namespace PRSDesktop
|
|
|
{
|
|
|
@@ -33,11 +34,15 @@ namespace PRSDesktop
|
|
|
[ScriptEditor]
|
|
|
public string? Script { get; set; }
|
|
|
|
|
|
+ [IntegerEditor(Caption = "Maximum Document Size (MB)", ToolTip = "The user will be warned when uploading documents which are larger than this size in megabytes. Set to zero for no maximum.")]
|
|
|
+ public int MaximumDocumentSize { get; set; }
|
|
|
+
|
|
|
public StagingPanellSettings()
|
|
|
{
|
|
|
MarkupPathway = "";
|
|
|
SetoutsFolder = "";
|
|
|
Script = null;
|
|
|
+ MaximumDocumentSize = 0;
|
|
|
}
|
|
|
|
|
|
public string DefaultScript()
|
|
|
@@ -149,6 +154,7 @@ public class Module
|
|
|
ProcessButton.Visibility = Security.IsAllowed<CanApproveSetouts>() ? Visibility.Visible : Visibility.Hidden;
|
|
|
|
|
|
//stagingSetoutGrid.ScanFiles(_settings.SetoutsFolder);
|
|
|
+ stagingSetoutGrid.PanelSettings = _settings;
|
|
|
stagingSetoutGrid.Refresh(true, false);
|
|
|
SetoutComponentGrid.Refresh(true, false);
|
|
|
|