From b3d0580439b9a00c7eb918085de1694151066004 Mon Sep 17 00:00:00 2001
From: Kenmegne <stephanie.kenmegne@gmail.com>
Date: Thu, 18 Jun 2026 16:02:49 +0000
Subject: [PATCH] rename packages
---
fdx_convert/src/main/java/com/megatim/fdxconvert/App.java | 95 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 95 insertions(+), 0 deletions(-)
diff --git a/fdx_convert/src/main/java/com/megatim/fdxconvert/App.java b/fdx_convert/src/main/java/com/megatim/fdxconvert/App.java
new file mode 100644
index 0000000..1f2f2f2
--- /dev/null
+++ b/fdx_convert/src/main/java/com/megatim/fdxconvert/App.java
@@ -0,0 +1,95 @@
+package com.megatim.fdxconvert;
+
+import com.megatimfx.common.abstracts.context.AbstractViewContext;
+import com.megatim.fdxconvert.controller.MainController;
+import com.megatim.fdxconvert.dao.HibernateUtil;
+import com.megatim.fdxconvert.pojo.Delimiteur;
+import com.megatim.fdxconvert.service.TacheJobService;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import javafx.application.Application;
+import static javafx.application.Application.launch;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Parent;
+import javafx.scene.Scene;
+import javafx.scene.image.Image;
+import javafx.stage.Stage;
+
+/**
+ *
+ * @author STEPHANIE
+ */
+public class App extends Application {
+
+ public static final Map<String, Delimiteur> DELIMITEURS_COLONNE = new HashMap<>();
+ public static final Map<String, Delimiteur> DELIMITEURS_LIGNE = new HashMap<>();
+ public static final Map<String, Delimiteur> SEPARATEURS_DATE = new HashMap<>();
+
+ public static final List<String> FORMATS_DATE = new ArrayList<>();
+
+ static {
+ DELIMITEURS_COLONNE.put("", new Delimiteur("", "Aucun"));
+ DELIMITEURS_COLONNE.put(";", new Delimiteur(";", "Point-virgule ( ; )"));
+ DELIMITEURS_COLONNE.put("|", new Delimiteur("|", "Barre verticale ( | )"));
+ DELIMITEURS_COLONNE.put("\\t", new Delimiteur("\\t", "Tabulation ( \\t )"));
+
+ DELIMITEURS_LIGNE.put("\\n", new Delimiteur("\\n", "Retour Charriot ( \\n )"));
+
+ FORMATS_DATE.add("yyyyMMdd");
+ FORMATS_DATE.add("yyyyddMM");
+ FORMATS_DATE.add("MMyyyydd");
+ FORMATS_DATE.add("MMddyyy");
+ FORMATS_DATE.add("yyyy");
+
+ SEPARATEURS_DATE.put("", new Delimiteur("", "Aucun"));
+ SEPARATEURS_DATE.put("-", new Delimiteur("-", "Tiret ( - )"));
+ SEPARATEURS_DATE.put("/", new Delimiteur("/", "Slash ( / )"));
+ }
+
+ @Override
+ public void start(Stage primaryStage) throws FileNotFoundException, MalformedURLException, IOException {
+
+ AbstractViewContext.getInstance().setAbstractEditDialogControllerURL(App.class.getResource("/importation/validation/data/client/abstracts/AbstractEditDialog.fxml"));
+
+ AbstractViewContext.getInstance().setAbstractMainDialogControllerURL(App.class.getResource("/importation/validation/data/client/abstracts/AbstractMainDialog.fxml"));
+
+ FXMLLoader loader = new FXMLLoader();
+ loader.setLocation(MainController.class.getResource("main.fxml"));
+ Parent root = loader.load();
+
+ Scene scene = new Scene(root, 1100, 600);
+
+ primaryStage.setTitle("Convertisseur et validateur des données de Fdx V1.0.2 ");
+ primaryStage.getIcons().add(new Image("images/icone_ins.png"));
+ primaryStage.setOnCloseRequest(e -> {
+ HibernateUtil.shutdown();
+ System.exit(0);
+ });
+ primaryStage.setScene(scene);
+ primaryStage.show();
+ }
+
+ /**
+ * @param args the command line arguments
+ */
+ public static void main(String[] args) {
+
+ try {
+
+ TacheJobService.getInstance().startJobs();
+ launch(args);
+
+ } catch (Exception ex) {
+ Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex);
+ }
+
+ }
+
+}
--
Gitblit v1.10.0