Prevent single deployment export

For now, disable the option to export a single Deployment document for
multiple recording periods.
This commit is contained in:
Douglas Gillespie 2024-01-21 17:01:10 +00:00
parent 522253b489
commit 54cb0d1b08

View File

@ -44,6 +44,7 @@ public class DeploymentDataCard extends PamWizardCard {
bg.add(exportOne);
bg.add(exportMany);
JPanel optsPanel = new JPanel(new GridBagLayout());
optsPanel.setBorder(new TitledBorder("Number of documents"));
GridBagConstraints c = new PamGridBagContraints();
@ -95,6 +96,15 @@ public class DeploymentDataCard extends PamWizardCard {
}
public void setParams(DeploymentExportOpts exportOptions, Deployment deployment) {
/*
* temp code to only allow export of multiple documents.
*/
exportOptions.separateDeployments = true;
exportOne.setEnabled(false);
exportOne.setToolTipText("Feature not yet enabled");
exportOne.setSelected(exportOptions.separateDeployments == false);
exportMany.setSelected(exportOptions.separateDeployments == true);
setParams(deployment);