-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Print inventory ward report * fix bug
- Loading branch information
1 parent
8de1b12
commit a38556b
Showing
7 changed files
with
516 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#Generated by Eclipse Messages Editor (Eclipse Babel) | ||
|
||
Inventory = Inventory | ||
|
||
Code = Code | ||
|
||
Status = Status | ||
|
||
Reference = Reference | ||
|
||
InventoryDate = Inventory Date | ||
|
||
WardInventoryID = Ward INVENTORY ID | ||
|
||
Designation = Designation | ||
|
||
LotCode= Lot Code | ||
|
||
DueDate = Due Date | ||
|
||
TheoreticQuantity = Theoretic Quantity | ||
|
||
RealQuantity = Real Quantity | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#Generated by Eclipse Messages Editor (Eclipse Babel) | ||
|
||
Inventory = Inventory | ||
|
||
Code = Code | ||
|
||
Status = Status | ||
|
||
Reference = Reference | ||
|
||
InventoryDate = Inventory Date | ||
|
||
WardInventoryID = WARD INVENTORY ID | ||
|
||
Designation = Designation | ||
|
||
LotCode= Lot Code | ||
|
||
DueDate = Due Date | ||
|
||
TheoreticQuantity = Theoretic Quantity | ||
|
||
RealQuantity = Real Quantity | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/main/java/org/isf/stat/gui/report/GenericReportPharmaceuticalInventory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Open Hospital (www.open-hospital.org) | ||
* Copyright © 2006-2024 Informatici Senza Frontiere ([email protected]) | ||
* | ||
* Open Hospital is a free and open source software for healthcare data management. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* https://www.gnu.org/licenses/gpl-3.0-standalone.html | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
package org.isf.stat.gui.report; | ||
|
||
import org.isf.medicalinventory.model.MedicalInventory; | ||
import org.isf.menu.manager.Context; | ||
import org.isf.stat.dto.JasperReportResultDto; | ||
import org.isf.stat.manager.JasperReportsManager; | ||
import org.isf.utils.jobjects.MessageDialog; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class GenericReportPharmaceuticalInventory extends DisplayReport { | ||
|
||
private static final Logger LOGGER = LoggerFactory.getLogger(GenericReportPharmaceuticalInventory.class); | ||
private JasperReportsManager jasperReportsManager = Context.getApplicationContext().getBean(JasperReportsManager.class); | ||
|
||
public GenericReportPharmaceuticalInventory(MedicalInventory medicalInventory, String jasperFileName, int printRealQty) { | ||
try { | ||
JasperReportResultDto jasperReportResultDto = jasperReportsManager.getInventoryReportPdf(medicalInventory, jasperFileName, printRealQty); | ||
showReport(jasperReportResultDto); | ||
} catch (Exception e) { | ||
LOGGER.error("", e); | ||
MessageDialog.error(null, "angal.inventory.printing.error.msg"); | ||
} | ||
} | ||
} |