mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Начал реализовывать обмен запросами к БД
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include <QHeaderView>
|
||||
#include "traineesview.h"
|
||||
|
||||
TraineesView::TraineesView(InterfaceDataBaseLMS* dbLMS, TypeView type, QWidget *parent):
|
||||
CommonView(dbLMS, type, parent)
|
||||
TraineesView::TraineesView(ConnectorToServer* connectorToServer, TypeView type, QWidget *parent):
|
||||
CommonView(connectorToServer, type, parent)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -101,18 +101,12 @@ void TraineesView::loadTraineesFromDB()
|
||||
//Обновление дерева
|
||||
treeWidget->clear();
|
||||
|
||||
if(!dbLMS->DBisConnected())
|
||||
{
|
||||
mtxTreeWidget.unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
QList <Group> listGroups;
|
||||
QList <Trainee> listTrainees;
|
||||
//dbLMS->transactionBegin();
|
||||
listGroups = dbLMS->getListGroups();
|
||||
listTrainees = dbLMS->getListTrainees();
|
||||
//dbLMS->transactionEnd();
|
||||
|
||||
//TODO
|
||||
//listGroups = dbLMS->getListGroups();
|
||||
//listTrainees = dbLMS->getListTrainees();
|
||||
|
||||
for(Group group : listGroups)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user