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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.bestray.healthcarepharmacy.view;
import com.bestray.healthcarecommonutil.util.SimpleGradientPanel;
import java.awt.Color;
/**
*
* @author User1
*/
public class PharmacyReportPanel extends SimpleGradientPanel {
/**
* Creates new form PharmacyReportPanel
*/
public PharmacyReportPanel() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jToolBar1 = new javax.swing.JToolBar();
stockistReport_button = new javax.swing.JToggleButton();
transactionReport_button = new javax.swing.JToggleButton();
inventoryReport_button = new javax.swing.JToggleButton();
expireReport_button = new javax.swing.JToggleButton();
report_display_panel = new javax.swing.JPanel();
jToolBar1.setBackground(new java.awt.Color(255, 255, 255));
jToolBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jToolBar1.setFloatable(false);
jToolBar1.setRollover(true);
jToolBar1.setOpaque(false);
buttonGroup1.add(stockistReport_button);
stockistReport_button.setFont(new java.awt.Font("SansSerif", 1, 10)); // NOI18N
stockistReport_button.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/report24x24.png"))); // NOI18N
stockistReport_button.setText("Stockist Report");
stockistReport_button.setFocusable(false);
stockistReport_button.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
stockistReport_button.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
stockistReport_button.setMargin(new java.awt.Insets(2, 20, 2, 20));
stockistReport_button.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
stockistReport_buttonActionPerformed(evt);
}
});
jToolBar1.add(stockistReport_button);
buttonGroup1.add(transactionReport_button);
transactionReport_button.setFont(new java.awt.Font("SansSerif", 1, 10)); // NOI18N
transactionReport_button.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/report24x24.png"))); // NOI18N
transactionReport_button.setText("Transaction Report");
transactionReport_button.setFocusable(false);
transactionReport_button.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
transactionReport_button.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
transactionReport_button.setMargin(new java.awt.Insets(2, 20, 2, 20));
transactionReport_button.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
transactionReport_buttonActionPerformed(evt);
}
});
jToolBar1.add(transactionReport_button);
buttonGroup1.add(inventoryReport_button);
inventoryReport_button.setFont(new java.awt.Font("SansSerif", 1, 10)); // NOI18N
inventoryReport_button.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/report24x24.png"))); // NOI18N
inventoryReport_button.setText("Inventorey Register Summary");
inventoryReport_button.setFocusable(false);
inventoryReport_button.setMargin(new java.awt.Insets(2, 20, 2, 20));
inventoryReport_button.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
inventoryReport_buttonActionPerformed(evt);
}
});
inventoryReport_button.setVisible(true);
jToolBar1.add(inventoryReport_button);
buttonGroup1.add(expireReport_button);
expireReport_button.setFont(new java.awt.Font("SansSerif", 1, 10)); // NOI18N
expireReport_button.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/report24x24.png"))); // NOI18N
expireReport_button.setText("Medicine Expire Report");
expireReport_button.setFocusable(false);
expireReport_button.setMargin(new java.awt.Insets(2, 20, 2, 20));
expireReport_button.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
expireReport_buttonActionPerformed(evt);
}
});
inventoryReport_button.setVisible(true);
jToolBar1.add(expireReport_button);
report_display_panel.setOpaque(false);
report_display_panel.setLayout(new java.awt.BorderLayout());
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 993, Short.MAX_VALUE)
.addComponent(report_display_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, 0)
.addComponent(report_display_panel, javax.swing.GroupLayout.DEFAULT_SIZE, 467, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents
private void stockistReport_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_stockistReport_buttonActionPerformed
report_display_panel.removeAll();
report_display_panel.updateUI();
report_display_panel.setBackground(Color.WHITE);
report_display_panel.add(new StockistReportPanel(),java.awt.BorderLayout.CENTER);
report_display_panel.setVisible(true);
}//GEN-LAST:event_stockistReport_buttonActionPerformed
private void transactionReport_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_transactionReport_buttonActionPerformed
report_display_panel.removeAll();
report_display_panel.updateUI();
report_display_panel.setBackground(Color.WHITE);
report_display_panel.add(new PharmacyTransactionReportPanel(),java.awt.BorderLayout.CENTER);
report_display_panel.setVisible(true);
}//GEN-LAST:event_transactionReport_buttonActionPerformed
private void inventoryReport_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_inventoryReport_buttonActionPerformed
report_display_panel.removeAll();
report_display_panel.updateUI();
report_display_panel.setBackground(Color.WHITE);
report_display_panel.add(new InventoryBalanceReportPanel(),java.awt.BorderLayout.CENTER);
report_display_panel.setVisible(true);
}//GEN-LAST:event_inventoryReport_buttonActionPerformed
private void expireReport_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_expireReport_buttonActionPerformed
report_display_panel.removeAll();
report_display_panel.updateUI();
report_display_panel.setBackground(Color.WHITE);
report_display_panel.add(new MedicineExpireReportPanel(),java.awt.BorderLayout.CENTER);
report_display_panel.setVisible(true);
}//GEN-LAST:event_expireReport_buttonActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.ButtonGroup buttonGroup1;
private javax.swing.JToggleButton expireReport_button;
private javax.swing.JToggleButton inventoryReport_button;
private javax.swing.JToolBar jToolBar1;
private javax.swing.JPanel report_display_panel;
private javax.swing.JToggleButton stockistReport_button;
private javax.swing.JToggleButton transactionReport_button;
// End of variables declaration//GEN-END:variables
}
|