def __init__(self): self.generatedid = FileHandling.id_number_generator() self.eventdate = None self.starttime = None self.endtime = None self.zip = None self.city = None self.address = None self.beds = None self.plannednumber = None self.finalnumber = None
def write_to_csv(self): return FileHandling.write_to_donor_csv(self.name, self.weight, self.gender, self.birth_date, \ self.last_donation_date, self.sick_last_month, self.id_num, \ self.id_exp, self.blood_type, self.hemoglobin, self.email, \ self.mobile)
def write_to_csv(self): return FileHandling.write_to_donation_csv(self.generatedid, self.eventdate, self.starttime, self.endtime, \ self.zip, self.city, self.address, self.beds, self.plannednumber, \ self.finalnumber)