Package club.data

Examples of club.data.DataMembership


        super(parent, modal);
        this.setLocation(450,100);
        initComponents();
        comboMembership.removeAllItems();
        List<MembershipTypeBean> listType = new ArrayList();
        DataMembership dataTypeMember = new DataMembership();
        listType = dataTypeMember.getAllTypes();
        for(MembershipTypeBean bean : listType){
            comboMembership.addItem(bean);
        }
        initDate();
    }
View Full Code Here


    /**
     * Creates new form MembershipDialog
     */
    private void refreshData() throws SQLException {
        DataMembership dataMembership = new DataMembership();
        DefaultTableModel model = dataMembership.getAllTypesAsModel();
        tblMembership.setModel(model);
    }
View Full Code Here

        int selectedRow = tblMembership.getSelectedRow();
        if (selectedRow == -1) {
            JOptionPane.showMessageDialog(rootPane, "You must chose one membership type first!", "Error!", JOptionPane.ERROR_MESSAGE);
        } else {
            int id = (int) tblMembership.getModel().getValueAt(selectedRow, 0);
            DataMembership dataMembership = new DataMembership();
            MembershipTypeBean bean = dataMembership.getTypeByID(id);
            txtTypeName.setText(bean.getTypeName());
            txtMainDuty.setText(bean.getMain_Duty());
            spinFee.setValue(bean.getFee());
            spinMinAttendance.setValue(bean.getMin_Attendance());
            spinDiscount.setValue(bean.getDiscount());
View Full Code Here

TOP

Related Classes of club.data.DataMembership

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.