Revert "UOCL-285: payment screen hanging (#42)"

This reverts commit 0c6b84dd5f.
This commit is contained in:
2025-03-28 11:14:51 +00:00
parent 1f984b560c
commit acc38ba567
9 changed files with 26 additions and 62 deletions
+18 -34
View File
@@ -4,7 +4,7 @@
<groupId>com.unicenta</groupId>
<artifactId>unicentaopos</artifactId>
<version>5.3.2</version>
<version>5.3.1</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -111,42 +111,11 @@
<artifactId>itext</artifactId>
<version>2.1.7</version>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>6.15.0</version>
<exclusions>
<exclusion>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-fonts</artifactId>
<version>6.15.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.17</version>
<version>3.10.1</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.17</version>
</dependency>
<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
<version>5.1.1</version>
</dependency>
<dependency>
<groupId>net.sf.barcode4j</groupId>
<artifactId>barcode4j</artifactId>
@@ -297,7 +266,22 @@
<artifactId>fop</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>6.12.2</version>
<exclusions>
<exclusion>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-fonts</artifactId>
<version>6.0.0</version>
</dependency>
<dependency>
<groupId>ar.com.fdvs</groupId>
<artifactId>DynamicJasper-core-fonts</artifactId>
@@ -30,7 +30,7 @@ public class AppLocal {
public static final String APP_NAME = "uniCenta oPOS";
public static final String APP_ID = "unicentaopos";
public static final String APP_VERSION = "5.3.2";
public static final String APP_VERSION = "5.3.1";
private static final LocaleResources m_resources;
@@ -41,8 +41,6 @@ import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
@@ -278,7 +276,6 @@ public class CustomerCSVImport extends JPanel implements JPanelView {
* the UI responsiveness.
*/
private void setWorker() {
ExecutorService customExecutor = Executors.newCachedThreadPool();
progress = 0;
webPBar.setStringPainted(true);
@@ -307,8 +304,7 @@ public class CustomerCSVImport extends JPanel implements JPanelView {
}
}
};
// pbWorker.execute();
customExecutor.submit(pbWorker);
pbWorker.execute();
}
/**
@@ -44,8 +44,6 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
@@ -294,7 +292,6 @@ public class JPanelCSVImport extends JPanel implements JPanelView {
* the UI responsiveness.
*/
private void setWorker() {
ExecutorService customExecutor = Executors.newCachedThreadPool();
progress = 0;
webPBar.setStringPainted(true);
@@ -323,8 +320,7 @@ public class JPanelCSVImport extends JPanel implements JPanelView {
}
}
};
//pbWorker.execute();
customExecutor.submit(pbWorker);
pbWorker.execute();
}
/**
@@ -43,8 +43,6 @@ import java.sql.SQLException;
import java.util.List;
import java.util.Properties;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
@@ -513,7 +511,6 @@ public class StockQtyImport extends JPanel implements JPanelView {
* the UI responsiveness.
*/
private void setWorker() {
ExecutorService customExecutor = Executors.newCachedThreadPool();
progress = 0;
webPBar.setStringPainted(true);
@@ -542,8 +539,7 @@ public class StockQtyImport extends JPanel implements JPanelView {
}
}
};
//pbWorker.execute();
customExecutor.submit(pbWorker);
pbWorker.execute();
}
/**
@@ -749,7 +749,7 @@ public abstract class JPaymentSelect extends javax.swing.JDialog
};
//worker.execute();
customExecutor.submit(worker);
customExecutor.execute(worker);
}
catch (Exception ex) {
System.out.println(ex.getMessage());
@@ -37,8 +37,6 @@ import lombok.extern.slf4j.Slf4j;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import javax.swing.*;
/**
@@ -80,7 +78,6 @@ public class JTicketsBagShared extends JTicketsBag {
log.debug("Loading Sales screen! "+this.getClass());
ExecutorService customExecutor = Executors.newCachedThreadPool();
SwingWorker<String, String> reloadLayaway = new SwingWorker<>() {
@Override
protected String doInBackground() throws Exception {
@@ -94,8 +91,7 @@ public class JTicketsBagShared extends JTicketsBag {
}
};
//reloadLayaway.execute();
customExecutor.submit(reloadLayaway);
reloadLayaway.execute();
m_sCurrentTicket = null;
@@ -43,8 +43,6 @@ import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.regex.Matcher;
/**
@@ -2723,7 +2721,6 @@ public final class Transfer extends JPanel implements JPanelView {
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {
ExecutorService customExecutor = Executors.newCachedThreadPool();
SwingWorker<Void, Void> worker = new SwingWorker<Void, Void>() {
@Override
@@ -2734,8 +2731,7 @@ public final class Transfer extends JPanel implements JPanelView {
}
};
//worker.execute();
customExecutor.submit(worker);
worker.execute();
}
System.gc();
+1 -1
View File
@@ -881,7 +881,7 @@ message.email=Desktop email app' not found
message.emptycustomer=Customer cannot be empty
message.emptynumber=Number cannot be empty
message.enterbuyprice=Enter new Buy Price
message.eolupdate=<html><center><h2>Version 5.3.2 Upgrade!</h2></br><h3>Your current database version is {0}</h3><br>For version 5.3 click <b>YES</b><br/><br/>For any other version click <b>NO</b> and get to 5.3 first<br><br/>
message.eolupdate=<html><center><h2>Version 5.3.1 Upgrade!</h2></br><h3>Your current database version is {0}</h3><br>For version 5.3 click <b>YES</b><br/><br/>For any other version click <b>NO</b> and get to 5.3 first<br><br/>
message.ibuttonassign=<html><center>Get the iButton ID<br>Place iButton onto the reader then click OK
message.ibuttonnotassign=<html><center>The iButton used is not yet assigned to anyone
message.ibuttonnotfound=No iButton adapter found. Key fobs will be disabled.