mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-29 20:05:38 +03:00
before task parser
This commit is contained in:
@@ -17,6 +17,7 @@ protected:
|
||||
//Подключение
|
||||
bool createConnection();
|
||||
void deleteConnection();
|
||||
bool isConnected();
|
||||
|
||||
//Транзакции
|
||||
bool transactionBegin();
|
||||
@@ -30,10 +31,12 @@ protected:
|
||||
//Инструктор
|
||||
Instructor selectInstructor(int id_instructor);
|
||||
int selectInstructorID(QString login, QString password = QStringLiteral(""));
|
||||
QString selectInstructorNameByLogin(QString login);
|
||||
bool selectInstructorIsAdmin(int id_instructor);
|
||||
bool selectInstructorLoggedIn(int id_instructor);
|
||||
bool selectInstructorArchived(int id_instructor);
|
||||
int updateInstructorLoggedIn(int id_instructor, bool loggedIn);
|
||||
bool updateAllInstructorsLoggedIn(bool loggedIn);
|
||||
int updateInstructorArchived(int id_instructor, bool archived);
|
||||
|
||||
int insertInstructor();
|
||||
@@ -42,22 +45,26 @@ protected:
|
||||
int updateInstructor(Instructor instructor);
|
||||
|
||||
//Группа
|
||||
Group selectGroup(int id_group);//
|
||||
int insertGroup();//
|
||||
Group selectGroup(int id_group);
|
||||
int insertGroup();
|
||||
int insertGroup(Group group);
|
||||
int deleteGroup(int group_id);
|
||||
int updateGroup(Group group);
|
||||
|
||||
//Обучаемый
|
||||
Trainee selectTrainee(int id_trainee);//
|
||||
Trainee selectTrainee(int id_trainee);
|
||||
QList<Trainee> selectAllTraineesInGroup(int id_group);
|
||||
int selectTraineeID(QString login, QString password = QStringLiteral(""));//
|
||||
bool selectTraineeArchived(int id_trainee);//
|
||||
bool selectTraineeLoggedIn(int id_trainee);//
|
||||
int updateTraineeLoggedIn(int id_trainee, bool loggedIn);//
|
||||
int updateTraineeArchived(int id_trainee, bool archived);//
|
||||
int selectTraineeID(QString login, QString password = QStringLiteral(""));
|
||||
QString selectTraineeNameByLogin(QString login);
|
||||
QString selectTraineeNameOnComputer(QString computer_name);
|
||||
Trainee selectTraineeOnComputer(QString computer_name);
|
||||
bool selectTraineeArchived(int id_trainee);
|
||||
bool selectTraineeLoggedIn(int id_trainee);
|
||||
int updateTraineeLoggedIn(int id_trainee, bool loggedIn);
|
||||
bool updateAllTraineesLoggedIn(bool loggedIn);
|
||||
int updateTraineeArchived(int id_trainee, bool archived);
|
||||
|
||||
int insertTrainee(int id_group);//
|
||||
int insertTrainee(int id_group);
|
||||
int insertTrainee(Trainee trainee);
|
||||
int deleteTrainee(int trainee_id);
|
||||
int updateTrainee(Trainee trainee);
|
||||
@@ -66,13 +73,13 @@ protected:
|
||||
|
||||
private:
|
||||
int queryExecInt(QString queryStr);
|
||||
//bool queryExecBool(QString queryStr);
|
||||
void messageWarningErrorQuery(QString queryStr, QSqlQuery* query);
|
||||
|
||||
private:
|
||||
protected:
|
||||
QSqlDatabase* db;
|
||||
bool transactionBegined;
|
||||
const QString dbName = "DataBaseLMS";
|
||||
private:
|
||||
bool transactionBegined;
|
||||
const QString dbUserName = "postgres";
|
||||
const QString dbPassword = "12345678";
|
||||
const QString dbType = "QPSQL";
|
||||
|
||||
Reference in New Issue
Block a user