示例#1
0
文件: bjguahao.py 项目: areone/guahao
    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
示例#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
示例#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
示例#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())
示例#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