Examples of insertTrans()


Examples of club.data.DataTransaction.insertTrans()

            DataConfig dataConfig = new DataConfig();
            if (dataConfig.isRightConfig()) {
                int adminID = dataConfig.getCurrentAdminID();
                String des = jTextArea1.getText().trim();
                DataTransaction dataTrans = new DataTransaction();
                if (dataTrans.insertTrans(adminID, memberID, des, input)) {
                    this.dispose();
                } else {
                    JOptionPane.showMessageDialog(rootPane, "Error  !");
                }
View Full Code Here

Examples of club.data.DataTransaction.insertTrans()

                int admin = config.getAdminID();
                MemberBean member = (MemberBean)unjoiners.get(listUnjoiner.getSelectedIndex());
                String des = "Pay fee to join event: " + event.getDescription();
                Double fee = (type == 0) ? event.getFee() : 0.0;
                if (member.getBalance() >= fee || type !=0){
                    if (dataTransaction.insertTrans(admin, member.getMemberID(), des, 0.0-fee)){
                        int transID = dataTransaction.getMaxID( member.getMemberID());
                        dataAttendance.makeAttendance(eventID, member.getMemberID(), type, transID);
                        JOptionPane.showMessageDialog(this, "Successfully added");
                        updateListUnjoiner();
                        updateListJoiner();
View Full Code Here

Examples of club.data.DataTransaction.insertTrans()

                MemberBean member = (MemberBean)joiners.get(listJoiner.getSelectedIndex());
                String des = "Return fee of event: " + event.getDescription();
                int type = member.getJoinType();
                Double fee = (type == 0) ? event.getFee() : 0.0;
                if (dataAttendance.removeAttendance(eventID, member.getMemberID())){
                    dataTransaction.insertTrans(admin,member.getMemberID(),des, fee);
                    joiners.remove(member);
                    JOptionPane.showMessageDialog(this, "Successfully removed");
                    updateListUnjoiner();
                    updateListJoiner();
                } else{
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.