mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Перед внедрением списочной модели БД в GUI
This commit is contained in:
@@ -46,7 +46,7 @@ bool ConnectorToServer::deAuthorizationInstructorLocal(QString login)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ConnectorToServer::queryGetListInstructors()
|
||||
bool ConnectorToServer::sendQueryToDB(TypeQueryToDB typeQuery)
|
||||
{
|
||||
if (!client->getIsConnected())
|
||||
{
|
||||
@@ -54,10 +54,12 @@ bool ConnectorToServer::queryGetListInstructors()
|
||||
}
|
||||
|
||||
ClientQueryToDB *queryToDB = new ClientQueryToDB;
|
||||
queryToDB->typeQuery = TypeQueryToDB::TYPE_QUERY_GET_LIST_INSTRUCTORS;
|
||||
queryToDB->typeQuery = typeQuery;
|
||||
|
||||
dataParser->createQueryToDBMessage(queryToDB);
|
||||
emit sigSendQueryToDB();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
QList<Instructor> ConnectorToServer::getListInstructors()
|
||||
@@ -65,10 +67,24 @@ QList<Instructor> ConnectorToServer::getListInstructors()
|
||||
return listInstructors;
|
||||
}
|
||||
|
||||
void ConnectorToServer::slot_AnswerQueryToDB(QList<Instructor>* listInstructors)
|
||||
QList<Trainee> ConnectorToServer::getListTrainees()
|
||||
{
|
||||
return listTrainees;
|
||||
}
|
||||
|
||||
QList<Group> ConnectorToServer::getListGroups()
|
||||
{
|
||||
return listGroups;
|
||||
}
|
||||
|
||||
void ConnectorToServer::slot_AnswerQueryToDB(QList<Instructor>* listInstructors,
|
||||
QList<Trainee>* listTrainees,
|
||||
QList<Group>* listGroups)
|
||||
{
|
||||
this->listInstructors = *listInstructors;
|
||||
emit signal_UpdateDB(true, false);
|
||||
this->listTrainees = *listTrainees;
|
||||
this->listGroups = *listGroups;
|
||||
emit signal_UpdateDB(true, true);
|
||||
}
|
||||
|
||||
void ConnectorToServer::initialize()
|
||||
|
||||
Reference in New Issue
Block a user