From f5eda62760e0cd92169b2c7e02849a6158ffc66c Mon Sep 17 00:00:00 2001 From: FOFOU FONZAM Gui Arnaud Date: Thu, 21 Nov 2024 01:33:18 +0100 Subject: [PATCH 01/12] OP-1363 | Fix NullPointerException on PatientBillEdit (#2089) * fix NullPointerexception * update src/main/java/org/isf/accounting/gui/PatientBillEdit.java * remove message bundle added * remove space added * fix NullPointerException on edit bill --------- Co-authored-by: ArnaudFofou --- src/main/java/org/isf/accounting/gui/PatientBillEdit.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/isf/accounting/gui/PatientBillEdit.java b/src/main/java/org/isf/accounting/gui/PatientBillEdit.java index 4923780d49..23349004c3 100644 --- a/src/main/java/org/isf/accounting/gui/PatientBillEdit.java +++ b/src/main/java/org/isf/accounting/gui/PatientBillEdit.java @@ -845,11 +845,13 @@ private JButton getJButtonTrashPatient() { jButtonTrashPatient.setPreferredSize(new Dimension(25, 25)); jButtonTrashPatient.setIcon(new ImageIcon("rsc/icons/remove_patient_button.png")); jButtonTrashPatient.setToolTipText(MessageBundle.getMessage("angal.newbill.removethepatientassociatedwiththisbill.tooltip")); + if (thisBill.getBillPatient() == null) { + jButtonTrashPatient.setEnabled(false); + } jButtonTrashPatient.addActionListener(actionEvent -> { // BILL thisBill.setBillPatient(null); thisBill.setIsPatient(false); - thisBill.getBillPatient().setCode(0); thisBill.setPatName(""); //$NON-NLS-1$ thisBill.setAdmission(null); // INTERFACE @@ -895,6 +897,9 @@ private void setJButtonPickPatient() { jButtonPickPatient.setText(MessageBundle.getMessage("angal.newbill.changepatient.btn")); jButtonPickPatient.setMnemonic(MessageBundle.getMnemonic("angal.newbill.changepatient.btn.key")); jButtonPickPatient.setToolTipText(MessageBundle.getMessage("angal.newbill.changethepatientassociatedwiththisbill.tooltip")); + if (jButtonTrashPatient != null) { + jButtonTrashPatient.setEnabled(true); + } } } From 1920be9dfed7abd366f8034584eb8239557eea74 Mon Sep 17 00:00:00 2001 From: FOFOU FONZAM Gui Arnaud Date: Thu, 21 Nov 2024 11:28:26 +0100 Subject: [PATCH 02/12] OP-1361 | Fix getMedicalsWard method (#2088) * update the param of getMedicalsWard * update src/main/java/org/isf/medicalstockward/gui/WardPharmacyRectify.java --------- Co-authored-by: ArnaudFofou --- src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java | 4 ++-- .../org/isf/medicalstockward/gui/WardPharmacyRectify.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java b/src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java index 5c50678441..587ad2a2d0 100644 --- a/src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java +++ b/src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java @@ -1461,8 +1461,8 @@ class DrugsModel extends DefaultTableModel { public DrugsModel() { try { - tableModel = movWardBrowserManager.getMedicalsWardTotalQuantity(wardSelected.getCode().charAt(0)); - wardDrugs = movWardBrowserManager.getMedicalsWard(wardSelected.getCode().charAt(0), true); + tableModel = movWardBrowserManager.getMedicalsWardTotalQuantity(wardSelected.getCode()); + wardDrugs = movWardBrowserManager.getMedicalsWard(wardSelected.getCode(), true); } catch (OHServiceException e) { OHServiceExceptionUtil.showMessages(e); tableModel = new ArrayList<>(); diff --git a/src/main/java/org/isf/medicalstockward/gui/WardPharmacyRectify.java b/src/main/java/org/isf/medicalstockward/gui/WardPharmacyRectify.java index 194ade63bb..7264a6f36e 100644 --- a/src/main/java/org/isf/medicalstockward/gui/WardPharmacyRectify.java +++ b/src/main/java/org/isf/medicalstockward/gui/WardPharmacyRectify.java @@ -162,7 +162,7 @@ public WardPharmacyRectify(JFrame owner, Ward ward) { super(owner, true); selectedWard = ward; try { - wardDrugs = movWardBrowserManager.getMedicalsWard(selectedWard.getCode().charAt(0), false); + wardDrugs = movWardBrowserManager.getMedicalsWard(selectedWard.getCode(), false); } catch (OHServiceException e) { OHServiceExceptionUtil.showMessages(e); } @@ -184,7 +184,7 @@ public WardPharmacyRectify(JFrame owner, Ward ward, Medical medical) { super(owner, true); selectedWard = ward; try { - wardDrugs = movWardBrowserManager.getMedicalsWard(selectedWard.getCode().charAt(0), false); + wardDrugs = movWardBrowserManager.getMedicalsWard(selectedWard.getCode(), false); } catch (OHServiceException e) { OHServiceExceptionUtil.showMessages(e); } From cb7f20fc1ef3c82e78944fe22a7c24bcc54aa8d4 Mon Sep 17 00:00:00 2001 From: Alessandro Domanico Date: Fri, 22 Nov 2024 12:31:02 +0100 Subject: [PATCH 03/12] Fix for merges (#2090) --- .github/workflows/maven.yml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1c510b6f32..a59dd84ef4 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -29,20 +29,27 @@ jobs: run: | # Set default FORK_REPO and BRANCH_NAME values. BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF##*/}}" - FORK_REPO="${GITHUB_HEAD_REPOSITORY:-${GITHUB_ACTOR}/openhospital-core}" - CHECK_BRANCH_URL="https://github.com/${GITHUB_ACTOR}/openhospital-core/tree/$BRANCH_NAME" - echo "Checking branch existence with: curl -s -o /dev/null -w \"%{http_code}\" $CHECK_BRANCH_URL" - # Determine FORK_REPO with fallback logic - if [[ -n "${GITHUB_HEAD_REPOSITORY}" ]]; then - echo "Using ${GITHUB_HEAD_REPOSITORY}." - FORK_REPO=${GITHUB_HEAD_REPOSITORY} - elif curl -s -o /dev/null -w "%{http_code}" $CHECK_BRANCH_URL | grep -q "200"; then - echo "Using ${GITHUB_ACTOR}/openhospital-core" - FORK_REPO=${GITHUB_ACTOR}/openhospital-core - else - echo "Using informatici/openhospital-core." + if [[ "$GITHUB_EVENT_NAME" == "push" && "$GITHUB_REPOSITORY" == "informatici/openhospital-api" ]]; then + # For pushes to the main repository, default to the main core repo FORK_REPO="informatici/openhospital-core" + else + # For pull requests or other pushes, use the contributor fork if applicable + if [[ -n "$GITHUB_HEAD_REPOSITORY" ]]; then + FORK_REPO="$GITHUB_HEAD_REPOSITORY" + else + # Check if the actor's repo exists with the branch + FORK_REPO="${GITHUB_ACTOR}/openhospital-core" + CHECK_BRANCH_URL="https://github.com/$FORK_REPO/tree/$BRANCH_NAME" + echo "Checking branch existence with: curl -s -o /dev/null -w \"%{http_code}\" $CHECK_BRANCH_URL" + + if curl -s -o /dev/null -w "%{http_code}" "$CHECK_BRANCH_URL" | grep -q "200"; then + echo "Branch $BRANCH_NAME exists in $FORK_REPO." + else + # Fallback to the main repository if the branch doesn’t exist in the fork + FORK_REPO="informatici/openhospital-core" + fi + fi fi # Export FORK_REPO and BRANCH_NAME to GITHUB_ENV for the next step From f23a4fbe56613703d0ca1b22cc8518672fb90e1d Mon Sep 17 00:00:00 2001 From: mwithi Date: Fri, 22 Nov 2024 13:03:37 +0100 Subject: [PATCH 04/12] Fix typo --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index a59dd84ef4..a403a87f70 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -30,7 +30,7 @@ jobs: # Set default FORK_REPO and BRANCH_NAME values. BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF##*/}}" - if [[ "$GITHUB_EVENT_NAME" == "push" && "$GITHUB_REPOSITORY" == "informatici/openhospital-api" ]]; then + if [[ "$GITHUB_EVENT_NAME" == "push" && "$GITHUB_REPOSITORY" == "informatici/openhospital-gui" ]]; then # For pushes to the main repository, default to the main core repo FORK_REPO="informatici/openhospital-core" else From fed3d55b31b9332972461dd0d64e88d2b10dd724 Mon Sep 17 00:00:00 2001 From: Steve Tsala <45661418+SteveGT96@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:10:21 +0100 Subject: [PATCH 05/12] OP-1043 | Remove deleted group from user edit group jcombo box (#2096) * fix(OP-1043): Remove deleted group from user edit group jcombo box * chore: Reformat code --------- Co-authored-by: SteveGT96 --- src/main/java/org/isf/menu/gui/UserEdit.java | 22 ++++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/isf/menu/gui/UserEdit.java b/src/main/java/org/isf/menu/gui/UserEdit.java index 2c444058bd..55fa9c1833 100644 --- a/src/main/java/org/isf/menu/gui/UserEdit.java +++ b/src/main/java/org/isf/menu/gui/UserEdit.java @@ -340,20 +340,24 @@ private JComboBox getUserGroupComboBox() { if (userGroupComboBox == null) { userGroupComboBox = new JComboBox<>(); try { - List group = userBrowsingManager.getUserGroup(); + List groups = userBrowsingManager.getUserGroup(); if (insert) { - if (group != null) { - for (UserGroup elem : group) { - userGroupComboBox.addItem(elem); + if (groups != null) { + for (UserGroup group : groups) { + if (!group.isDeleted()) { + userGroupComboBox.addItem(group); + } } } } else { UserGroup selectedUserGroup = null; - if (group != null) { - for (UserGroup elem : group) { - userGroupComboBox.addItem(elem); - if (user.getUserGroupName().equals(elem)) { - selectedUserGroup = elem; + if (groups != null) { + for (UserGroup group : groups) { + if (!group.isDeleted()) { + userGroupComboBox.addItem(group); + if (user.getUserGroupName().equals(group)) { + selectedUserGroup = group; + } } } } From d2461861d408b77852fcee84d4d8827ba90af036 Mon Sep 17 00:00:00 2001 From: Mohit Sojitra Date: Tue, 26 Nov 2024 10:39:06 -0400 Subject: [PATCH 06/12] OP-1341 Enable Medical Type for Soft Deletion (#2092) * Added option to mark medical type as active and add filter * Title fixed * Updated the CORE call to new type * Fixed text --- .../org/isf/medicals/gui/MedicalBrowser.java | 2 +- .../org/isf/medicals/gui/MedicalEdit.java | 2 +- .../isf/medicalstock/gui/MovStockBrowser.java | 2 +- .../isf/medtype/gui/MedicalTypeBrowser.java | 13 +++++++++-- .../medtype/gui/MedicalTypeBrowserEdit.java | 22 ++++++++++++++++--- 5 files changed, 33 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/isf/medicals/gui/MedicalBrowser.java b/src/main/java/org/isf/medicals/gui/MedicalBrowser.java index 231810640a..74b3f27d7f 100644 --- a/src/main/java/org/isf/medicals/gui/MedicalBrowser.java +++ b/src/main/java/org/isf/medicals/gui/MedicalBrowser.java @@ -595,7 +595,7 @@ private JComboBox getComboBoxMedicalType() { pbox.addItem(STR_ALL); List type; try { - type = medicalTypeManager.getMedicalType(); + type = medicalTypeManager.getAllActiveMedicalType(); for (MedicalType elem : type) { pbox.addItem(elem); } diff --git a/src/main/java/org/isf/medicals/gui/MedicalEdit.java b/src/main/java/org/isf/medicals/gui/MedicalEdit.java index 61825d0143..f953292a70 100644 --- a/src/main/java/org/isf/medicals/gui/MedicalEdit.java +++ b/src/main/java/org/isf/medicals/gui/MedicalEdit.java @@ -432,7 +432,7 @@ private JComboBox getTypeComboBox() { if (typeComboBox == null) { typeComboBox = new JComboBox<>(); try { - List types = medicalTypeManager.getMedicalType(); + List types = medicalTypeManager.getAllActiveMedicalType(); for (MedicalType elem : types) { typeComboBox.addItem(elem); } diff --git a/src/main/java/org/isf/medicalstock/gui/MovStockBrowser.java b/src/main/java/org/isf/medicalstock/gui/MovStockBrowser.java index 99ab7dc533..02b7a0c10c 100644 --- a/src/main/java/org/isf/medicalstock/gui/MovStockBrowser.java +++ b/src/main/java/org/isf/medicalstock/gui/MovStockBrowser.java @@ -618,7 +618,7 @@ private JComboBox getMedicalTypeBox() { medicalTypeBox.addItem(TEXT_ALL); try { - medical = medicalTypeBrowserManager.getMedicalType(); + medical = medicalTypeBrowserManager.getAllActiveMedicalType(); for (MedicalType aMedicalType : medical) { medicalTypeBox.addItem(aMedicalType); diff --git a/src/main/java/org/isf/medtype/gui/MedicalTypeBrowser.java b/src/main/java/org/isf/medtype/gui/MedicalTypeBrowser.java index 6c9fdb9d49..7e173e9744 100644 --- a/src/main/java/org/isf/medtype/gui/MedicalTypeBrowser.java +++ b/src/main/java/org/isf/medtype/gui/MedicalTypeBrowser.java @@ -54,9 +54,10 @@ public class MedicalTypeBrowser extends ModalJFrame implements MedicalTypeListen private List pMedicalType; private String[] pColumns = { MessageBundle.getMessage("angal.common.code.txt").toUpperCase(), - MessageBundle.getMessage("angal.common.description.txt").toUpperCase() + MessageBundle.getMessage("angal.common.description.txt").toUpperCase(), + MessageBundle.getMessage("angal.common.deleted.label").toUpperCase() }; - private int[] pColumnWidth = {80, 200}; + private final int[] pColumnWidth = { 20, 200, 20 }; private JPanel jContainPanel; private JPanel jButtonPanel; private JButton jNewButton; @@ -198,6 +199,7 @@ private JTable getJTable() { jTable = new JTable(model); jTable.getColumnModel().getColumn(0).setMinWidth(pColumnWidth[0]); jTable.getColumnModel().getColumn(1).setMinWidth(pColumnWidth[1]); + jTable.getColumnModel().getColumn(2).setMinWidth(pColumnWidth[2]); } return jTable; } @@ -243,6 +245,8 @@ public Object getValueAt(int r, int c) { return medType.getCode(); } else if (c == 1) { return medType.getDescription(); + } else if (c == 2) { + return medType.getDeleted() == 'Y'; } return null; } @@ -251,6 +255,11 @@ public Object getValueAt(int r, int c) { public boolean isCellEditable(int arg0, int arg1) { return false; } + + @Override + public Class getColumnClass(int column) { + return (column == 2) ? Boolean.class : String.class; + } } @Override diff --git a/src/main/java/org/isf/medtype/gui/MedicalTypeBrowserEdit.java b/src/main/java/org/isf/medtype/gui/MedicalTypeBrowserEdit.java index 82e8f69556..36e4613717 100644 --- a/src/main/java/org/isf/medtype/gui/MedicalTypeBrowserEdit.java +++ b/src/main/java/org/isf/medtype/gui/MedicalTypeBrowserEdit.java @@ -26,6 +26,7 @@ import java.util.EventListener; import javax.swing.JButton; +import javax.swing.JCheckBox; import javax.swing.JDialog; import javax.swing.JFrame; import javax.swing.JLabel; @@ -95,8 +96,10 @@ private void fireMedicalUpdated() { private JButton cancelButton; private JButton okButton; private JTextField descriptionTextField; + private JCheckBox deletedCheckbox; private VoLimitedTextField codeTextField; private String lastdescription; + private char isLastDeleted; private MedicalType medicalType; private boolean insert; private JPanel jDataPanel; @@ -110,6 +113,7 @@ public MedicalTypeBrowserEdit(JFrame owner, MedicalType old, boolean inserting) insert = inserting; medicalType = old; //medical type will be used for every operation lastdescription = medicalType.getDescription(); + isLastDeleted = medicalType.getDeleted(); initialize(); } @@ -124,6 +128,7 @@ private void initialize() { this.setTitle(MessageBundle.getMessage("angal.medtype.editmedicaltype.title")); } this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); + this.getDeletedField(); this.pack(); this.setLocationRelativeTo(null); } @@ -197,7 +202,8 @@ private JButton getOkButton() { medicalType.setDescription(descriptionTextField.getText()); medicalType.setCode(codeTextField.getText()); - + medicalType.setDeleted(deletedCheckbox.isSelected() ? 'Y' : 'N'); + if (insert) { // inserting try { MedicalType insertedMedicalType = medicalTypeBrowserManager.newMedicalType(medicalType); @@ -211,7 +217,7 @@ private JButton getOkButton() { OHServiceExceptionUtil.showMessages(e1); } } else { // updating - if (descriptionTextField.getText().equals(lastdescription)) { + if (descriptionTextField.getText().equals(lastdescription) && medicalType.getDeleted() == isLastDeleted) { dispose(); } else { try { @@ -263,6 +269,14 @@ private JTextField getCodeTextField() { } return codeTextField; } + + private JCheckBox getDeletedField() { + if (deletedCheckbox == null) { + deletedCheckbox = new JCheckBox(MessageBundle.getMessage("angal.common.deleted.label")); + deletedCheckbox.setSelected(medicalType.getDeleted() == 'Y'); + } + return deletedCheckbox; + } /** * This method initializes jDataPanel @@ -276,7 +290,9 @@ private JPanel getJDataPanel() { jDataPanel.add(getCodeTextField()); jDataPanel.add(new JLabel(MessageBundle.getMessage("angal.common.description.txt") + ':')); jDataPanel.add(getDescriptionTextField()); - SpringUtilities.makeCompactGrid(jDataPanel, 2, 2, 5, 5, 5, 5); + jDataPanel.add(new JLabel(MessageBundle.getMessage("angal.common.deleted.label") + ':')); + jDataPanel.add(getDeletedField()); + SpringUtilities.makeCompactGrid(jDataPanel, 3, 2, 5, 5, 5, 5); } return jDataPanel; } From a4f6d7174330d62bb2e7475c025792ca30cb0ab1 Mon Sep 17 00:00:00 2001 From: David B Malkovsky Date: Wed, 27 Nov 2024 02:31:59 -0500 Subject: [PATCH 07/12] Chore: add missing @Override annotation (#2097) --- src/main/java/org/isf/telemetry/gui/TelemetryEdit.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/isf/telemetry/gui/TelemetryEdit.java b/src/main/java/org/isf/telemetry/gui/TelemetryEdit.java index 497418c7cb..6663e6c806 100644 --- a/src/main/java/org/isf/telemetry/gui/TelemetryEdit.java +++ b/src/main/java/org/isf/telemetry/gui/TelemetryEdit.java @@ -217,6 +217,7 @@ private ActionListener buildConfirmationActionListener(List che TelemetryManager telemetryManager, TelemetryUtils telemetryUtils) { return new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { if (!agreementCheckbox.isSelected()) { From 1a41c2c9dbf4d9f65bbc91a9ad28b7c3005829df Mon Sep 17 00:00:00 2001 From: dbm Date: Tue, 3 Dec 2024 13:53:28 -0500 Subject: [PATCH 08/12] Chore: MessageDialog methods take a bundle key not the resolved message --- .../isf/examination/gui/PatientExaminationEdit.java | 4 ++-- src/main/java/org/isf/menu/gui/GroupEdit.java | 2 +- src/main/java/org/isf/opd/gui/OpdBrowser.java | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/isf/examination/gui/PatientExaminationEdit.java b/src/main/java/org/isf/examination/gui/PatientExaminationEdit.java index 847b5e35ab..359e7add98 100644 --- a/src/main/java/org/isf/examination/gui/PatientExaminationEdit.java +++ b/src/main/java/org/isf/examination/gui/PatientExaminationEdit.java @@ -1468,7 +1468,7 @@ public void actionPerformed(ActionEvent actionEvent) { if (weight != 0 && height != 0) { if (weight == ExaminationParameters.WEIGHT_MIN || weight == ExaminationParameters.WEIGHT_MAX || height == ExaminationParameters.HEIGHT_MIN || height == ExaminationParameters.HEIGHT_MAX) { - int response = MessageDialog.yesNo(null, MessageBundle.getMessage("angal.patient.examination.minmaxvalues.msg")); + int response = MessageDialog.yesNo(null, "angal.patient.examination.minmaxvalues.msg"); if (response == JOptionPane.YES_OPTION) { savePatientExamaination(); } @@ -1476,7 +1476,7 @@ public void actionPerformed(ActionEvent actionEvent) { savePatientExamaination(); } } else { - MessageDialog.error(null, MessageBundle.getMessage("angal.patient.examination.nonzero.msg")); + MessageDialog.error(null, "angal.patient.examination.nonzero.msg"); } } } diff --git a/src/main/java/org/isf/menu/gui/GroupEdit.java b/src/main/java/org/isf/menu/gui/GroupEdit.java index 5e17a2098a..7e59ca01d7 100644 --- a/src/main/java/org/isf/menu/gui/GroupEdit.java +++ b/src/main/java/org/isf/menu/gui/GroupEdit.java @@ -187,7 +187,7 @@ private JButton getOkButton() { okButton.setMnemonic(MessageBundle.getMnemonic("angal.common.ok.btn.key")); okButton.addActionListener(actionEvent -> { if (nameTextField.getText().isEmpty()) { - MessageDialog.error(null, MessageBundle.getMessage("angal.groupsbrowser.pleaseinsertavalidusergroupname.msg")); + MessageDialog.error(null, "angal.groupsbrowser.pleaseinsertavalidusergroupname.msg"); return; } diff --git a/src/main/java/org/isf/opd/gui/OpdBrowser.java b/src/main/java/org/isf/opd/gui/OpdBrowser.java index cba8241a35..aa192c6c59 100644 --- a/src/main/java/org/isf/opd/gui/OpdBrowser.java +++ b/src/main/java/org/isf/opd/gui/OpdBrowser.java @@ -1142,7 +1142,7 @@ public void keyPressed(KeyEvent e) { try { code = Integer.parseInt(codeHint); } catch (NumberFormatException e1) { - MessageDialog.error(OpdBrowser.this, MessageBundle.getMessage("angal.common.pleaseinsertavalidnumber.msg")); + MessageDialog.error(OpdBrowser.this, "angal.common.pleaseinsertavalidnumber.msg"); return; } progYearFilter.setText(""); @@ -1155,7 +1155,7 @@ public void keyPressed(KeyEvent e) { ((AbstractTableModel) jTable.getModel()).fireTableDataChanged(); rowCounter.setText(rowCounterText + pSur.size()); } else { - MessageDialog.info(OpdBrowser.this, MessageBundle.getMessage("angal.common.nodatatoshow.msg")); + MessageDialog.info(OpdBrowser.this, "angal.common.nodatatoshow.msg"); } } } @@ -1176,7 +1176,7 @@ public void keyPressed(KeyEvent e) { try { code = Integer.parseInt(codeHint); } catch (NumberFormatException e1) { - MessageDialog.error(OpdBrowser.this, MessageBundle.getMessage("angal.common.pleaseinsertavalidnumber.msg")); + MessageDialog.error(OpdBrowser.this, "angal.common.pleaseinsertavalidnumber.msg"); return; } opdCodeFilter.setText(""); @@ -1185,7 +1185,7 @@ public void keyPressed(KeyEvent e) { ((AbstractTableModel) jTable.getModel()).fireTableDataChanged(); rowCounter.setText(rowCounterText + pSur.size()); if (pSur.isEmpty()) { - MessageDialog.info(OpdBrowser.this, MessageBundle.getMessage("angal.common.nodatatoshow.msg")); + MessageDialog.info(OpdBrowser.this, "angal.common.nodatatoshow.msg"); } } } @@ -1206,7 +1206,7 @@ public void keyPressed(KeyEvent e) { try { code = Integer.parseInt(codeHint); } catch (NumberFormatException e1) { - MessageDialog.error(OpdBrowser.this, MessageBundle.getMessage("angal.common.pleaseinsertavalidnumber.msg")); + MessageDialog.error(OpdBrowser.this, "angal.common.pleaseinsertavalidnumber.msg"); return; } opdCodeFilter.setText(""); @@ -1216,7 +1216,7 @@ public void keyPressed(KeyEvent e) { ((AbstractTableModel) jTable.getModel()).fireTableDataChanged(); rowCounter.setText(rowCounterText + pSur.size()); if (pSur.isEmpty()) { - MessageDialog.info(OpdBrowser.this, MessageBundle.getMessage("angal.common.nodatatoshow.msg")); + MessageDialog.info(OpdBrowser.this, "angal.common.nodatatoshow.msg"); } } catch (OHServiceException ohServiceException) { MessageDialog.showExceptions(ohServiceException); From 655bd0ec1f0d7f6dd3077abc1aebcdc56ca40a0f Mon Sep 17 00:00:00 2001 From: ArnaudFofou Date: Wed, 4 Dec 2024 10:08:00 +0100 Subject: [PATCH 09/12] fix error Inpatient Montly Report truncates the year value in the header --- rpt_extra/hmis108_cover.jasper | Bin 38958 -> 39139 bytes rpt_extra/hmis108_cover.jrxml | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rpt_extra/hmis108_cover.jasper b/rpt_extra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108_cover.jrxml index 429e13d786..d0acb105fb 100644 --- a/rpt_extra/hmis108_cover.jrxml +++ b/rpt_extra/hmis108_cover.jrxml @@ -1,5 +1,5 @@ - + @@ -146,7 +146,7 @@ SELECT WRD_ID_A wardid, - + @@ -159,7 +159,7 @@ SELECT WRD_ID_A wardid, - + @@ -237,7 +237,7 @@ SELECT WRD_ID_A wardid, - + @@ -251,7 +251,7 @@ SELECT WRD_ID_A wardid, - + From 0b4118a7bd3e9a284636249dc9f2bc4f9a97eb68 Mon Sep 17 00:00:00 2001 From: ArnaudFofou Date: Wed, 4 Dec 2024 10:59:54 +0100 Subject: [PATCH 10/12] fix error on hmis108_adm_by_diagnosisOut report --- rpt_extra/hmis108_adm_by_diagnosisOut.jasper | Bin 53987 -> 54199 bytes rpt_extra/hmis108_adm_by_diagnosisOut.jrxml | 30 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/rpt_extra/hmis108_adm_by_diagnosisOut.jasper b/rpt_extra/hmis108_adm_by_diagnosisOut.jasper index 15fa56079a94f1383204997bdb083d2d09bae21f..7d88b0946f69ccd2679c549c53ee6b4bab125b17 100644 GIT binary patch delta 8041 zcmcgxX;>6T8tw+?K<+~Y2W18r)ZrS0;ZPA~Kmh%hH5(QNmke~SF~7u4Q`_yN@TPzDxT+yR!SW^uDV^bi*sFFvcAwf zZQaUM=GChURxB^3UZOlRs9~k01*Q_pE#n2_8e@2ANkL(FPEK0#yC>8o@ zs{#f4d7$4sPtz;W5wA?3c;r=R57$3=d(gmK=Cc7V|M8gzm+Ig^bZ@jAy)t?_ciVAq zbSD^g9Q0j+r8@Z~GqcU|^9F+#{9c3$9ic=H$`RZUl&o}94Arb;{y=OM{#m&iE(IVC zSUfD?A|6H`DaXMqP2+u#qbdoSvsB3nc5qrbOQ8ziBM3D6KxfgJd$@$Qv%MEu+CTn zSlq$avf5pY3bplNB=OWC3deg&6tKS>WsCi%D8gP2?BzDt#T^2>7!}xCb(nonhZoYA zXka!*+hXpI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{4@=lAIP`}ytp`D-@m%Ul)J;pkEHGYht;*s}%u;Id5=;oT zQqWrl4^mJkgXbuym%-Z<94&)SC`dj(a#>Y86YD}zAL_~)DCjGL2^92`!5I`BD}(bW z=r4oIC`hV-%bE`_UUUh>9I*STEl_SC4_XibW1#k;YgH=mZ}TteKZ*LQ)=@Byfas~( zO~H5>JV`;L4E}|JBv6hte?-AV!4q?)cA#jIfFejT#bDu^WRS=sV6qJ6(&i~LSYEk^ eakIK5EMg+wC|MM;ur%aXMGIl3$8c!7G~$1u3+$5s diff --git a/rpt_extra/hmis108_adm_by_diagnosisOut.jrxml b/rpt_extra/hmis108_adm_by_diagnosisOut.jrxml index 4de1dd9cb3..7d4e66dd41 100644 --- a/rpt_extra/hmis108_adm_by_diagnosisOut.jrxml +++ b/rpt_extra/hmis108_adm_by_diagnosisOut.jrxml @@ -1,5 +1,5 @@ - + @@ -156,7 +156,7 @@ $F{AliveFemaleAdult}.longValue()+$F{DeadFemaleAdult}.longValue())]]> - <band height="68" splitType="Stretch"> + <band height="77" splitType="Stretch"> <textField> <reportElement key="staticText-2" mode="Opaque" x="0" y="1" width="392" height="28" forecolor="#FFFFFF" backcolor="#000000" uuid="0f09694d-3bfc-43ed-82b6-1bfc09e82ddc"/> <box> @@ -196,19 +196,6 @@ $F{AliveFemaleAdult}.longValue()+$F{DeadFemaleAdult}.longValue())]]></variableEx </textElement> <textFieldExpression><![CDATA[$P{year}]]></textFieldExpression> </textField> - <textField isBlankWhenNull="false"> - <reportElement key="textField-2" x="461" y="1" width="74" height="14" uuid="7596b513-611d-4d87-a854-6d64e46c50c8"/> - <box leftPadding="2"> - <topPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/> - <leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/> - <bottomPen lineWidth="0.0" lineColor="#000000"/> - <rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/> - </box> - <textElement verticalAlignment="Middle"> - <font fontName="DejaVu Sans" size="10" isBold="true"/> - </textElement> - <textFieldExpression><![CDATA[$P{year}]]></textFieldExpression> - </textField> <textField> <reportElement key="staticText-19" mode="Opaque" x="393" y="1" width="69" height="14" forecolor="#FFFFFF" backcolor="#000000" uuid="21a7ba7a-9476-4ac7-a3e4-3dc0db2efe25"/> <box rightPadding="2"> @@ -242,6 +229,19 @@ $F{AliveFemaleAdult}.longValue()+$F{DeadFemaleAdult}.longValue())]]></variableEx </textElement> <textFieldExpression><![CDATA[$R{OnlyClosedAdmissionWillBeCounted}]]></textFieldExpression> </textField> + <textField isBlankWhenNull="false"> + <reportElement key="textField-2" x="462" y="1" width="73" height="14" uuid="4c62c72e-7740-4c1b-8fd9-f838a56f5fa1"/> + <box leftPadding="2"> + <topPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/> + <leftPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/> + <bottomPen lineWidth="0.0" lineColor="#000000"/> + <rightPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/> + </box> + <textElement verticalAlignment="Middle"> + <font fontName="DejaVu Sans" size="10" isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$P{month}]]></textFieldExpression> + </textField> </band> From 3e01153d112efb55e79f7ed9cef835c2920faf7b Mon Sep 17 00:00:00 2001 From: David B Malkovsky Date: Wed, 4 Dec 2024 11:00:04 -0500 Subject: [PATCH 11/12] Chore: use our MessageDialog instead of JOptionPane.showMessageDialog() (#2100) --- src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java | 5 ++--- .../org/isf/medicalstockward/gui/WardPharmacyRectify.java | 2 +- src/main/java/org/isf/priceslist/gui/ListBrowser.java | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java b/src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java index 587ad2a2d0..eaeee96f85 100644 --- a/src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java +++ b/src/main/java/org/isf/medicalstockward/gui/WardPharmacy.java @@ -783,8 +783,7 @@ public void focusLost(FocusEvent e) { weightFrom = Integer.parseInt(jWeightFromTextField.getText()); if (weightTo < 0 || weightTo > 200) { jWeightToTextField.setText(""); //$NON-NLS-1$ - JOptionPane - .showMessageDialog(WardPharmacy.this, MessageBundle.getMessage("angal.medicalstockward.insertavalidweight")); //$NON-NLS-1$ + MessageDialog.error(WardPharmacy.this, "angal.medicalstockward.insertavalidweight"); } } catch (NumberFormatException ex) { jWeightToTextField.setText("0"); //$NON-NLS-1$ @@ -813,7 +812,7 @@ public void focusLost(FocusEvent e) { weightTo = Integer.parseInt(jWeightToTextField.getText()); if (weightFrom < 0) { jWeightFromTextField.setText(""); - JOptionPane.showMessageDialog(WardPharmacy.this, MessageBundle.getMessage("angal.medicalstockward.insertavalidweight")); + MessageDialog.error(WardPharmacy.this, "angal.medicalstockward.insertavalidweight"); } } catch (NumberFormatException ex) { jWeightFromTextField.setText("0"); diff --git a/src/main/java/org/isf/medicalstockward/gui/WardPharmacyRectify.java b/src/main/java/org/isf/medicalstockward/gui/WardPharmacyRectify.java index 7264a6f36e..bdc0a51b6f 100644 --- a/src/main/java/org/isf/medicalstockward/gui/WardPharmacyRectify.java +++ b/src/main/java/org/isf/medicalstockward/gui/WardPharmacyRectify.java @@ -376,7 +376,7 @@ private void initComponents() { double movQuantity = lotQty - newQty; if (movQuantity == 0. || newQty < 0) { - JOptionPane.showMessageDialog(this, MessageBundle.getMessage("angal.medicalstockward.rectify.pleaseinsertavalidvalue")); + MessageDialog.error(this, "angal.medicalstockward.rectify.pleaseinsertavalidvalue"); return; } if (newQty == 0.) { diff --git a/src/main/java/org/isf/priceslist/gui/ListBrowser.java b/src/main/java/org/isf/priceslist/gui/ListBrowser.java index 898c481497..00ec407d66 100644 --- a/src/main/java/org/isf/priceslist/gui/ListBrowser.java +++ b/src/main/java/org/isf/priceslist/gui/ListBrowser.java @@ -116,7 +116,7 @@ private JButton getJButtonDelete() { jButtonDelete.setMnemonic(MessageBundle.getMnemonic("angal.common.delete.btn.key")); jButtonDelete.addActionListener(actionEvent -> { if (jTablePriceLists.getSelectedRow() < 0) { - JOptionPane.showMessageDialog(null, MessageBundle.getMessage("angal.priceslist.pleaseselectalisttodelete")); + MessageDialog.error(null, "angal.priceslist.pleaseselectalisttodelete"); } else { if (jTablePriceLists.getRowCount() == 1) { MessageDialog.error(null, "angal.priceslist.sorryatleastonelist"); From 9d23f809f0da71eb5df6754f9f89a5cd45048e20 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 20:24:39 +0000 Subject: [PATCH 12/12] Chore(deps): Bump org.apache.maven.plugins:maven-surefire-plugin Bumps [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.5.1 to 3.5.2. - [Release notes](https://github.com/apache/maven-surefire/releases) - [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.1...surefire-3.5.2) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-surefire-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2c73b6ab6d..889a7b95ad 100644 --- a/pom.xml +++ b/pom.xml @@ -34,7 +34,7 @@ org.apache.maven.plugins maven-surefire-plugin - 3.5.1 + 3.5.2 org.apache.maven.plugins