Subversion Repository Public Repository

Pharmacy_09_03_18

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
/*
 * 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 Pharma_Home_Panel extends SimpleGradientPanel {

    /**
     * Creates new form Pharma_Home_Panel
     */
    public Pharma_Home_Panel() {
        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();
        home_toolbar = new javax.swing.JToolBar();
        purchase_bt = new javax.swing.JToggleButton();
        sales_billing_bt = new javax.swing.JToggleButton();
        sales_return_bt = new javax.swing.JToggleButton();
        report_bt = new javax.swing.JToggleButton();
        pharmacy_setup_button = new javax.swing.JToggleButton();
        home_display_panel = new SimpleGradientPanel();

        home_toolbar.setBackground(new java.awt.Color(117, 150, 227));
        home_toolbar.setFloatable(false);
        home_toolbar.setRollover(true);

        buttonGroup1.add(purchase_bt);
        purchase_bt.setFont(new java.awt.Font("SansSerif", 1, 10)); // NOI18N
        purchase_bt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/return  sales.png"))); // NOI18N
        purchase_bt.setText("Purchase");
        purchase_bt.setFocusable(false);
        purchase_bt.setMargin(new java.awt.Insets(2, 20, 2, 20));
        purchase_bt.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                purchase_btMouseClicked(evt);
            }
        });
        purchase_bt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                purchase_btActionPerformed(evt);
            }
        });
        home_toolbar.add(purchase_bt);

        buttonGroup1.add(sales_billing_bt);
        sales_billing_bt.setFont(new java.awt.Font("SansSerif", 1, 10)); // NOI18N
        sales_billing_bt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/billing.png"))); // NOI18N
        sales_billing_bt.setText("Sales Billing");
        sales_billing_bt.setFocusable(false);
        sales_billing_bt.setMargin(new java.awt.Insets(2, 20, 2, 20));
        sales_billing_bt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sales_billing_btActionPerformed(evt);
            }
        });
        home_toolbar.add(sales_billing_bt);

        buttonGroup1.add(sales_return_bt);
        sales_return_bt.setFont(new java.awt.Font("SansSerif", 1, 10)); // NOI18N
        sales_return_bt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/return  sales.png"))); // NOI18N
        sales_return_bt.setText("Sales Return");
        sales_return_bt.setFocusable(false);
        sales_return_bt.setMargin(new java.awt.Insets(2, 20, 2, 20));
        sales_return_bt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sales_return_btActionPerformed(evt);
            }
        });
        sales_return_bt.setVisible(false);
        home_toolbar.add(sales_return_bt);

        buttonGroup1.add(report_bt);
        report_bt.setFont(new java.awt.Font("SansSerif", 1, 10)); // NOI18N
        report_bt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/report32x32.png"))); // NOI18N
        report_bt.setText("Report");
        report_bt.setFocusable(false);
        report_bt.setMargin(new java.awt.Insets(2, 20, 2, 20));
        report_bt.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                report_btMouseClicked(evt);
            }
        });
        report_bt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                report_btActionPerformed(evt);
            }
        });
        home_toolbar.add(report_bt);

        buttonGroup1.add(pharmacy_setup_button);
        pharmacy_setup_button.setFont(new java.awt.Font("SansSerif", 1, 10)); // NOI18N
        pharmacy_setup_button.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/pharmacy-setup-icon32x32.png"))); // NOI18N
        pharmacy_setup_button.setText("Pharmacy Setup");
        pharmacy_setup_button.setFocusable(false);
        pharmacy_setup_button.setMargin(new java.awt.Insets(2, 20, 2, 20));
        pharmacy_setup_button.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                pharmacy_setup_buttonMouseClicked(evt);
            }
        });
        pharmacy_setup_button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pharmacy_setup_buttonActionPerformed(evt);
            }
        });
        home_toolbar.add(pharmacy_setup_button);

        home_display_panel.setOpaque(false);
        home_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(home_toolbar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 930, Short.MAX_VALUE)
            .addComponent(home_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(home_toolbar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, 0)
                .addComponent(home_display_panel, javax.swing.GroupLayout.DEFAULT_SIZE, 526, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void purchase_btActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_purchase_btActionPerformed
        home_display_panel.removeAll();
        home_display_panel.updateUI();
        home_display_panel.setBackground(Color.WHITE);
        home_display_panel.add(new PharmacyPurchasePanel(),java.awt.BorderLayout.CENTER);
        home_display_panel.setVisible(true);
    }//GEN-LAST:event_purchase_btActionPerformed

    private void sales_billing_btActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sales_billing_btActionPerformed
        home_display_panel.removeAll();
        home_display_panel.updateUI();
        home_display_panel.setBackground(Color.WHITE);
        home_display_panel.add(new PatientBillingPanel(),java.awt.BorderLayout.CENTER);
        home_display_panel.setVisible(true);
    }//GEN-LAST:event_sales_billing_btActionPerformed

    private void sales_return_btActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sales_return_btActionPerformed
        
    }//GEN-LAST:event_sales_return_btActionPerformed

    private void report_btActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_report_btActionPerformed
        home_display_panel.removeAll();
        home_display_panel.updateUI();
        home_display_panel.setBackground(Color.WHITE);
        home_display_panel.add(new PharmacyReportPanel(),java.awt.BorderLayout.CENTER);
        home_display_panel.setVisible(true);
    }//GEN-LAST:event_report_btActionPerformed

    private void pharmacy_setup_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pharmacy_setup_buttonActionPerformed
        home_display_panel.removeAll();
        home_display_panel.updateUI();
        home_display_panel.setBackground(Color.WHITE);
        home_display_panel.add(new PharmacySetupPanel(),java.awt.BorderLayout.CENTER);
        home_display_panel.setVisible(true);
    }//GEN-LAST:event_pharmacy_setup_buttonActionPerformed

    private void purchase_btMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_purchase_btMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_purchase_btMouseClicked

    private void report_btMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_report_btMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_report_btMouseClicked

    private void pharmacy_setup_buttonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pharmacy_setup_buttonMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_pharmacy_setup_buttonMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JPanel home_display_panel;
    private javax.swing.JToolBar home_toolbar;
    private javax.swing.JToggleButton pharmacy_setup_button;
    private javax.swing.JToggleButton purchase_bt;
    private javax.swing.JToggleButton report_bt;
    private javax.swing.JToggleButton sales_billing_bt;
    private javax.swing.JToggleButton sales_return_bt;
    // End of variables declaration//GEN-END:variables
}

Commits for Pharmacy_09_03_18/Dr Gyana ProjectSpace/DrGyanaPharmacy/src/main/java/com/bestray/healthcarepharmacy/view/Pharma_Home_Panel.java

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 27 Jul, 2018 07:30:57 +0000