本文整理汇总了Python中EMR_utilities.updateList方法的典型用法代码示例。如果您正苦于以下问题:Python EMR_utilities.updateList方法的具体用法?Python EMR_utilities.updateList怎么用?Python EMR_utilities.updateList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EMR_utilities
的用法示例。
在下文中一共展示了EMR_utilities.updateList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: OnOk
# 需要导入模块: import EMR_utilities [as 别名]
# 或者: from EMR_utilities import updateList [as 别名]
def OnOk(self, event):
qry = 'INSERT INTO todo SET date = "%s", description = "%s", priority = "%s", category = "%s", memo = "%s", due_date = "%s", complete = "0", patient_ID = %s;' % (self.textctrl['Date'].GetValue(),
self.textctrl['Description'].GetValue(), self.textctrl['Priority'].GetValue(),
self.textctrl['Category'].GetValue(), self.textctrl['Memo'].GetValue(),
self.textctrl['Due Date'].GetValue(), self.PtID)
EMR_utilities.updateData(qry)
EMR_utilities.updateList(todo_find(self.PtID), self.List)
示例2: PrintLtr
# 需要导入模块: import EMR_utilities [as 别名]
# 或者: from EMR_utilities import updateList [as 别名]
def PrintLtr(self):
#need consultant first and lastname by parsing self.consultant
conName = self.consultant[0:self.consultant.find(',')]
Printer.myConsultLtr(self, self.PtID, self.textctrl['reason'].GetValue(), self.textctrl['memo'].GetValue(), \
conName, self.textctrl['Due Date'])
EMR_utilities.updateList(todo_find(self.PtID, toggle=0), self.todoInstance.todo_list)
self.Destroy()
示例3: OnToggle
# 需要导入模块: import EMR_utilities [as 别名]
# 或者: from EMR_utilities import updateList [as 别名]
def OnToggle(self, event): #changes list display from active to completed items
if self.toggler == 'Active':
self.toggler = 'Completed'
self.todoTitle.SetLabel(self.toggler)
data = todo_find(self.PtID, toggle=1)
EMR_utilities.updateList(data, self.todo_list)
else:
self.toggler = 'Active' #and back
self.todoTitle.SetLabel(self.toggler)
data = todo_find(self.PtID, toggle=0)
EMR_utilities.updateList(data, self.todo_list)