package com.axyus.generator.pespj.ui;
import com.axyus.generator.pespj.GeneratorPesPjWizardProcess;
-import com.axyus.generator.pespj.steps.ReferenceComptableStep;
-import com.axyus.generator.pespj.utilities.CursorWaiter;
import com.axyus.generator.pespj.utils.ConfigHandler;
import com.axyus.generator.pespj.utils.ControlUtils;
import com.axyus.generator.pespj.utils.DateUtils;
import com.axyus.generator.pespj.utils.PJfile;
import fr.gouv.minefi.cp.helios.pes_v2.rev0.aller.PESAller;
import fr.gouv.minefi.cp.helios.pes_v2.rev0.aller.TPESPJs;
+import java.awt.Cursor;
import java.awt.event.ItemEvent;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.util.Date;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JFileChooser;
+import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTable;
import org.apache.commons.io.FilenameUtils;
}//GEN-LAST:event_edit_pj_buttonActionPerformed
private void browse_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browse_buttonActionPerformed
- CursorWaiter.setBusy(this, true);
+ setBusy(true);
JFileChooser chooseFileDialog = new JFileChooser(System.getProperty("user.home"));
chooseFileDialog.setDialogTitle("Sélectionez une PJ");
int response = chooseFileDialog.showDialog(this, "Sélectionner");
- CursorWaiter.setBusy(this, false);
+ setBusy(false);
if(response == JFileChooser.APPROVE_OPTION){
File selectedFile = chooseFileDialog.getSelectedFile();
if (selectedFile != null) {
if (canAddPj()) {
if (!isModeEdition()) {
try {
- CursorWaiter.setBusy(this, true);
+ setBusy(true);
TableModelPJ tableModel = ((TableModelPJ) tablePjs.getModel());
tableModel.add(new PJfile(pieceJustificative.getText(),GeneratePesUtils.generatePj(pieceJustificative.getText(),
((Pair) typePj.getSelectedItem()).key, nomPj.getText(),
idUnique.getText(), description.getText())));
} finally {
- CursorWaiter.setBusy(this, false);
+ setBusy(false);
resetChamps();
}
} else {
indexPjEdition=-1;
} finally {
- CursorWaiter.setBusy(this, false);
+ setBusy(false);
resetChamps();
}
}
public void setPesAller(PESAller pes) {
this.pesAller = pes;
}
+
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton add_pj;
private javax.swing.JButton browse_button;