Ejemplo n.º 1
0
    def clinician_list(self, row, date):
        '''
        returns a tuple of values showing who is working.
        '''
        if row == 0:
            return appointments.getWorkingDents(date,
                                                include_non_working=False)
        elif row == 1:
            chkset = localsettings.activedent_ixs
            return appointments.getWorkingDents(date, chkset,
                                                include_non_working=False)
        elif row == 2:
            chkset = localsettings.activehyg_ixs
            return appointments.getWorkingDents(date, chkset,
                                                include_non_working=False)

        return appointments.getAllClinicians(date)
Ejemplo n.º 2
0
    def clinician_list(self, row, date):
        '''
        returns a tuple of values showing who is working.
        '''
        if row == 0:
            return appointments.getWorkingDents(date,
                                                include_non_working=False)
        elif row == 1:
            chkset = localsettings.activedent_ixs
            return appointments.getWorkingDents(date,
                                                chkset,
                                                include_non_working=False)
        elif row == 2:
            chkset = localsettings.activehyg_ixs
            return appointments.getWorkingDents(date,
                                                chkset,
                                                include_non_working=False)

        return appointments.getAllClinicians(date)
Ejemplo n.º 3
0
 def loadData(self):
     dentData = tuple(appointments.getWorkingDents(self.date.toPyDate()))
     for clinician in localsettings.activedents + localsettings.activehygs:
         startData = adayData(clinician)
         for dent in dentData:
             if dent.ix == startData.apptix:
                 startData.setStart(dent.start)
                 startData.setFinish(dent.end)
                 startData.setMemo(dent.memo)
                 startData.active = dent.flag
         self.data_list.append(startData)
Ejemplo n.º 4
0
 def loadData(self):
     dentData = tuple(appointments.getWorkingDents(self.date.toPyDate()))
     for clinician in localsettings.activedents + localsettings.activehygs:
         startData = adayData(clinician)
         for dent in dentData:
             if dent.ix == startData.apptix:
                 startData.setStart(dent.start)
                 startData.setFinish(dent.end)
                 startData.setMemo(dent.memo)
                 startData.active = dent.flag
         self.data_list.append(startData)