-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReports.java
More file actions
53 lines (53 loc) · 1.65 KB
/
Reports.java
File metadata and controls
53 lines (53 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package src;
/**
* Reports class directs which report should be printed using signaling.
*
* @author Jacob Carney
* @version 1.0
*/
public class Reports{
ProviderReport providerReport = new ProviderReport();
MemberReport memberReport = new MemberReport();
ManagerReport managerReport = new ManagerReport();
EFTReport eftReport = new EFTReport();
/**
* Signals the provider report to be printed
*
* @param providerNumber the providers account number
*/
public static void signalProviderReport(int providerNumber){
ProviderReport.printProviderReport(providerNumber);
}
/**
* Signals the member report to be printed
*
* @param memberAccountNumber the members account number
*/
public static void signalMemberReport(int memberAccountNumber){
MemberReport.printMemberReport(memberAccountNumber);
}
/**
* Signals the manager report to be printed
*/
public static void signalManagerReport(){
ManagerReport.printSummaryReport();
}
/**
* Signals the eft report to be printed
*/
public static void signalEFTReport(){
EFTReport.printEFTReport();
}
/**
* Signals all reports to be printed
*
* @param memberAccountNumber the members account number
* @param providerAccountNumber the providers account number
*/
public void signalAllReport(int memberAccountNumber, int providerAccountNumber){
ProviderReport.printProviderReport(providerAccountNumber);
MemberReport.printMemberReport(memberAccountNumber);
ManagerReport.printSummaryReport();
EFTReport.printEFTReport();
}
}