Subversion Repository Public Repository

Satyam

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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bestray.healthcareemr.Views;

import com.bestray.healthcarecommonutil.util.CurvedGradientPanel;
import java.awt.Color;

// TODO: Auto-generated Javadoc
/**
 * The Class FacilitySetupPanel.
 *
 * @author Bitu
 */
public class FacilitySetupPanel extends CurvedGradientPanel {

    /**
     * Creates new form FacilitySetupPanel.
     */
    
    public FacilitySetupPanel() {
        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() {

        facilitysetup_displaypanel = new javax.swing.JPanel();
        department_label = new javax.swing.JLabel();
        pharmacy_label = new javax.swing.JLabel();
        speciality_label = new javax.swing.JLabel();
        lab_panel = new javax.swing.JLabel();
        expenditure_Label = new javax.swing.JLabel();

        setBackground(new java.awt.Color(253, 251, 251));

        facilitysetup_displaypanel.setOpaque(false);
        facilitysetup_displaypanel.setLayout(new java.awt.BorderLayout());

        department_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        department_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/department.png"))); // NOI18N
        department_label.setText("Department Master");
        department_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        department_label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        department_label.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        department_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                department_labelMouseReleased(evt);
            }
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                department_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                department_labelMousePressed(evt);
            }
        });

        pharmacy_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        pharmacy_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/pharmacy.png"))); // NOI18N
        pharmacy_label.setText("Pharmacy Master");
        pharmacy_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        pharmacy_label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        pharmacy_label.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        pharmacy_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pharmacy_labelMouseReleased(evt);
            }
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                pharmacy_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                pharmacy_labelMousePressed(evt);
            }
        });

        speciality_label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        speciality_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/red-cross-icon.png"))); // NOI18N
        speciality_label.setText("Speciality Master");
        speciality_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        speciality_label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        speciality_label.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        speciality_label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                speciality_labelMouseReleased(evt);
            }
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                speciality_labelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                speciality_labelMousePressed(evt);
            }
        });

        lab_panel.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        lab_panel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/labmaster-icon.png"))); // NOI18N
        lab_panel.setText("Lab Master");
        lab_panel.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        lab_panel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        lab_panel.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        lab_panel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                lab_panelMouseReleased(evt);
            }
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lab_panelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                lab_panelMousePressed(evt);
            }
        });

        expenditure_Label.setFont(new java.awt.Font("SansSerif", 1, 12)); // NOI18N
        expenditure_Label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/expenditure 64X64.png"))); // NOI18N
        expenditure_Label.setText("Expenditure");
        expenditure_Label.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        expenditure_Label.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        expenditure_Label.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        expenditure_Label.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                expenditure_LabelMouseReleased(evt);
            }
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                expenditure_LabelMouseClicked(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                expenditure_LabelMousePressed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(facilitysetup_displaypanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(department_label)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(speciality_label)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(pharmacy_label)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(lab_panel, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(expenditure_Label)
                        .addGap(0, 383, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(pharmacy_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(speciality_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(lab_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(department_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(expenditure_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(22, 22, 22)
                .addComponent(facilitysetup_displaypanel, javax.swing.GroupLayout.DEFAULT_SIZE, 382, Short.MAX_VALUE)
                .addContainerGap())
        );

        layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {expenditure_Label, lab_panel});

    }// </editor-fold>//GEN-END:initComponents

    /**
     * Department_label mouse pressed.
     *
     * @param evt the evt
     */
    private void department_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_department_labelMousePressed
        department_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/department - clicked.png")));
        department_label.setForeground(Color.BLUE);
    }//GEN-LAST:event_department_labelMousePressed

    /**
     * Department_label mouse released.
     *
     * @param evt the evt
     */
    private void department_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_department_labelMouseReleased
        department_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/department.png")));
        department_label.setForeground(Color.BLACK);
    }//GEN-LAST:event_department_labelMouseReleased

    /**
     * Pharmacy_label mouse pressed.
     *
     * @param evt the evt
     */
    private void pharmacy_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pharmacy_labelMousePressed
        pharmacy_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/pharmacy - cliked.png")));
        pharmacy_label.setForeground(Color.BLUE);
    }//GEN-LAST:event_pharmacy_labelMousePressed

    /**
     * Pharmacy_label mouse released.
     *
     * @param evt the evt
     */
    private void pharmacy_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pharmacy_labelMouseReleased
        pharmacy_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/pharmacy.png")));
        pharmacy_label.setForeground(Color.BLACK);
    }//GEN-LAST:event_pharmacy_labelMouseReleased

    /**
     * Speciality_label mouse pressed.
     *
     * @param evt the evt
     */
    private void speciality_labelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_speciality_labelMousePressed
        speciality_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/red-cross-clicked.png")));
        speciality_label.setForeground(Color.BLUE);
    }//GEN-LAST:event_speciality_labelMousePressed

    /**
     * Speciality_label mouse released.
     *
     * @param evt the evt
     */
    private void speciality_labelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_speciality_labelMouseReleased
        speciality_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/red-cross-icon.png")));
        speciality_label.setForeground(Color.BLACK);
    }//GEN-LAST:event_speciality_labelMouseReleased

    /**
     * Lab_panel mouse pressed.
     *
     * @param evt the evt
     */
    private void lab_panelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lab_panelMousePressed
        lab_panel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/labmaster-icon clicked.png")));
        lab_panel.setForeground(Color.BLUE);
    }//GEN-LAST:event_lab_panelMousePressed

    /**
     * Lab_panel mouse released.
     *
     * @param evt the evt
     */
    private void lab_panelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lab_panelMouseReleased
        lab_panel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/labmaster-icon.png")));
        lab_panel.setForeground(Color.BLACK);
    }//GEN-LAST:event_lab_panelMouseReleased

    /**
     * Department_label mouse clicked.
     *
     * @param evt the evt
     */
    private void department_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_department_labelMouseClicked
        facilitysetup_displaypanel.removeAll();
        facilitysetup_displaypanel.updateUI();
        facilitysetup_displaypanel.setBackground(Color.WHITE);
        facilitysetup_displaypanel.add(new DepartmentPanel(),java.awt.BorderLayout.CENTER);
        facilitysetup_displaypanel.setVisible(true);
    }//GEN-LAST:event_department_labelMouseClicked

    /**
     * Pharmacy_label mouse clicked.
     *
     * @param evt the evt
     */
    private void pharmacy_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pharmacy_labelMouseClicked
        facilitysetup_displaypanel.removeAll();
        facilitysetup_displaypanel.updateUI();
        facilitysetup_displaypanel.setBackground(Color.WHITE);
        facilitysetup_displaypanel.add(new PharmacyPanel(),java.awt.BorderLayout.CENTER);
        facilitysetup_displaypanel.setVisible(true);
    }//GEN-LAST:event_pharmacy_labelMouseClicked

    /**
     * Speciality_label mouse clicked.
     *
     * @param evt the evt
     */
    private void speciality_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_speciality_labelMouseClicked
        facilitysetup_displaypanel.removeAll();
        facilitysetup_displaypanel.updateUI();
        facilitysetup_displaypanel.setBackground(Color.WHITE);
        facilitysetup_displaypanel.add(new SpecialityPanel(),java.awt.BorderLayout.CENTER);
        facilitysetup_displaypanel.setVisible(true);
    }//GEN-LAST:event_speciality_labelMouseClicked

    /**
     * Lab_panel mouse clicked.
     *
     * @param evt the evt
     */
    private void lab_panelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lab_panelMouseClicked
        facilitysetup_displaypanel.removeAll();
        facilitysetup_displaypanel.updateUI();
        facilitysetup_displaypanel.setBackground(Color.WHITE);
        facilitysetup_displaypanel.add(new LabPanel(),java.awt.BorderLayout.CENTER);
        facilitysetup_displaypanel.setVisible(true);
    }//GEN-LAST:event_lab_panelMouseClicked

    private void expenditure_LabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_expenditure_LabelMouseClicked
        facilitysetup_displaypanel.removeAll();
        facilitysetup_displaypanel.updateUI();
        facilitysetup_displaypanel.setBackground(Color.WHITE);
        facilitysetup_displaypanel.add(new ExpenditurePanel(),java.awt.BorderLayout.CENTER);
        facilitysetup_displaypanel.setVisible(true);
    }//GEN-LAST:event_expenditure_LabelMouseClicked

    private void expenditure_LabelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_expenditure_LabelMousePressed
      // lab_panel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/expenditure 64X64.png")));
       // lab_panel.setForeground(Color.BLUE);
    }//GEN-LAST:event_expenditure_LabelMousePressed

    private void expenditure_LabelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_expenditure_LabelMouseReleased
       // lab_panel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/expenditure 64X64.png")));
       // lab_panel.setForeground(Color.BLACK);
    }//GEN-LAST:event_expenditure_LabelMouseReleased

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel department_label;
    private javax.swing.JLabel expenditure_Label;
    private javax.swing.JPanel facilitysetup_displaypanel;
    private javax.swing.JLabel lab_panel;
    private javax.swing.JLabel pharmacy_label;
    private javax.swing.JLabel speciality_label;
    // End of variables declaration//GEN-END:variables
}

Commits for Satyam/AuroCareEMR/src/main/java/com/bestray/healthcareemr/Views/FacilitySetupPanel.java

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 20 Jul, 2018 05:59:17 +0000