Beispiel #1
0
    def print_doctor(self):

        Log.info("当前号余量:")
        x = PrettyTable()
        x.border = True
        x.field_names = ["医生姓名", "擅长", "号余量"]
        for doctor in self.dutys:
            x.add_row([doctor["doctorName"], doctor['skill'], doctor['remainAvailableNumber']])
        print x.get_string()
        pass
Beispiel #2
0
 def print_doctor(self):
     logging.info("当前号余量:")
     x = PrettyTable()
     x.border = True
     x.field_names = ["医生姓名", "擅长", "号余量"]
     for doctor in self.dutys:
         x.add_row([self.get_doctor_name(doctor), doctor['doctorSkill'], doctor['totalCount']])
     print(x.get_string())
     pass
Beispiel #3
0
    def print_doctor(self):

        logging.info("当前号余量:")
        x = PrettyTable()
        x.border = True
        x.field_names = ["医生姓名", "擅长", "号余量"]
        for doctor in self.dutys:
            x.add_row([doctor["doctorName"], doctor['skill'], doctor['remainAvailableNumber']])
        print(x.get_string())
        pass
Beispiel #4
0
    def print_doctor(self):

        logging.info("当前号余量:")
        x = PrettyTable()
        x.border = True
        x.field_names = ["医生姓名", "擅长", "Duty", "SourceId", " 号余量"]
        for doctor in self.dutys:
            x.add_row([
                doctor["doctorName"], doctor['skill'], doctor['dutyCodeName'],
                doctor['dutySourceId'], doctor['remainAvailableNumber']
            ])
        print(x.get_string())
Beispiel #5
0
 def print_doctor(self):
     logging.info("当前号余量:")
     x = PrettyTable()
     x.border = True
     x.field_names = ["医生姓名", "擅长", "号余量"]
     for doctor in self.dutys:
         x.add_row([
             self.get_doctor_name(doctor), doctor['skill'],
             "无" if len(doctor['period']) > 0 else "有"
         ])
     print(x.get_string())
     pass