Appointment.java

 avatar
unknown
java
3 years ago
3.5 kB
6
Indexable
/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package Class;


/**
 *
 * @author ALEXA
 */
public class Appointment {
    private int AppointmentID;
    private String AppointmentDate; 
    private String AppointmentTime; 
    private String AppointmentStatus;
    private double AppointmentFees;
    private String AppointmentFeedback; 
    
    private Payment payment; 
    private Technician technician; 
    private Customer customer; 
    
    
    public Appointment(int AppointmentID, String AppointmentDate, String AppointmentStatus, double AppointmentFees, String AppointmentFeedback, int technicianID, int custID, String AppointmentTime) {
        this.AppointmentID = AppointmentID;
        this.AppointmentDate = AppointmentDate;
        this.AppointmentTime = AppointmentTime;
        this.AppointmentStatus = AppointmentStatus;
        this.AppointmentFees = AppointmentFees;
        this.AppointmentFeedback = AppointmentFeedback;
         this.payment = new Payment();
         this.customer = new Customer();
         this.technician = new Technician();
         customer.setCustID(custID);
         technician.setUserID(technicianID);
         payment.setInvoiceID(AppointmentID);
         payment.setTotalFees(AppointmentFees);
    }

    public Appointment() {
    }
    
    //getter
    public int getAppointmentID() {
        return AppointmentID;
    }

    public String getAppointmentTime() {
        return AppointmentTime;
    }

    public String getAppointmentDate() {
        return AppointmentDate;
    }

    public String getAppointmentStatus() {
        return AppointmentStatus;
    }

    public double getAppointmentFees() {
        return AppointmentFees;
    }

    public String getAppointmentFeedback() {
        return AppointmentFeedback;
    }
    
    //setter

    public void setAppointmentID(int AppointmentID) {
        this.AppointmentID = AppointmentID;
    }

    public void setAppointmentDate(String AppointmentDateTime) {
        this.AppointmentDate = AppointmentDateTime;
    }

    public void setAppointmentStatus(String AppointmentStatus) {
        this.AppointmentStatus = AppointmentStatus;
    }

    public void setAppointmentFees(double AppointmentFees) {
        
        this.AppointmentFees = AppointmentFees;
         this.payment = new Payment();
         payment.setTotalFees(AppointmentFees);
    }

    public void setAppointmentFeedback(String AppointmentFeedback) {
        this.AppointmentFeedback = AppointmentFeedback;
    }

    public void setAppointmentTime(String AppointmentTime) {
        this.AppointmentTime = AppointmentTime;
    }

//    public Payment getPayment() {
//        return payment;
//    }
//
//    public Technician getTechnician() {
//        return technician;
//    }
//
//    public Customer getCustomer() {
//        return customer;
//    }

//    public void setPayment(Payment payment) {
//        this.payment = payment;
//    }
//
//    public void setTechnician(Technician technician) {
//        this.technician = technician;
//    }
//
//    public void setCustomer(Customer customer) {
//        this.customer = customer;
//    }
    
    

    
    
}
Editor is loading...