|
|
|
@ -35,7 +35,7 @@ public class ExcelTableDetailCard extends WizardCard {
|
|
|
|
|
private ExcelExportSession exportSession;
|
|
|
|
|
private ExcelTableDetailCard thisCard;
|
|
|
|
|
|
|
|
|
|
private VerticalLayoutContainer p = new VerticalLayoutContainer();
|
|
|
|
|
private VerticalLayoutContainer p;
|
|
|
|
|
private VerticalPanel tableDetailPanel;
|
|
|
|
|
|
|
|
|
|
private TextField id;
|
|
|
|
@ -63,7 +63,8 @@ public class ExcelTableDetailCard extends WizardCard {
|
|
|
|
|
fieldSet.setHeadingText("Information");
|
|
|
|
|
fieldSet.setCollapsible(false);
|
|
|
|
|
form.add(fieldSet);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
p = new VerticalLayoutContainer();
|
|
|
|
|
switch (exportSession.getExportType()) {
|
|
|
|
|
case DATASET:
|
|
|
|
|
datasetViewConfig();
|
|
|
|
@ -91,6 +92,7 @@ public class ExcelTableDetailCard extends WizardCard {
|
|
|
|
|
|
|
|
|
|
agencyId = new TextField();
|
|
|
|
|
agencyId.setVisible(true);
|
|
|
|
|
agencyId.setAllowBlank(false);
|
|
|
|
|
agencyId.setEmptyText("Enter Agency Id...");
|
|
|
|
|
if (exportSession.getAgencyId() == null || exportSession.getAgencyId().isEmpty()) {
|
|
|
|
|
agencyId.setValue(Constants.EXCEL_DATASET_EXPORT_DEFAULT_AGENCY_ID);
|
|
|
|
@ -101,7 +103,6 @@ public class ExcelTableDetailCard extends WizardCard {
|
|
|
|
|
FieldLabel agencyNameLabel = new FieldLabel(agencyId, "Agency Id");
|
|
|
|
|
p.add(agencyNameLabel, new VerticalLayoutData(1, -1));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version = new TextField();
|
|
|
|
|
version.setAllowBlank(false);
|
|
|
|
|
version.setEmptyText("Enter Version...");
|
|
|
|
@ -113,7 +114,6 @@ public class ExcelTableDetailCard extends WizardCard {
|
|
|
|
|
measureColumn.setReadOnly(true);
|
|
|
|
|
p.add(new FieldLabel(measureColumn, "Measure Column"), new VerticalLayoutData(1, -1));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -121,7 +121,11 @@ public class ExcelTableDetailCard extends WizardCard {
|
|
|
|
|
Command sayNextCard = new Command() {
|
|
|
|
|
|
|
|
|
|
public void execute() {
|
|
|
|
|
checkData();
|
|
|
|
|
try {
|
|
|
|
|
checkData();
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
Log.error("Error in checkData :" + e.getLocalizedMessage(),e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
@ -141,6 +145,10 @@ public class ExcelTableDetailCard extends WizardCard {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
getWizardWindow().setPreviousButtonCommand(sayPreviousCard);
|
|
|
|
|
|
|
|
|
|
setBackButtonVisible(true);
|
|
|
|
|
setEnableBackButton(true);
|
|
|
|
|
|
|
|
|
|
getWizardWindow().setEnableNextButton(true);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -182,10 +190,15 @@ public class ExcelTableDetailCard extends WizardCard {
|
|
|
|
|
|
|
|
|
|
protected void goNext() {
|
|
|
|
|
try {
|
|
|
|
|
Log.info("Data:");
|
|
|
|
|
Log.info("Id: "+id.getCurrentValue());
|
|
|
|
|
Log.info("AgencyId: "+agencyId.getCurrentValue());
|
|
|
|
|
Log.info("Version: "+version.getCurrentValue());
|
|
|
|
|
|
|
|
|
|
exportSession.setId(id.getCurrentValue());
|
|
|
|
|
exportSession.setAgencyId(agencyId.getCurrentValue());
|
|
|
|
|
exportSession.setVersion(version.getCurrentValue());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExcelOperationInProgressCard excelOperationInProgressCard = new ExcelOperationInProgressCard(exportSession);
|
|
|
|
|
getWizardWindow().addCard(excelOperationInProgressCard);
|
|
|
|
|
Log.info("NextCard ExcelOperationInProgressCard");
|
|
|
|
|