Пример #1
0
	def available_task(self):
		query = Session.query(
			Task_Type.Code.label("task")
		).order_by("task")
		
		ext = ExtGridStore(query)
		
		return ext.buildStore()
Пример #2
0
	def listup_unit(self):
		query = Session.query(
			Task_Unit.idx.label("Task_Unit_idx"),
			Task_Unit.unit_name.label("Task_Unit_Name"),
			Task_Unit.unit_kind.label("Task_Unit_Kind")
		).order_by("Task_Unit_Name")
		
		ext = ExtGridStore(query)
		
		return ext.buildStore()