mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
PSQL 02.11.2024
This commit is contained in:
Binary file not shown.
@@ -1,99 +1,99 @@
|
||||
# ninja log v5
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/ui_instructorsandtraineeswidget.h 325fc9931da2ad77
|
||||
846 3294 7521082273829837 CMakeFiles/InstructorsAndTrainees.dir/InstructorsAndTrainees_autogen/mocs_compilation.cpp.obj 639ec716a2902c9f
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_dialogeditgroup.h 325fc9931da2ad77
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_dialogauthorizationinstructor.h 325fc9931da2ad77
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/tasks/ui_taskswidget.h 325fc9931da2ad77
|
||||
854 3261 7521082273487776 CMakeFiles/InstructorsAndTrainees.dir/trainees/editortrainees.cpp.obj 2e9a885629b6e173
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_viewertrainees.h 325fc9931da2ad77
|
||||
856 3025 7521082271113044 CMakeFiles/InstructorsAndTrainees.dir/trainees/dialogeditgroup.cpp.obj 4bd8bab8b1110ba7
|
||||
18 61 0 InstructorsAndTrainees_autogen/include/trainees/ui_dialogedittrainee.h 325fc9931da2ad77
|
||||
18 61 0 InstructorsAndTrainees_autogen/include/instructors/ui_viewerinstructors.h 325fc9931da2ad77
|
||||
18 61 0 InstructorsAndTrainees_autogen/include/trainees/ui_dialogeditgroup.h 325fc9931da2ad77
|
||||
852 2952 7521082270265420 CMakeFiles/InstructorsAndTrainees.dir/commonview.cpp.obj 3bdbb777b1ca4f9f
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/CMakeFiles/InstructorsAndTrainees_autogen 325fc9931da2ad77
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_dialogeditinstructor.h 325fc9931da2ad77
|
||||
18 61 0 InstructorsAndTrainees_autogen/include/trainees/ui_viewertrainees.h 325fc9931da2ad77
|
||||
880 2808 7521082268873272 CMakeFiles/InstructorsAndTrainees.dir/instructors/databaseinstructors.cpp.obj 50eb3e676aec3cc5
|
||||
904 1164 7521082252426886 CMakeFiles/InstructorsAndTrainees.dir/InstructorsAndTrainees_autogen/EWIEGA46WW/qrc_resources.cpp.obj 54d07c59b3f7a2cf
|
||||
16 52 0 InstructorsAndTrainees_autogen/include/trainees/ui_dialogedittrainee.h 325fc9931da2ad77
|
||||
377 1845 7521882090383278 CMakeFiles/InstructorsAndTrainees.dir/trainees/dialogeditgroup.cpp.obj 4bd8bab8b1110ba7
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_viewertrainees.h 325fc9931da2ad77
|
||||
57 1647 7522449583762190 CMakeFiles/InstructorsAndTrainees.dir/trainees/editortrainees.cpp.obj 2e9a885629b6e173
|
||||
74 1925 7522449586580602 CMakeFiles/InstructorsAndTrainees.dir/instructors/editorinstructors.cpp.obj b8e3d2e3a65912a8
|
||||
32 42 0 clean 9c4b4372737ab8da
|
||||
393 1902 7521882090955221 CMakeFiles/InstructorsAndTrainees.dir/instructors/dialogeditinstructor.cpp.obj e02fcfe10480c54f
|
||||
16 52 0 InstructorsAndTrainees_autogen/include/instructors/ui_viewerinstructors.h 325fc9931da2ad77
|
||||
16 52 0 InstructorsAndTrainees_autogen/include/trainees/ui_dialogeditgroup.h 325fc9931da2ad77
|
||||
1002 3232 7521664817765595 CMakeFiles/InstructorsAndTrainees.dir/commonview.cpp.obj 3bdbb777b1ca4f9f
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/CMakeFiles/InstructorsAndTrainees_autogen 325fc9931da2ad77
|
||||
16 52 0 InstructorsAndTrainees_autogen/include/instructors/ui_dialogeditinstructor.h 325fc9931da2ad77
|
||||
16 52 0 InstructorsAndTrainees_autogen/include/tasks/ui_taskswidget.h 325fc9931da2ad77
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_editorinstructors.h 325fc9931da2ad77
|
||||
65 1747 7522449584792147 CMakeFiles/InstructorsAndTrainees.dir/trainees/traineesview.cpp.obj a6ea1bfa14213881
|
||||
1012 2854 7521664813846902 CMakeFiles/InstructorsAndTrainees.dir/trainees/computersLocations.cpp.obj 7aaac6302b47a301
|
||||
13 253 7521784982976196 build.ninja 76aa11f472515be0
|
||||
55 1879 7522449586124230 CMakeFiles/InstructorsAndTrainees.dir/instructorsandtraineeswidget.cpp.obj 8e8beb29ba6ba100
|
||||
71 1413 7522449581447380 CMakeFiles/InstructorsAndTrainees.dir/instructors/databaseinstructors.cpp.obj 50eb3e676aec3cc5
|
||||
16 52 0 InstructorsAndTrainees_autogen/include/ui_instructorsandtraineeswidget.h 325fc9931da2ad77
|
||||
77 1659 7522449583926194 CMakeFiles/InstructorsAndTrainees.dir/instructors/instructorsview.cpp.obj d1fea9a96fa095b1
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_dialogeditinstructor.h 325fc9931da2ad77
|
||||
16 52 0 InstructorsAndTrainees_autogen/include/trainees/ui_viewertrainees.h 325fc9931da2ad77
|
||||
949 996 7521664795567220 InstructorsAndTrainees_autogen/EWIEGA46WW/qrc_resources.cpp f2ed85aad0f78c7c
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/mocs_compilation.cpp 325fc9931da2ad77
|
||||
949 996 7521664795567220 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/EWIEGA46WW/qrc_resources.cpp f2ed85aad0f78c7c
|
||||
8 32 0 CMakeFiles/clean.additional 7155004b3956b606
|
||||
62 1506 7522449582370525 CMakeFiles/InstructorsAndTrainees.dir/trainees/viewertrainees.cpp.obj 99b246ecbf2b6f9b
|
||||
1951 2311 7522449590411375 libInstructorsAndTrainees.dll.a d721655f2d9255b7
|
||||
16 52 0 InstructorsAndTrainees_autogen/include/instructors/ui_editorinstructors.h 325fc9931da2ad77
|
||||
16 52 0 CMakeFiles/InstructorsAndTrainees_autogen 325fc9931da2ad77
|
||||
59 1508 7522449582401689 CMakeFiles/InstructorsAndTrainees.dir/trainees/databasetrainees.cpp.obj b3eab31811ef0e17
|
||||
16 52 0 InstructorsAndTrainees_autogen/mocs_compilation.cpp 325fc9931da2ad77
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_editortrainees.h 325fc9931da2ad77
|
||||
302 1859 7522436505794702 CMakeFiles/InstructorsAndTrainees.dir/trainees/dialogedittrainee.cpp.obj 544a146272360182
|
||||
68 1813 7522449585461950 CMakeFiles/InstructorsAndTrainees.dir/instructors/viewerinstructors.cpp.obj 2aa58696f5232c4b
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/tasks/ui_taskswidget.h 325fc9931da2ad77
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_dialogauthorizationinstructor.h 325fc9931da2ad77
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_dialogeditgroup.h 325fc9931da2ad77
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/ui_instructorsandtraineeswidget.h 325fc9931da2ad77
|
||||
52 1951 7522449586845975 CMakeFiles/InstructorsAndTrainees.dir/InstructorsAndTrainees_autogen/mocs_compilation.cpp.obj 639ec716a2902c9f
|
||||
1012 3479 7520793522676004 CMakeFiles/InstructorsAndTrainees.dir/instructorsAndTrainees.cpp.obj ff3fcdc370580ca2
|
||||
888 3276 7521082273638457 CMakeFiles/InstructorsAndTrainees.dir/instructors/dialogeditinstructor.cpp.obj e02fcfe10480c54f
|
||||
35 44 0 clean 9c4b4372737ab8da
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_dialogedittrainee.h 325fc9931da2ad77
|
||||
900 3303 7521082273910570 CMakeFiles/InstructorsAndTrainees.dir/tasks/taskswidget.cpp.obj 187ec526627f696e
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/mocs_compilation.cpp 325fc9931da2ad77
|
||||
78 129 7520881039787393 InstructorsAndTrainees_autogen/EWIEGA46WW/qrc_resources.cpp f2ed85aad0f78c7c
|
||||
859 2961 7521082270449091 CMakeFiles/InstructorsAndTrainees.dir/trainees/dialogedittrainee.cpp.obj 544a146272360182
|
||||
1193 1552 7521105436065188 libInstructorsAndTrainees.dll.a d721655f2d9255b7
|
||||
18 61 0 InstructorsAndTrainees_autogen/include/instructors/ui_editorinstructors.h 325fc9931da2ad77
|
||||
18 61 0 CMakeFiles/InstructorsAndTrainees_autogen 325fc9931da2ad77
|
||||
867 2615 7521082266604887 CMakeFiles/InstructorsAndTrainees.dir/trainees/databasetrainees.cpp.obj b3eab31811ef0e17
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_editortrainees.h 325fc9931da2ad77
|
||||
18 61 0 InstructorsAndTrainees_autogen/mocs_compilation.cpp 325fc9931da2ad77
|
||||
18 61 0 InstructorsAndTrainees_autogen/include/instructors/ui_dialogauthorizationinstructor.h 325fc9931da2ad77
|
||||
18 61 0 InstructorsAndTrainees_autogen/include/trainees/ui_editortrainees.h 325fc9931da2ad77
|
||||
1193 1552 7521105436065188 libInstructorsAndTrainees.dll d721655f2d9255b7
|
||||
62 1193 7521105432500496 CMakeFiles/InstructorsAndTrainees.dir/instructors/viewerinstructors.cpp.obj 2aa58696f5232c4b
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_editorinstructors.h 325fc9931da2ad77
|
||||
18 61 0 InstructorsAndTrainees_autogen/include/tasks/ui_taskswidget.h 325fc9931da2ad77
|
||||
18 61 0 InstructorsAndTrainees_autogen/include/instructors/ui_dialogeditinstructor.h 325fc9931da2ad77
|
||||
892 2942 7521082270223781 CMakeFiles/InstructorsAndTrainees.dir/instructors/dialogauthorizationinstructor.cpp.obj f1f85077e88e8c7
|
||||
18 61 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_viewerinstructors.h 325fc9931da2ad77
|
||||
897 3091 7521082271772592 CMakeFiles/InstructorsAndTrainees.dir/instructors/instructorsview.cpp.obj d1fea9a96fa095b1
|
||||
18 61 0 InstructorsAndTrainees_autogen/include/ui_instructorsandtraineeswidget.h 325fc9931da2ad77
|
||||
849 3503 7521082275923951 CMakeFiles/InstructorsAndTrainees.dir/instructorsandtraineeswidget.cpp.obj 8e8beb29ba6ba100
|
||||
873 3127 7521082272135107 CMakeFiles/InstructorsAndTrainees.dir/trainees/traineesview.cpp.obj a6ea1bfa14213881
|
||||
13 253 7521475903295093 build.ninja 76aa11f472515be0
|
||||
863 2017 7521082260897588 CMakeFiles/InstructorsAndTrainees.dir/trainees/computersLocations.cpp.obj 7aaac6302b47a301
|
||||
12 35 0 CMakeFiles/clean.additional 7155004b3956b606
|
||||
870 3060 7521082271470041 CMakeFiles/InstructorsAndTrainees.dir/trainees/viewertrainees.cpp.obj 99b246ecbf2b6f9b
|
||||
884 3473 7521082275618934 CMakeFiles/InstructorsAndTrainees.dir/instructors/editorinstructors.cpp.obj b8e3d2e3a65912a8
|
||||
78 129 7520881039787393 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/EWIEGA46WW/qrc_resources.cpp f2ed85aad0f78c7c
|
||||
13 41 0 CMakeFiles/clean.additional 7155004b3956b606
|
||||
41 50 0 clean 9c4b4372737ab8da
|
||||
12 947 0 CMakeFiles/InstructorsAndTrainees_autogen 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/mocs_compilation.cpp 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/include/ui_instructorsandtraineeswidget.h 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/include/trainees/ui_editortrainees.h 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/include/trainees/ui_dialogeditgroup.h 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/include/trainees/ui_dialogedittrainee.h 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/include/trainees/ui_viewertrainees.h 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/include/instructors/ui_viewerinstructors.h 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/include/instructors/ui_editorinstructors.h 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/include/instructors/ui_dialogeditinstructor.h 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/include/instructors/ui_dialogauthorizationinstructor.h 325fc9931da2ad77
|
||||
12 947 0 InstructorsAndTrainees_autogen/include/tasks/ui_taskswidget.h 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/CMakeFiles/InstructorsAndTrainees_autogen 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/mocs_compilation.cpp 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/ui_instructorsandtraineeswidget.h 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_editortrainees.h 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_dialogeditgroup.h 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_dialogedittrainee.h 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_viewertrainees.h 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_viewerinstructors.h 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_editorinstructors.h 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_dialogeditinstructor.h 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_dialogauthorizationinstructor.h 325fc9931da2ad77
|
||||
12 947 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/tasks/ui_taskswidget.h 325fc9931da2ad77
|
||||
948 999 7521537199541277 InstructorsAndTrainees_autogen/EWIEGA46WW/qrc_resources.cpp f2ed85aad0f78c7c
|
||||
948 999 7521537199541277 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/EWIEGA46WW/qrc_resources.cpp f2ed85aad0f78c7c
|
||||
1056 1272 7521537202242020 CMakeFiles/InstructorsAndTrainees.dir/InstructorsAndTrainees_autogen/EWIEGA46WW/qrc_resources.cpp.obj 54d07c59b3f7a2cf
|
||||
1015 2251 7521537211520951 CMakeFiles/InstructorsAndTrainees.dir/trainees/computersLocations.cpp.obj 7aaac6302b47a301
|
||||
1018 2883 7521537218154408 CMakeFiles/InstructorsAndTrainees.dir/trainees/databasetrainees.cpp.obj b3eab31811ef0e17
|
||||
1032 3080 7521537220160053 CMakeFiles/InstructorsAndTrainees.dir/instructors/databaseinstructors.cpp.obj 50eb3e676aec3cc5
|
||||
1009 3081 7521537220219889 CMakeFiles/InstructorsAndTrainees.dir/trainees/dialogeditgroup.cpp.obj 4bd8bab8b1110ba7
|
||||
1004 3083 7521537220339572 CMakeFiles/InstructorsAndTrainees.dir/commonview.cpp.obj 3bdbb777b1ca4f9f
|
||||
1012 3129 7521537220829192 CMakeFiles/InstructorsAndTrainees.dir/trainees/dialogedittrainee.cpp.obj 544a146272360182
|
||||
1043 3155 7521537221090266 CMakeFiles/InstructorsAndTrainees.dir/instructors/dialogauthorizationinstructor.cpp.obj f1f85077e88e8c7
|
||||
1025 3258 7521537222125613 CMakeFiles/InstructorsAndTrainees.dir/trainees/traineesview.cpp.obj a6ea1bfa14213881
|
||||
1047 3308 7521537222621574 CMakeFiles/InstructorsAndTrainees.dir/instructors/instructorsview.cpp.obj d1fea9a96fa095b1
|
||||
1007 3454 7521537224065584 CMakeFiles/InstructorsAndTrainees.dir/trainees/editortrainees.cpp.obj 2e9a885629b6e173
|
||||
999 3498 7521537224525187 CMakeFiles/InstructorsAndTrainees.dir/InstructorsAndTrainees_autogen/mocs_compilation.cpp.obj 639ec716a2902c9f
|
||||
1002 3546 7521537224999110 CMakeFiles/InstructorsAndTrainees.dir/instructorsandtraineeswidget.cpp.obj 8e8beb29ba6ba100
|
||||
1040 3563 7521537225180629 CMakeFiles/InstructorsAndTrainees.dir/instructors/dialogeditinstructor.cpp.obj e02fcfe10480c54f
|
||||
1029 3578 7521537225342134 CMakeFiles/InstructorsAndTrainees.dir/instructors/viewerinstructors.cpp.obj 2aa58696f5232c4b
|
||||
1022 3597 7521537225522789 CMakeFiles/InstructorsAndTrainees.dir/trainees/viewertrainees.cpp.obj 99b246ecbf2b6f9b
|
||||
1052 3611 7521537225653525 CMakeFiles/InstructorsAndTrainees.dir/tasks/taskswidget.cpp.obj 187ec526627f696e
|
||||
1036 3617 7521537225723869 CMakeFiles/InstructorsAndTrainees.dir/instructors/editorinstructors.cpp.obj b8e3d2e3a65912a8
|
||||
3617 4000 7521537229536040 libInstructorsAndTrainees.dll d721655f2d9255b7
|
||||
3617 4000 7521537229536040 libInstructorsAndTrainees.dll.a d721655f2d9255b7
|
||||
1052 1295 7521664798479005 CMakeFiles/InstructorsAndTrainees.dir/InstructorsAndTrainees_autogen/EWIEGA46WW/qrc_resources.cpp.obj 54d07c59b3f7a2cf
|
||||
16 52 0 InstructorsAndTrainees_autogen/include/trainees/ui_editortrainees.h 325fc9931da2ad77
|
||||
1951 2311 7522449590411375 libInstructorsAndTrainees.dll d721655f2d9255b7
|
||||
16 52 0 InstructorsAndTrainees_autogen/include/instructors/ui_dialogauthorizationinstructor.h 325fc9931da2ad77
|
||||
81 1679 7522449584107678 CMakeFiles/InstructorsAndTrainees.dir/tasks/taskswidget.cpp.obj 187ec526627f696e
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_dialogedittrainee.h 325fc9931da2ad77
|
||||
16 52 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_viewerinstructors.h 325fc9931da2ad77
|
||||
1040 3227 7521664817775571 CMakeFiles/InstructorsAndTrainees.dir/instructors/dialogauthorizationinstructor.cpp.obj f1f85077e88e8c7
|
||||
18 49 0 CMakeFiles/InstructorsAndTrainees_autogen 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/mocs_compilation.cpp 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/include/ui_instructorsandtraineeswidget.h 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/include/trainees/ui_editortrainees.h 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/include/trainees/ui_dialogeditgroup.h 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/include/trainees/ui_dialogedittrainee.h 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/include/trainees/ui_viewertrainees.h 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/include/instructors/ui_viewerinstructors.h 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/include/instructors/ui_editorinstructors.h 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/include/instructors/ui_dialogeditinstructor.h 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/include/instructors/ui_dialogauthorizationinstructor.h 325fc9931da2ad77
|
||||
18 49 0 InstructorsAndTrainees_autogen/include/tasks/ui_taskswidget.h 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/CMakeFiles/InstructorsAndTrainees_autogen 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/mocs_compilation.cpp 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/ui_instructorsandtraineeswidget.h 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_editortrainees.h 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_dialogeditgroup.h 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_dialogedittrainee.h 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_viewertrainees.h 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_viewerinstructors.h 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_editorinstructors.h 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_dialogeditinstructor.h 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_dialogauthorizationinstructor.h 325fc9931da2ad77
|
||||
18 49 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/tasks/ui_taskswidget.h 325fc9931da2ad77
|
||||
13 45 0 CMakeFiles/InstructorsAndTrainees_autogen 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/mocs_compilation.cpp 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/include/ui_instructorsandtraineeswidget.h 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/include/trainees/ui_editortrainees.h 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/include/trainees/ui_dialogeditgroup.h 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/include/trainees/ui_dialogedittrainee.h 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/include/trainees/ui_viewertrainees.h 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/include/instructors/ui_viewerinstructors.h 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/include/instructors/ui_editorinstructors.h 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/include/instructors/ui_dialogeditinstructor.h 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/include/instructors/ui_dialogauthorizationinstructor.h 325fc9931da2ad77
|
||||
13 45 0 InstructorsAndTrainees_autogen/include/tasks/ui_taskswidget.h 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/CMakeFiles/InstructorsAndTrainees_autogen 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/mocs_compilation.cpp 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/ui_instructorsandtraineeswidget.h 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_editortrainees.h 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_dialogeditgroup.h 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_dialogedittrainee.h 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/trainees/ui_viewertrainees.h 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_viewerinstructors.h 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_editorinstructors.h 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_dialogeditinstructor.h 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/instructors/ui_dialogauthorizationinstructor.h 325fc9931da2ad77
|
||||
13 45 0 D:/LMS/DB_IaT/Debug64/InstructorsAndTrainees_autogen/include/tasks/ui_taskswidget.h 325fc9931da2ad77
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,38 +1,45 @@
|
||||
# Generated by CMake. Changes will be overwritten.
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/viewertrainees.cpp
|
||||
uic:ui_viewertrainees.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/editortrainees.cpp
|
||||
uic:ui_editortrainees.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/dialogeditgroup.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/instructorsview.h
|
||||
mmc:Q_OBJECT
|
||||
uic:ui_dialogeditgroup.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructorsAndTrainees_global.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/databaseinstructors.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/dialogeditinstructor.cpp
|
||||
uic:ui_dialogeditinstructor.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructorsandtraineeswidget.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/viewertrainees.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructorsAndTrainees_global.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/instructorsview.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/editorinstructors.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/viewerinstructors.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/commonview.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/databasetrainees.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/editorinstructors.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/commonview.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/dialogauthorizationinstructor.cpp
|
||||
uic:ui_dialogauthorizationinstructor.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructorsandtraineeswidget.cpp
|
||||
uic:ui_instructorsandtraineeswidget.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/dialogeditinstructor.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/dialogauthorizationinstructor.cpp
|
||||
uic:ui_dialogauthorizationinstructor.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/computersLocations.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/dialogeditgroup.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/dialogedittrainee.cpp
|
||||
uic:ui_dialogedittrainee.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/instructorsview.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/dialogeditgroup.h
|
||||
mmc:Q_OBJECT
|
||||
uic:ui_dialogeditinstructor.h
|
||||
uic:ui_dialogeditgroup.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/editortrainees.cpp
|
||||
uic:ui_editortrainees.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/dialogauthorizationinstructor.h
|
||||
mmc:Q_OBJECT
|
||||
uic:ui_dialogauthorizationinstructor.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/traineesview.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/databaseinstructors.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/dialogeditinstructor.h
|
||||
mmc:Q_OBJECT
|
||||
uic:ui_dialogeditinstructor.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/computersLocations.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/editortrainees.h
|
||||
mmc:Q_OBJECT
|
||||
@@ -42,20 +49,13 @@ D:/LMS/DB_IaT/InstructorsAndTrainees/tasks/taskswidget.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/traineesview.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/commonview.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/databaseinstructors.h
|
||||
mmc:Q_OBJECT
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/dialogeditinstructor.cpp
|
||||
uic:ui_dialogeditinstructor.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/computersLocations.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/dialogedittrainee.cpp
|
||||
uic:ui_dialogedittrainee.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/dialogeditgroup.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/viewertrainees.cpp
|
||||
uic:ui_viewertrainees.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/databasetrainees.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/viewerinstructors.cpp
|
||||
uic:ui_viewerinstructors.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/tasks/taskswidget.cpp
|
||||
uic:ui_taskswidget.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/editorinstructors.cpp
|
||||
uic:ui_editorinstructors.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/instructorsview.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/trainees/databasetrainees.cpp
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/instructors/viewerinstructors.cpp
|
||||
uic:ui_viewerinstructors.h
|
||||
D:/LMS/DB_IaT/InstructorsAndTrainees/commonview.cpp
|
||||
|
||||
@@ -39,6 +39,9 @@ public:
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
groupBox = new QGroupBox(InstructorsAndTraineesWidget);
|
||||
groupBox->setObjectName(QString::fromUtf8("groupBox"));
|
||||
QFont font;
|
||||
font.setPointSize(10);
|
||||
groupBox->setFont(font);
|
||||
gridLayout_2 = new QGridLayout(groupBox);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
verticalLayout = new QVBoxLayout();
|
||||
|
||||
@@ -51,6 +51,9 @@ public:
|
||||
horizontalLayout_1->setObjectName(QString::fromUtf8("horizontalLayout_1"));
|
||||
groupBox = new QGroupBox(ViewerInstructors);
|
||||
groupBox->setObjectName(QString::fromUtf8("groupBox"));
|
||||
QFont font1;
|
||||
font1.setPointSize(10);
|
||||
groupBox->setFont(font1);
|
||||
gridLayout_2 = new QGridLayout(groupBox);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
@@ -80,10 +83,10 @@ public:
|
||||
__qtreewidgetitem->setText(0, QString::fromUtf8("1"));
|
||||
treeWidget->setHeaderItem(__qtreewidgetitem);
|
||||
treeWidget->setObjectName(QString::fromUtf8("treeWidget"));
|
||||
QFont font1;
|
||||
font1.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font1.setPointSize(10);
|
||||
treeWidget->setFont(font1);
|
||||
QFont font2;
|
||||
font2.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font2.setPointSize(10);
|
||||
treeWidget->setFont(font2);
|
||||
treeWidget->setIconSize(QSize(20, 20));
|
||||
|
||||
horizontalLayout_2->addWidget(treeWidget);
|
||||
|
||||
@@ -51,6 +51,9 @@ public:
|
||||
horizontalLayout_1->setObjectName(QString::fromUtf8("horizontalLayout_1"));
|
||||
groupBox = new QGroupBox(ViewerTrainees);
|
||||
groupBox->setObjectName(QString::fromUtf8("groupBox"));
|
||||
QFont font1;
|
||||
font1.setPointSize(10);
|
||||
groupBox->setFont(font1);
|
||||
gridLayout_2 = new QGridLayout(groupBox);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
@@ -80,10 +83,10 @@ public:
|
||||
__qtreewidgetitem->setText(0, QString::fromUtf8("1"));
|
||||
treeWidget->setHeaderItem(__qtreewidgetitem);
|
||||
treeWidget->setObjectName(QString::fromUtf8("treeWidget"));
|
||||
QFont font1;
|
||||
font1.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font1.setPointSize(10);
|
||||
treeWidget->setFont(font1);
|
||||
QFont font2;
|
||||
font2.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font2.setPointSize(10);
|
||||
treeWidget->setFont(font2);
|
||||
treeWidget->setIconSize(QSize(20, 20));
|
||||
treeWidget->setColumnCount(1);
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 4.11.1, 2024-11-01T11:44:20. -->
|
||||
<!-- Written by QtCreator 4.11.1, 2024-11-02T13:43:21. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
|
||||
@@ -33,8 +33,18 @@ bool DataBaseInstructors::AuthorizationInstructor(QString login, QString passwor
|
||||
|
||||
if(listOfInstructors[i].getLogin() == login && listOfInstructors[i].getPassword() == password)
|
||||
{
|
||||
listOfInstructors[i].setLoggedIn(true);
|
||||
return true;
|
||||
Instructor instructor = listOfInstructors[i];
|
||||
instructor.setLoggedIn(true);
|
||||
|
||||
bool result = dbLMS->updateInstructor(instructor);
|
||||
|
||||
if(result)
|
||||
{
|
||||
LoadInstructorsPSQL();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@@ -45,13 +55,23 @@ bool DataBaseInstructors::deAuthorizationInstructor(QString login)
|
||||
//Инструкторы
|
||||
for(int i = 0; i < listOfInstructors.count(); i++)
|
||||
{
|
||||
//if(listOfInstructors[i].getArchived())
|
||||
//continue;
|
||||
if(listOfInstructors[i].getArchived())
|
||||
continue;
|
||||
|
||||
if(listOfInstructors[i].getLogin() == login)
|
||||
{
|
||||
listOfInstructors[i].setLoggedIn(false);
|
||||
return true;
|
||||
Instructor instructor = listOfInstructors[i];
|
||||
instructor.setLoggedIn(false);
|
||||
|
||||
bool result = dbLMS->updateInstructor(instructor);
|
||||
|
||||
if(result)
|
||||
{
|
||||
LoadInstructorsPSQL();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@@ -131,46 +151,6 @@ void DataBaseInstructors::deleteInstructor(QString name)
|
||||
}
|
||||
}
|
||||
|
||||
void DataBaseInstructors::toArchiveInstructor(QString name)
|
||||
{
|
||||
//Инструкторы
|
||||
for(int i = 0; i < listOfInstructors.count(); i++)
|
||||
{
|
||||
if(listOfInstructors[i].getName() == name)
|
||||
if(! listOfInstructors[i].getArchived())
|
||||
{
|
||||
Instructor instructor = listOfInstructors[i];
|
||||
instructor.setArchived(true);
|
||||
|
||||
bool result = dbLMS->updateInstructor(instructor);
|
||||
|
||||
if(result)
|
||||
LoadInstructorsPSQL();
|
||||
//listOfInstructors[i].setArchived(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DataBaseInstructors::fromeArchiveInstructor(QString name)
|
||||
{
|
||||
//Инструкторы
|
||||
for(int i = 0; i < listOfInstructors.count(); i++)
|
||||
{
|
||||
if(listOfInstructors[i].getName() == name)
|
||||
if(listOfInstructors[i].getArchived())
|
||||
{
|
||||
Instructor instructor = listOfInstructors[i];
|
||||
instructor.setArchived(false);
|
||||
|
||||
bool result = dbLMS->updateInstructor(instructor);
|
||||
|
||||
if(result)
|
||||
LoadInstructorsPSQL();
|
||||
//listOfInstructors[i].setArchived(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool DataBaseInstructors::editInstructor(QString name, Instructor instructor)
|
||||
{
|
||||
//Инструкторы
|
||||
@@ -181,7 +161,7 @@ bool DataBaseInstructors::editInstructor(QString name, Instructor instructor)
|
||||
if( (!checkExistNameInstructor(instructor.getName()) || instructor.getName() == name) &&
|
||||
(!checkExistLoginInstructor(instructor.getLogin()) || instructor.getLogin() == listOfInstructors[i].getLogin()) )
|
||||
{
|
||||
instructor.setID(listOfInstructors[i].getID());
|
||||
//instructor.setID(listOfInstructors[i].getID());
|
||||
|
||||
bool result = dbLMS->updateInstructor(instructor);
|
||||
|
||||
|
||||
@@ -32,8 +32,6 @@ public:
|
||||
|
||||
QString newInstructor();
|
||||
void deleteInstructor(QString name);
|
||||
void toArchiveInstructor(QString name);
|
||||
void fromeArchiveInstructor(QString name);
|
||||
bool editInstructor(QString name, Instructor instructor);
|
||||
|
||||
bool isAdmin(QString name);
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
DialogEditInstructor::DialogEditInstructor(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::DialogEditInstructor)
|
||||
ui(new Ui::DialogEditInstructor),
|
||||
instructorInput()
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
@@ -15,9 +16,12 @@ DialogEditInstructor::~DialogEditInstructor()
|
||||
|
||||
void DialogEditInstructor::setInstructor(Instructor instructor)
|
||||
{
|
||||
instructorInput = instructor;
|
||||
|
||||
ui->editName ->setText(instructor.getName());
|
||||
ui->editLogin->setText(instructor.getLogin());
|
||||
ui->editPassword->setText(instructor.getPassword());
|
||||
|
||||
ui->checkIsAdmin->setChecked(instructor.getIsAdmin());
|
||||
ui->checkArchived->setChecked(instructor.getArchived());
|
||||
ui->checkLoggedIn->setChecked(instructor.getLoggedIn());
|
||||
@@ -30,10 +34,12 @@ void DialogEditInstructor::setInstructor(Instructor instructor)
|
||||
|
||||
Instructor DialogEditInstructor::getInstructor()
|
||||
{
|
||||
Instructor instructor;
|
||||
Instructor instructor = instructorInput;
|
||||
|
||||
instructor.setName(ui->editName->text());
|
||||
instructor.setLogin(ui->editLogin->text());
|
||||
instructor.setPassword(ui->editPassword->text());
|
||||
|
||||
instructor.setIsAdmin(ui->checkIsAdmin->isChecked());
|
||||
instructor.setArchived(ui->checkArchived->isChecked());
|
||||
instructor.setLoggedIn(ui->checkLoggedIn->isChecked());
|
||||
|
||||
@@ -22,6 +22,8 @@ public:
|
||||
|
||||
private:
|
||||
Ui::DialogEditInstructor *ui;
|
||||
|
||||
Instructor instructorInput;
|
||||
};
|
||||
|
||||
#endif // DIALOGEDITINSTRUCTOR_H
|
||||
|
||||
@@ -66,18 +66,28 @@ void EditorInstructors::on_btnToOrFromArchive_clicked()
|
||||
|
||||
QString name = treeItemCurrent->text(0);
|
||||
|
||||
if(dbInstructors->isArchived(name))
|
||||
Instructor instructor = dbInstructors->getInstructor(name);
|
||||
|
||||
if(instructor.getArchived())
|
||||
{//Архивный
|
||||
dbInstructors->fromeArchiveInstructor(name);
|
||||
loadInstructorsFromDB();
|
||||
setCurrentInstructor(name);
|
||||
instructor.setArchived(false);
|
||||
if(dbInstructors->editInstructor(name, instructor))
|
||||
{
|
||||
loadInstructorsFromDB();
|
||||
setCurrentInstructor(instructor.getName());
|
||||
}
|
||||
}
|
||||
else
|
||||
{//Не Архивный
|
||||
dbInstructors->toArchiveInstructor(name);
|
||||
loadInstructorsFromDB();
|
||||
if(archiveVisible)
|
||||
setCurrentInstructor(name);
|
||||
instructor.setArchived(true);
|
||||
if(dbInstructors->editInstructor(name, instructor))
|
||||
{
|
||||
if(!archiveVisible)
|
||||
ui->btnArchive->click();
|
||||
|
||||
loadInstructorsFromDB();
|
||||
setCurrentInstructor(instructor.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,9 +10,9 @@ namespace Ui {
|
||||
class EditorInstructors;
|
||||
}
|
||||
|
||||
//Диалог для просмотра и управления БД Инструкторов
|
||||
//Виджет для редактирования БД Инструкторов
|
||||
|
||||
class EditorInstructors : /*public QDialog,*/ public InstructorsView
|
||||
class EditorInstructors : public InstructorsView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
@@ -20,14 +20,14 @@ void InstructorsView::preparationTreeWidget(QTreeWidget* tree)
|
||||
|
||||
reSetHeadTreeWidget();
|
||||
|
||||
treeWidget->header()->setStyleSheet(QStringLiteral("font-size: 12pt;"));
|
||||
treeWidget->header()->setStyleSheet(QStringLiteral("font-size: 10pt;"));
|
||||
|
||||
treeWidget->setColumnWidth(0, 200);
|
||||
treeWidget->setColumnWidth(1, 130);
|
||||
treeWidget->setColumnWidth(2, 130);
|
||||
treeWidget->setColumnWidth(3, 130);
|
||||
treeWidget->setColumnWidth(4, 130);
|
||||
treeWidget->setColumnWidth(5, 130);
|
||||
treeWidget->setColumnWidth(0, 250);
|
||||
treeWidget->setColumnWidth(1, 100);
|
||||
treeWidget->setColumnWidth(2, 100);
|
||||
treeWidget->setColumnWidth(3, 100);
|
||||
treeWidget->setColumnWidth(4, 80);
|
||||
treeWidget->setColumnWidth(5, 80);
|
||||
|
||||
if(typeView == TypeView::onlyView)
|
||||
{//onlyView
|
||||
|
||||
@@ -12,7 +12,7 @@ class ViewerInstructors;
|
||||
|
||||
//Виджет только для просмотра БД Инструкторов
|
||||
|
||||
class INSTRUCTORSANDTRAINEES_EXPORT ViewerInstructors : /*public QWidget,*/ public InstructorsView
|
||||
class INSTRUCTORSANDTRAINEES_EXPORT ViewerInstructors : public InstructorsView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
@@ -23,6 +23,11 @@
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_1">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Instructors</string>
|
||||
</property>
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
InstructorsAndTraineesWidget::InstructorsAndTraineesWidget(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::InstructorsAndTraineesWidget),
|
||||
adminMode(false)
|
||||
adminMode(false),
|
||||
loginInstructorLoggedIn(QStringLiteral(""))
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
@@ -16,11 +17,7 @@ InstructorsAndTraineesWidget::InstructorsAndTraineesWidget(QWidget *parent) :
|
||||
dataBaseInstructors = new DataBaseInstructors(dbLMS);
|
||||
|
||||
//Авторизация Инструктора (Администратора)
|
||||
while(! authorizationInstructor(this))
|
||||
{
|
||||
QMessageBox::warning(this, tr("Instructor authorization"), tr("Invalid login or password!"));
|
||||
};
|
||||
QMessageBox::information(this, tr("Instructor authorization"), tr("Successfully!"));
|
||||
authorizationInstructorLocal(this);
|
||||
|
||||
m_viewerTrainees = new ViewerTrainees(dataBaseTrainees, adminMode);
|
||||
m_viewerInstructors = new ViewerInstructors(dataBaseInstructors, adminMode);
|
||||
@@ -28,12 +25,14 @@ InstructorsAndTraineesWidget::InstructorsAndTraineesWidget(QWidget *parent) :
|
||||
ui->verticalLayout->addWidget(m_viewerTrainees);
|
||||
ui->verticalLayout->addWidget(m_viewerInstructors);
|
||||
|
||||
m_viewerTrainees->setMinimumSize(800, 800);
|
||||
m_viewerInstructors->setMinimumSize(800, 300);
|
||||
m_viewerTrainees->setMinimumSize(1000, 800);
|
||||
m_viewerInstructors->setMinimumSize(1000, 300);
|
||||
}
|
||||
|
||||
InstructorsAndTraineesWidget::~InstructorsAndTraineesWidget()
|
||||
{
|
||||
deAuthorizationInstructor(loginInstructorLoggedIn);
|
||||
|
||||
delete m_viewerInstructors;
|
||||
delete m_viewerTrainees;
|
||||
delete dataBaseInstructors;
|
||||
@@ -42,35 +41,55 @@ InstructorsAndTraineesWidget::~InstructorsAndTraineesWidget()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
bool InstructorsAndTraineesWidget::authorizationInstructor(QWidget* parent)
|
||||
bool InstructorsAndTraineesWidget::authorizationInstructorLocal(QWidget* parent)
|
||||
{
|
||||
DialogAuthorizationInstructor dlg(parent);
|
||||
dlg.setWindowTitle(tr("Instructor authorithation"));
|
||||
|
||||
switch( dlg.exec() )
|
||||
do
|
||||
{
|
||||
case QDialog::Accepted:
|
||||
{
|
||||
QString login = dlg.getLogin();
|
||||
QString password = dlg.getPassword();
|
||||
|
||||
if(dataBaseInstructors->AuthorizationInstructor(login, password))
|
||||
switch( dlg.exec() )
|
||||
{
|
||||
if(login == QStringLiteral("admin"))
|
||||
adminMode = true;
|
||||
return true;
|
||||
case QDialog::Accepted:
|
||||
{
|
||||
QString login = dlg.getLogin();
|
||||
QString password = dlg.getPassword();
|
||||
|
||||
if(dataBaseInstructors->AuthorizationInstructor(login, password))
|
||||
{
|
||||
loginInstructorLoggedIn = login;
|
||||
|
||||
if(login == QStringLiteral("admin"))
|
||||
adminMode = true;
|
||||
|
||||
QMessageBox::information(parent, tr("Instructor authorization"), tr("Successfully!"));
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
QMessageBox::warning(parent, tr("Instructor authorization"), tr("Invalid login or password!"));
|
||||
|
||||
break;
|
||||
}
|
||||
case QDialog::Rejected:
|
||||
return false;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
//break;
|
||||
}
|
||||
case QDialog::Rejected:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
while(true);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool InstructorsAndTraineesWidget::authorizationCompleted()
|
||||
{
|
||||
if(loginInstructorLoggedIn == QStringLiteral(""))
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
bool InstructorsAndTraineesWidget::authorizationTrainee(QString login, QString password, QString learnClass = QStringLiteral(""), QString computer = QStringLiteral(""))
|
||||
{
|
||||
return dataBaseTrainees->AuthorizationTrainee(login, password, learnClass, computer);
|
||||
@@ -81,7 +100,7 @@ bool InstructorsAndTraineesWidget::deAuthorizationTrainee(QString login)
|
||||
return dataBaseTrainees->deAuthorizationTrainee(login);
|
||||
}
|
||||
|
||||
bool InstructorsAndTraineesWidget::authorizationInstructor(QString login, QString password)
|
||||
bool InstructorsAndTraineesWidget::authorizationInstructorLocal(QString login, QString password)
|
||||
{
|
||||
return dataBaseInstructors->AuthorizationInstructor(login, password);
|
||||
}
|
||||
|
||||
@@ -22,14 +22,15 @@ public:
|
||||
|
||||
public:
|
||||
//Авторизация инструктора локальная
|
||||
bool authorizationInstructor(QWidget* parent = nullptr);
|
||||
bool authorizationInstructorLocal(QWidget* parent = nullptr);
|
||||
bool authorizationCompleted();
|
||||
|
||||
//Авторизация обучаемого на клиенте
|
||||
bool authorizationTrainee(QString login, QString password, QString learnClass, QString computer);
|
||||
bool deAuthorizationTrainee(QString login);
|
||||
|
||||
//Авторизация инструктора на клиенте
|
||||
bool authorizationInstructor(QString login, QString password);
|
||||
bool authorizationInstructorLocal(QString login, QString password);
|
||||
bool deAuthorizationInstructor(QString login);
|
||||
|
||||
private:
|
||||
@@ -44,6 +45,7 @@ private:
|
||||
ViewerInstructors* m_viewerInstructors;
|
||||
|
||||
bool adminMode;
|
||||
QString loginInstructorLoggedIn;
|
||||
};
|
||||
|
||||
#endif // INSTRUCTORSANDTRAINEESWIDGET_H
|
||||
|
||||
@@ -18,6 +18,11 @@
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Database LMS</string>
|
||||
</property>
|
||||
|
||||
@@ -29,7 +29,7 @@ void TasksWidget::viewListTasksForTrainee(QString login)
|
||||
{
|
||||
QStringList listTasks;
|
||||
|
||||
listTasks = pDbTrainees->getWhatItDoes(login);
|
||||
listTasks = pDbTrainees->getTasks(login);
|
||||
|
||||
ui->listWidgetTasks->clear();
|
||||
ui->listWidgetTasks->addItems(listTasks);
|
||||
|
||||
@@ -46,10 +46,20 @@ bool DataBaseTrainees::AuthorizationTrainee(QString login, QString password, QSt
|
||||
|
||||
if(listOfTrainees[i].getLogin() == login && listOfTrainees[i].getPassword() == password)
|
||||
{
|
||||
listOfTrainees[i].setLoggedIn(true);
|
||||
listOfTrainees[i].setLearnClass(learnClass);
|
||||
listOfTrainees[i].setComputer(computer);
|
||||
return true;
|
||||
Trainee trainee = listOfTrainees[i];
|
||||
trainee.setLoggedIn(true);
|
||||
trainee.setLearnClass(learnClass);
|
||||
trainee.setComputer(computer);
|
||||
|
||||
bool result = dbLMS->updateTrainee(trainee);
|
||||
|
||||
if(result)
|
||||
{
|
||||
LoadTraineesGroupsPSQL();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@@ -60,42 +70,54 @@ bool DataBaseTrainees::deAuthorizationTrainee(QString login)
|
||||
//Обучаемые
|
||||
for(int i = 0; i < listOfTrainees.count(); i++)
|
||||
{
|
||||
//if(listOfTrainees[i].getArchived())
|
||||
//continue;
|
||||
if(listOfTrainees[i].getArchived())
|
||||
continue;
|
||||
|
||||
if(listOfTrainees[i].getLogin() == login)
|
||||
{
|
||||
listOfTrainees[i].setLoggedIn(false);
|
||||
listOfTrainees[i].setLearnClass(QStringLiteral(""));
|
||||
listOfTrainees[i].setComputer(QStringLiteral(""));
|
||||
return true;
|
||||
Trainee trainee = listOfTrainees[i];
|
||||
trainee.setLoggedIn(false);
|
||||
trainee.setLearnClass(QStringLiteral(""));
|
||||
trainee.setComputer(QStringLiteral(""));
|
||||
|
||||
bool result = dbLMS->updateTrainee(trainee);
|
||||
|
||||
if(result)
|
||||
{
|
||||
LoadTraineesGroupsPSQL();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void DataBaseTrainees::setWhatItDoes(QString login, QString whatItDoes)
|
||||
void DataBaseTrainees::setTasks(QString login, QStringList tasks)
|
||||
{
|
||||
//Обучаемые
|
||||
for(int i = 0; i < listOfTrainees.count(); i++)
|
||||
{
|
||||
if(listOfTrainees[i].getLogin() == login)
|
||||
listOfTrainees[i].setWhatItDoes(whatItDoes);
|
||||
listOfTrainees[i].setTasks(tasks);
|
||||
}
|
||||
}
|
||||
|
||||
QStringList DataBaseTrainees::getWhatItDoes(QString login)
|
||||
QStringList DataBaseTrainees::getTasks(QString login)
|
||||
{
|
||||
QString whatItDoes = QStringLiteral("");
|
||||
QStringList tasks;
|
||||
|
||||
//Обучаемые
|
||||
for(int i = 0; i < listOfTrainees.count(); i++)
|
||||
{
|
||||
if(listOfTrainees[i].getLogin() == login)
|
||||
whatItDoes = listOfTrainees[i].getWhatItDoes();
|
||||
{
|
||||
tasks = listOfTrainees[i].getTasks();
|
||||
}
|
||||
}
|
||||
|
||||
return whatItDoes.split(QStringLiteral(";"));
|
||||
return tasks;
|
||||
}
|
||||
|
||||
QString DataBaseTrainees::getNameTraineeOnComputer(QString computer)
|
||||
@@ -230,17 +252,16 @@ bool DataBaseTrainees::deleteGroup(QString name)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool DataBaseTrainees::editGroup(QString name, QString newName)
|
||||
bool DataBaseTrainees::editGroup(QString name, Group group)
|
||||
{
|
||||
//Группы
|
||||
for(int i = 0; i < listOfGroups.count(); i++)
|
||||
{
|
||||
if(listOfGroups[i].getName() == name)
|
||||
{
|
||||
if(!checkExistNameGroup(newName) || newName == name)
|
||||
if(!checkExistNameGroup(group.getName()) || group.getName() == name)
|
||||
{
|
||||
Group group = listOfGroups[i];
|
||||
group.setName(newName);
|
||||
//group.setID(listOfGroups[i].getID());
|
||||
|
||||
bool result = dbLMS->updateGroup(group);
|
||||
|
||||
@@ -280,7 +301,7 @@ QString DataBaseTrainees::newTrainee(QString nameGroup)
|
||||
trainee.setComputer(QStringLiteral(""));
|
||||
trainee.setArchived(false);
|
||||
trainee.setLoggedIn(false);
|
||||
trainee.setWhatItDoes(QStringLiteral(""));
|
||||
//trainee.setWhatItDoes(QStringLiteral(""));
|
||||
|
||||
bool result = dbLMS->insertTrainee(trainee);
|
||||
|
||||
@@ -314,46 +335,6 @@ void DataBaseTrainees::deleteTrainee(QString name)
|
||||
}
|
||||
}
|
||||
|
||||
void DataBaseTrainees::toArchiveTrainee(QString name)
|
||||
{
|
||||
//Обучаемые
|
||||
for(int i = 0; i < listOfTrainees.count(); i++)
|
||||
{
|
||||
if(listOfTrainees[i].getName() == name)
|
||||
if(! listOfTrainees[i].getArchived())
|
||||
{
|
||||
Trainee trainee = listOfTrainees[i];
|
||||
trainee.setArchived(true);
|
||||
|
||||
bool result = dbLMS->updateTrainee(trainee);
|
||||
|
||||
if(result)
|
||||
LoadTraineesGroupsPSQL();
|
||||
//listOfTrainees[i].setArchived(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DataBaseTrainees::fromeArchiveTrainee(QString name)
|
||||
{
|
||||
//Обучаемые
|
||||
for(int i = 0; i < listOfTrainees.count(); i++)
|
||||
{
|
||||
if(listOfTrainees[i].getName() == name)
|
||||
if(listOfTrainees[i].getArchived())
|
||||
{
|
||||
Trainee trainee = listOfTrainees[i];
|
||||
trainee.setArchived(false);
|
||||
|
||||
bool result = dbLMS->updateTrainee(trainee);
|
||||
|
||||
if(result)
|
||||
LoadTraineesGroupsPSQL();
|
||||
//listOfTrainees[i].setArchived(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool DataBaseTrainees::editTrainee(QString name, Trainee trainee)
|
||||
{
|
||||
//Обучаемые
|
||||
@@ -364,7 +345,7 @@ bool DataBaseTrainees::editTrainee(QString name, Trainee trainee)
|
||||
if( (!checkExistNameTrainee(trainee.getName()) || trainee.getName() == name) &&
|
||||
(!checkExistLoginTrainee(trainee.getLogin()) || trainee.getLogin() == listOfTrainees[i].getLogin()) )
|
||||
{
|
||||
trainee.setID(listOfTrainees[i].getID());
|
||||
//trainee.setID(listOfTrainees[i].getID());
|
||||
|
||||
bool result = dbLMS->updateTrainee(trainee);
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@ public:
|
||||
bool AuthorizationTrainee(QString login, QString password, QString learnClass, QString computer);
|
||||
bool deAuthorizationTrainee(QString login);
|
||||
|
||||
void setWhatItDoes(QString login, QString whatItDoes);
|
||||
QStringList getWhatItDoes(QString login);
|
||||
void setTasks(QString login, QStringList tasks);
|
||||
QStringList getTasks(QString login);
|
||||
|
||||
QString getNameTraineeOnComputer(QString computer);
|
||||
Trainee getTraineeOnComputer(QString computer);
|
||||
@@ -43,12 +43,10 @@ public:
|
||||
|
||||
QString newGroup();
|
||||
bool deleteGroup(QString name);
|
||||
bool editGroup(QString name, QString newName);
|
||||
bool editGroup(QString name, Group group);
|
||||
|
||||
QString newTrainee(QString nameGroup);
|
||||
void deleteTrainee(QString name);
|
||||
void toArchiveTrainee(QString name);
|
||||
void fromeArchiveTrainee(QString name);
|
||||
bool editTrainee(QString name, Trainee trainee);
|
||||
|
||||
bool isArchived(QString name);
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
DialogEditGroup::DialogEditGroup(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::DialogEditGroup)
|
||||
ui(new Ui::DialogEditGroup),
|
||||
groupInput()
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
@@ -12,3 +13,19 @@ DialogEditGroup::~DialogEditGroup()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void DialogEditGroup::setGroup(Group group)
|
||||
{
|
||||
groupInput = group;
|
||||
|
||||
ui->editName->setText(group.getName());
|
||||
}
|
||||
|
||||
Group DialogEditGroup::getGroup()
|
||||
{
|
||||
Group group = groupInput;
|
||||
|
||||
group.setName(ui->editName->text());
|
||||
|
||||
return group;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <QDialog>
|
||||
#include "ui_dialogeditgroup.h"
|
||||
#include "computersLocations.h"
|
||||
#include "group.h"
|
||||
|
||||
namespace Ui {
|
||||
class DialogEditGroup;
|
||||
@@ -17,18 +18,13 @@ public:
|
||||
explicit DialogEditGroup(QWidget *parent = nullptr);
|
||||
~DialogEditGroup();
|
||||
|
||||
void setName(QString name)
|
||||
{
|
||||
ui->editName->setText(name);
|
||||
}
|
||||
|
||||
QString getName()
|
||||
{
|
||||
return ui->editName->text();
|
||||
}
|
||||
void setGroup(Group group);
|
||||
Group getGroup();
|
||||
|
||||
private:
|
||||
Ui::DialogEditGroup *ui;
|
||||
|
||||
Group groupInput;
|
||||
};
|
||||
|
||||
#endif // DIALOGEDITGROUP_H
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
DialogEditTrainee::DialogEditTrainee(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::DialogEditTrainee),
|
||||
nameGroup()
|
||||
traineeInput()
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
@@ -16,29 +16,26 @@ DialogEditTrainee::~DialogEditTrainee()
|
||||
|
||||
void DialogEditTrainee::setTrainee(Trainee trainee)
|
||||
{
|
||||
traineeInput = trainee;
|
||||
|
||||
ui->editName->setText(trainee.getName());
|
||||
ui->editLogin->setText(trainee.getLogin());
|
||||
ui->editPassword->setText(trainee.getPassword());
|
||||
|
||||
ui->checkArchived->setChecked(trainee.getArchived());
|
||||
ui->checkLoggedIn->setChecked(trainee.getLoggedIn());
|
||||
|
||||
nameGroup = trainee.getGroup();
|
||||
}
|
||||
|
||||
Trainee DialogEditTrainee::getTrainee()
|
||||
{
|
||||
Trainee trainee;
|
||||
Trainee trainee = traineeInput;
|
||||
|
||||
trainee.setName(ui->editName->text());
|
||||
trainee.setLogin(ui->editLogin->text());
|
||||
trainee.setPassword(ui->editPassword->text());
|
||||
trainee.setLearnClass(QStringLiteral(""));
|
||||
trainee.setComputer(QStringLiteral(""));
|
||||
|
||||
trainee.setArchived(ui->checkArchived->isChecked());
|
||||
trainee.setLoggedIn(ui->checkLoggedIn->isChecked());
|
||||
trainee.setWhatItDoes(QStringLiteral(""));
|
||||
|
||||
trainee.setGroup(nameGroup);
|
||||
|
||||
return trainee;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
private:
|
||||
Ui::DialogEditTrainee *ui;
|
||||
|
||||
QString nameGroup;
|
||||
Trainee traineeInput;
|
||||
};
|
||||
|
||||
#endif // DIALOGEDITTRAINEE_H
|
||||
|
||||
@@ -100,21 +100,28 @@ void EditorTrainees::on_btnToOrFromArchiveTrainee_clicked()
|
||||
|
||||
QString name = treeItemCurrent->text(0);
|
||||
|
||||
if(dbTrainees->isArchived(name))
|
||||
Trainee trainee = dbTrainees->getTrainee(name);
|
||||
|
||||
if(trainee.getArchived())
|
||||
{//Архивный
|
||||
dbTrainees->fromeArchiveTrainee(name);
|
||||
loadTraineesFromDB();
|
||||
setCurrentTrainee(name);
|
||||
trainee.setArchived(false);
|
||||
if(dbTrainees->editTrainee(name, trainee))
|
||||
{
|
||||
loadTraineesFromDB();
|
||||
setCurrentTrainee(trainee.getName());
|
||||
}
|
||||
}
|
||||
else
|
||||
{//Не Архивный
|
||||
dbTrainees->toArchiveTrainee(name);
|
||||
trainee.setArchived(true);
|
||||
if(dbTrainees->editTrainee(name, trainee))
|
||||
{
|
||||
if(!archiveVisible)
|
||||
ui->btnArchive->click();
|
||||
|
||||
if(!archiveVisible)
|
||||
ui->btnArchive->click();
|
||||
|
||||
loadTraineesFromDB();
|
||||
setCurrentTrainee(name);
|
||||
loadTraineesFromDB();
|
||||
setCurrentTrainee(trainee.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -134,15 +141,16 @@ void EditorTrainees::on_btnEdit_clicked()
|
||||
QString nameGroup = treeItemCurrent->text(0);
|
||||
|
||||
DialogEditGroup dlg(this);
|
||||
dlg.setName(nameGroup);
|
||||
dlg.setGroup(dbTrainees->getGroup(nameGroup));
|
||||
|
||||
switch( dlg.exec() )
|
||||
{
|
||||
case QDialog::Accepted:
|
||||
{
|
||||
if(dbTrainees->editGroup(nameGroup, dlg.getName()))
|
||||
if(dbTrainees->editGroup(nameGroup, dlg.getGroup()))
|
||||
{
|
||||
loadTraineesFromDB();
|
||||
setCurrentGroup(dlg.getName());
|
||||
setCurrentGroup(dlg.getGroup().getName());
|
||||
}
|
||||
else
|
||||
QMessageBox::critical(this, tr("Editing error!"),
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Ui {
|
||||
class EditorTrainees;
|
||||
}
|
||||
|
||||
//Диалог для просмотра и управления БД Обучаемых
|
||||
//Виджет для редактирования БД Обучаемых
|
||||
|
||||
class EditorTrainees : /*public QDialog,*/ public TraineesView
|
||||
{
|
||||
|
||||
@@ -15,31 +15,32 @@ void TraineesView::preparationTreeWidget(QTreeWidget *tree)
|
||||
if(treeWidget == nullptr)
|
||||
return;
|
||||
|
||||
treeWidget->setColumnCount(8);
|
||||
treeWidget->setColumnCount(9);
|
||||
|
||||
reSetHeadTreeWidget();
|
||||
|
||||
treeWidget->header()->setStyleSheet(QStringLiteral("font-size: 12pt;"));
|
||||
treeWidget->header()->setStyleSheet(QStringLiteral("font-size: 10pt;"));
|
||||
|
||||
treeWidget->setColumnWidth(0, 200);
|
||||
treeWidget->setColumnWidth(1, 130);
|
||||
treeWidget->setColumnWidth(2, 130);
|
||||
treeWidget->setColumnWidth(0, 250);
|
||||
treeWidget->setColumnWidth(1, 100);
|
||||
treeWidget->setColumnWidth(2, 100);
|
||||
treeWidget->setColumnWidth(3, 130);
|
||||
treeWidget->setColumnWidth(4, 130);
|
||||
treeWidget->setColumnWidth(5, 130);
|
||||
treeWidget->setColumnWidth(6, 130);
|
||||
treeWidget->setColumnWidth(7, 100);
|
||||
treeWidget->setColumnWidth(6, 80);
|
||||
treeWidget->setColumnWidth(7, 80);
|
||||
treeWidget->setColumnWidth(8, 100);
|
||||
|
||||
if(typeView == TypeView::onlyView)
|
||||
{//onlyView
|
||||
treeWidget->setColumnHidden(1, true);
|
||||
treeWidget->setColumnHidden(2, true);
|
||||
treeWidget->setColumnHidden(5, true);
|
||||
treeWidget->setColumnHidden(7, true);
|
||||
treeWidget->setColumnHidden(6, true);
|
||||
treeWidget->setColumnHidden(8, true);
|
||||
}
|
||||
else
|
||||
{//control
|
||||
treeWidget->setColumnHidden(5, true);
|
||||
treeWidget->setColumnHidden(6, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,32 +75,33 @@ void TraineesView::loadTraineesFromDB()
|
||||
ItemTrainee->setText(2, trainee.getPassword());
|
||||
ItemTrainee->setText(3, trainee.getLearnClass());
|
||||
ItemTrainee->setText(4, trainee.getComputer());
|
||||
ItemTrainee->setText(5, trainee.getIpAddress());
|
||||
|
||||
if(trainee.getArchived())
|
||||
{//Архивный
|
||||
ItemTrainee->setText(5, tr("yes"));
|
||||
ItemTrainee->setText(6, tr("yes"));
|
||||
ItemTrainee->setIcon(0, QIcon(QStringLiteral(":/icons/traineeArchive.png")));
|
||||
setItemColorArchive(ItemTrainee);
|
||||
}
|
||||
else
|
||||
{//Не Архивный
|
||||
ItemTrainee->setText(5, tr("no"));
|
||||
ItemTrainee->setText(6, tr("no"));
|
||||
ItemTrainee->setIcon(0, QIcon(QStringLiteral(":/icons/trainee.png")));
|
||||
setItemColorNoArchive(ItemTrainee);
|
||||
}
|
||||
|
||||
if(trainee.getLoggedIn())
|
||||
{//Залогинен
|
||||
ItemTrainee->setText(6, tr("yes"));
|
||||
ItemTrainee->setIcon(6, QIcon(QStringLiteral(":/icons/circleGreen.png")));
|
||||
ItemTrainee->setText(7, tr("yes"));
|
||||
ItemTrainee->setIcon(7, QIcon(QStringLiteral(":/icons/circleGreen.png")));
|
||||
}
|
||||
else
|
||||
{//Не Залогинен
|
||||
ItemTrainee->setText(6, tr("no"));
|
||||
ItemTrainee->setIcon(6, QIcon(QStringLiteral(":/icons/circleGray.png")));
|
||||
ItemTrainee->setText(7, tr("no"));
|
||||
ItemTrainee->setIcon(7, QIcon(QStringLiteral(":/icons/circleGray.png")));
|
||||
}
|
||||
|
||||
ItemTrainee->setText(7, trainee.getWhatItDoes());
|
||||
ItemTrainee->setText(8, QString(trainee.getTasks().join(QStringLiteral(";"))));
|
||||
|
||||
ItemGroup->addChild(ItemTrainee);
|
||||
|
||||
@@ -129,6 +131,6 @@ void TraineesView::loadTraineesFromDB()
|
||||
|
||||
void TraineesView::reSetHeadTreeWidget()
|
||||
{
|
||||
QStringList listHeaders = {tr("Trainee"), tr("Login"), tr("Password"), tr("Class"), tr("Computer"), tr("Archived"), tr("Logged"), tr("Tasks")};
|
||||
QStringList listHeaders = {tr("Trainee"), tr("Login"), tr("Password"), tr("Class"), tr("Computer"), tr("IP address"), tr("Archived"), tr("Logged"), tr("Tasks")};
|
||||
treeWidget->setHeaderLabels(listHeaders);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class ViewerTrainees;
|
||||
|
||||
//Виджет только для просмотра БД Обучаемых
|
||||
|
||||
class INSTRUCTORSANDTRAINEES_EXPORT ViewerTrainees : /*public QWidget,*/ public TraineesView
|
||||
class INSTRUCTORSANDTRAINEES_EXPORT ViewerTrainees : public TraineesView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
@@ -23,6 +23,11 @@
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_1">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Trainees</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user