├── .gitattributes ├── build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug ├── .qmake.stash ├── Makefile ├── Makefile.Debug ├── Makefile.Release ├── debug │ ├── borrowrecord.o │ ├── database.o │ ├── main.o │ ├── mainwindow.o │ ├── managerinputbooks.o │ ├── managerwindow.o │ ├── moc_borrowrecord.cpp │ ├── moc_borrowrecord.o │ ├── moc_mainwindow.cpp │ ├── moc_mainwindow.o │ ├── moc_managerinputbooks.cpp │ ├── moc_managerinputbooks.o │ ├── moc_managerwindow.cpp │ ├── moc_managerwindow.o │ ├── moc_personalcenter.cpp │ ├── moc_personalcenter.o │ ├── moc_predefs.h │ ├── moc_user_register.cpp │ ├── moc_user_register.o │ ├── moc_userborrowbooks.cpp │ ├── moc_userborrowbooks.o │ ├── moc_userborrowbookssearchresult.cpp │ ├── moc_userborrowbookssearchresult.o │ ├── moc_usermanage.cpp │ ├── moc_usermanage.o │ ├── moc_userretuenbooks.cpp │ ├── moc_userretuenbooks.o │ ├── moc_userreturnbooks.cpp │ ├── moc_userreturnbooks.o │ ├── moc_userwindow.cpp │ ├── moc_userwindow.o │ ├── personalcenter.o │ ├── qrc_images.cpp │ ├── qrc_images.o │ ├── studip.exe │ ├── test.o │ ├── user_register.o │ ├── userborrowbooks.o │ ├── userborrowbookssearchresult.o │ ├── usermanage.o │ ├── userretuenbooks.o │ ├── userreturnbooks.o │ └── userwindow.o ├── object_script.studip.Debug ├── object_script.studip.Release ├── ui_borrowrecord.h ├── ui_mainwindow.h ├── ui_managerinputbooks.h ├── ui_managerwindow.h ├── ui_personalcenter.h ├── ui_user_register.h ├── ui_userborrowbooks.h ├── ui_userborrowbookssearchresult.h ├── ui_usermanage.h ├── ui_userretuenbooks.h ├── ui_userreturnbooks.h └── ui_userwindow.h ├── sql_code ├── book_table_insert.sql ├── borrow_table_insert.sql ├── create_tables.sql └── customer_table_insert.sql ├── studip ├── background.png ├── borrowrecord.cpp ├── borrowrecord.h ├── borrowrecord.ui ├── database.cpp ├── database.h ├── images.qrc ├── images │ ├── background.png │ ├── man.png │ ├── qq.png │ └── woman.png ├── main.cpp ├── mainwindow.cpp ├── mainwindow.h ├── mainwindow.ui ├── managerinputbooks.cpp ├── managerinputbooks.h ├── managerinputbooks.ui ├── managerwindow.cpp ├── managerwindow.h ├── managerwindow.ui ├── personalcenter.cpp ├── personalcenter.h ├── personalcenter.ui ├── studip.pro ├── studip.pro.user ├── test.cpp ├── test.h ├── user_register.cpp ├── user_register.h ├── user_register.ui ├── userborrowbooks.cpp ├── userborrowbooks.h ├── userborrowbooks.ui ├── usermanage.cpp ├── usermanage.h ├── usermanage.ui ├── userreturnbooks.cpp ├── userreturnbooks.h ├── userreturnbooks.ui ├── userwindow.cpp ├── userwindow.h └── userwindow.ui └── 实验报告.docx /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/.qmake.stash: -------------------------------------------------------------------------------- 1 | QMAKE_CXX.QT_COMPILER_STDCXX = 201402L 2 | QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7 3 | QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3 4 | QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0 5 | QMAKE_CXX.COMPILER_MACROS = \ 6 | QT_COMPILER_STDCXX \ 7 | QMAKE_GCC_MAJOR_VERSION \ 8 | QMAKE_GCC_MINOR_VERSION \ 9 | QMAKE_GCC_PATCH_VERSION 10 | QMAKE_CXX.INCDIRS = \ 11 | D:/Qt2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++ \ 12 | D:/Qt2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/x86_64-w64-mingw32 \ 13 | D:/Qt2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/backward \ 14 | D:/Qt2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include \ 15 | D:/Qt2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include-fixed \ 16 | D:/Qt2/Tools/mingw730_64/x86_64-w64-mingw32/include 17 | QMAKE_CXX.LIBDIRS = \ 18 | D:/Qt2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0 \ 19 | D:/Qt2/Tools/mingw730_64/lib/gcc \ 20 | D:/Qt2/Tools/mingw730_64/x86_64-w64-mingw32/lib \ 21 | D:/Qt2/Tools/mingw730_64/lib 22 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/borrowrecord.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/borrowrecord.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/database.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/database.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/main.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/mainwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/mainwindow.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/managerinputbooks.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/managerinputbooks.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/managerwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/managerwindow.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_borrowrecord.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'borrowrecord.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/borrowrecord.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'borrowrecord.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_BorrowRecord_t { 25 | QByteArrayData data[1]; 26 | char stringdata0[13]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_BorrowRecord_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_BorrowRecord_t qt_meta_stringdata_BorrowRecord = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 12) // "BorrowRecord" 36 | 37 | }, 38 | "BorrowRecord" 39 | }; 40 | #undef QT_MOC_LITERAL 41 | 42 | static const uint qt_meta_data_BorrowRecord[] = { 43 | 44 | // content: 45 | 8, // revision 46 | 0, // classname 47 | 0, 0, // classinfo 48 | 0, 0, // methods 49 | 0, 0, // properties 50 | 0, 0, // enums/sets 51 | 0, 0, // constructors 52 | 0, // flags 53 | 0, // signalCount 54 | 55 | 0 // eod 56 | }; 57 | 58 | void BorrowRecord::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 59 | { 60 | Q_UNUSED(_o); 61 | Q_UNUSED(_id); 62 | Q_UNUSED(_c); 63 | Q_UNUSED(_a); 64 | } 65 | 66 | QT_INIT_METAOBJECT const QMetaObject BorrowRecord::staticMetaObject = { { 67 | QMetaObject::SuperData::link(), 68 | qt_meta_stringdata_BorrowRecord.data, 69 | qt_meta_data_BorrowRecord, 70 | qt_static_metacall, 71 | nullptr, 72 | nullptr 73 | } }; 74 | 75 | 76 | const QMetaObject *BorrowRecord::metaObject() const 77 | { 78 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 79 | } 80 | 81 | void *BorrowRecord::qt_metacast(const char *_clname) 82 | { 83 | if (!_clname) return nullptr; 84 | if (!strcmp(_clname, qt_meta_stringdata_BorrowRecord.stringdata0)) 85 | return static_cast(this); 86 | return QWidget::qt_metacast(_clname); 87 | } 88 | 89 | int BorrowRecord::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 90 | { 91 | _id = QWidget::qt_metacall(_c, _id, _a); 92 | return _id; 93 | } 94 | QT_WARNING_POP 95 | QT_END_MOC_NAMESPACE 96 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_borrowrecord.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_borrowrecord.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_mainwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'mainwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/mainwindow.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'mainwindow.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_MainWindow_t { 25 | QByteArrayData data[4]; 26 | char stringdata0[31]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 10), // "MainWindow" 36 | QT_MOC_LITERAL(1, 11, 5), // "login" 37 | QT_MOC_LITERAL(2, 17, 0), // "" 38 | QT_MOC_LITERAL(3, 18, 12) // "userRegester" 39 | 40 | }, 41 | "MainWindow\0login\0\0userRegester" 42 | }; 43 | #undef QT_MOC_LITERAL 44 | 45 | static const uint qt_meta_data_MainWindow[] = { 46 | 47 | // content: 48 | 8, // revision 49 | 0, // classname 50 | 0, 0, // classinfo 51 | 2, 14, // methods 52 | 0, 0, // properties 53 | 0, 0, // enums/sets 54 | 0, 0, // constructors 55 | 0, // flags 56 | 0, // signalCount 57 | 58 | // slots: name, argc, parameters, tag, flags 59 | 1, 0, 24, 2, 0x0a /* Public */, 60 | 3, 0, 25, 2, 0x0a /* Public */, 61 | 62 | // slots: parameters 63 | QMetaType::Void, 64 | QMetaType::Void, 65 | 66 | 0 // eod 67 | }; 68 | 69 | void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 70 | { 71 | if (_c == QMetaObject::InvokeMetaMethod) { 72 | auto *_t = static_cast(_o); 73 | Q_UNUSED(_t) 74 | switch (_id) { 75 | case 0: _t->login(); break; 76 | case 1: _t->userRegester(); break; 77 | default: ; 78 | } 79 | } 80 | Q_UNUSED(_a); 81 | } 82 | 83 | QT_INIT_METAOBJECT const QMetaObject MainWindow::staticMetaObject = { { 84 | QMetaObject::SuperData::link(), 85 | qt_meta_stringdata_MainWindow.data, 86 | qt_meta_data_MainWindow, 87 | qt_static_metacall, 88 | nullptr, 89 | nullptr 90 | } }; 91 | 92 | 93 | const QMetaObject *MainWindow::metaObject() const 94 | { 95 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 96 | } 97 | 98 | void *MainWindow::qt_metacast(const char *_clname) 99 | { 100 | if (!_clname) return nullptr; 101 | if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0)) 102 | return static_cast(this); 103 | return QMainWindow::qt_metacast(_clname); 104 | } 105 | 106 | int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 107 | { 108 | _id = QMainWindow::qt_metacall(_c, _id, _a); 109 | if (_id < 0) 110 | return _id; 111 | if (_c == QMetaObject::InvokeMetaMethod) { 112 | if (_id < 2) 113 | qt_static_metacall(this, _c, _id, _a); 114 | _id -= 2; 115 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 116 | if (_id < 2) 117 | *reinterpret_cast(_a[0]) = -1; 118 | _id -= 2; 119 | } 120 | return _id; 121 | } 122 | QT_WARNING_POP 123 | QT_END_MOC_NAMESPACE 124 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_mainwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_mainwindow.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_managerinputbooks.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'managerinputbooks.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/managerinputbooks.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'managerinputbooks.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_ManagerInputBooks_t { 25 | QByteArrayData data[4]; 26 | char stringdata0[47]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_ManagerInputBooks_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_ManagerInputBooks_t qt_meta_stringdata_ManagerInputBooks = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 17), // "ManagerInputBooks" 36 | QT_MOC_LITERAL(1, 18, 10), // "inputBooks" 37 | QT_MOC_LITERAL(2, 29, 0), // "" 38 | QT_MOC_LITERAL(3, 30, 16) // "cancelInoutBooks" 39 | 40 | }, 41 | "ManagerInputBooks\0inputBooks\0\0" 42 | "cancelInoutBooks" 43 | }; 44 | #undef QT_MOC_LITERAL 45 | 46 | static const uint qt_meta_data_ManagerInputBooks[] = { 47 | 48 | // content: 49 | 8, // revision 50 | 0, // classname 51 | 0, 0, // classinfo 52 | 2, 14, // methods 53 | 0, 0, // properties 54 | 0, 0, // enums/sets 55 | 0, 0, // constructors 56 | 0, // flags 57 | 0, // signalCount 58 | 59 | // slots: name, argc, parameters, tag, flags 60 | 1, 0, 24, 2, 0x08 /* Private */, 61 | 3, 0, 25, 2, 0x08 /* Private */, 62 | 63 | // slots: parameters 64 | QMetaType::Void, 65 | QMetaType::Void, 66 | 67 | 0 // eod 68 | }; 69 | 70 | void ManagerInputBooks::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 71 | { 72 | if (_c == QMetaObject::InvokeMetaMethod) { 73 | auto *_t = static_cast(_o); 74 | Q_UNUSED(_t) 75 | switch (_id) { 76 | case 0: _t->inputBooks(); break; 77 | case 1: _t->cancelInoutBooks(); break; 78 | default: ; 79 | } 80 | } 81 | Q_UNUSED(_a); 82 | } 83 | 84 | QT_INIT_METAOBJECT const QMetaObject ManagerInputBooks::staticMetaObject = { { 85 | QMetaObject::SuperData::link(), 86 | qt_meta_stringdata_ManagerInputBooks.data, 87 | qt_meta_data_ManagerInputBooks, 88 | qt_static_metacall, 89 | nullptr, 90 | nullptr 91 | } }; 92 | 93 | 94 | const QMetaObject *ManagerInputBooks::metaObject() const 95 | { 96 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 97 | } 98 | 99 | void *ManagerInputBooks::qt_metacast(const char *_clname) 100 | { 101 | if (!_clname) return nullptr; 102 | if (!strcmp(_clname, qt_meta_stringdata_ManagerInputBooks.stringdata0)) 103 | return static_cast(this); 104 | return QWidget::qt_metacast(_clname); 105 | } 106 | 107 | int ManagerInputBooks::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 108 | { 109 | _id = QWidget::qt_metacall(_c, _id, _a); 110 | if (_id < 0) 111 | return _id; 112 | if (_c == QMetaObject::InvokeMetaMethod) { 113 | if (_id < 2) 114 | qt_static_metacall(this, _c, _id, _a); 115 | _id -= 2; 116 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 117 | if (_id < 2) 118 | *reinterpret_cast(_a[0]) = -1; 119 | _id -= 2; 120 | } 121 | return _id; 122 | } 123 | QT_WARNING_POP 124 | QT_END_MOC_NAMESPACE 125 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_managerinputbooks.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_managerinputbooks.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_managerwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'managerwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/managerwindow.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'managerwindow.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_ManagerWindow_t { 25 | QByteArrayData data[7]; 26 | char stringdata0[88]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_ManagerWindow_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_ManagerWindow_t qt_meta_stringdata_ManagerWindow = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 13), // "ManagerWindow" 36 | QT_MOC_LITERAL(1, 14, 10), // "inputBooks" 37 | QT_MOC_LITERAL(2, 25, 0), // "" 38 | QT_MOC_LITERAL(3, 26, 12), // "borrowManage" 39 | QT_MOC_LITERAL(4, 39, 11), // "_userManage" 40 | QT_MOC_LITERAL(5, 51, 16), // "returnLastWindow" 41 | QT_MOC_LITERAL(6, 68, 19) // "enterPersonalCenter" 42 | 43 | }, 44 | "ManagerWindow\0inputBooks\0\0borrowManage\0" 45 | "_userManage\0returnLastWindow\0" 46 | "enterPersonalCenter" 47 | }; 48 | #undef QT_MOC_LITERAL 49 | 50 | static const uint qt_meta_data_ManagerWindow[] = { 51 | 52 | // content: 53 | 8, // revision 54 | 0, // classname 55 | 0, 0, // classinfo 56 | 5, 14, // methods 57 | 0, 0, // properties 58 | 0, 0, // enums/sets 59 | 0, 0, // constructors 60 | 0, // flags 61 | 0, // signalCount 62 | 63 | // slots: name, argc, parameters, tag, flags 64 | 1, 0, 39, 2, 0x08 /* Private */, 65 | 3, 0, 40, 2, 0x08 /* Private */, 66 | 4, 0, 41, 2, 0x08 /* Private */, 67 | 5, 0, 42, 2, 0x08 /* Private */, 68 | 6, 0, 43, 2, 0x08 /* Private */, 69 | 70 | // slots: parameters 71 | QMetaType::Void, 72 | QMetaType::Void, 73 | QMetaType::Void, 74 | QMetaType::Void, 75 | QMetaType::Void, 76 | 77 | 0 // eod 78 | }; 79 | 80 | void ManagerWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 81 | { 82 | if (_c == QMetaObject::InvokeMetaMethod) { 83 | auto *_t = static_cast(_o); 84 | Q_UNUSED(_t) 85 | switch (_id) { 86 | case 0: _t->inputBooks(); break; 87 | case 1: _t->borrowManage(); break; 88 | case 2: _t->_userManage(); break; 89 | case 3: _t->returnLastWindow(); break; 90 | case 4: _t->enterPersonalCenter(); break; 91 | default: ; 92 | } 93 | } 94 | Q_UNUSED(_a); 95 | } 96 | 97 | QT_INIT_METAOBJECT const QMetaObject ManagerWindow::staticMetaObject = { { 98 | QMetaObject::SuperData::link(), 99 | qt_meta_stringdata_ManagerWindow.data, 100 | qt_meta_data_ManagerWindow, 101 | qt_static_metacall, 102 | nullptr, 103 | nullptr 104 | } }; 105 | 106 | 107 | const QMetaObject *ManagerWindow::metaObject() const 108 | { 109 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 110 | } 111 | 112 | void *ManagerWindow::qt_metacast(const char *_clname) 113 | { 114 | if (!_clname) return nullptr; 115 | if (!strcmp(_clname, qt_meta_stringdata_ManagerWindow.stringdata0)) 116 | return static_cast(this); 117 | return QWidget::qt_metacast(_clname); 118 | } 119 | 120 | int ManagerWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 121 | { 122 | _id = QWidget::qt_metacall(_c, _id, _a); 123 | if (_id < 0) 124 | return _id; 125 | if (_c == QMetaObject::InvokeMetaMethod) { 126 | if (_id < 5) 127 | qt_static_metacall(this, _c, _id, _a); 128 | _id -= 5; 129 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 130 | if (_id < 5) 131 | *reinterpret_cast(_a[0]) = -1; 132 | _id -= 5; 133 | } 134 | return _id; 135 | } 136 | QT_WARNING_POP 137 | QT_END_MOC_NAMESPACE 138 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_managerwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_managerwindow.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_personalcenter.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'personalcenter.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/personalcenter.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'personalcenter.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_PersonalCenter_t { 25 | QByteArrayData data[4]; 26 | char stringdata0[51]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_PersonalCenter_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_PersonalCenter_t qt_meta_stringdata_PersonalCenter = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 14), // "PersonalCenter" 36 | QT_MOC_LITERAL(1, 15, 17), // "alterInformatioin" 37 | QT_MOC_LITERAL(2, 33, 0), // "" 38 | QT_MOC_LITERAL(3, 34, 16) // "returnLastWindow" 39 | 40 | }, 41 | "PersonalCenter\0alterInformatioin\0\0" 42 | "returnLastWindow" 43 | }; 44 | #undef QT_MOC_LITERAL 45 | 46 | static const uint qt_meta_data_PersonalCenter[] = { 47 | 48 | // content: 49 | 8, // revision 50 | 0, // classname 51 | 0, 0, // classinfo 52 | 2, 14, // methods 53 | 0, 0, // properties 54 | 0, 0, // enums/sets 55 | 0, 0, // constructors 56 | 0, // flags 57 | 0, // signalCount 58 | 59 | // slots: name, argc, parameters, tag, flags 60 | 1, 0, 24, 2, 0x08 /* Private */, 61 | 3, 0, 25, 2, 0x08 /* Private */, 62 | 63 | // slots: parameters 64 | QMetaType::Void, 65 | QMetaType::Void, 66 | 67 | 0 // eod 68 | }; 69 | 70 | void PersonalCenter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 71 | { 72 | if (_c == QMetaObject::InvokeMetaMethod) { 73 | auto *_t = static_cast(_o); 74 | Q_UNUSED(_t) 75 | switch (_id) { 76 | case 0: _t->alterInformatioin(); break; 77 | case 1: _t->returnLastWindow(); break; 78 | default: ; 79 | } 80 | } 81 | Q_UNUSED(_a); 82 | } 83 | 84 | QT_INIT_METAOBJECT const QMetaObject PersonalCenter::staticMetaObject = { { 85 | QMetaObject::SuperData::link(), 86 | qt_meta_stringdata_PersonalCenter.data, 87 | qt_meta_data_PersonalCenter, 88 | qt_static_metacall, 89 | nullptr, 90 | nullptr 91 | } }; 92 | 93 | 94 | const QMetaObject *PersonalCenter::metaObject() const 95 | { 96 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 97 | } 98 | 99 | void *PersonalCenter::qt_metacast(const char *_clname) 100 | { 101 | if (!_clname) return nullptr; 102 | if (!strcmp(_clname, qt_meta_stringdata_PersonalCenter.stringdata0)) 103 | return static_cast(this); 104 | return QWidget::qt_metacast(_clname); 105 | } 106 | 107 | int PersonalCenter::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 108 | { 109 | _id = QWidget::qt_metacall(_c, _id, _a); 110 | if (_id < 0) 111 | return _id; 112 | if (_c == QMetaObject::InvokeMetaMethod) { 113 | if (_id < 2) 114 | qt_static_metacall(this, _c, _id, _a); 115 | _id -= 2; 116 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 117 | if (_id < 2) 118 | *reinterpret_cast(_a[0]) = -1; 119 | _id -= 2; 120 | } 121 | return _id; 122 | } 123 | QT_WARNING_POP 124 | QT_END_MOC_NAMESPACE 125 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_personalcenter.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_personalcenter.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_user_register.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'user_register.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/user_register.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'user_register.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_User_Register_t { 25 | QByteArrayData data[3]; 26 | char stringdata0[29]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_User_Register_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_User_Register_t qt_meta_stringdata_User_Register = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 13), // "User_Register" 36 | QT_MOC_LITERAL(1, 14, 13), // "user_register" 37 | QT_MOC_LITERAL(2, 28, 0) // "" 38 | 39 | }, 40 | "User_Register\0user_register\0" 41 | }; 42 | #undef QT_MOC_LITERAL 43 | 44 | static const uint qt_meta_data_User_Register[] = { 45 | 46 | // content: 47 | 8, // revision 48 | 0, // classname 49 | 0, 0, // classinfo 50 | 1, 14, // methods 51 | 0, 0, // properties 52 | 0, 0, // enums/sets 53 | 0, 0, // constructors 54 | 0, // flags 55 | 0, // signalCount 56 | 57 | // slots: name, argc, parameters, tag, flags 58 | 1, 0, 19, 2, 0x08 /* Private */, 59 | 60 | // slots: parameters 61 | QMetaType::Void, 62 | 63 | 0 // eod 64 | }; 65 | 66 | void User_Register::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 67 | { 68 | if (_c == QMetaObject::InvokeMetaMethod) { 69 | auto *_t = static_cast(_o); 70 | Q_UNUSED(_t) 71 | switch (_id) { 72 | case 0: _t->user_register(); break; 73 | default: ; 74 | } 75 | } 76 | Q_UNUSED(_a); 77 | } 78 | 79 | QT_INIT_METAOBJECT const QMetaObject User_Register::staticMetaObject = { { 80 | QMetaObject::SuperData::link(), 81 | qt_meta_stringdata_User_Register.data, 82 | qt_meta_data_User_Register, 83 | qt_static_metacall, 84 | nullptr, 85 | nullptr 86 | } }; 87 | 88 | 89 | const QMetaObject *User_Register::metaObject() const 90 | { 91 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 92 | } 93 | 94 | void *User_Register::qt_metacast(const char *_clname) 95 | { 96 | if (!_clname) return nullptr; 97 | if (!strcmp(_clname, qt_meta_stringdata_User_Register.stringdata0)) 98 | return static_cast(this); 99 | return QDialog::qt_metacast(_clname); 100 | } 101 | 102 | int User_Register::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 103 | { 104 | _id = QDialog::qt_metacall(_c, _id, _a); 105 | if (_id < 0) 106 | return _id; 107 | if (_c == QMetaObject::InvokeMetaMethod) { 108 | if (_id < 1) 109 | qt_static_metacall(this, _c, _id, _a); 110 | _id -= 1; 111 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 112 | if (_id < 1) 113 | *reinterpret_cast(_a[0]) = -1; 114 | _id -= 1; 115 | } 116 | return _id; 117 | } 118 | QT_WARNING_POP 119 | QT_END_MOC_NAMESPACE 120 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_user_register.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_user_register.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userborrowbooks.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'userborrowbooks.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/userborrowbooks.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'userborrowbooks.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_UserBorrowBooks_t { 25 | QByteArrayData data[8]; 26 | char stringdata0[112]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_UserBorrowBooks_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_UserBorrowBooks_t qt_meta_stringdata_UserBorrowBooks = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 15), // "UserBorrowBooks" 36 | QT_MOC_LITERAL(1, 16, 11), // "filterBooks" 37 | QT_MOC_LITERAL(2, 28, 0), // "" 38 | QT_MOC_LITERAL(3, 29, 11), // "searchBooks" 39 | QT_MOC_LITERAL(4, 41, 16), // "returnLastWindow" 40 | QT_MOC_LITERAL(5, 58, 21), // "resettingAllCombinBox" 41 | QT_MOC_LITERAL(6, 80, 11), // "borrowBooks" 42 | QT_MOC_LITERAL(7, 92, 19) // "enterPersonalCenter" 43 | 44 | }, 45 | "UserBorrowBooks\0filterBooks\0\0searchBooks\0" 46 | "returnLastWindow\0resettingAllCombinBox\0" 47 | "borrowBooks\0enterPersonalCenter" 48 | }; 49 | #undef QT_MOC_LITERAL 50 | 51 | static const uint qt_meta_data_UserBorrowBooks[] = { 52 | 53 | // content: 54 | 8, // revision 55 | 0, // classname 56 | 0, 0, // classinfo 57 | 6, 14, // methods 58 | 0, 0, // properties 59 | 0, 0, // enums/sets 60 | 0, 0, // constructors 61 | 0, // flags 62 | 0, // signalCount 63 | 64 | // slots: name, argc, parameters, tag, flags 65 | 1, 0, 44, 2, 0x08 /* Private */, 66 | 3, 0, 45, 2, 0x08 /* Private */, 67 | 4, 0, 46, 2, 0x08 /* Private */, 68 | 5, 0, 47, 2, 0x08 /* Private */, 69 | 6, 0, 48, 2, 0x08 /* Private */, 70 | 7, 0, 49, 2, 0x08 /* Private */, 71 | 72 | // slots: parameters 73 | QMetaType::Void, 74 | QMetaType::Void, 75 | QMetaType::Void, 76 | QMetaType::Void, 77 | QMetaType::Void, 78 | QMetaType::Void, 79 | 80 | 0 // eod 81 | }; 82 | 83 | void UserBorrowBooks::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 84 | { 85 | if (_c == QMetaObject::InvokeMetaMethod) { 86 | auto *_t = static_cast(_o); 87 | Q_UNUSED(_t) 88 | switch (_id) { 89 | case 0: _t->filterBooks(); break; 90 | case 1: _t->searchBooks(); break; 91 | case 2: _t->returnLastWindow(); break; 92 | case 3: _t->resettingAllCombinBox(); break; 93 | case 4: _t->borrowBooks(); break; 94 | case 5: _t->enterPersonalCenter(); break; 95 | default: ; 96 | } 97 | } 98 | Q_UNUSED(_a); 99 | } 100 | 101 | QT_INIT_METAOBJECT const QMetaObject UserBorrowBooks::staticMetaObject = { { 102 | QMetaObject::SuperData::link(), 103 | qt_meta_stringdata_UserBorrowBooks.data, 104 | qt_meta_data_UserBorrowBooks, 105 | qt_static_metacall, 106 | nullptr, 107 | nullptr 108 | } }; 109 | 110 | 111 | const QMetaObject *UserBorrowBooks::metaObject() const 112 | { 113 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 114 | } 115 | 116 | void *UserBorrowBooks::qt_metacast(const char *_clname) 117 | { 118 | if (!_clname) return nullptr; 119 | if (!strcmp(_clname, qt_meta_stringdata_UserBorrowBooks.stringdata0)) 120 | return static_cast(this); 121 | return QWidget::qt_metacast(_clname); 122 | } 123 | 124 | int UserBorrowBooks::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 125 | { 126 | _id = QWidget::qt_metacall(_c, _id, _a); 127 | if (_id < 0) 128 | return _id; 129 | if (_c == QMetaObject::InvokeMetaMethod) { 130 | if (_id < 6) 131 | qt_static_metacall(this, _c, _id, _a); 132 | _id -= 6; 133 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 134 | if (_id < 6) 135 | *reinterpret_cast(_a[0]) = -1; 136 | _id -= 6; 137 | } 138 | return _id; 139 | } 140 | QT_WARNING_POP 141 | QT_END_MOC_NAMESPACE 142 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userborrowbooks.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userborrowbooks.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userborrowbookssearchresult.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'userborrowbookssearchresult.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/userborrowbookssearchresult.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'userborrowbookssearchresult.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_UserBorrowBooksSearchResult_t { 25 | QByteArrayData data[5]; 26 | char stringdata0[78]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_UserBorrowBooksSearchResult_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_UserBorrowBooksSearchResult_t qt_meta_stringdata_UserBorrowBooksSearchResult = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 27), // "UserBorrowBooksSearchResult" 36 | QT_MOC_LITERAL(1, 28, 16), // "returnLastWondow" 37 | QT_MOC_LITERAL(2, 45, 0), // "" 38 | QT_MOC_LITERAL(3, 46, 19), // "enterPersonalCenter" 39 | QT_MOC_LITERAL(4, 66, 11) // "borrowBooks" 40 | 41 | }, 42 | "UserBorrowBooksSearchResult\0" 43 | "returnLastWondow\0\0enterPersonalCenter\0" 44 | "borrowBooks" 45 | }; 46 | #undef QT_MOC_LITERAL 47 | 48 | static const uint qt_meta_data_UserBorrowBooksSearchResult[] = { 49 | 50 | // content: 51 | 8, // revision 52 | 0, // classname 53 | 0, 0, // classinfo 54 | 3, 14, // methods 55 | 0, 0, // properties 56 | 0, 0, // enums/sets 57 | 0, 0, // constructors 58 | 0, // flags 59 | 0, // signalCount 60 | 61 | // slots: name, argc, parameters, tag, flags 62 | 1, 0, 29, 2, 0x0a /* Public */, 63 | 3, 0, 30, 2, 0x0a /* Public */, 64 | 4, 0, 31, 2, 0x0a /* Public */, 65 | 66 | // slots: parameters 67 | QMetaType::Void, 68 | QMetaType::Void, 69 | QMetaType::Void, 70 | 71 | 0 // eod 72 | }; 73 | 74 | void UserBorrowBooksSearchResult::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 75 | { 76 | if (_c == QMetaObject::InvokeMetaMethod) { 77 | auto *_t = static_cast(_o); 78 | Q_UNUSED(_t) 79 | switch (_id) { 80 | case 0: _t->returnLastWondow(); break; 81 | case 1: _t->enterPersonalCenter(); break; 82 | case 2: _t->borrowBooks(); break; 83 | default: ; 84 | } 85 | } 86 | Q_UNUSED(_a); 87 | } 88 | 89 | QT_INIT_METAOBJECT const QMetaObject UserBorrowBooksSearchResult::staticMetaObject = { { 90 | QMetaObject::SuperData::link(), 91 | qt_meta_stringdata_UserBorrowBooksSearchResult.data, 92 | qt_meta_data_UserBorrowBooksSearchResult, 93 | qt_static_metacall, 94 | nullptr, 95 | nullptr 96 | } }; 97 | 98 | 99 | const QMetaObject *UserBorrowBooksSearchResult::metaObject() const 100 | { 101 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 102 | } 103 | 104 | void *UserBorrowBooksSearchResult::qt_metacast(const char *_clname) 105 | { 106 | if (!_clname) return nullptr; 107 | if (!strcmp(_clname, qt_meta_stringdata_UserBorrowBooksSearchResult.stringdata0)) 108 | return static_cast(this); 109 | return QWidget::qt_metacast(_clname); 110 | } 111 | 112 | int UserBorrowBooksSearchResult::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 113 | { 114 | _id = QWidget::qt_metacall(_c, _id, _a); 115 | if (_id < 0) 116 | return _id; 117 | if (_c == QMetaObject::InvokeMetaMethod) { 118 | if (_id < 3) 119 | qt_static_metacall(this, _c, _id, _a); 120 | _id -= 3; 121 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 122 | if (_id < 3) 123 | *reinterpret_cast(_a[0]) = -1; 124 | _id -= 3; 125 | } 126 | return _id; 127 | } 128 | QT_WARNING_POP 129 | QT_END_MOC_NAMESPACE 130 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userborrowbookssearchresult.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userborrowbookssearchresult.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_usermanage.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'usermanage.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/usermanage.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'usermanage.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_userManage_t { 25 | QByteArrayData data[5]; 26 | char stringdata0[51]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_userManage_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_userManage_t qt_meta_stringdata_userManage = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 10), // "userManage" 36 | QT_MOC_LITERAL(1, 11, 10), // "freshTable" 37 | QT_MOC_LITERAL(2, 22, 0), // "" 38 | QT_MOC_LITERAL(3, 23, 16), // "returnLastWindow" 39 | QT_MOC_LITERAL(4, 40, 10) // "deleteUser" 40 | 41 | }, 42 | "userManage\0freshTable\0\0returnLastWindow\0" 43 | "deleteUser" 44 | }; 45 | #undef QT_MOC_LITERAL 46 | 47 | static const uint qt_meta_data_userManage[] = { 48 | 49 | // content: 50 | 8, // revision 51 | 0, // classname 52 | 0, 0, // classinfo 53 | 3, 14, // methods 54 | 0, 0, // properties 55 | 0, 0, // enums/sets 56 | 0, 0, // constructors 57 | 0, // flags 58 | 0, // signalCount 59 | 60 | // slots: name, argc, parameters, tag, flags 61 | 1, 0, 29, 2, 0x08 /* Private */, 62 | 3, 0, 30, 2, 0x08 /* Private */, 63 | 4, 0, 31, 2, 0x08 /* Private */, 64 | 65 | // slots: parameters 66 | QMetaType::Void, 67 | QMetaType::Void, 68 | QMetaType::Void, 69 | 70 | 0 // eod 71 | }; 72 | 73 | void userManage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 74 | { 75 | if (_c == QMetaObject::InvokeMetaMethod) { 76 | auto *_t = static_cast(_o); 77 | Q_UNUSED(_t) 78 | switch (_id) { 79 | case 0: _t->freshTable(); break; 80 | case 1: _t->returnLastWindow(); break; 81 | case 2: _t->deleteUser(); break; 82 | default: ; 83 | } 84 | } 85 | Q_UNUSED(_a); 86 | } 87 | 88 | QT_INIT_METAOBJECT const QMetaObject userManage::staticMetaObject = { { 89 | QMetaObject::SuperData::link(), 90 | qt_meta_stringdata_userManage.data, 91 | qt_meta_data_userManage, 92 | qt_static_metacall, 93 | nullptr, 94 | nullptr 95 | } }; 96 | 97 | 98 | const QMetaObject *userManage::metaObject() const 99 | { 100 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 101 | } 102 | 103 | void *userManage::qt_metacast(const char *_clname) 104 | { 105 | if (!_clname) return nullptr; 106 | if (!strcmp(_clname, qt_meta_stringdata_userManage.stringdata0)) 107 | return static_cast(this); 108 | return QWidget::qt_metacast(_clname); 109 | } 110 | 111 | int userManage::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 112 | { 113 | _id = QWidget::qt_metacall(_c, _id, _a); 114 | if (_id < 0) 115 | return _id; 116 | if (_c == QMetaObject::InvokeMetaMethod) { 117 | if (_id < 3) 118 | qt_static_metacall(this, _c, _id, _a); 119 | _id -= 3; 120 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 121 | if (_id < 3) 122 | *reinterpret_cast(_a[0]) = -1; 123 | _id -= 3; 124 | } 125 | return _id; 126 | } 127 | QT_WARNING_POP 128 | QT_END_MOC_NAMESPACE 129 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_usermanage.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_usermanage.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userretuenbooks.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'userretuenbooks.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/userretuenbooks.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'userretuenbooks.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_UserRetuenBooks_t { 25 | QByteArrayData data[1]; 26 | char stringdata0[16]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_UserRetuenBooks_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_UserRetuenBooks_t qt_meta_stringdata_UserRetuenBooks = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 15) // "UserRetuenBooks" 36 | 37 | }, 38 | "UserRetuenBooks" 39 | }; 40 | #undef QT_MOC_LITERAL 41 | 42 | static const uint qt_meta_data_UserRetuenBooks[] = { 43 | 44 | // content: 45 | 8, // revision 46 | 0, // classname 47 | 0, 0, // classinfo 48 | 0, 0, // methods 49 | 0, 0, // properties 50 | 0, 0, // enums/sets 51 | 0, 0, // constructors 52 | 0, // flags 53 | 0, // signalCount 54 | 55 | 0 // eod 56 | }; 57 | 58 | void UserRetuenBooks::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 59 | { 60 | Q_UNUSED(_o); 61 | Q_UNUSED(_id); 62 | Q_UNUSED(_c); 63 | Q_UNUSED(_a); 64 | } 65 | 66 | QT_INIT_METAOBJECT const QMetaObject UserRetuenBooks::staticMetaObject = { { 67 | QMetaObject::SuperData::link(), 68 | qt_meta_stringdata_UserRetuenBooks.data, 69 | qt_meta_data_UserRetuenBooks, 70 | qt_static_metacall, 71 | nullptr, 72 | nullptr 73 | } }; 74 | 75 | 76 | const QMetaObject *UserRetuenBooks::metaObject() const 77 | { 78 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 79 | } 80 | 81 | void *UserRetuenBooks::qt_metacast(const char *_clname) 82 | { 83 | if (!_clname) return nullptr; 84 | if (!strcmp(_clname, qt_meta_stringdata_UserRetuenBooks.stringdata0)) 85 | return static_cast(this); 86 | return QWidget::qt_metacast(_clname); 87 | } 88 | 89 | int UserRetuenBooks::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 90 | { 91 | _id = QWidget::qt_metacall(_c, _id, _a); 92 | return _id; 93 | } 94 | QT_WARNING_POP 95 | QT_END_MOC_NAMESPACE 96 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userretuenbooks.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userretuenbooks.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userreturnbooks.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'userreturnbooks.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/userreturnbooks.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'userreturnbooks.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_UserReturnBooks_t { 25 | QByteArrayData data[6]; 26 | char stringdata0[77]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_UserReturnBooks_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_UserReturnBooks_t qt_meta_stringdata_UserReturnBooks = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 15), // "UserReturnBooks" 36 | QT_MOC_LITERAL(1, 16, 16), // "returnLastWindow" 37 | QT_MOC_LITERAL(2, 33, 0), // "" 38 | QT_MOC_LITERAL(3, 34, 19), // "enterPersonalCenter" 39 | QT_MOC_LITERAL(4, 54, 11), // "returnBooks" 40 | QT_MOC_LITERAL(5, 66, 10) // "freshTable" 41 | 42 | }, 43 | "UserReturnBooks\0returnLastWindow\0\0" 44 | "enterPersonalCenter\0returnBooks\0" 45 | "freshTable" 46 | }; 47 | #undef QT_MOC_LITERAL 48 | 49 | static const uint qt_meta_data_UserReturnBooks[] = { 50 | 51 | // content: 52 | 8, // revision 53 | 0, // classname 54 | 0, 0, // classinfo 55 | 4, 14, // methods 56 | 0, 0, // properties 57 | 0, 0, // enums/sets 58 | 0, 0, // constructors 59 | 0, // flags 60 | 0, // signalCount 61 | 62 | // slots: name, argc, parameters, tag, flags 63 | 1, 0, 34, 2, 0x08 /* Private */, 64 | 3, 0, 35, 2, 0x08 /* Private */, 65 | 4, 0, 36, 2, 0x08 /* Private */, 66 | 5, 0, 37, 2, 0x08 /* Private */, 67 | 68 | // slots: parameters 69 | QMetaType::Void, 70 | QMetaType::Void, 71 | QMetaType::Void, 72 | QMetaType::Void, 73 | 74 | 0 // eod 75 | }; 76 | 77 | void UserReturnBooks::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 78 | { 79 | if (_c == QMetaObject::InvokeMetaMethod) { 80 | auto *_t = static_cast(_o); 81 | Q_UNUSED(_t) 82 | switch (_id) { 83 | case 0: _t->returnLastWindow(); break; 84 | case 1: _t->enterPersonalCenter(); break; 85 | case 2: _t->returnBooks(); break; 86 | case 3: _t->freshTable(); break; 87 | default: ; 88 | } 89 | } 90 | Q_UNUSED(_a); 91 | } 92 | 93 | QT_INIT_METAOBJECT const QMetaObject UserReturnBooks::staticMetaObject = { { 94 | QMetaObject::SuperData::link(), 95 | qt_meta_stringdata_UserReturnBooks.data, 96 | qt_meta_data_UserReturnBooks, 97 | qt_static_metacall, 98 | nullptr, 99 | nullptr 100 | } }; 101 | 102 | 103 | const QMetaObject *UserReturnBooks::metaObject() const 104 | { 105 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 106 | } 107 | 108 | void *UserReturnBooks::qt_metacast(const char *_clname) 109 | { 110 | if (!_clname) return nullptr; 111 | if (!strcmp(_clname, qt_meta_stringdata_UserReturnBooks.stringdata0)) 112 | return static_cast(this); 113 | return QWidget::qt_metacast(_clname); 114 | } 115 | 116 | int UserReturnBooks::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 117 | { 118 | _id = QWidget::qt_metacall(_c, _id, _a); 119 | if (_id < 0) 120 | return _id; 121 | if (_c == QMetaObject::InvokeMetaMethod) { 122 | if (_id < 4) 123 | qt_static_metacall(this, _c, _id, _a); 124 | _id -= 4; 125 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 126 | if (_id < 4) 127 | *reinterpret_cast(_a[0]) = -1; 128 | _id -= 4; 129 | } 130 | return _id; 131 | } 132 | QT_WARNING_POP 133 | QT_END_MOC_NAMESPACE 134 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userreturnbooks.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userreturnbooks.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'userwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include 10 | #include "../../studip/userwindow.h" 11 | #include 12 | #include 13 | #if !defined(Q_MOC_OUTPUT_REVISION) 14 | #error "The header file 'userwindow.h' doesn't include ." 15 | #elif Q_MOC_OUTPUT_REVISION != 67 16 | #error "This file was generated using the moc from 5.14.2. It" 17 | #error "cannot be used with the include files from this version of Qt." 18 | #error "(The moc has changed too much.)" 19 | #endif 20 | 21 | QT_BEGIN_MOC_NAMESPACE 22 | QT_WARNING_PUSH 23 | QT_WARNING_DISABLE_DEPRECATED 24 | struct qt_meta_stringdata_UserWindow_t { 25 | QByteArrayData data[6]; 26 | char stringdata0[73]; 27 | }; 28 | #define QT_MOC_LITERAL(idx, ofs, len) \ 29 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 30 | qptrdiff(offsetof(qt_meta_stringdata_UserWindow_t, stringdata0) + ofs \ 31 | - idx * sizeof(QByteArrayData)) \ 32 | ) 33 | static const qt_meta_stringdata_UserWindow_t qt_meta_stringdata_UserWindow = { 34 | { 35 | QT_MOC_LITERAL(0, 0, 10), // "UserWindow" 36 | QT_MOC_LITERAL(1, 11, 11), // "returnBooks" 37 | QT_MOC_LITERAL(2, 23, 0), // "" 38 | QT_MOC_LITERAL(3, 24, 11), // "borrowBooks" 39 | QT_MOC_LITERAL(4, 36, 16), // "returnLastWindow" 40 | QT_MOC_LITERAL(5, 53, 19) // "enterPersonalCenter" 41 | 42 | }, 43 | "UserWindow\0returnBooks\0\0borrowBooks\0" 44 | "returnLastWindow\0enterPersonalCenter" 45 | }; 46 | #undef QT_MOC_LITERAL 47 | 48 | static const uint qt_meta_data_UserWindow[] = { 49 | 50 | // content: 51 | 8, // revision 52 | 0, // classname 53 | 0, 0, // classinfo 54 | 4, 14, // methods 55 | 0, 0, // properties 56 | 0, 0, // enums/sets 57 | 0, 0, // constructors 58 | 0, // flags 59 | 0, // signalCount 60 | 61 | // slots: name, argc, parameters, tag, flags 62 | 1, 0, 34, 2, 0x08 /* Private */, 63 | 3, 0, 35, 2, 0x08 /* Private */, 64 | 4, 0, 36, 2, 0x08 /* Private */, 65 | 5, 0, 37, 2, 0x08 /* Private */, 66 | 67 | // slots: parameters 68 | QMetaType::Void, 69 | QMetaType::Void, 70 | QMetaType::Void, 71 | QMetaType::Void, 72 | 73 | 0 // eod 74 | }; 75 | 76 | void UserWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 77 | { 78 | if (_c == QMetaObject::InvokeMetaMethod) { 79 | auto *_t = static_cast(_o); 80 | Q_UNUSED(_t) 81 | switch (_id) { 82 | case 0: _t->returnBooks(); break; 83 | case 1: _t->borrowBooks(); break; 84 | case 2: _t->returnLastWindow(); break; 85 | case 3: _t->enterPersonalCenter(); break; 86 | default: ; 87 | } 88 | } 89 | Q_UNUSED(_a); 90 | } 91 | 92 | QT_INIT_METAOBJECT const QMetaObject UserWindow::staticMetaObject = { { 93 | QMetaObject::SuperData::link(), 94 | qt_meta_stringdata_UserWindow.data, 95 | qt_meta_data_UserWindow, 96 | qt_static_metacall, 97 | nullptr, 98 | nullptr 99 | } }; 100 | 101 | 102 | const QMetaObject *UserWindow::metaObject() const 103 | { 104 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 105 | } 106 | 107 | void *UserWindow::qt_metacast(const char *_clname) 108 | { 109 | if (!_clname) return nullptr; 110 | if (!strcmp(_clname, qt_meta_stringdata_UserWindow.stringdata0)) 111 | return static_cast(this); 112 | return QDialog::qt_metacast(_clname); 113 | } 114 | 115 | int UserWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 116 | { 117 | _id = QDialog::qt_metacall(_c, _id, _a); 118 | if (_id < 0) 119 | return _id; 120 | if (_c == QMetaObject::InvokeMetaMethod) { 121 | if (_id < 4) 122 | qt_static_metacall(this, _c, _id, _a); 123 | _id -= 4; 124 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 125 | if (_id < 4) 126 | *reinterpret_cast(_a[0]) = -1; 127 | _id -= 4; 128 | } 129 | return _id; 130 | } 131 | QT_WARNING_POP 132 | QT_END_MOC_NAMESPACE 133 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/moc_userwindow.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/personalcenter.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/personalcenter.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/qrc_images.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/qrc_images.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/studip.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/studip.exe -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/test.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/test.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/user_register.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/user_register.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/userborrowbooks.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/userborrowbooks.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/userborrowbookssearchresult.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/userborrowbookssearchresult.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/usermanage.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/usermanage.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/userretuenbooks.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/userretuenbooks.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/userreturnbooks.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/userreturnbooks.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/userwindow.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/debug/userwindow.o -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/object_script.studip.Debug: -------------------------------------------------------------------------------- 1 | debug/borrowrecord.o 2 | debug/database.o 3 | debug/main.o 4 | debug/mainwindow.o 5 | debug/managerinputbooks.o 6 | debug/managerwindow.o 7 | debug/personalcenter.o 8 | debug/test.o 9 | debug/user_register.o 10 | debug/userborrowbooks.o 11 | debug/usermanage.o 12 | debug/userreturnbooks.o 13 | debug/userwindow.o 14 | debug/qrc_images.o 15 | debug/moc_borrowrecord.o 16 | debug/moc_mainwindow.o 17 | debug/moc_managerinputbooks.o 18 | debug/moc_managerwindow.o 19 | debug/moc_personalcenter.o 20 | debug/moc_user_register.o 21 | debug/moc_userborrowbooks.o 22 | debug/moc_usermanage.o 23 | debug/moc_userreturnbooks.o 24 | debug/moc_userwindow.o 25 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/object_script.studip.Release: -------------------------------------------------------------------------------- 1 | release/borrowrecord.o 2 | release/database.o 3 | release/main.o 4 | release/mainwindow.o 5 | release/managerinputbooks.o 6 | release/managerwindow.o 7 | release/personalcenter.o 8 | release/test.o 9 | release/user_register.o 10 | release/userborrowbooks.o 11 | release/usermanage.o 12 | release/userreturnbooks.o 13 | release/userwindow.o 14 | release/qrc_images.o 15 | release/moc_borrowrecord.o 16 | release/moc_mainwindow.o 17 | release/moc_managerinputbooks.o 18 | release/moc_managerwindow.o 19 | release/moc_personalcenter.o 20 | release/moc_user_register.o 21 | release/moc_userborrowbooks.o 22 | release/moc_usermanage.o 23 | release/moc_userreturnbooks.o 24 | release/moc_userwindow.o 25 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/ui_borrowrecord.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'borrowrecord.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.14.2 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_BORROWRECORD_H 10 | #define UI_BORROWRECORD_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | QT_BEGIN_NAMESPACE 22 | 23 | class Ui_BorrowRecord 24 | { 25 | public: 26 | QTabWidget *tabWidget; 27 | QWidget *tab; 28 | QTableWidget *borrow_tableWidget; 29 | QWidget *tab_2; 30 | QTableWidget *return_tableWidget; 31 | QPushButton *filter_pushbutton; 32 | QComboBox *comboBox; 33 | QPushButton *retrun_pushbutton; 34 | QPushButton *exit_pushbutton; 35 | QPushButton *resetting_pushbutton; 36 | 37 | void setupUi(QWidget *BorrowRecord) 38 | { 39 | if (BorrowRecord->objectName().isEmpty()) 40 | BorrowRecord->setObjectName(QString::fromUtf8("BorrowRecord")); 41 | BorrowRecord->resize(549, 289); 42 | tabWidget = new QTabWidget(BorrowRecord); 43 | tabWidget->setObjectName(QString::fromUtf8("tabWidget")); 44 | tabWidget->setGeometry(QRect(0, 0, 551, 201)); 45 | tab = new QWidget(); 46 | tab->setObjectName(QString::fromUtf8("tab")); 47 | borrow_tableWidget = new QTableWidget(tab); 48 | borrow_tableWidget->setObjectName(QString::fromUtf8("borrow_tableWidget")); 49 | borrow_tableWidget->setGeometry(QRect(0, 1, 551, 171)); 50 | tabWidget->addTab(tab, QString()); 51 | tab_2 = new QWidget(); 52 | tab_2->setObjectName(QString::fromUtf8("tab_2")); 53 | return_tableWidget = new QTableWidget(tab_2); 54 | return_tableWidget->setObjectName(QString::fromUtf8("return_tableWidget")); 55 | return_tableWidget->setGeometry(QRect(0, 1, 551, 171)); 56 | tabWidget->addTab(tab_2, QString()); 57 | filter_pushbutton = new QPushButton(BorrowRecord); 58 | filter_pushbutton->setObjectName(QString::fromUtf8("filter_pushbutton")); 59 | filter_pushbutton->setEnabled(true); 60 | filter_pushbutton->setGeometry(QRect(450, 210, 101, 31)); 61 | QFont font; 62 | font.setPointSize(15); 63 | font.setBold(true); 64 | font.setWeight(75); 65 | filter_pushbutton->setFont(font); 66 | comboBox = new QComboBox(BorrowRecord); 67 | comboBox->setObjectName(QString::fromUtf8("comboBox")); 68 | comboBox->setEnabled(true); 69 | comboBox->setGeometry(QRect(250, 210, 191, 31)); 70 | QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 71 | sizePolicy.setHorizontalStretch(0); 72 | sizePolicy.setVerticalStretch(0); 73 | sizePolicy.setHeightForWidth(comboBox->sizePolicy().hasHeightForWidth()); 74 | comboBox->setSizePolicy(sizePolicy); 75 | QFont font1; 76 | font1.setFamily(QString::fromUtf8("Microsoft YaHei UI Light")); 77 | font1.setPointSize(12); 78 | font1.setBold(true); 79 | font1.setItalic(false); 80 | font1.setUnderline(false); 81 | font1.setWeight(75); 82 | comboBox->setFont(font1); 83 | comboBox->setMouseTracking(false); 84 | comboBox->setTabletTracking(false); 85 | comboBox->setAcceptDrops(false); 86 | comboBox->setLayoutDirection(Qt::LeftToRight); 87 | comboBox->setEditable(true); 88 | retrun_pushbutton = new QPushButton(BorrowRecord); 89 | retrun_pushbutton->setObjectName(QString::fromUtf8("retrun_pushbutton")); 90 | retrun_pushbutton->setEnabled(true); 91 | retrun_pushbutton->setGeometry(QRect(0, 260, 101, 31)); 92 | retrun_pushbutton->setFont(font); 93 | exit_pushbutton = new QPushButton(BorrowRecord); 94 | exit_pushbutton->setObjectName(QString::fromUtf8("exit_pushbutton")); 95 | exit_pushbutton->setEnabled(true); 96 | exit_pushbutton->setGeometry(QRect(450, 260, 101, 31)); 97 | exit_pushbutton->setFont(font); 98 | resetting_pushbutton = new QPushButton(BorrowRecord); 99 | resetting_pushbutton->setObjectName(QString::fromUtf8("resetting_pushbutton")); 100 | resetting_pushbutton->setEnabled(true); 101 | resetting_pushbutton->setGeometry(QRect(0, 210, 101, 31)); 102 | resetting_pushbutton->setFont(font); 103 | 104 | retranslateUi(BorrowRecord); 105 | 106 | tabWidget->setCurrentIndex(1); 107 | 108 | 109 | QMetaObject::connectSlotsByName(BorrowRecord); 110 | } // setupUi 111 | 112 | void retranslateUi(QWidget *BorrowRecord) 113 | { 114 | BorrowRecord->setWindowTitle(QCoreApplication::translate("BorrowRecord", "Form", nullptr)); 115 | tabWidget->setTabText(tabWidget->indexOf(tab), QCoreApplication::translate("BorrowRecord", "\345\200\237\344\271\246\350\256\260\345\275\225", nullptr)); 116 | tabWidget->setTabText(tabWidget->indexOf(tab_2), QCoreApplication::translate("BorrowRecord", "\350\277\230\344\271\246\350\256\260\345\275\225", nullptr)); 117 | filter_pushbutton->setText(QCoreApplication::translate("BorrowRecord", "\346\237\245\347\234\213", nullptr)); 118 | retrun_pushbutton->setText(QCoreApplication::translate("BorrowRecord", "\350\277\224\345\233\236", nullptr)); 119 | exit_pushbutton->setText(QCoreApplication::translate("BorrowRecord", "\351\200\200\345\207\272", nullptr)); 120 | resetting_pushbutton->setText(QCoreApplication::translate("BorrowRecord", "\351\207\215\347\275\256", nullptr)); 121 | } // retranslateUi 122 | 123 | }; 124 | 125 | namespace Ui { 126 | class BorrowRecord: public Ui_BorrowRecord {}; 127 | } // namespace Ui 128 | 129 | QT_END_NAMESPACE 130 | 131 | #endif // UI_BORROWRECORD_H 132 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/ui_managerinputbooks.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'managerinputbooks.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.14.2 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_MANAGERINPUTBOOKS_H 10 | #define UI_MANAGERINPUTBOOKS_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | QT_BEGIN_NAMESPACE 22 | 23 | class Ui_ManagerInputBooks 24 | { 25 | public: 26 | QLabel *label_3; 27 | QWidget *widget_2; 28 | QGridLayout *gridLayout; 29 | QLineEdit *author_lineedit; 30 | QLabel *label_6; 31 | QLineEdit *booktype_lineedit; 32 | QSpacerItem *horizontalSpacer; 33 | QLabel *label_4; 34 | QLabel *label_7; 35 | QLineEdit *publisher_lineedit; 36 | QLineEdit *all_count_lineedit; 37 | QLabel *label_5; 38 | QLineEdit *title_lineedit; 39 | QLabel *label_2; 40 | QSpacerItem *horizontalSpacer_2; 41 | QPushButton *comfirm_pushbutton; 42 | QPushButton *cancel_pushbutton; 43 | 44 | void setupUi(QWidget *ManagerInputBooks) 45 | { 46 | if (ManagerInputBooks->objectName().isEmpty()) 47 | ManagerInputBooks->setObjectName(QString::fromUtf8("ManagerInputBooks")); 48 | ManagerInputBooks->resize(342, 375); 49 | ManagerInputBooks->setStyleSheet(QString::fromUtf8("background-color:white")); 50 | label_3 = new QLabel(ManagerInputBooks); 51 | label_3->setObjectName(QString::fromUtf8("label_3")); 52 | label_3->setGeometry(QRect(120, 10, 141, 61)); 53 | QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); 54 | sizePolicy.setHorizontalStretch(0); 55 | sizePolicy.setVerticalStretch(0); 56 | sizePolicy.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth()); 57 | label_3->setSizePolicy(sizePolicy); 58 | QFont font; 59 | font.setPointSize(20); 60 | font.setBold(true); 61 | font.setItalic(false); 62 | font.setUnderline(false); 63 | font.setWeight(75); 64 | font.setStrikeOut(false); 65 | font.setStyleStrategy(QFont::PreferAntialias); 66 | label_3->setFont(font); 67 | label_3->setMouseTracking(false); 68 | label_3->setAlignment(Qt::AlignCenter); 69 | widget_2 = new QWidget(ManagerInputBooks); 70 | widget_2->setObjectName(QString::fromUtf8("widget_2")); 71 | widget_2->setGeometry(QRect(40, 80, 281, 251)); 72 | gridLayout = new QGridLayout(widget_2); 73 | gridLayout->setObjectName(QString::fromUtf8("gridLayout")); 74 | author_lineedit = new QLineEdit(widget_2); 75 | author_lineedit->setObjectName(QString::fromUtf8("author_lineedit")); 76 | QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed); 77 | sizePolicy1.setHorizontalStretch(0); 78 | sizePolicy1.setVerticalStretch(0); 79 | sizePolicy1.setHeightForWidth(author_lineedit->sizePolicy().hasHeightForWidth()); 80 | author_lineedit->setSizePolicy(sizePolicy1); 81 | author_lineedit->setEchoMode(QLineEdit::Normal); 82 | 83 | gridLayout->addWidget(author_lineedit, 1, 2, 1, 1); 84 | 85 | label_6 = new QLabel(widget_2); 86 | label_6->setObjectName(QString::fromUtf8("label_6")); 87 | 88 | gridLayout->addWidget(label_6, 4, 1, 1, 1); 89 | 90 | booktype_lineedit = new QLineEdit(widget_2); 91 | booktype_lineedit->setObjectName(QString::fromUtf8("booktype_lineedit")); 92 | sizePolicy1.setHeightForWidth(booktype_lineedit->sizePolicy().hasHeightForWidth()); 93 | booktype_lineedit->setSizePolicy(sizePolicy1); 94 | booktype_lineedit->setEchoMode(QLineEdit::Normal); 95 | 96 | gridLayout->addWidget(booktype_lineedit, 3, 2, 1, 1); 97 | 98 | horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); 99 | 100 | gridLayout->addItem(horizontalSpacer, 0, 0, 1, 1); 101 | 102 | label_4 = new QLabel(widget_2); 103 | label_4->setObjectName(QString::fromUtf8("label_4")); 104 | 105 | gridLayout->addWidget(label_4, 1, 1, 1, 1); 106 | 107 | label_7 = new QLabel(widget_2); 108 | label_7->setObjectName(QString::fromUtf8("label_7")); 109 | 110 | gridLayout->addWidget(label_7, 2, 1, 1, 1); 111 | 112 | publisher_lineedit = new QLineEdit(widget_2); 113 | publisher_lineedit->setObjectName(QString::fromUtf8("publisher_lineedit")); 114 | sizePolicy1.setHeightForWidth(publisher_lineedit->sizePolicy().hasHeightForWidth()); 115 | publisher_lineedit->setSizePolicy(sizePolicy1); 116 | publisher_lineedit->setEchoMode(QLineEdit::Normal); 117 | 118 | gridLayout->addWidget(publisher_lineedit, 2, 2, 1, 1); 119 | 120 | all_count_lineedit = new QLineEdit(widget_2); 121 | all_count_lineedit->setObjectName(QString::fromUtf8("all_count_lineedit")); 122 | sizePolicy1.setHeightForWidth(all_count_lineedit->sizePolicy().hasHeightForWidth()); 123 | all_count_lineedit->setSizePolicy(sizePolicy1); 124 | all_count_lineedit->setEchoMode(QLineEdit::Normal); 125 | 126 | gridLayout->addWidget(all_count_lineedit, 4, 2, 1, 1); 127 | 128 | label_5 = new QLabel(widget_2); 129 | label_5->setObjectName(QString::fromUtf8("label_5")); 130 | 131 | gridLayout->addWidget(label_5, 3, 1, 1, 1); 132 | 133 | title_lineedit = new QLineEdit(widget_2); 134 | title_lineedit->setObjectName(QString::fromUtf8("title_lineedit")); 135 | 136 | gridLayout->addWidget(title_lineedit, 0, 2, 1, 1); 137 | 138 | label_2 = new QLabel(widget_2); 139 | label_2->setObjectName(QString::fromUtf8("label_2")); 140 | 141 | gridLayout->addWidget(label_2, 0, 1, 1, 1); 142 | 143 | horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); 144 | 145 | gridLayout->addItem(horizontalSpacer_2, 0, 3, 1, 1); 146 | 147 | comfirm_pushbutton = new QPushButton(ManagerInputBooks); 148 | comfirm_pushbutton->setObjectName(QString::fromUtf8("comfirm_pushbutton")); 149 | comfirm_pushbutton->setGeometry(QRect(0, 350, 93, 24)); 150 | QFont font1; 151 | font1.setPointSize(12); 152 | font1.setBold(false); 153 | font1.setWeight(50); 154 | comfirm_pushbutton->setFont(font1); 155 | comfirm_pushbutton->setCheckable(false); 156 | cancel_pushbutton = new QPushButton(ManagerInputBooks); 157 | cancel_pushbutton->setObjectName(QString::fromUtf8("cancel_pushbutton")); 158 | cancel_pushbutton->setGeometry(QRect(240, 350, 101, 24)); 159 | cancel_pushbutton->setFont(font1); 160 | 161 | retranslateUi(ManagerInputBooks); 162 | 163 | QMetaObject::connectSlotsByName(ManagerInputBooks); 164 | } // setupUi 165 | 166 | void retranslateUi(QWidget *ManagerInputBooks) 167 | { 168 | ManagerInputBooks->setWindowTitle(QCoreApplication::translate("ManagerInputBooks", "Form", nullptr)); 169 | label_3->setText(QCoreApplication::translate("ManagerInputBooks", "\345\233\276\344\271\246\345\205\245\345\272\223", nullptr)); 170 | label_6->setText(QCoreApplication::translate("ManagerInputBooks", "\346\225\260\351\207\217 \357\274\232", nullptr)); 171 | label_4->setText(QCoreApplication::translate("ManagerInputBooks", "\344\275\234\350\200\205 \357\274\232", nullptr)); 172 | label_7->setText(QCoreApplication::translate("ManagerInputBooks", "\345\207\272\347\211\210\347\244\276\357\274\232", nullptr)); 173 | label_5->setText(QCoreApplication::translate("ManagerInputBooks", "\347\261\273\345\210\253 \357\274\232", nullptr)); 174 | label_2->setText(QCoreApplication::translate("ManagerInputBooks", "\344\271\246\345\220\215 \357\274\232", nullptr)); 175 | comfirm_pushbutton->setText(QCoreApplication::translate("ManagerInputBooks", "\347\241\256\345\256\232", nullptr)); 176 | cancel_pushbutton->setText(QCoreApplication::translate("ManagerInputBooks", "\345\217\226\346\266\210", nullptr)); 177 | } // retranslateUi 178 | 179 | }; 180 | 181 | namespace Ui { 182 | class ManagerInputBooks: public Ui_ManagerInputBooks {}; 183 | } // namespace Ui 184 | 185 | QT_END_NAMESPACE 186 | 187 | #endif // UI_MANAGERINPUTBOOKS_H 188 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/ui_managerwindow.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'managerwindow.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.14.2 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_MANAGERWINDOW_H 10 | #define UI_MANAGERWINDOW_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | QT_BEGIN_NAMESPACE 19 | 20 | class Ui_ManagerWindow 21 | { 22 | public: 23 | QPushButton *retrun_pushbutton; 24 | QLabel *label; 25 | QPushButton *person_center_pushbutton; 26 | QPushButton *usermanage_pushButton; 27 | QPushButton *inputbooks_pushButton; 28 | QPushButton *borrow_pushButton; 29 | 30 | void setupUi(QWidget *ManagerWindow) 31 | { 32 | if (ManagerWindow->objectName().isEmpty()) 33 | ManagerWindow->setObjectName(QString::fromUtf8("ManagerWindow")); 34 | ManagerWindow->resize(570, 440); 35 | QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 36 | sizePolicy.setHorizontalStretch(0); 37 | sizePolicy.setVerticalStretch(0); 38 | sizePolicy.setHeightForWidth(ManagerWindow->sizePolicy().hasHeightForWidth()); 39 | ManagerWindow->setSizePolicy(sizePolicy); 40 | ManagerWindow->setStyleSheet(QString::fromUtf8("background-color:white")); 41 | retrun_pushbutton = new QPushButton(ManagerWindow); 42 | retrun_pushbutton->setObjectName(QString::fromUtf8("retrun_pushbutton")); 43 | retrun_pushbutton->setEnabled(true); 44 | retrun_pushbutton->setGeometry(QRect(0, 410, 101, 31)); 45 | QFont font; 46 | font.setPointSize(15); 47 | font.setBold(true); 48 | font.setWeight(75); 49 | retrun_pushbutton->setFont(font); 50 | label = new QLabel(ManagerWindow); 51 | label->setObjectName(QString::fromUtf8("label")); 52 | label->setGeometry(QRect(40, 0, 461, 111)); 53 | sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth()); 54 | label->setSizePolicy(sizePolicy); 55 | QFont font1; 56 | font1.setPointSize(50); 57 | font1.setBold(true); 58 | font1.setItalic(true); 59 | font1.setUnderline(false); 60 | font1.setWeight(75); 61 | label->setFont(font1); 62 | label->setFrameShape(QFrame::NoFrame); 63 | label->setFrameShadow(QFrame::Plain); 64 | label->setTextFormat(Qt::AutoText); 65 | label->setScaledContents(false); 66 | label->setAlignment(Qt::AlignCenter); 67 | label->setWordWrap(false); 68 | person_center_pushbutton = new QPushButton(ManagerWindow); 69 | person_center_pushbutton->setObjectName(QString::fromUtf8("person_center_pushbutton")); 70 | person_center_pushbutton->setEnabled(true); 71 | person_center_pushbutton->setGeometry(QRect(460, 410, 113, 31)); 72 | person_center_pushbutton->setFont(font); 73 | person_center_pushbutton->setAutoDefault(true); 74 | usermanage_pushButton = new QPushButton(ManagerWindow); 75 | usermanage_pushButton->setObjectName(QString::fromUtf8("usermanage_pushButton")); 76 | usermanage_pushButton->setGeometry(QRect(200, 150, 161, 41)); 77 | QFont font2; 78 | font2.setPointSize(20); 79 | font2.setBold(true); 80 | font2.setWeight(75); 81 | usermanage_pushButton->setFont(font2); 82 | inputbooks_pushButton = new QPushButton(ManagerWindow); 83 | inputbooks_pushButton->setObjectName(QString::fromUtf8("inputbooks_pushButton")); 84 | inputbooks_pushButton->setGeometry(QRect(200, 220, 161, 41)); 85 | inputbooks_pushButton->setFont(font2); 86 | borrow_pushButton = new QPushButton(ManagerWindow); 87 | borrow_pushButton->setObjectName(QString::fromUtf8("borrow_pushButton")); 88 | borrow_pushButton->setGeometry(QRect(200, 290, 161, 41)); 89 | borrow_pushButton->setFont(font2); 90 | 91 | retranslateUi(ManagerWindow); 92 | 93 | QMetaObject::connectSlotsByName(ManagerWindow); 94 | } // setupUi 95 | 96 | void retranslateUi(QWidget *ManagerWindow) 97 | { 98 | ManagerWindow->setWindowTitle(QCoreApplication::translate("ManagerWindow", "Form", nullptr)); 99 | retrun_pushbutton->setText(QCoreApplication::translate("ManagerWindow", "\350\277\224\345\233\236", nullptr)); 100 | label->setText(QCoreApplication::translate("ManagerWindow", "WELCOME!", nullptr)); 101 | person_center_pushbutton->setText(QCoreApplication::translate("ManagerWindow", "\344\270\252\344\272\272\344\270\255\345\277\203", nullptr)); 102 | usermanage_pushButton->setText(QCoreApplication::translate("ManagerWindow", "\347\224\250\346\210\267\347\256\241\347\220\206", nullptr)); 103 | inputbooks_pushButton->setText(QCoreApplication::translate("ManagerWindow", "\345\233\276\344\271\246\345\205\245\345\272\223", nullptr)); 104 | borrow_pushButton->setText(QCoreApplication::translate("ManagerWindow", "\345\200\237\351\230\205\350\256\260\345\275\225", nullptr)); 105 | } // retranslateUi 106 | 107 | }; 108 | 109 | namespace Ui { 110 | class ManagerWindow: public Ui_ManagerWindow {}; 111 | } // namespace Ui 112 | 113 | QT_END_NAMESPACE 114 | 115 | #endif // UI_MANAGERWINDOW_H 116 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/ui_user_register.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'user_register.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.14.2 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_USER_REGISTER_H 10 | #define UI_USER_REGISTER_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | QT_BEGIN_NAMESPACE 22 | 23 | class Ui_User_Register 24 | { 25 | public: 26 | QLabel *label_3; 27 | QWidget *widget_2; 28 | QLabel *password_label_3; 29 | QComboBox *gender_comboBox; 30 | QLineEdit *password_lineedit_2; 31 | QLabel *username_label_2; 32 | QLineEdit *username_lineedit_2; 33 | QLabel *password_label_4; 34 | QWidget *widget; 35 | QHBoxLayout *horizontalLayout_2; 36 | QPushButton *register_pushButton_2; 37 | QPushButton *cancel_pushbutton_2; 38 | 39 | void setupUi(QWidget *User_Register) 40 | { 41 | if (User_Register->objectName().isEmpty()) 42 | User_Register->setObjectName(QString::fromUtf8("User_Register")); 43 | User_Register->resize(281, 298); 44 | QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 45 | sizePolicy.setHorizontalStretch(0); 46 | sizePolicy.setVerticalStretch(0); 47 | sizePolicy.setHeightForWidth(User_Register->sizePolicy().hasHeightForWidth()); 48 | User_Register->setSizePolicy(sizePolicy); 49 | User_Register->setStyleSheet(QString::fromUtf8("background-color:white")); 50 | label_3 = new QLabel(User_Register); 51 | label_3->setObjectName(QString::fromUtf8("label_3")); 52 | label_3->setGeometry(QRect(90, 0, 141, 61)); 53 | QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); 54 | sizePolicy1.setHorizontalStretch(0); 55 | sizePolicy1.setVerticalStretch(0); 56 | sizePolicy1.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth()); 57 | label_3->setSizePolicy(sizePolicy1); 58 | QFont font; 59 | font.setPointSize(20); 60 | font.setBold(true); 61 | font.setItalic(false); 62 | font.setUnderline(false); 63 | font.setWeight(75); 64 | font.setStrikeOut(false); 65 | font.setStyleStrategy(QFont::PreferAntialias); 66 | label_3->setFont(font); 67 | label_3->setMouseTracking(false); 68 | widget_2 = new QWidget(User_Register); 69 | widget_2->setObjectName(QString::fromUtf8("widget_2")); 70 | widget_2->setGeometry(QRect(20, 80, 256, 121)); 71 | password_label_3 = new QLabel(widget_2); 72 | password_label_3->setObjectName(QString::fromUtf8("password_label_3")); 73 | password_label_3->setGeometry(QRect(24, 50, 61, 16)); 74 | gender_comboBox = new QComboBox(widget_2); 75 | gender_comboBox->addItem(QString()); 76 | gender_comboBox->addItem(QString()); 77 | gender_comboBox->setObjectName(QString::fromUtf8("gender_comboBox")); 78 | gender_comboBox->setGeometry(QRect(91, 51, 51, 21)); 79 | gender_comboBox->setStyleSheet(QString::fromUtf8("border:none")); 80 | password_lineedit_2 = new QLineEdit(widget_2); 81 | password_lineedit_2->setObjectName(QString::fromUtf8("password_lineedit_2")); 82 | password_lineedit_2->setGeometry(QRect(91, 83, 141, 21)); 83 | QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Fixed); 84 | sizePolicy2.setHorizontalStretch(0); 85 | sizePolicy2.setVerticalStretch(0); 86 | sizePolicy2.setHeightForWidth(password_lineedit_2->sizePolicy().hasHeightForWidth()); 87 | password_lineedit_2->setSizePolicy(sizePolicy2); 88 | password_lineedit_2->setEchoMode(QLineEdit::Password); 89 | username_label_2 = new QLabel(widget_2); 90 | username_label_2->setObjectName(QString::fromUtf8("username_label_2")); 91 | username_label_2->setGeometry(QRect(24, 16, 60, 16)); 92 | username_lineedit_2 = new QLineEdit(widget_2); 93 | username_lineedit_2->setObjectName(QString::fromUtf8("username_lineedit_2")); 94 | username_lineedit_2->setGeometry(QRect(91, 16, 141, 21)); 95 | password_label_4 = new QLabel(widget_2); 96 | password_label_4->setObjectName(QString::fromUtf8("password_label_4")); 97 | password_label_4->setGeometry(QRect(24, 83, 61, 16)); 98 | widget = new QWidget(User_Register); 99 | widget->setObjectName(QString::fromUtf8("widget")); 100 | widget->setGeometry(QRect(40, 260, 210, 46)); 101 | horizontalLayout_2 = new QHBoxLayout(widget); 102 | horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2")); 103 | register_pushButton_2 = new QPushButton(widget); 104 | register_pushButton_2->setObjectName(QString::fromUtf8("register_pushButton_2")); 105 | QFont font1; 106 | font1.setPointSize(12); 107 | font1.setBold(false); 108 | font1.setWeight(50); 109 | register_pushButton_2->setFont(font1); 110 | register_pushButton_2->setStyleSheet(QString::fromUtf8("background-color:white")); 111 | register_pushButton_2->setCheckable(false); 112 | 113 | horizontalLayout_2->addWidget(register_pushButton_2); 114 | 115 | cancel_pushbutton_2 = new QPushButton(widget); 116 | cancel_pushbutton_2->setObjectName(QString::fromUtf8("cancel_pushbutton_2")); 117 | cancel_pushbutton_2->setFont(font1); 118 | 119 | horizontalLayout_2->addWidget(cancel_pushbutton_2); 120 | 121 | 122 | retranslateUi(User_Register); 123 | 124 | QMetaObject::connectSlotsByName(User_Register); 125 | } // setupUi 126 | 127 | void retranslateUi(QWidget *User_Register) 128 | { 129 | User_Register->setWindowTitle(QCoreApplication::translate("User_Register", "Form", nullptr)); 130 | label_3->setText(QCoreApplication::translate("User_Register", "\347\224\250\346\210\267\346\263\250\345\206\214", nullptr)); 131 | password_label_3->setText(QCoreApplication::translate("User_Register", "\346\200\247\345\210\253 \357\274\232", nullptr)); 132 | gender_comboBox->setItemText(0, QCoreApplication::translate("User_Register", "\347\224\267", nullptr)); 133 | gender_comboBox->setItemText(1, QCoreApplication::translate("User_Register", "\345\245\263", nullptr)); 134 | 135 | username_label_2->setText(QCoreApplication::translate("User_Register", "\347\224\250\346\210\267\345\220\215\357\274\232", nullptr)); 136 | password_label_4->setText(QCoreApplication::translate("User_Register", "\345\257\206\347\240\201 \357\274\232", nullptr)); 137 | register_pushButton_2->setText(QCoreApplication::translate("User_Register", "\346\263\250\345\206\214", nullptr)); 138 | cancel_pushbutton_2->setText(QCoreApplication::translate("User_Register", "\345\217\226\346\266\210", nullptr)); 139 | } // retranslateUi 140 | 141 | }; 142 | 143 | namespace Ui { 144 | class User_Register: public Ui_User_Register {}; 145 | } // namespace Ui 146 | 147 | QT_END_NAMESPACE 148 | 149 | #endif // UI_USER_REGISTER_H 150 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/ui_userborrowbookssearchresult.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'userborrowbookssearchresult.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.14.2 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_USERBORROWBOOKSSEARCHRESULT_H 10 | #define UI_USERBORROWBOOKSSEARCHRESULT_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | QT_BEGIN_NAMESPACE 23 | 24 | class Ui_UserBorrowBooksSearchResult 25 | { 26 | public: 27 | QLabel *booksearchresult_pushbutton; 28 | QTableWidget *tableWidget; 29 | QPushButton *retrun_pushbutton; 30 | QPushButton *personalcenter_pushbutton; 31 | QPushButton *borrow_pushbutton; 32 | QComboBox *comboBox; 33 | QRadioButton *select_radioButton; 34 | QPushButton *freshtable_pushbutton; 35 | 36 | void setupUi(QWidget *UserBorrowBooksSearchResult) 37 | { 38 | if (UserBorrowBooksSearchResult->objectName().isEmpty()) 39 | UserBorrowBooksSearchResult->setObjectName(QString::fromUtf8("UserBorrowBooksSearchResult")); 40 | UserBorrowBooksSearchResult->resize(741, 288); 41 | UserBorrowBooksSearchResult->setStyleSheet(QString::fromUtf8("background-color:white")); 42 | booksearchresult_pushbutton = new QLabel(UserBorrowBooksSearchResult); 43 | booksearchresult_pushbutton->setObjectName(QString::fromUtf8("booksearchresult_pushbutton")); 44 | booksearchresult_pushbutton->setGeometry(QRect(170, 0, 351, 91)); 45 | QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 46 | sizePolicy.setHorizontalStretch(0); 47 | sizePolicy.setVerticalStretch(0); 48 | sizePolicy.setHeightForWidth(booksearchresult_pushbutton->sizePolicy().hasHeightForWidth()); 49 | booksearchresult_pushbutton->setSizePolicy(sizePolicy); 50 | QFont font; 51 | font.setPointSize(50); 52 | font.setBold(true); 53 | font.setItalic(true); 54 | font.setUnderline(false); 55 | font.setWeight(75); 56 | booksearchresult_pushbutton->setFont(font); 57 | booksearchresult_pushbutton->setFrameShape(QFrame::NoFrame); 58 | booksearchresult_pushbutton->setFrameShadow(QFrame::Plain); 59 | booksearchresult_pushbutton->setTextFormat(Qt::AutoText); 60 | booksearchresult_pushbutton->setScaledContents(false); 61 | booksearchresult_pushbutton->setAlignment(Qt::AlignCenter); 62 | booksearchresult_pushbutton->setWordWrap(false); 63 | tableWidget = new QTableWidget(UserBorrowBooksSearchResult); 64 | tableWidget->setObjectName(QString::fromUtf8("tableWidget")); 65 | tableWidget->setGeometry(QRect(0, 100, 741, 101)); 66 | retrun_pushbutton = new QPushButton(UserBorrowBooksSearchResult); 67 | retrun_pushbutton->setObjectName(QString::fromUtf8("retrun_pushbutton")); 68 | retrun_pushbutton->setEnabled(true); 69 | retrun_pushbutton->setGeometry(QRect(0, 260, 101, 31)); 70 | QFont font1; 71 | font1.setPointSize(15); 72 | font1.setBold(true); 73 | font1.setWeight(75); 74 | retrun_pushbutton->setFont(font1); 75 | personalcenter_pushbutton = new QPushButton(UserBorrowBooksSearchResult); 76 | personalcenter_pushbutton->setObjectName(QString::fromUtf8("personalcenter_pushbutton")); 77 | personalcenter_pushbutton->setEnabled(true); 78 | personalcenter_pushbutton->setGeometry(QRect(640, 260, 101, 31)); 79 | personalcenter_pushbutton->setFont(font1); 80 | borrow_pushbutton = new QPushButton(UserBorrowBooksSearchResult); 81 | borrow_pushbutton->setObjectName(QString::fromUtf8("borrow_pushbutton")); 82 | borrow_pushbutton->setEnabled(true); 83 | borrow_pushbutton->setGeometry(QRect(640, 210, 101, 31)); 84 | borrow_pushbutton->setFont(font1); 85 | comboBox = new QComboBox(UserBorrowBooksSearchResult); 86 | comboBox->setObjectName(QString::fromUtf8("comboBox")); 87 | comboBox->setGeometry(QRect(432, 210, 201, 31)); 88 | select_radioButton = new QRadioButton(UserBorrowBooksSearchResult); 89 | select_radioButton->setObjectName(QString::fromUtf8("select_radioButton")); 90 | select_radioButton->setGeometry(QRect(330, 210, 91, 31)); 91 | freshtable_pushbutton = new QPushButton(UserBorrowBooksSearchResult); 92 | freshtable_pushbutton->setObjectName(QString::fromUtf8("freshtable_pushbutton")); 93 | freshtable_pushbutton->setEnabled(true); 94 | freshtable_pushbutton->setGeometry(QRect(0, 210, 101, 31)); 95 | freshtable_pushbutton->setFont(font1); 96 | 97 | retranslateUi(UserBorrowBooksSearchResult); 98 | 99 | QMetaObject::connectSlotsByName(UserBorrowBooksSearchResult); 100 | } // setupUi 101 | 102 | void retranslateUi(QWidget *UserBorrowBooksSearchResult) 103 | { 104 | UserBorrowBooksSearchResult->setWindowTitle(QCoreApplication::translate("UserBorrowBooksSearchResult", "Form", nullptr)); 105 | booksearchresult_pushbutton->setText(QCoreApplication::translate("UserBorrowBooksSearchResult", "\346\237\245\350\257\242\347\273\223\346\236\234", nullptr)); 106 | retrun_pushbutton->setText(QCoreApplication::translate("UserBorrowBooksSearchResult", "\350\277\224\345\233\236", nullptr)); 107 | personalcenter_pushbutton->setText(QCoreApplication::translate("UserBorrowBooksSearchResult", "\344\270\252\344\272\272\344\270\255\345\277\203", nullptr)); 108 | borrow_pushbutton->setText(QCoreApplication::translate("UserBorrowBooksSearchResult", "\345\200\237\351\230\205", nullptr)); 109 | select_radioButton->setText(QCoreApplication::translate("UserBorrowBooksSearchResult", "\351\200\211\346\213\251\345\205\250\351\203\250", nullptr)); 110 | freshtable_pushbutton->setText(QCoreApplication::translate("UserBorrowBooksSearchResult", "\345\210\267\346\226\260", nullptr)); 111 | } // retranslateUi 112 | 113 | }; 114 | 115 | namespace Ui { 116 | class UserBorrowBooksSearchResult: public Ui_UserBorrowBooksSearchResult {}; 117 | } // namespace Ui 118 | 119 | QT_END_NAMESPACE 120 | 121 | #endif // UI_USERBORROWBOOKSSEARCHRESULT_H 122 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/ui_usermanage.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'usermanage.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.14.2 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_USERMANAGE_H 10 | #define UI_USERMANAGE_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | QT_BEGIN_NAMESPACE 22 | 23 | class Ui_userManage 24 | { 25 | public: 26 | QLabel *label; 27 | QPushButton *retrun_pushbutton; 28 | QPushButton *fresh_pushbutton; 29 | QLabel *label_2; 30 | QLineEdit *delete_lineEdit; 31 | QPushButton *delete_pushbutton; 32 | QLabel *label_4; 33 | QLineEdit *retry_lineEdit; 34 | QTableWidget *user_tableview; 35 | QPushButton *exit_pushbutton; 36 | 37 | void setupUi(QWidget *userManage) 38 | { 39 | if (userManage->objectName().isEmpty()) 40 | userManage->setObjectName(QString::fromUtf8("userManage")); 41 | userManage->resize(721, 513); 42 | QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 43 | sizePolicy.setHorizontalStretch(0); 44 | sizePolicy.setVerticalStretch(0); 45 | sizePolicy.setHeightForWidth(userManage->sizePolicy().hasHeightForWidth()); 46 | userManage->setSizePolicy(sizePolicy); 47 | userManage->setMinimumSize(QSize(60, 0)); 48 | userManage->setStyleSheet(QString::fromUtf8("background-color:white")); 49 | label = new QLabel(userManage); 50 | label->setObjectName(QString::fromUtf8("label")); 51 | label->setGeometry(QRect(190, 10, 221, 41)); 52 | QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Preferred); 53 | sizePolicy1.setHorizontalStretch(0); 54 | sizePolicy1.setVerticalStretch(0); 55 | sizePolicy1.setHeightForWidth(label->sizePolicy().hasHeightForWidth()); 56 | label->setSizePolicy(sizePolicy1); 57 | QFont font; 58 | font.setPointSize(20); 59 | font.setBold(true); 60 | font.setWeight(75); 61 | label->setFont(font); 62 | label->setMouseTracking(false); 63 | label->setContextMenuPolicy(Qt::ActionsContextMenu); 64 | label->setLayoutDirection(Qt::LeftToRight); 65 | label->setAlignment(Qt::AlignCenter); 66 | retrun_pushbutton = new QPushButton(userManage); 67 | retrun_pushbutton->setObjectName(QString::fromUtf8("retrun_pushbutton")); 68 | retrun_pushbutton->setEnabled(true); 69 | retrun_pushbutton->setGeometry(QRect(0, 480, 101, 31)); 70 | QFont font1; 71 | font1.setPointSize(15); 72 | font1.setBold(true); 73 | font1.setWeight(75); 74 | retrun_pushbutton->setFont(font1); 75 | fresh_pushbutton = new QPushButton(userManage); 76 | fresh_pushbutton->setObjectName(QString::fromUtf8("fresh_pushbutton")); 77 | fresh_pushbutton->setEnabled(true); 78 | fresh_pushbutton->setGeometry(QRect(620, 380, 101, 31)); 79 | fresh_pushbutton->setFont(font1); 80 | label_2 = new QLabel(userManage); 81 | label_2->setObjectName(QString::fromUtf8("label_2")); 82 | label_2->setGeometry(QRect(0, 380, 121, 31)); 83 | QFont font2; 84 | font2.setPointSize(16); 85 | font2.setBold(true); 86 | font2.setWeight(75); 87 | label_2->setFont(font2); 88 | delete_lineEdit = new QLineEdit(userManage); 89 | delete_lineEdit->setObjectName(QString::fromUtf8("delete_lineEdit")); 90 | delete_lineEdit->setGeometry(QRect(140, 380, 121, 31)); 91 | delete_pushbutton = new QPushButton(userManage); 92 | delete_pushbutton->setObjectName(QString::fromUtf8("delete_pushbutton")); 93 | delete_pushbutton->setEnabled(true); 94 | delete_pushbutton->setGeometry(QRect(300, 430, 101, 31)); 95 | delete_pushbutton->setFont(font1); 96 | label_4 = new QLabel(userManage); 97 | label_4->setObjectName(QString::fromUtf8("label_4")); 98 | label_4->setGeometry(QRect(0, 430, 121, 31)); 99 | label_4->setFont(font2); 100 | retry_lineEdit = new QLineEdit(userManage); 101 | retry_lineEdit->setObjectName(QString::fromUtf8("retry_lineEdit")); 102 | retry_lineEdit->setGeometry(QRect(140, 430, 121, 31)); 103 | user_tableview = new QTableWidget(userManage); 104 | user_tableview->setObjectName(QString::fromUtf8("user_tableview")); 105 | user_tableview->setGeometry(QRect(-10, 60, 731, 311)); 106 | user_tableview->setSortingEnabled(false); 107 | user_tableview->horizontalHeader()->setCascadingSectionResizes(false); 108 | user_tableview->horizontalHeader()->setMinimumSectionSize(29); 109 | user_tableview->horizontalHeader()->setDefaultSectionSize(120); 110 | user_tableview->horizontalHeader()->setStretchLastSection(true); 111 | user_tableview->verticalHeader()->setVisible(false); 112 | exit_pushbutton = new QPushButton(userManage); 113 | exit_pushbutton->setObjectName(QString::fromUtf8("exit_pushbutton")); 114 | exit_pushbutton->setEnabled(true); 115 | exit_pushbutton->setGeometry(QRect(620, 480, 101, 31)); 116 | exit_pushbutton->setFont(font1); 117 | 118 | retranslateUi(userManage); 119 | 120 | QMetaObject::connectSlotsByName(userManage); 121 | } // setupUi 122 | 123 | void retranslateUi(QWidget *userManage) 124 | { 125 | userManage->setWindowTitle(QCoreApplication::translate("userManage", "Form", nullptr)); 126 | label->setText(QCoreApplication::translate("userManage", "\345\275\223\345\211\215\347\224\250\346\210\267", nullptr)); 127 | retrun_pushbutton->setText(QCoreApplication::translate("userManage", "\350\277\224\345\233\236", nullptr)); 128 | fresh_pushbutton->setText(QCoreApplication::translate("userManage", "\345\210\267\346\226\260", nullptr)); 129 | label_2->setText(QCoreApplication::translate("userManage", "\345\210\240\351\231\244\347\224\250\346\210\267", nullptr)); 130 | delete_lineEdit->setText(QCoreApplication::translate("userManage", "\347\224\250\346\210\267\345\220\215", nullptr)); 131 | delete_pushbutton->setText(QCoreApplication::translate("userManage", "\345\210\240\351\231\244", nullptr)); 132 | label_4->setText(QCoreApplication::translate("userManage", "\351\252\214\350\257\201\347\240\201", nullptr)); 133 | retry_lineEdit->setText(QString()); 134 | exit_pushbutton->setText(QCoreApplication::translate("userManage", "\351\200\200\345\207\272", nullptr)); 135 | } // retranslateUi 136 | 137 | }; 138 | 139 | namespace Ui { 140 | class userManage: public Ui_userManage {}; 141 | } // namespace Ui 142 | 143 | QT_END_NAMESPACE 144 | 145 | #endif // UI_USERMANAGE_H 146 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/ui_userretuenbooks.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'userretuenbooks.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.14.2 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_USERRETUENBOOKS_H 10 | #define UI_USERRETUENBOOKS_H 11 | 12 | #include 13 | #include 14 | #include 15 | 16 | QT_BEGIN_NAMESPACE 17 | 18 | class Ui_UserRetuenBook 19 | { 20 | public: 21 | 22 | void setupUi(QWidget *UserRetuenBook) 23 | { 24 | if (UserRetuenBook->objectName().isEmpty()) 25 | UserRetuenBook->setObjectName(QString::fromUtf8("UserRetuenBook")); 26 | UserRetuenBook->resize(449, 511); 27 | 28 | retranslateUi(UserRetuenBook); 29 | 30 | QMetaObject::connectSlotsByName(UserRetuenBook); 31 | } // setupUi 32 | 33 | void retranslateUi(QWidget *UserRetuenBook) 34 | { 35 | UserRetuenBook->setWindowTitle(QCoreApplication::translate("UserRetuenBook", "Form", nullptr)); 36 | } // retranslateUi 37 | 38 | }; 39 | 40 | namespace Ui { 41 | class UserRetuenBook: public Ui_UserRetuenBook {}; 42 | } // namespace Ui 43 | 44 | QT_END_NAMESPACE 45 | 46 | #endif // UI_USERRETUENBOOKS_H 47 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/ui_userreturnbooks.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'userreturnbooks.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.14.2 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_USERRETURNBOOKS_H 10 | #define UI_USERRETURNBOOKS_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | QT_BEGIN_NAMESPACE 23 | 24 | class Ui_UserReturnBooks 25 | { 26 | public: 27 | QPushButton *personalcenter_pushbutton; 28 | QPushButton *freshtable_pushbutton; 29 | QComboBox *comboBox; 30 | QRadioButton *select_radioButton; 31 | QLabel *label; 32 | QPushButton *returnbook_pushbutton; 33 | QTableWidget *tableWidget; 34 | QPushButton *retrun_pushbutton; 35 | 36 | void setupUi(QWidget *UserReturnBooks) 37 | { 38 | if (UserReturnBooks->objectName().isEmpty()) 39 | UserReturnBooks->setObjectName(QString::fromUtf8("UserReturnBooks")); 40 | UserReturnBooks->resize(581, 299); 41 | personalcenter_pushbutton = new QPushButton(UserReturnBooks); 42 | personalcenter_pushbutton->setObjectName(QString::fromUtf8("personalcenter_pushbutton")); 43 | personalcenter_pushbutton->setEnabled(true); 44 | personalcenter_pushbutton->setGeometry(QRect(480, 270, 101, 31)); 45 | QFont font; 46 | font.setPointSize(15); 47 | font.setBold(true); 48 | font.setWeight(75); 49 | personalcenter_pushbutton->setFont(font); 50 | freshtable_pushbutton = new QPushButton(UserReturnBooks); 51 | freshtable_pushbutton->setObjectName(QString::fromUtf8("freshtable_pushbutton")); 52 | freshtable_pushbutton->setEnabled(true); 53 | freshtable_pushbutton->setGeometry(QRect(0, 220, 101, 31)); 54 | freshtable_pushbutton->setFont(font); 55 | comboBox = new QComboBox(UserReturnBooks); 56 | comboBox->setObjectName(QString::fromUtf8("comboBox")); 57 | comboBox->setGeometry(QRect(292, 220, 181, 31)); 58 | select_radioButton = new QRadioButton(UserReturnBooks); 59 | select_radioButton->setObjectName(QString::fromUtf8("select_radioButton")); 60 | select_radioButton->setGeometry(QRect(140, 220, 111, 31)); 61 | label = new QLabel(UserReturnBooks); 62 | label->setObjectName(QString::fromUtf8("label")); 63 | label->setGeometry(QRect(30, 10, 521, 91)); 64 | QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 65 | sizePolicy.setHorizontalStretch(0); 66 | sizePolicy.setVerticalStretch(0); 67 | sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth()); 68 | label->setSizePolicy(sizePolicy); 69 | QFont font1; 70 | font1.setPointSize(50); 71 | font1.setBold(true); 72 | font1.setItalic(true); 73 | font1.setUnderline(false); 74 | font1.setWeight(75); 75 | label->setFont(font1); 76 | label->setFrameShape(QFrame::NoFrame); 77 | label->setFrameShadow(QFrame::Plain); 78 | label->setTextFormat(Qt::AutoText); 79 | label->setScaledContents(false); 80 | label->setAlignment(Qt::AlignCenter); 81 | label->setWordWrap(false); 82 | returnbook_pushbutton = new QPushButton(UserReturnBooks); 83 | returnbook_pushbutton->setObjectName(QString::fromUtf8("returnbook_pushbutton")); 84 | returnbook_pushbutton->setEnabled(true); 85 | returnbook_pushbutton->setGeometry(QRect(480, 220, 101, 31)); 86 | returnbook_pushbutton->setFont(font); 87 | tableWidget = new QTableWidget(UserReturnBooks); 88 | tableWidget->setObjectName(QString::fromUtf8("tableWidget")); 89 | tableWidget->setGeometry(QRect(0, 110, 581, 101)); 90 | retrun_pushbutton = new QPushButton(UserReturnBooks); 91 | retrun_pushbutton->setObjectName(QString::fromUtf8("retrun_pushbutton")); 92 | retrun_pushbutton->setEnabled(true); 93 | retrun_pushbutton->setGeometry(QRect(0, 270, 101, 31)); 94 | retrun_pushbutton->setFont(font); 95 | 96 | retranslateUi(UserReturnBooks); 97 | 98 | QMetaObject::connectSlotsByName(UserReturnBooks); 99 | } // setupUi 100 | 101 | void retranslateUi(QWidget *UserReturnBooks) 102 | { 103 | UserReturnBooks->setWindowTitle(QCoreApplication::translate("UserReturnBooks", "Form", nullptr)); 104 | personalcenter_pushbutton->setText(QCoreApplication::translate("UserReturnBooks", "\344\270\252\344\272\272\344\270\255\345\277\203", nullptr)); 105 | freshtable_pushbutton->setText(QCoreApplication::translate("UserReturnBooks", "\345\210\267\346\226\260", nullptr)); 106 | select_radioButton->setText(QCoreApplication::translate("UserReturnBooks", "\344\270\200\351\224\256\345\275\222\350\277\230\345\205\250\351\203\250", nullptr)); 107 | label->setText(QCoreApplication::translate("UserReturnBooks", "\345\233\276\344\271\246\345\275\222\350\277\230", nullptr)); 108 | returnbook_pushbutton->setText(QCoreApplication::translate("UserReturnBooks", "\345\275\222\350\277\230", nullptr)); 109 | retrun_pushbutton->setText(QCoreApplication::translate("UserReturnBooks", "\350\277\224\345\233\236", nullptr)); 110 | } // retranslateUi 111 | 112 | }; 113 | 114 | namespace Ui { 115 | class UserReturnBooks: public Ui_UserReturnBooks {}; 116 | } // namespace Ui 117 | 118 | QT_END_NAMESPACE 119 | 120 | #endif // UI_USERRETURNBOOKS_H 121 | -------------------------------------------------------------------------------- /build-studip-Desktop_Qt_5_14_2_MinGW_64_bit-Debug/ui_userwindow.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'userwindow.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.14.2 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_USERWINDOW_H 10 | #define UI_USERWINDOW_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | QT_BEGIN_NAMESPACE 19 | 20 | class Ui_UserWindow 21 | { 22 | public: 23 | QPushButton *person_center_pushbutton; 24 | QPushButton *retrun_pushbutton; 25 | QLabel *label; 26 | QPushButton *borrow_books_pushbutton; 27 | QPushButton *returnbooks_pushbutton; 28 | 29 | void setupUi(QWidget *UserWindow) 30 | { 31 | if (UserWindow->objectName().isEmpty()) 32 | UserWindow->setObjectName(QString::fromUtf8("UserWindow")); 33 | UserWindow->resize(612, 450); 34 | UserWindow->setStyleSheet(QString::fromUtf8("background-color:white")); 35 | person_center_pushbutton = new QPushButton(UserWindow); 36 | person_center_pushbutton->setObjectName(QString::fromUtf8("person_center_pushbutton")); 37 | person_center_pushbutton->setEnabled(true); 38 | person_center_pushbutton->setGeometry(QRect(500, 420, 113, 31)); 39 | QFont font; 40 | font.setPointSize(15); 41 | font.setBold(true); 42 | font.setWeight(75); 43 | person_center_pushbutton->setFont(font); 44 | person_center_pushbutton->setAutoDefault(true); 45 | retrun_pushbutton = new QPushButton(UserWindow); 46 | retrun_pushbutton->setObjectName(QString::fromUtf8("retrun_pushbutton")); 47 | retrun_pushbutton->setEnabled(true); 48 | retrun_pushbutton->setGeometry(QRect(0, 420, 101, 31)); 49 | retrun_pushbutton->setFont(font); 50 | label = new QLabel(UserWindow); 51 | label->setObjectName(QString::fromUtf8("label")); 52 | label->setGeometry(QRect(20, 10, 541, 111)); 53 | QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 54 | sizePolicy.setHorizontalStretch(0); 55 | sizePolicy.setVerticalStretch(0); 56 | sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth()); 57 | label->setSizePolicy(sizePolicy); 58 | QFont font1; 59 | font1.setPointSize(50); 60 | font1.setBold(true); 61 | font1.setItalic(true); 62 | font1.setUnderline(false); 63 | font1.setWeight(75); 64 | label->setFont(font1); 65 | label->setFrameShape(QFrame::NoFrame); 66 | label->setFrameShadow(QFrame::Plain); 67 | label->setTextFormat(Qt::AutoText); 68 | label->setScaledContents(false); 69 | label->setAlignment(Qt::AlignCenter); 70 | label->setWordWrap(false); 71 | borrow_books_pushbutton = new QPushButton(UserWindow); 72 | borrow_books_pushbutton->setObjectName(QString::fromUtf8("borrow_books_pushbutton")); 73 | borrow_books_pushbutton->setGeometry(QRect(190, 170, 191, 42)); 74 | QFont font2; 75 | font2.setPointSize(20); 76 | font2.setBold(true); 77 | font2.setWeight(75); 78 | borrow_books_pushbutton->setFont(font2); 79 | returnbooks_pushbutton = new QPushButton(UserWindow); 80 | returnbooks_pushbutton->setObjectName(QString::fromUtf8("returnbooks_pushbutton")); 81 | returnbooks_pushbutton->setGeometry(QRect(190, 300, 191, 42)); 82 | returnbooks_pushbutton->setFont(font2); 83 | 84 | retranslateUi(UserWindow); 85 | 86 | QMetaObject::connectSlotsByName(UserWindow); 87 | } // setupUi 88 | 89 | void retranslateUi(QWidget *UserWindow) 90 | { 91 | UserWindow->setWindowTitle(QCoreApplication::translate("UserWindow", "Form", nullptr)); 92 | person_center_pushbutton->setText(QCoreApplication::translate("UserWindow", "\344\270\252\344\272\272\344\270\255\345\277\203", nullptr)); 93 | retrun_pushbutton->setText(QCoreApplication::translate("UserWindow", "\350\277\224\345\233\236", nullptr)); 94 | label->setText(QCoreApplication::translate("UserWindow", "WELCOME!", nullptr)); 95 | borrow_books_pushbutton->setText(QCoreApplication::translate("UserWindow", "\345\233\276\344\271\246\345\200\237\351\230\205", nullptr)); 96 | returnbooks_pushbutton->setText(QCoreApplication::translate("UserWindow", "\345\233\276\344\271\246\345\275\222\350\277\230", nullptr)); 97 | } // retranslateUi 98 | 99 | }; 100 | 101 | namespace Ui { 102 | class UserWindow: public Ui_UserWindow {}; 103 | } // namespace Ui 104 | 105 | QT_END_NAMESPACE 106 | 107 | #endif // UI_USERWINDOW_H 108 | -------------------------------------------------------------------------------- /sql_code/book_table_insert.sql: -------------------------------------------------------------------------------- 1 | #插入数据 2 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 3 | VALUES("数据库系统概论","王珊","高等教育出版社",50,50,"教育"); 4 | 5 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 6 | VALUES("离散数学","屈婉玲","高等教育出版社",50,50,"教育"); 7 | 8 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 9 | VALUES("C++ Primer","Stanley B.Lippman","中国公信出版社",50,50,"教育"); 10 | 11 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 12 | VALUES("C++ Primer Plus","Stanley B.Lippman","中国公信出版社",50,50,"教育"); 13 | 14 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 15 | VALUES("高等数学(上)","同济大学数学系","高等教育出版社",50,50,"教育"); 16 | 17 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 18 | VALUES("高等数学(下)","同济大学数学系","高等教育出版社",50,50,"教育"); 19 | 20 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 21 | VALUES("Java语言程序设计(基础篇)","Y.Daniel Liang","机械工业版社",50,50,"教育"); 22 | 23 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 24 | VALUES("Java语言程序设计(提高)","Y.Daniel Liang","机械工业版社",50,50,"教育"); 25 | 26 | #第二次插入 27 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 28 | VALUES("龙族1火之晨曦","江南","人民文学",50,50,"小说"); 29 | 30 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 31 | VALUES("龙族2悼亡者之瞳","江南","人民文学",50,50,"小说"); 32 | 33 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 34 | VALUES("龙族3黑夜之潮","江南","人民文学",50,50,"小说"); 35 | 36 | INSERT INTO book(title,author,publisher,all_count,current_count,booktype) 37 | VALUES("龙族4奥丁之渊","江南","人民文学",50,50,"小说"); 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /sql_code/borrow_table_insert.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO borrow(customer_name,title,borrow_time,return_time,borrow_count,return_count) 2 | VALUES ("陈伟林","高等数学(下)",NOW(),NULL,1,0), 3 | ("陈伟林","离散数学",NOW(),NULL,2,0); 4 | 5 | 6 | UPDATE book SET current_count = all_count + 7 | IFNULL((SELECT SUM(return_count) FROM borrow 8 | WHERE borrow.`title` = '离散数学' AND 9 | borrow.`return_time` IS NOT NULL),0) - 10 | IFNULL((SELECT SUM(borrow_count) FROM borrow 11 | WHERE borrow.`title` = '离散数学' AND 12 | borrow.`borrow_time` IS NOT NULL),0) 13 | WHERE book.`title` = '离散数学' 14 | 15 | 16 | UPDATE book SET current_count = all_count + 17 | IFNULL((SELECT SUM(return_count) 18 | FROM borrow WHERE borrow.`title` = '离散数学' 19 | AND borrow.`return_time` IS NOT NULL),0) 20 | - IFNULL((SELECT SUM(borrow_count) 21 | FROM borrow WHERE borrow.`title` = '离散数学' 22 | AND borrow.`borrow_time` IS NOT NULL),0) WHERE book.`title` = '离散数学' 23 | 24 | 25 | SELECT * FROM book -------------------------------------------------------------------------------- /sql_code/create_tables.sql: -------------------------------------------------------------------------------- 1 | #建表 2 | 3 | 4 | CREATE TABLE book 5 | ( 6 | title VARCHAR(50) PRIMARY KEY, 7 | author VARCHAR(50), 8 | publisher VARCHAR(50), 9 | all_count INT, 10 | current_count INT, 11 | booktype VARCHAR(50) 12 | ); 13 | 14 | CREATE TABLE customer 15 | ( 16 | customer_name VARCHAR(50) PRIMARY KEY, 17 | gender VARCHAR(50), 18 | customer_password VARCHAR(50), 19 | create_date DATE, 20 | customer_type VARCHAR(50) 21 | ); 22 | 23 | CREATE TABLE borrow 24 | ( 25 | customer_name VARCHAR(50), 26 | title VARCHAR(50), 27 | borrow_time DATETIME, 28 | return_time DATETIME, 29 | borrow_count INT, 30 | return_count INT, 31 | FOREIGN KEY(customer_name) REFERENCES customer(customer_name) ON UPDATE CASCADE ON DELETE CASCADE, 32 | FOREIGN KEY(title) REFERENCES book(title) ON UPDATE CASCADE ON DELETE CASCADE 33 | ); -------------------------------------------------------------------------------- /sql_code/customer_table_insert.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO customer(customer_name,gender,customer_password,create_date,customer_type) 2 | VALUES("陈渊琪","男","123456",CURRENT_DATE(),"用户"); 3 | 4 | INSERT INTO customer(customer_name,gender,customer_password,create_date,customer_type) 5 | VALUES("肖晓红","男","123456",CURRENT_DATE(),"用户"); 6 | 7 | INSERT INTO customer(customer_name,gender,customer_password,create_date,customer_type) 8 | VALUES("陈东海","男","123456",CURRENT_DATE(),"用户"); 9 | 10 | INSERT INTO customer(customer_name,gender,customer_password,create_date,customer_type) 11 | VALUES("陈伟林","男","123456",CURRENT_DATE(),"管理员"); 12 | 13 | INSERT INTO customer(customer_name,gender,customer_password,create_date,customer_type) 14 | VALUES("陈义芳","女","123456",CURRENT_DATE(),"用户"); -------------------------------------------------------------------------------- /studip/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/studip/background.png -------------------------------------------------------------------------------- /studip/borrowrecord.cpp: -------------------------------------------------------------------------------- 1 | #include "borrowrecord.h" 2 | #include "ui_borrowrecord.h" 3 | 4 | BorrowRecord::BorrowRecord(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::BorrowRecord) 7 | { 8 | ui->setupUi(this); 9 | 10 | ui->comboBox->setEditable(false); //设置不可编辑 11 | 12 | /*设置借书记录表*/ 13 | ui->borrow_tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers); //不能编辑表格 14 | ui->borrow_tableWidget->horizontalHeader()->setStyleSheet("QHeaderView::section {" 15 | "color: black;padding-left: 4px;border: 1px solid #6c6c6c;}");//设置表头风格 16 | 17 | ui->borrow_tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);//行自适应 18 | // ui->tableWidget->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch); //列自适应 19 | 20 | /*设置还书记录表*/ 21 | ui->return_tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers); //不能编辑表格 22 | ui->return_tableWidget->horizontalHeader()->setStyleSheet("QHeaderView::section {" 23 | "color: black;padding-left: 4px;border: 1px solid #6c6c6c;}");//设置表头风格 24 | 25 | ui->return_tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);//行自适应 26 | // ui->tableWidget->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch); //列自适应 27 | 28 | resettingRecords(); 29 | //管理员提交返回申请 30 | connect(ui->retrun_pushbutton,&QPushButton::clicked,this,&BorrowRecord::returnLastWindow); 31 | //管理员提交筛选申请 32 | connect(ui->filter_pushbutton,&QPushButton::clicked,this,&BorrowRecord::filterRecords); 33 | //管理员提交退出申请 34 | connect(ui->exit_pushbutton,&QPushButton::clicked,this,&BorrowRecord::close); 35 | //用户提交重置申请 36 | connect(ui->resetting_pushbutton,&QPushButton::clicked,this,&BorrowRecord::resettingRecords); 37 | } 38 | 39 | BorrowRecord::~BorrowRecord() 40 | { 41 | delete ui; 42 | } 43 | 44 | void BorrowRecord::freshReturnTable(QString title) 45 | { 46 | ui->return_tableWidget->clear(); 47 | ui->comboBox->clear(); 48 | 49 | QStringList header = {"还书人","所还书籍","还书时间","还书数量"}; 50 | QString sqlstr; 51 | QSqlQuery query(DataBase::db); 52 | if(title == nullptr){ 53 | sqlstr = QString("SELECT borrow.`customer_name`,borrow.`title`,borrow.`return_time`,borrow.`return_count` \ 54 | FROM borrow \ 55 | WHERE borrow.`return_time` IS NOT NULL"); 56 | }else{ 57 | sqlstr = QString("SELECT borrow.`customer_name`,borrow.`title`,borrow.`return_time`,borrow.`return_count` \ 58 | FROM borrow \ 59 | WHERE borrow.`return_time` IS NOT NULL AND borrow.`title` = '%1'").arg(title); 60 | } 61 | if(!query.exec(sqlstr)){ 62 | qDebug()<<"BorrowRecord::freshReturnTable(QString title) 执行失败"; 63 | qDebug()<return_tableWidget->setColumnCount(colcnt); //列数 73 | ui->return_tableWidget->setRowCount(query.size()); //行数 74 | ui->return_tableWidget->setHorizontalHeaderLabels(header); //设置表头 75 | 76 | QSet titles; 77 | short rowcnt = 0; 78 | while (query.next()) { 79 | titles.insert(query.value(1).toString()); 80 | for(int i = 0; i < colcnt; i++){ 81 | /*setItem设置条目栏中的一个格子的信息*/ 82 | QTableWidgetItem* item = new QTableWidgetItem(query.value(i).toString()); 83 | // 表格内元素设置字体居中 84 | item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); 85 | ui->return_tableWidget->setItem(rowcnt, i, item); 86 | } 87 | rowcnt++; 88 | } 89 | for(auto& x : titles) ui->comboBox->addItem(x); 90 | } 91 | 92 | void BorrowRecord::freshBorrowTable(QString title) 93 | { 94 | ui->borrow_tableWidget->clear(); 95 | ui->comboBox->clear(); 96 | QStringList header = {"借书人","所借书籍","借阅时间","借阅数量"}; 97 | QString sqlstr; 98 | QSqlQuery query(DataBase::db); 99 | if(title == nullptr){ 100 | sqlstr = QString("SELECT borrow.`customer_name`,borrow.`title`,borrow.`borrow_time`,borrow.`borrow_count` \ 101 | FROM borrow \ 102 | WHERE borrow.`borrow_time` IS NOT NULL"); 103 | }else{ 104 | sqlstr = QString("SELECT borrow.`customer_name`,borrow.`title`,borrow.`borrow_time`,borrow.`borrow_count` \ 105 | FROM borrow \ 106 | WHERE borrow.`borrow_time` IS NOT NULL AND borrow.`title` = '%1'").arg(title); 107 | } 108 | if(!query.exec(sqlstr)){ 109 | qDebug()<<"BorrowRecord::freshReturnTable(QString title) 执行失败"; 110 | qDebug()<borrow_tableWidget->setColumnCount(colcnt); //列数 120 | ui->borrow_tableWidget->setRowCount(query.size()); //行数 121 | ui->borrow_tableWidget->setHorizontalHeaderLabels(header); //设置表头 122 | 123 | QSet titles; 124 | short rowcnt = 0; 125 | while (query.next()) { 126 | titles.insert(query.value(1).toString()); 127 | for(int i = 0; i < colcnt; i++){ 128 | /*setItem设置条目栏中的一个格子的信息*/ 129 | QTableWidgetItem* item = new QTableWidgetItem(query.value(i).toString()); 130 | // 表格内元素设置字体居中 131 | item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); 132 | ui->borrow_tableWidget->setItem(rowcnt, i, item); 133 | } 134 | rowcnt++; 135 | } 136 | for(auto& x : titles) ui->comboBox->addItem(x); 137 | } 138 | 139 | void BorrowRecord::filterRecords() 140 | { 141 | freshReturnTable(ui->comboBox->currentText()); 142 | freshBorrowTable(ui->comboBox->currentText()); 143 | } 144 | 145 | void BorrowRecord::resettingRecords() 146 | { 147 | freshReturnTable(); 148 | freshBorrowTable(); 149 | } 150 | 151 | void BorrowRecord::returnLastWindow() 152 | { 153 | this->close(); 154 | ManagerWindow* father = new ManagerWindow; 155 | father->show(); 156 | } 157 | -------------------------------------------------------------------------------- /studip/borrowrecord.h: -------------------------------------------------------------------------------- 1 | #ifndef BORROWRECORD_H 2 | #define BORROWRECORD_H 3 | 4 | #include 5 | #include "managerwindow.h" 6 | namespace Ui { 7 | class BorrowRecord; 8 | } 9 | 10 | class BorrowRecord : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit BorrowRecord(QWidget *parent = nullptr); 16 | ~BorrowRecord(); 17 | 18 | private: 19 | Ui::BorrowRecord *ui; 20 | void freshReturnTable(QString title = nullptr); 21 | void freshBorrowTable(QString title = nullptr); 22 | void filterRecords(); 23 | void resettingRecords(); 24 | void returnLastWindow(); 25 | }; 26 | 27 | #endif // BORROWRECORD_H 28 | -------------------------------------------------------------------------------- /studip/borrowrecord.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | BorrowRecord 4 | 5 | 6 | 7 | 0 8 | 0 9 | 549 10 | 289 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 0 20 | 0 21 | 551 22 | 201 23 | 24 | 25 | 26 | 1 27 | 28 | 29 | 30 | 借书记录 31 | 32 | 33 | 34 | 35 | 0 36 | 1 37 | 551 38 | 171 39 | 40 | 41 | 42 | 43 | 44 | 45 | 还书记录 46 | 47 | 48 | 49 | 50 | 0 51 | 1 52 | 551 53 | 171 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | true 62 | 63 | 64 | 65 | 450 66 | 210 67 | 101 68 | 31 69 | 70 | 71 | 72 | 73 | 15 74 | 75 75 | true 76 | 77 | 78 | 79 | 查看 80 | 81 | 82 | 83 | 84 | true 85 | 86 | 87 | 88 | 250 89 | 210 90 | 191 91 | 31 92 | 93 | 94 | 95 | 96 | 0 97 | 0 98 | 99 | 100 | 101 | 102 | Microsoft YaHei UI Light 103 | 12 104 | 75 105 | false 106 | true 107 | false 108 | 109 | 110 | 111 | false 112 | 113 | 114 | false 115 | 116 | 117 | false 118 | 119 | 120 | Qt::LeftToRight 121 | 122 | 123 | true 124 | 125 | 126 | 127 | 128 | true 129 | 130 | 131 | 132 | 0 133 | 260 134 | 101 135 | 31 136 | 137 | 138 | 139 | 140 | 15 141 | 75 142 | true 143 | 144 | 145 | 146 | 返回 147 | 148 | 149 | 150 | 151 | true 152 | 153 | 154 | 155 | 450 156 | 260 157 | 101 158 | 31 159 | 160 | 161 | 162 | 163 | 15 164 | 75 165 | true 166 | 167 | 168 | 169 | 退出 170 | 171 | 172 | 173 | 174 | true 175 | 176 | 177 | 178 | 0 179 | 210 180 | 101 181 | 31 182 | 183 | 184 | 185 | 186 | 15 187 | 75 188 | true 189 | 190 | 191 | 192 | 重置 193 | 194 | 195 | 196 | 197 | 198 | 199 | -------------------------------------------------------------------------------- /studip/database.cpp: -------------------------------------------------------------------------------- 1 | #include "database.h" 2 | 3 | DataBase::DataBase() 4 | { 5 | } 6 | 7 | QMap> DataBase::allusers; //所有用户部分信息 8 | 9 | QVector DataBase:: currentuser; //当前用户所有信息 10 | 11 | QSqlDatabase DataBase::db; //数据库 12 | 13 | 14 | void DataBase::openDatabase(){ 15 | db=QSqlDatabase::addDatabase("QMYSQL"); 16 | db.setHostName("127.0.0.1"); //连接数据库主机名 17 | db.setPort(3306); //连接数据库端口号,与设置一致 18 | db.setDatabaseName("book_manager_system"); //连接数据库名,与设置一致 19 | db.setUserName("root"); //数据库用户名,与设置一致 20 | db.setPassword("123456"); //数据库密码,与设置一致 21 | db.open(); //打开数据库 22 | } 23 | 24 | void DataBase::initUsers(){ 25 | allusers.clear(); 26 | QSqlQuery query(db); 27 | if(query.exec("SELECT customer_name, customer_password, customer_type FROM customer")){ 28 | qDebug()<<"执行成功"; 29 | while(query.next()){ 30 | QString username = query.value(0).toString(); 31 | QString password = query.value(1).toString(); 32 | QString type = query.value(2).toString(); 33 | allusers[username] = {password,type}; 34 | } 35 | } 36 | qDebug()<<"用户数量"< 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | class DataBase 12 | { 13 | public: 14 | DataBase(); 15 | static const int USERNAME = 0; 16 | static const int GENDER = 1; 17 | static const int PASSWORD = 2; 18 | static const int CURATE_DATE = 3; 19 | static const int TYPE = 4; 20 | static void initUsers(); 21 | static void openDatabase(); 22 | // static QSet* users; 23 | static QMap> allusers; //所有用户部分信息 24 | static QVector currentuser; //当前用户所有信息 25 | static QSqlDatabase db; 26 | private: 27 | }; 28 | #endif // DATABASE_H 29 | -------------------------------------------------------------------------------- /studip/images.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | background.png 4 | images/background.png 5 | images/qq.png 6 | images/man.png 7 | images/woman.png 8 | 9 | 10 | -------------------------------------------------------------------------------- /studip/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/studip/images/background.png -------------------------------------------------------------------------------- /studip/images/man.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/studip/images/man.png -------------------------------------------------------------------------------- /studip/images/qq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/studip/images/qq.png -------------------------------------------------------------------------------- /studip/images/woman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/studip/images/woman.png -------------------------------------------------------------------------------- /studip/main.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include "user_register.h" 3 | #include 4 | #include "usermanage.h" 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | DataBase::openDatabase(); 9 | 10 | DataBase::initUsers(); 11 | MainWindow w; 12 | w.show(); 13 | 14 | // UserBorrowBooks s; 15 | // s.show(); 16 | 17 | // User_Register s; 18 | // s.show(); 19 | 20 | // userManage s; 21 | // s.show(); 22 | 23 | return a.exec(); 24 | } 25 | -------------------------------------------------------------------------------- /studip/mainwindow.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include "ui_mainwindow.h" 3 | 4 | MainWindow::MainWindow(QWidget *parent) 5 | : QMainWindow(parent) 6 | , ui(new Ui::MainWindow) 7 | { 8 | ui->setupUi(this); 9 | 10 | DataBase::initUsers(); 11 | 12 | //保存用户信息 13 | ui->username_lineedit->setText(DataBase::currentuser.size() == 0 ? "":DataBase::currentuser[0]); 14 | ui->password_lineedit->setText(DataBase::currentuser.size() == 0 ? "":DataBase::currentuser[2]); 15 | 16 | //用户注册 17 | connect(ui->register_pushbutton,&QPushButton::clicked,this,&MainWindow::userRegester); 18 | //用户登录 19 | connect(ui->login_pushbutton,&QPushButton::clicked,this,&MainWindow::login); 20 | //退出登录系统 21 | connect(ui->exit_pushbutton,&QPushButton::clicked,this,&MainWindow::close); 22 | } 23 | 24 | MainWindow::~MainWindow() 25 | { 26 | delete ui; 27 | } 28 | 29 | void MainWindow::login(){ 30 | QString username=ui->username_lineedit->text(); 31 | QString password=ui->password_lineedit->text(); 32 | if(username == ""){ 33 | QMessageBox::critical(this, "Wrong","请完整输入用户名",QMessageBox::Close); 34 | }else if(password == ""){ 35 | QMessageBox::critical(this, "Wrong","请输入密码",QMessageBox::Close); 36 | }else if(!ui->customer_radiobutton->isChecked() && !ui->manager_radiobutton->isChecked()){ 37 | QMessageBox::critical(this, "Wrong","请选择用户组别",QMessageBox::Close); 38 | }else if(DataBase::allusers.count(username) == 0){ 39 | QMessageBox::critical(this, "Wrong","未找到该用户,请输入正确的用户名",QMessageBox::Close); 40 | }else if(DataBase::allusers[username][0] != password){ 41 | QMessageBox::critical(this, "Wrong","用户密码错误,请重新输入",QMessageBox::Close); 42 | }else if((ui->manager_radiobutton->isChecked() && DataBase::allusers[username][1] != "管理员")){ 43 | QMessageBox::critical(this, "Wrong","您不是管理员",QMessageBox::Close); 44 | }else { 45 | QSqlQuery query(DataBase::db); 46 | query.exec("SELECT * from customer where customer_name = '"+username+"'"); 47 | while (query.next()) { 48 | DataBase::currentuser.clear(); 49 | for(int i = 0; i < 5; i++){ 50 | DataBase::currentuser.push_back(query.value(i).toString()); 51 | } 52 | } 53 | QMessageBox::information(this, "succeed","上午好! " + username,QMessageBox::Close); 54 | this->close(); 55 | if(ui->customer_radiobutton->isChecked()){ 56 | UserWindow* child = new UserWindow; 57 | child->exec(); 58 | }else{ 59 | ManagerWindow* child = new ManagerWindow; 60 | child->show(); 61 | } 62 | } 63 | } 64 | 65 | void MainWindow::userRegester(){ 66 | User_Register* child = new User_Register; 67 | child->exec(); 68 | } 69 | -------------------------------------------------------------------------------- /studip/mainwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINWINDOW_H 2 | #define MAINWINDOW_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include "userwindow.h" 13 | #include "user_register.h" 14 | #include "managerwindow.h" 15 | QT_BEGIN_NAMESPACE 16 | namespace Ui { class MainWindow; } 17 | QT_END_NAMESPACE 18 | 19 | class MainWindow : public QMainWindow 20 | { 21 | Q_OBJECT 22 | 23 | public: 24 | MainWindow(QWidget *parent = nullptr); 25 | ~MainWindow(); 26 | 27 | private: 28 | Ui::MainWindow *ui; 29 | 30 | public slots: 31 | void login(); //用户登录 32 | void userRegester(); //用户注册 33 | }; 34 | #endif // MAINWINDOW_H 35 | -------------------------------------------------------------------------------- /studip/mainwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | MainWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 576 10 | 484 11 | 12 | 13 | 14 | MainWindow 15 | 16 | 17 | background-color:white 18 | 19 | 20 | 21 | 22 | true 23 | 24 | 25 | 26 | 140 27 | 40 28 | 391 29 | 91 30 | 31 | 32 | 33 | 34 | 0 35 | 0 36 | 37 | 38 | 39 | 40 | 50 41 | 50 42 | 43 | 44 | 45 | 46 | Agency FB 47 | 36 48 | 75 49 | false 50 | true 51 | 52 | 53 | 54 | false 55 | 56 | 57 | Qt::LeftToRight 58 | 59 | 60 | 图书管理系统 61 | 62 | 63 | 64 | 65 | 66 | 230 67 | 150 68 | 132 69 | 40 70 | 71 | 72 | 73 | 74 | 0 75 | 0 76 | 77 | 78 | 79 | 80 | Agency FB 81 | 20 82 | 83 | 84 | 85 | 用户登录 86 | 87 | 88 | 89 | 90 | 91 | 180 92 | 400 93 | 282 94 | 46 95 | 96 | 97 | 98 | 99 | 0 100 | 0 101 | 102 | 103 | 104 | 105 | 106 | 107 | Qt::Horizontal 108 | 109 | 110 | 111 | 40 112 | 20 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 登录 121 | 122 | 123 | 124 | images/qq.pngimages/qq.png 125 | 126 | 127 | 128 | 129 | 130 | 131 | 退出 132 | 133 | 134 | 135 | 136 | 137 | 138 | Qt::Horizontal 139 | 140 | 141 | 142 | 20 143 | 20 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 150 154 | 210 155 | 261 156 | 121 157 | 158 | 159 | 160 | 161 | 0 162 | 0 163 | 164 | 165 | 166 | Qt::LeftToRight 167 | 168 | 169 | 170 | 171 | 172 | Qt::Horizontal 173 | 174 | 175 | 176 | 40 177 | 20 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 用户名: 186 | 187 | 188 | 189 | 190 | 191 | 192 | 密码 : 193 | 194 | 195 | 196 | 197 | 198 | 199 | Qt::Horizontal 200 | 201 | 202 | 203 | 40 204 | 20 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | font: 25 14pt '微软雅黑 Light'; 213 | color: rgb(31,31,31); 214 | padding-left:20px; 215 | background-color: rgb(255, 255, 255); 216 | border:2px solid rgb(20,196,188); 217 | border-radius:15px; 218 | 219 | 220 | 221 | 222 | 223 | QLineEdit::Password 224 | 225 | 226 | 227 | 228 | 229 | 230 | font: 25 14pt '微软雅黑 Light'; 231 | color: rgb(31,31,31); 232 | padding-left:20px; 233 | background-color: rgb(255, 255, 255); 234 | border:2px solid rgb(20,196,188); 235 | border-radius:15px; 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 280 245 | 350 246 | 231 247 | 38 248 | 249 | 250 | 251 | 252 | 0 253 | 0 254 | 255 | 256 | 257 | Qt::LeftToRight 258 | 259 | 260 | 261 | 262 | 263 | Qt::Horizontal 264 | 265 | 266 | 267 | 40 268 | 20 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 用户 277 | 278 | 279 | 280 | 281 | 282 | 283 | 管理员 284 | 285 | 286 | 287 | 288 | 289 | 290 | Qt::Horizontal 291 | 292 | 293 | 294 | 40 295 | 20 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 420 306 | 460 307 | 161 308 | 28 309 | 310 | 311 | 312 | color:red; 313 | text-decoration: underline; 314 | border:none 315 | 316 | 317 | 还没有账户?立即注册 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | -------------------------------------------------------------------------------- /studip/managerinputbooks.cpp: -------------------------------------------------------------------------------- 1 | #include "managerinputbooks.h" 2 | #include "ui_managerinputbooks.h" 3 | 4 | ManagerInputBooks::ManagerInputBooks(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::ManagerInputBooks) 7 | { 8 | ui->setupUi(this); 9 | 10 | //管理员提交图书入库申请 11 | connect(ui->comfirm_pushbutton,&QPushButton::clicked,this,&ManagerInputBooks::inputBooks); 12 | //管理员提交取消申请 13 | connect(ui->cancel_pushbutton,&QPushButton::clicked,this,&ManagerInputBooks::cancelInoutBooks); 14 | } 15 | 16 | ManagerInputBooks::~ManagerInputBooks() 17 | { 18 | delete ui; 19 | } 20 | 21 | void ManagerInputBooks::inputBooks() 22 | { 23 | QSqlQuery query(DataBase::db); 24 | 25 | if(ui->title_lineedit->text() == ""){ 26 | QMessageBox::critical(this, "Wrong","请输入完整书名",QMessageBox::Close); 27 | }else if(ui->author_lineedit->text() == ""){ 28 | QMessageBox::critical(this, "Wrong","请输入完整作者名",QMessageBox::Close); 29 | }else if(ui->publisher_lineedit->text() == ""){ 30 | QMessageBox::critical(this, "Wrong","请输入完整出版社名",QMessageBox::Close); 31 | }else if(ui->all_count_lineedit->text() == "" || ui->all_count_lineedit->text().toInt() <= 0){ 32 | QMessageBox::critical(this, "Wrong","请输入有效数量",QMessageBox::Close); 33 | }else if(ui->booktype_lineedit->text() == ""){ 34 | QMessageBox::critical(this, "Wrong","请输入完整书类型名",QMessageBox::Close); 35 | }else{ 36 | QString sqlstr = QString("INSERT INTO book(title,author,publisher,all_count,current_count,booktype) \ 37 | VALUES ('%1','%2','%3','%4','%5','%6')"). 38 | arg(ui->title_lineedit->text()). 39 | arg(ui->author_lineedit->text()). 40 | arg(ui->publisher_lineedit->text()). 41 | arg(ui->all_count_lineedit->text()). 42 | arg(ui->all_count_lineedit->text()). 43 | arg(ui->booktype_lineedit->text()); 44 | if(!query.exec(sqlstr)){ 45 | qDebug()<close(); 56 | } 57 | -------------------------------------------------------------------------------- /studip/managerinputbooks.h: -------------------------------------------------------------------------------- 1 | #ifndef MANAGERINPUTBOOKS_H 2 | #define MANAGERINPUTBOOKS_H 3 | 4 | #include 5 | #include 6 | #include "database.h" 7 | #include "managerwindow.h" 8 | namespace Ui { 9 | class ManagerInputBooks; 10 | } 11 | 12 | class ManagerInputBooks : public QWidget 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit ManagerInputBooks(QWidget *parent = nullptr); 18 | ~ManagerInputBooks(); 19 | 20 | private: 21 | Ui::ManagerInputBooks *ui; 22 | private slots: 23 | void inputBooks(); 24 | void cancelInoutBooks(); 25 | }; 26 | 27 | #endif // MANAGERINPUTBOOKS_H 28 | -------------------------------------------------------------------------------- /studip/managerinputbooks.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | ManagerInputBooks 4 | 5 | 6 | 7 | 0 8 | 0 9 | 342 10 | 375 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | background-color:white 18 | 19 | 20 | 21 | 22 | 120 23 | 10 24 | 141 25 | 61 26 | 27 | 28 | 29 | 30 | 0 31 | 0 32 | 33 | 34 | 35 | 36 | 20 37 | 75 38 | false 39 | true 40 | false 41 | false 42 | PreferAntialias 43 | 44 | 45 | 46 | false 47 | 48 | 49 | 图书入库 50 | 51 | 52 | Qt::AlignCenter 53 | 54 | 55 | 56 | 57 | 58 | 40 59 | 80 60 | 281 61 | 251 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 0 70 | 0 71 | 72 | 73 | 74 | QLineEdit::Normal 75 | 76 | 77 | 78 | 79 | 80 | 81 | 数量 : 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 0 90 | 0 91 | 92 | 93 | 94 | QLineEdit::Normal 95 | 96 | 97 | 98 | 99 | 100 | 101 | Qt::Horizontal 102 | 103 | 104 | 105 | 40 106 | 20 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 作者 : 115 | 116 | 117 | 118 | 119 | 120 | 121 | 出版社: 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 0 130 | 0 131 | 132 | 133 | 134 | QLineEdit::Normal 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 0 143 | 0 144 | 145 | 146 | 147 | QLineEdit::Normal 148 | 149 | 150 | 151 | 152 | 153 | 154 | 类别 : 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 书名 : 165 | 166 | 167 | 168 | 169 | 170 | 171 | Qt::Horizontal 172 | 173 | 174 | 175 | 40 176 | 20 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 0 187 | 350 188 | 93 189 | 24 190 | 191 | 192 | 193 | 194 | 12 195 | 50 196 | false 197 | 198 | 199 | 200 | 确定 201 | 202 | 203 | false 204 | 205 | 206 | 207 | 208 | 209 | 240 210 | 350 211 | 101 212 | 24 213 | 214 | 215 | 216 | 217 | 12 218 | 50 219 | false 220 | 221 | 222 | 223 | 取消 224 | 225 | 226 | 227 | 228 | 229 | 230 | -------------------------------------------------------------------------------- /studip/managerwindow.cpp: -------------------------------------------------------------------------------- 1 | #include "managerwindow.h" 2 | #include "ui_managerwindow.h" 3 | 4 | ManagerWindow::ManagerWindow(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::ManagerWindow) 7 | { 8 | ui->setupUi(this); 9 | 10 | //管理员提交图书入库申请 11 | connect(ui->inputbooks_pushButton,&QPushButton::clicked,this,&ManagerWindow::inputBooks); 12 | //管理员提交用户管理申请 13 | connect(ui->usermanage_pushButton,&QPushButton::clicked,this,&ManagerWindow::_userManage); 14 | //管理员提交借阅记录申请 15 | connect(ui->borrow_pushButton,&QPushButton::clicked,this,&ManagerWindow::borrowManage); 16 | //管理员提交返回申请 17 | connect(ui->retrun_pushbutton,&QPushButton::clicked,this,&ManagerWindow::returnLastWindow); 18 | //管理员提交查看个人中心申请 19 | connect(ui->person_center_pushbutton,&QPushButton::clicked,this,&ManagerWindow::enterPersonalCenter); 20 | } 21 | 22 | ManagerWindow::~ManagerWindow() 23 | { 24 | delete ui; 25 | } 26 | 27 | void ManagerWindow::inputBooks(){ 28 | ManagerInputBooks* child = new ManagerInputBooks; 29 | child->show(); 30 | } 31 | 32 | void ManagerWindow::_userManage(){ 33 | this->close(); 34 | userManage* child = new userManage; //命名有些失误 35 | child->show(); 36 | } 37 | 38 | void ManagerWindow::borrowManage(){ 39 | this->close(); 40 | BorrowRecord* child = new BorrowRecord; 41 | child->show(); 42 | } 43 | 44 | void ManagerWindow::returnLastWindow(){ 45 | this->close(); 46 | MainWindow* father = new MainWindow; 47 | father->show(); 48 | } 49 | 50 | void ManagerWindow::enterPersonalCenter(){ 51 | this->close(); 52 | PersonalCenter* child = new PersonalCenter(PersonalCenter::MANAGERWINDOW); 53 | child->show(); 54 | } 55 | -------------------------------------------------------------------------------- /studip/managerwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef MANAGERWINDOW_H 2 | #define MANAGERWINDOW_H 3 | 4 | #include 5 | #include "usermanage.h" 6 | #include "mainwindow.h" 7 | #include "managerinputbooks.h" 8 | #include "borrowrecord.h" 9 | namespace Ui { 10 | class ManagerWindow; 11 | } 12 | 13 | class ManagerWindow : public QWidget 14 | { 15 | Q_OBJECT 16 | 17 | public: 18 | explicit ManagerWindow(QWidget *parent = nullptr); 19 | ~ManagerWindow(); 20 | 21 | private slots: 22 | void inputBooks(); 23 | void borrowManage(); 24 | void _userManage(); 25 | void returnLastWindow(); 26 | void enterPersonalCenter(); 27 | private: 28 | Ui::ManagerWindow *ui; 29 | }; 30 | 31 | #endif // MANAGERWINDOW_H 32 | -------------------------------------------------------------------------------- /studip/managerwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | ManagerWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 570 10 | 440 11 | 12 | 13 | 14 | 15 | 0 16 | 0 17 | 18 | 19 | 20 | Form 21 | 22 | 23 | background-color:white 24 | 25 | 26 | 27 | true 28 | 29 | 30 | 31 | 0 32 | 410 33 | 101 34 | 31 35 | 36 | 37 | 38 | 39 | 15 40 | 75 41 | true 42 | 43 | 44 | 45 | 返回 46 | 47 | 48 | 49 | 50 | 51 | 40 52 | 0 53 | 461 54 | 111 55 | 56 | 57 | 58 | 59 | 0 60 | 0 61 | 62 | 63 | 64 | 65 | 50 66 | 75 67 | true 68 | true 69 | false 70 | 71 | 72 | 73 | QFrame::NoFrame 74 | 75 | 76 | QFrame::Plain 77 | 78 | 79 | WELCOME! 80 | 81 | 82 | Qt::AutoText 83 | 84 | 85 | false 86 | 87 | 88 | Qt::AlignCenter 89 | 90 | 91 | false 92 | 93 | 94 | 95 | 96 | true 97 | 98 | 99 | 100 | 460 101 | 410 102 | 113 103 | 31 104 | 105 | 106 | 107 | 108 | 15 109 | 75 110 | true 111 | 112 | 113 | 114 | 个人中心 115 | 116 | 117 | true 118 | 119 | 120 | 121 | 122 | 123 | 200 124 | 150 125 | 161 126 | 41 127 | 128 | 129 | 130 | 131 | 20 132 | 75 133 | true 134 | 135 | 136 | 137 | 用户管理 138 | 139 | 140 | 141 | 142 | 143 | 200 144 | 220 145 | 161 146 | 41 147 | 148 | 149 | 150 | 151 | 20 152 | 75 153 | true 154 | 155 | 156 | 157 | 图书入库 158 | 159 | 160 | 161 | 162 | 163 | 200 164 | 290 165 | 161 166 | 41 167 | 168 | 169 | 170 | 171 | 20 172 | 75 173 | true 174 | 175 | 176 | 177 | 借阅记录 178 | 179 | 180 | 181 | 182 | 183 | 184 | -------------------------------------------------------------------------------- /studip/personalcenter.cpp: -------------------------------------------------------------------------------- 1 | #include "personalcenter.h" 2 | #include "ui_personalcenter.h" 3 | 4 | 5 | 6 | PersonalCenter::PersonalCenter(int type,QWidget *parent) : 7 | QWidget(parent), 8 | ui(new Ui::PersonalCenter) 9 | { 10 | ui->setupUi(this); 11 | 12 | this->type = type; 13 | 14 | /*刷新提示*/ 15 | ui->returnbook_label->clear(); 16 | ui->borrowbook_label->clear(); 17 | /*借书表属性设置*/ 18 | ui->borrowbook_tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers); //不能编辑表格 19 | ui->borrowbook_tableWidget->horizontalHeader()->setStyleSheet("QHeaderView::section {" 20 | "color: black;padding-left: 4px;border: 1px solid #6c6c6c;}");//设置表头风格 21 | 22 | ui->borrowbook_tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);//行自适应 23 | // ui->tableWidget->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch); //列自适应 24 | 25 | /*还书表属性设置*/ 26 | ui->return_tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers); //不能编辑表格 27 | ui->return_tableWidget->horizontalHeader()->setStyleSheet("QHeaderView::section {" 28 | "color: black;padding-left: 4px;border: 1px solid #6c6c6c;}");//设置表头风格 29 | 30 | ui->return_tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);//行自适应 31 | // ui->return_tableWidget->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch); //列自适应 32 | 33 | freshPersonalCenter(); //刷新用户界面 34 | 35 | freshBorrowBook(); //刷新借书记录 36 | 37 | freshReturnBook(); //刷新还书记录 38 | 39 | //用户提交返回申请 40 | connect(ui->retrun_pushbutton,&QPushButton::clicked,this,&PersonalCenter::returnLastWindow); 41 | //用户提交退出申请 42 | connect(ui->exit_pushbutton,&QPushButton::clicked,this,&PersonalCenter::close); 43 | //用户提交更改信息申请 44 | connect(ui->change_pushbutton,&QPushButton::clicked,this,&PersonalCenter::alterInformatioin); 45 | } 46 | 47 | PersonalCenter::PersonalCenter(int type,QString item, QString itemname,QWidget *parent):PersonalCenter(type,parent){ 48 | this->item = item; 49 | this->itemname = itemname; 50 | } 51 | 52 | 53 | PersonalCenter::~PersonalCenter() 54 | { 55 | delete ui; 56 | } 57 | 58 | void PersonalCenter::freshPersonalCenter(){ 59 | QPixmap *pixmap; 60 | if(DataBase::currentuser[DataBase::GENDER] == "女")pixmap = new QPixmap(":/images/woman.png"); 61 | else pixmap = new QPixmap(":/images/man.png"); 62 | 63 | pixmap->scaled(ui->image_label->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation); 64 | ui->image_label->setScaledContents(true); 65 | ui->image_label->setPixmap(*pixmap); 66 | 67 | ui->username_label->setText(DataBase::currentuser[DataBase::USERNAME]); 68 | ui->gender_label->setText(DataBase::currentuser[DataBase::GENDER]); 69 | ui->password_label->setText(DataBase::currentuser[DataBase::PASSWORD]); 70 | ui->cteatedate_label->setText(DataBase::currentuser[DataBase::CURATE_DATE]); 71 | ui->type_label->setText(DataBase::currentuser[DataBase::TYPE]); 72 | } 73 | 74 | void PersonalCenter::freshBorrowBook(){ 75 | ui->borrowbook_label->clear(); 76 | 77 | QStringList header = {"书名","借阅时间","借阅数量"}; 78 | QSqlQuery query(DataBase::db); 79 | QString sqlstr = QString("SELECT title,borrow_time,borrow_count FROM borrow WHERE customer_name = '%1' AND" 80 | " borrow_time IS NOT NULL") 81 | .arg(DataBase::currentuser[DataBase::USERNAME]); 82 | query.exec(sqlstr); 83 | if(!query.size()){ 84 | ui->borrowbook_label->setText("暂无记录"); 85 | } 86 | int colcnt = query.record().count(); 87 | 88 | ui->borrowbook_tableWidget->setColumnCount(colcnt); //列数 89 | ui->borrowbook_tableWidget->setRowCount(query.size()); //行数 90 | 91 | ui->borrowbook_tableWidget->setHorizontalHeaderLabels(header); //设置表头 92 | short rowcnt = 0; 93 | while (query.next()) { 94 | for(int i = 0; i < colcnt; i++){ 95 | /*setItem设置条目栏中的一个格子的信息*/ 96 | QTableWidgetItem* item = new QTableWidgetItem(query.value(i).toString()); 97 | // 表格内元素设置字体居中 98 | item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); 99 | ui->borrowbook_tableWidget->setItem(rowcnt, i, item); 100 | } 101 | rowcnt++; 102 | } 103 | } 104 | 105 | 106 | void PersonalCenter::freshReturnBook(){ 107 | ui->returnbook_label->clear(); 108 | 109 | QStringList header = {"书名","还书时间","还书数量"}; 110 | QSqlQuery query(DataBase::db); 111 | QString sqlstr = QString("SELECT title,return_time,return_count FROM borrow WHERE customer_name = '%1' AND return_time IS NOT NULL") 112 | .arg(DataBase::currentuser[DataBase::USERNAME]); 113 | query.exec(sqlstr); 114 | if(!query.size()){ 115 | ui->returnbook_label->setText("暂无记录"); 116 | } 117 | int colcnt = query.record().count(); 118 | 119 | ui->return_tableWidget->setColumnCount(colcnt); //列数 120 | ui->return_tableWidget->setRowCount(query.size()); //行数 121 | 122 | ui->return_tableWidget->setHorizontalHeaderLabels(header); //设置表头 123 | short rowcnt = 0; 124 | while (query.next()) { 125 | for(int i = 0; i < colcnt; i++){ 126 | /*setItem设置条目栏中的一个格子的信息*/ 127 | QTableWidgetItem* item = new QTableWidgetItem(query.value(i).toString()); 128 | // 表格内元素设置字体居中 129 | item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); 130 | ui->return_tableWidget->setItem(rowcnt, i, item); 131 | } 132 | rowcnt++; 133 | } 134 | } 135 | 136 | 137 | void PersonalCenter::returnLastWindow(){ 138 | this->close(); 139 | if(type == PersonalCenter::USERWINDOW){ 140 | UserWindow* father = new UserWindow; 141 | father->show(); 142 | }else if(type == PersonalCenter::MANAGERWINDOW){ 143 | ManagerWindow* father = new ManagerWindow; 144 | father->show(); 145 | }else if(type == PersonalCenter::USERBORROWBOOKS){ 146 | UserBorrowBooks* father = new UserBorrowBooks; 147 | father->show(); 148 | }else if(type == PersonalCenter::USERRETURNBOOKS){ 149 | UserReturnBooks* father = new UserReturnBooks; 150 | father->show(); 151 | }else{ 152 | MainWindow* father = new MainWindow; 153 | father->show(); 154 | } 155 | } 156 | 157 | void PersonalCenter::alterInformatioin(){ 158 | int index = ui->change_comboBox->currentIndex(); 159 | QString item = ui->change_lineEdit->text(); 160 | if(item == ""){ 161 | QMessageBox::critical(this, "Wrong","输入内容不能为空",QMessageBox::Close); 162 | return; 163 | }else if(item.size() > 12){ 164 | QMessageBox::critical(this, "Wrong","输入内容内容过长",QMessageBox::Close); 165 | return; 166 | }else if(index == 1 && item != "男" && item != "女"){ 167 | QMessageBox::critical(this, "Wrong","无效性别",QMessageBox::Close); 168 | return; 169 | } 170 | QVector vec = {"customer_name","gender","customer_password"}; 171 | QString sqlstr = ""; 172 | QSqlQuery query(DataBase::db); 173 | sqlstr = QString("UPDATE customer SET %1 = '%2' WHERE customer_name = '%3'") 174 | .arg(vec[index]).arg(item).arg(DataBase::currentuser[DataBase::USERNAME]); 175 | query.exec(sqlstr); 176 | QMessageBox::information(this, "succeed","修改成功",QMessageBox::Close); 177 | 178 | DataBase::currentuser[index] = item; //修改本地用户信息 179 | 180 | freshPersonalCenter(); 181 | 182 | } 183 | -------------------------------------------------------------------------------- /studip/personalcenter.h: -------------------------------------------------------------------------------- 1 | #ifndef PERSONALCENTER_H 2 | #define PERSONALCENTER_H 3 | 4 | #include 5 | #include "userwindow.h" 6 | #include "managerwindow.h" 7 | #include "userborrowbooks.h" 8 | #include "userreturnbooks.h" 9 | #include "database.h" 10 | #include 11 | namespace Ui { 12 | class PersonalCenter; 13 | } 14 | 15 | class PersonalCenter : public QWidget 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | static const short USERWINDOW = 0; 21 | static const short MANAGERWINDOW = 1; 22 | static const short USERBORROWBOOKS = 2; 23 | static const short USERRETURNBOOKS = 3; 24 | 25 | explicit PersonalCenter(int type,QWidget *parent = nullptr); 26 | explicit PersonalCenter(int type,QString item, QString itemname,QWidget *parent = nullptr); 27 | ~PersonalCenter(); 28 | 29 | private slots: 30 | void alterInformatioin(); //改变用户信息 31 | void returnLastWindow(); //返回上一级目录 32 | private: 33 | Ui::PersonalCenter *ui; 34 | int type; //返回上级目录的类型 35 | QString item; 36 | QString itemname; 37 | void freshPersonalCenter(); //刷新个人中心数据 38 | void freshBorrowBook(); //刷新借阅表 39 | void freshReturnBook(); //刷新还书表 40 | 41 | }; 42 | 43 | #endif // PERSONALCENTER_H 44 | -------------------------------------------------------------------------------- /studip/studip.pro: -------------------------------------------------------------------------------- 1 | QT += core gui 2 | 3 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 4 | 5 | CONFIG += c++11 6 | 7 | # The following define makes your compiler emit warnings if you use 8 | # any Qt feature that has been marked deprecated (the exact warnings 9 | # depend on your compiler). Please consult the documentation of the 10 | # deprecated API in order to know how to port your code away from it. 11 | DEFINES += QT_DEPRECATED_WARNINGS 12 | 13 | # You can also make your code fail to compile if it uses deprecated APIs. 14 | # In order to do so, uncomment the following line. 15 | # You can also select to disable deprecated APIs only up to a certain version of Qt. 16 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 17 | 18 | SOURCES += \ 19 | borrowrecord.cpp \ 20 | database.cpp \ 21 | main.cpp \ 22 | mainwindow.cpp \ 23 | managerinputbooks.cpp \ 24 | managerwindow.cpp \ 25 | personalcenter.cpp \ 26 | test.cpp \ 27 | user_register.cpp \ 28 | userborrowbooks.cpp \ 29 | usermanage.cpp \ 30 | userreturnbooks.cpp \ 31 | userwindow.cpp 32 | 33 | HEADERS += \ 34 | borrowrecord.h \ 35 | database.h \ 36 | mainwindow.h \ 37 | managerinputbooks.h \ 38 | managerwindow.h \ 39 | personalcenter.h \ 40 | test.h \ 41 | user_register.h \ 42 | userborrowbooks.h \ 43 | usermanage.h \ 44 | userreturnbooks.h \ 45 | userwindow.h 46 | 47 | FORMS += \ 48 | borrowrecord.ui \ 49 | mainwindow.ui \ 50 | managerinputbooks.ui \ 51 | managerwindow.ui \ 52 | personalcenter.ui \ 53 | user_register.ui \ 54 | userborrowbooks.ui \ 55 | usermanage.ui \ 56 | userreturnbooks.ui \ 57 | userwindow.ui 58 | 59 | QT += sql 60 | 61 | # Default rules for deployment. 62 | qnx: target.path = /tmp/$${TARGET}/bin 63 | else: unix:!android: target.path = /opt/$${TARGET}/bin 64 | !isEmpty(target.path): INSTALLS += target 65 | 66 | RESOURCES += \ 67 | images.qrc 68 | 69 | DISTFILES += \ 70 | images/background.png \ 71 | images/qq.png 72 | -------------------------------------------------------------------------------- /studip/test.cpp: -------------------------------------------------------------------------------- 1 | #include "test.h" 2 | 3 | test::test() 4 | { 5 | 6 | } 7 | -------------------------------------------------------------------------------- /studip/test.h: -------------------------------------------------------------------------------- 1 | #ifndef TEST_H 2 | #define TEST_H 3 | 4 | 5 | class test 6 | { 7 | public: 8 | test(); 9 | }; 10 | 11 | #endif // TEST_H 12 | -------------------------------------------------------------------------------- /studip/user_register.cpp: -------------------------------------------------------------------------------- 1 | #include "user_register.h" 2 | #include "ui_user_register.h" 3 | User_Register::User_Register(QWidget *parent) : 4 | QDialog(parent), 5 | ui(new Ui::User_Register) 6 | { 7 | ui->setupUi(this); 8 | ui->gender_comboBox->setEditable(false); //设置不可编辑 9 | //提交注册申请 10 | connect(ui->register_pushButton_2,&QPushButton::clicked,this,&User_Register::user_register); 11 | //提交返回申请 12 | connect(ui->cancel_pushbutton_2,&QPushButton::clicked,this,&User_Register::close); 13 | } 14 | 15 | User_Register::~User_Register() 16 | { 17 | delete ui; 18 | } 19 | 20 | void User_Register::user_register(){ 21 | QString username=ui->username_lineedit_2->text(); //获取用户输入的姓名 22 | QString password=ui->password_lineedit_2->text(); //获取用户输入的密码 23 | QString gender = ui->gender_comboBox->currentText(); //获取用户选择的性别 24 | if(username == ""){ 25 | QMessageBox::critical(this, "Wrong","请完整输入用户名",QMessageBox::Close); 26 | }else if(password == ""){ 27 | QMessageBox::critical(this, "Wrong","请输入密码",QMessageBox::Close); 28 | }else if(password.size() > 12){ 29 | QMessageBox::critical(this, "Wrong","密码过长,请输入12位字符以内的密码",QMessageBox::Close); 30 | }else if(DataBase::allusers.count(username) != 0){ 31 | QMessageBox::critical(this, "Wrong","用户已存在,请重新输入用户名",QMessageBox::Close); 32 | }else{ 33 | QSqlQuery query(DataBase::db); 34 | QString str = "INSERT INTO customer(customer_name,gender,customer_password,create_date,customer_type)"; 35 | str.append(" VALUES('"+username+"',"+"'"+gender+"',"+"'"+password+"',CURRENT_DATE(),'用户')"); 36 | if(query.exec(str)){ 37 | QMessageBox::information(this, "succeed","注册成功",QMessageBox::Close); 38 | DataBase::initUsers(); 39 | }else{ 40 | QMessageBox::critical(this, "Wrong","注册失败",QMessageBox::Close); 41 | } 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /studip/user_register.h: -------------------------------------------------------------------------------- 1 | #ifndef USER_REGISTER_H 2 | #define USER_REGISTER_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | namespace Ui { 12 | class User_Register; 13 | } 14 | 15 | class User_Register : public QDialog 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit User_Register(QWidget *parent = nullptr); 21 | ~User_Register(); 22 | 23 | private: 24 | Ui::User_Register *ui; 25 | 26 | private slots: 27 | void user_register(); 28 | }; 29 | 30 | #endif // USER_REGISTER_H 31 | -------------------------------------------------------------------------------- /studip/user_register.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | User_Register 4 | 5 | 6 | 7 | 0 8 | 0 9 | 281 10 | 298 11 | 12 | 13 | 14 | 15 | 0 16 | 0 17 | 18 | 19 | 20 | Form 21 | 22 | 23 | background-color:white 24 | 25 | 26 | 27 | 28 | 90 29 | 0 30 | 141 31 | 61 32 | 33 | 34 | 35 | 36 | 0 37 | 0 38 | 39 | 40 | 41 | 42 | 20 43 | 75 44 | false 45 | true 46 | false 47 | false 48 | PreferAntialias 49 | 50 | 51 | 52 | false 53 | 54 | 55 | 用户注册 56 | 57 | 58 | 59 | 60 | 61 | 20 62 | 80 63 | 256 64 | 121 65 | 66 | 67 | 68 | 69 | 70 | 24 71 | 50 72 | 61 73 | 16 74 | 75 | 76 | 77 | 性别 : 78 | 79 | 80 | 81 | 82 | 83 | 91 84 | 51 85 | 51 86 | 21 87 | 88 | 89 | 90 | border:none 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 91 107 | 83 108 | 141 109 | 21 110 | 111 | 112 | 113 | 114 | 0 115 | 0 116 | 117 | 118 | 119 | QLineEdit::Password 120 | 121 | 122 | 123 | 124 | 125 | 24 126 | 16 127 | 60 128 | 16 129 | 130 | 131 | 132 | 用户名: 133 | 134 | 135 | 136 | 137 | 138 | 91 139 | 16 140 | 141 141 | 21 142 | 143 | 144 | 145 | 146 | 147 | 148 | 24 149 | 83 150 | 61 151 | 16 152 | 153 | 154 | 155 | 密码 : 156 | 157 | 158 | 159 | 160 | 161 | 162 | 40 163 | 260 164 | 210 165 | 46 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 12 174 | 50 175 | false 176 | 177 | 178 | 179 | background-color:white 180 | 181 | 182 | 注册 183 | 184 | 185 | false 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 12 194 | 50 195 | false 196 | 197 | 198 | 199 | 取消 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | -------------------------------------------------------------------------------- /studip/userborrowbooks.cpp: -------------------------------------------------------------------------------- 1 | #include "userborrowbooks.h" 2 | #include "ui_userborrowbooks.h" 3 | 4 | UserBorrowBooks::UserBorrowBooks(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::UserBorrowBooks) 7 | { 8 | ui->setupUi(this); 9 | 10 | ui->borrow_comboBox->setEditable(false); //设置不可编辑 11 | 12 | vec = {ui->category_comboBox,ui->title_comboBox,ui->author_comboBox,ui->publisher_comboBox}; 13 | str = {"类别","书名","作者","出版社"}; 14 | str_en = {"booktype","title","author","publisher"}; 15 | 16 | resettingAllCombinBox(); 17 | 18 | //用户提交筛选申请 19 | connect(ui->filter_pushbutton,&QPushButton::clicked,this,&UserBorrowBooks::filterBooks); 20 | //用户提交搜索申请 21 | connect(ui->search_pushbutton,&QPushButton::clicked,this,&UserBorrowBooks::searchBooks); 22 | //用户提交返回申请 23 | connect(ui->retrun_pushbutton,&QPushButton::clicked,this,&UserBorrowBooks::returnLastWindow); 24 | //用户提交退出申请 25 | connect(ui->enterpersonalcenter_pushbutton,&QPushButton::clicked,this,&UserBorrowBooks::enterPersonalCenter); 26 | //用户提交重置申请 27 | connect(ui->resetting_pushbutton,&QPushButton::clicked,this,&UserBorrowBooks::resettingAllCombinBox); 28 | //用户提交借阅申请 29 | connect(ui->borrow_pushbutton,&QPushButton::clicked,this,&UserBorrowBooks::borrowBooks); 30 | } 31 | 32 | UserBorrowBooks::~UserBorrowBooks() 33 | { 34 | delete ui; 35 | } 36 | 37 | void UserBorrowBooks::resettingAllCombinBox(){ 38 | ui->allcount_lineEdit->clear(); 39 | ui->current_lineEdit->clear(); 40 | 41 | QSqlQuery query(DataBase::db); 42 | QString str = "select * from book"; 43 | query.exec(str); //此处无需特判,该sql语句必能执行成功 44 | resettingAllControls(query,true); 45 | } 46 | 47 | void UserBorrowBooks::borrowBooks() 48 | { 49 | QString title = ui->borrow_comboBox->currentText(); //获取用户选择的书籍名 50 | QString username = DataBase::currentuser[DataBase::USERNAME]; //获取当前用户的姓名 51 | 52 | QSqlQuery query(DataBase::db); 53 | QString sqlstr = QString("SELECT current_count from book where title = '%1'").arg(title); 54 | 55 | query.exec(sqlstr); 56 | while(query.next()){ 57 | if(query.value(0).toInt() == 0){ 58 | QMessageBox::critical(this, "Wrong","剩余数量不足,无法借阅",QMessageBox::Close); 59 | return; 60 | } 61 | } 62 | 63 | query.clear(); 64 | sqlstr = QString("INSERT INTO borrow(customer_name,title,borrow_time,return_time,borrow_count,return_count) \ 65 | VALUES ('%1','%2',NOW(),NULL,1,0)").arg(username).arg(title); //插入借书记录 66 | if(!query.exec(sqlstr)){ 67 | qDebug()<current_lineEdit->text() != ""){ 85 | int a = ui->current_lineEdit->text().toInt(); 86 | ui->current_lineEdit->setText(QString::number(a-1)); 87 | } 88 | 89 | QMessageBox::information(this, "succeed","借书成功",QMessageBox::Close); 90 | } 91 | 92 | void UserBorrowBooks::enterPersonalCenter() 93 | { 94 | this->close(); 95 | PersonalCenter* child = new PersonalCenter(PersonalCenter::USERBORROWBOOKS); 96 | child->show(); 97 | } 98 | 99 | void UserBorrowBooks::resettingAllControls(QSqlQuery &query,bool additem) 100 | { 101 | QVector> result(6); 102 | while(query.next()){ 103 | for(int i = 0; i < 6; i++){ 104 | result[i].insert(query.value(i).toString()); 105 | } 106 | } 107 | 108 | if(additem == false){ 109 | for(int i = 0; i < vec.size();i++){ 110 | vec[i]->clear(); 111 | for(auto& x : result[i]){ 112 | vec[i]->addItem(x); 113 | } 114 | } 115 | }else{ 116 | for(int i = 0; i < vec.size();i++){ 117 | vec[i]->clear(); 118 | vec[i]->addItem(this->str[i]); //加上标题 119 | for(auto& x : result[i]){ 120 | vec[i]->addItem(x); 121 | } 122 | } 123 | } 124 | ui->borrow_comboBox->clear(); 125 | for(auto&x: result[1]) ui->borrow_comboBox->addItem(x); 126 | if(result[1].size() == 1){ 127 | ui->allcount_lineEdit->setText(*(result[4].begin())); 128 | ui->current_lineEdit ->setText(*(result[5].begin())); 129 | } 130 | query.clear(); 131 | } 132 | 133 | void UserBorrowBooks::filterBooks(){ 134 | QSqlQuery query(DataBase::db); 135 | int i = 0; 136 | while(vec[i]->currentIndex() == 0) i++; 137 | if(i >= vec.size()) return; 138 | QString str = QString("select * from book where %1 = '%2'").arg(str_en[i]).arg(vec[i]->currentText()); 139 | query.exec(str); //此处无须特判,一定能搜索到结果 140 | resettingAllControls(query); 141 | } 142 | 143 | void UserBorrowBooks::searchBooks(){ 144 | ui->allcount_lineEdit->clear(); 145 | ui->current_lineEdit ->clear(); 146 | QSqlQuery query(DataBase::db); 147 | QString str = QString("select * from book where title = '%1'").arg(ui->title_lineEdit->text()); 148 | query.exec(str); 149 | if(query.size()){ 150 | resettingAllControls(query); 151 | return; 152 | } 153 | str = QString("select * from book where title REGEXP '^%1'").arg(ui->title_lineEdit->text()); 154 | query.exec(str); 155 | if(query.size()){ 156 | resettingAllControls(query); 157 | return; 158 | } 159 | str = QString("select * from book where title REGEXP '[%1]'").arg(ui->title_lineEdit->text()); 160 | query.exec(str); 161 | if(query.size()){ 162 | resettingAllControls(query); 163 | return; 164 | }else{ 165 | QMessageBox::information(this, "Information","未搜索到结果",QMessageBox::Close); 166 | } 167 | } 168 | 169 | void UserBorrowBooks::returnLastWindow(){ 170 | UserWindow* father = new UserWindow(); 171 | this->close(); 172 | father->exec(); 173 | } 174 | -------------------------------------------------------------------------------- /studip/userborrowbooks.h: -------------------------------------------------------------------------------- 1 | #ifndef USERBORROWBOOKS_H 2 | #define USERBORROWBOOKS_H 3 | 4 | #include 5 | #include 6 | #include "database.h" 7 | #include 8 | #include"userwindow.h" 9 | namespace Ui { 10 | class UserBorrowBooks; 11 | } 12 | 13 | class UserBorrowBooks : public QWidget 14 | { 15 | Q_OBJECT 16 | 17 | public: 18 | explicit UserBorrowBooks(QWidget *parent = nullptr); 19 | ~UserBorrowBooks(); 20 | 21 | private slots: 22 | void filterBooks(); 23 | void searchBooks(); 24 | void returnLastWindow(); 25 | void resettingAllCombinBox(); 26 | void borrowBooks(); 27 | void enterPersonalCenter(); 28 | private: 29 | Ui::UserBorrowBooks *ui; 30 | QVector vec; 31 | QVector str; 32 | QVector str_en; 33 | void resettingAllControls(QSqlQuery&query, bool additem = false); 34 | }; 35 | 36 | #endif // USERBORROWBOOKS_H 37 | -------------------------------------------------------------------------------- /studip/usermanage.cpp: -------------------------------------------------------------------------------- 1 | #include "usermanage.h" 2 | #include "ui_usermanage.h" 3 | 4 | userManage::userManage(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::userManage) 7 | { 8 | ui->setupUi(this); 9 | 10 | freshTable(); 11 | 12 | //管理员提交刷新申请 13 | connect(ui->fresh_pushbutton,&QPushButton::clicked,this,&userManage::freshTable); 14 | //用户提交返回申请 15 | connect(ui->retrun_pushbutton,&QPushButton::clicked,this,&userManage::returnLastWindow); 16 | //管理员提交删除用户申请 17 | connect(ui->delete_pushbutton,&QPushButton::clicked,this,&userManage::deleteUser); 18 | //管理员提交进入退出申请 19 | connect(ui->exit_pushbutton,&QPushButton::clicked,this,&userManage::close); 20 | } 21 | 22 | userManage::~userManage() 23 | { 24 | delete ui; 25 | } 26 | 27 | void userManage::freshTable(){ 28 | 29 | QStringList header = {"姓名","性别","密码","创建日期","组别"}; 30 | 31 | QSqlQuery query(DataBase::db); 32 | if(query.exec("SELECT * from customer where customer_type = '用户'")){ 33 | qDebug()<<"MainWindow:: 执行成功"; 34 | int colcnt = query.record().count(); 35 | 36 | ui->user_tableview->setColumnCount(colcnt); 37 | ui->user_tableview->setRowCount(query.size()); 38 | ui->user_tableview->setHorizontalHeaderLabels(header); 39 | short rowcnt = 0; 40 | while (query.next()) { 41 | for(int i = 0; i < colcnt; i++){ 42 | /*setItem设置条目栏中的一个格子的信息*/ 43 | QTableWidgetItem* item = new QTableWidgetItem(query.value(i).toString()); 44 | // 表格内元素设置字体居中 45 | item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); 46 | ui->user_tableview->setItem(rowcnt, i, item); 47 | } 48 | rowcnt++; 49 | } 50 | }else{ 51 | qDebug()<<"userManage:: 执行失败"; 52 | } 53 | 54 | } 55 | 56 | void userManage::returnLastWindow(){ 57 | this->close(); 58 | ManagerWindow* father = new ManagerWindow; 59 | father->show(); 60 | } 61 | 62 | void userManage::deleteUser(){ 63 | QString username = ui->delete_lineEdit->text(); 64 | QString deleteword = ui->retry_lineEdit->text(); 65 | if(DataBase::allusers.count(username) == 0){ 66 | QMessageBox::critical(this, "Wrong","用户不存在,请重新输入用户名",QMessageBox::Close); 67 | }else if(deleteword != this->deleteword){ 68 | QMessageBox::critical(this, "Wrong","验证码错误",QMessageBox::Close); 69 | }else{ 70 | QSqlQuery query(DataBase::db); 71 | QString sqltr = "DELETE FROM customer where customer_name = '" + username + "'"; 72 | if(query.exec(sqltr)){ 73 | QMessageBox::information(this, "succeed","删除成功",QMessageBox::Close); 74 | freshTable(); //刷新表 75 | }else{ 76 | QMessageBox::critical(this, "Wrong","删除失败",QMessageBox::Close); 77 | } 78 | } 79 | } 80 | 81 | -------------------------------------------------------------------------------- /studip/usermanage.h: -------------------------------------------------------------------------------- 1 | #ifndef USERMANAGE_H 2 | #define USERMANAGE_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include "managerwindow.h" 11 | namespace Ui { 12 | class userManage; 13 | } 14 | 15 | class userManage : public QWidget 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit userManage(QWidget *parent = nullptr); 21 | ~userManage(); 22 | 23 | 24 | private slots: 25 | void freshTable(); 26 | void returnLastWindow(); 27 | void deleteUser(); 28 | private: 29 | Ui::userManage *ui; 30 | QString deleteword = "5555"; 31 | }; 32 | 33 | #endif // USERMANAGE_H 34 | -------------------------------------------------------------------------------- /studip/usermanage.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | userManage 4 | 5 | 6 | 7 | 0 8 | 0 9 | 721 10 | 513 11 | 12 | 13 | 14 | 15 | 0 16 | 0 17 | 18 | 19 | 20 | 21 | 60 22 | 0 23 | 24 | 25 | 26 | Form 27 | 28 | 29 | background-color:white 30 | 31 | 32 | 33 | 34 | 190 35 | 10 36 | 221 37 | 41 38 | 39 | 40 | 41 | 42 | 0 43 | 0 44 | 45 | 46 | 47 | 48 | 20 49 | 75 50 | true 51 | 52 | 53 | 54 | false 55 | 56 | 57 | Qt::ActionsContextMenu 58 | 59 | 60 | Qt::LeftToRight 61 | 62 | 63 | 当前用户 64 | 65 | 66 | Qt::AlignCenter 67 | 68 | 69 | 70 | 71 | true 72 | 73 | 74 | 75 | 0 76 | 480 77 | 101 78 | 31 79 | 80 | 81 | 82 | 83 | 15 84 | 75 85 | true 86 | 87 | 88 | 89 | 返回 90 | 91 | 92 | 93 | 94 | true 95 | 96 | 97 | 98 | 620 99 | 380 100 | 101 101 | 31 102 | 103 | 104 | 105 | 106 | 15 107 | 75 108 | true 109 | 110 | 111 | 112 | 刷新 113 | 114 | 115 | 116 | 117 | 118 | 0 119 | 380 120 | 121 121 | 31 122 | 123 | 124 | 125 | 126 | 16 127 | 75 128 | true 129 | 130 | 131 | 132 | 删除用户 133 | 134 | 135 | 136 | 137 | 138 | 140 139 | 380 140 | 121 141 | 31 142 | 143 | 144 | 145 | 用户名 146 | 147 | 148 | 149 | 150 | true 151 | 152 | 153 | 154 | 300 155 | 430 156 | 101 157 | 31 158 | 159 | 160 | 161 | 162 | 15 163 | 75 164 | true 165 | 166 | 167 | 168 | 删除 169 | 170 | 171 | 172 | 173 | 174 | 0 175 | 430 176 | 121 177 | 31 178 | 179 | 180 | 181 | 182 | 16 183 | 75 184 | true 185 | 186 | 187 | 188 | 验证码 189 | 190 | 191 | 192 | 193 | 194 | 140 195 | 430 196 | 121 197 | 31 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | -10 208 | 60 209 | 731 210 | 311 211 | 212 | 213 | 214 | false 215 | 216 | 217 | false 218 | 219 | 220 | 29 221 | 222 | 223 | 120 224 | 225 | 226 | true 227 | 228 | 229 | false 230 | 231 | 232 | 233 | 234 | true 235 | 236 | 237 | 238 | 620 239 | 480 240 | 101 241 | 31 242 | 243 | 244 | 245 | 246 | 15 247 | 75 248 | true 249 | 250 | 251 | 252 | 退出 253 | 254 | 255 | 256 | 257 | 258 | 259 | -------------------------------------------------------------------------------- /studip/userreturnbooks.cpp: -------------------------------------------------------------------------------- 1 | #include "userreturnbooks.h" 2 | #include "ui_userreturnbooks.h" 3 | 4 | UserReturnBooks::UserReturnBooks(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::UserReturnBooks) 7 | { 8 | ui->setupUi(this); 9 | 10 | ui->tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers); //不能编辑表格 11 | ui->tableWidget->horizontalHeader()->setStyleSheet("QHeaderView::section {" 12 | "color: black;padding-left: 4px;border: 1px solid #6c6c6c;}");//设置表头风格 13 | 14 | ui->tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);//行自适应 15 | // ui->tableWidget->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch); //列自适应 16 | 17 | freshTable(); 18 | 19 | //用户提交返回申请 20 | connect(ui->retrun_pushbutton,&QPushButton::clicked,this,&UserReturnBooks::returnLastWindow); 21 | //用户提交进入个人中心申请 22 | connect(ui->personalcenter_pushbutton,&QPushButton::clicked,this,&UserReturnBooks::enterPersonalCenter); 23 | //用户提交借阅申请 24 | connect(ui->returnbook_pushbutton,&QPushButton::clicked,this,&UserReturnBooks::returnBooks); 25 | //用户提交刷新申请 26 | connect(ui->freshtable_pushbutton,&QPushButton::clicked,this,&UserReturnBooks::freshTable); 27 | } 28 | 29 | UserReturnBooks::~UserReturnBooks() 30 | { 31 | delete ui; 32 | } 33 | 34 | void UserReturnBooks::returnLastWindow() 35 | { 36 | this->close(); 37 | UserWindow * father = new UserWindow; 38 | father->show(); 39 | } 40 | 41 | void UserReturnBooks::enterPersonalCenter() 42 | { 43 | this->close(); 44 | PersonalCenter* child = new PersonalCenter(PersonalCenter::USERRETURNBOOKS); 45 | child->show(); 46 | } 47 | 48 | void UserReturnBooks::returnBooks() 49 | { 50 | QString title = ui->comboBox->currentText(); 51 | QString username = DataBase::currentuser[DataBase::USERNAME]; 52 | QSqlQuery query(DataBase::db); 53 | 54 | QString sqlstr = QString("INSERT INTO borrow(customer_name,title,borrow_time,return_time,borrow_count,return_count) \ 55 | VALUES ('%1','%2',NULL,NOW(),0,1)").arg(username).arg(title); //插入还书记录 56 | if(!query.exec(sqlstr)){ 57 | qDebug()<comboBox->clear(); 83 | ui->tableWidget->clear(); 84 | QStringList header = {"书名","作者","出版社","类别","应还数量"}; 85 | QSqlQuery query(DataBase::db); 86 | QString sqlstr = QString("SELECT book.`title`,book.`author`,book.`publisher`,book.`booktype`, \ 87 | (SUM(borrowA.`borrow_count`)- \ 88 | IFNULL((SELECT SUM(borrowB.`return_count`) \ 89 | FROM borrow AS borrowB \ 90 | WHERE borrowB.`customer_name` = '%1' AND \ 91 | borrowB.`return_time` IS NOT NULL AND \ 92 | borrowA.title = borrowB.title),0)) AS owe \ 93 | FROM book, borrow AS borrowA \ 94 | WHERE book.`title` = borrowA.`title` AND \ 95 | borrowA.`customer_name` = '%2' AND \ 96 | borrowA.`borrow_time` IS NOT NULL \ 97 | GROUP BY borrowA.`title`").arg(DataBase::currentuser[DataBase::USERNAME]).arg(DataBase::currentuser[DataBase::USERNAME]); 98 | if(!query.exec(sqlstr)){ 99 | qDebug()<<"执行失败"; 100 | return; 101 | } 102 | 103 | if(query.size() == 0){ 104 | ui->label->setText("未查询到借书记录"); 105 | return; 106 | } 107 | int colcnt = query.record().count(); 108 | 109 | ui->tableWidget->setColumnCount(colcnt); //列数 110 | ui->tableWidget->setRowCount(query.size()); //行数 111 | ui->tableWidget->setHorizontalHeaderLabels(header); //设置表头 112 | 113 | short rowcnt = 0; 114 | while (query.next()) { 115 | if(query.value(colcnt-1).toInt() == 0) continue; 116 | ui->comboBox->addItem(query.value(0).toString()); 117 | for(int i = 0; i < colcnt; i++){ 118 | /*setItem设置条目栏中的一个格子的信息*/ 119 | QTableWidgetItem* item = new QTableWidgetItem(query.value(i).toString()); 120 | // 表格内元素设置字体居中 121 | item->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); 122 | ui->tableWidget->setItem(rowcnt, i, item); 123 | } 124 | rowcnt++; 125 | } 126 | if(ui->comboBox->currentIndex() == -1){ 127 | ui->tableWidget->clear(); 128 | ui->label->setText("暂无书籍需还"); 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /studip/userreturnbooks.h: -------------------------------------------------------------------------------- 1 | #ifndef USERRETURNBOOKS_H 2 | #define USERRETURNBOOKS_H 3 | 4 | #include 5 | #include "userwindow.h" 6 | #include "personalcenter.h" 7 | namespace Ui { 8 | class UserReturnBooks; 9 | } 10 | 11 | class UserReturnBooks : public QWidget 12 | { 13 | Q_OBJECT 14 | 15 | public: 16 | explicit UserReturnBooks(QWidget *parent = nullptr); 17 | ~UserReturnBooks(); 18 | 19 | private: 20 | Ui::UserReturnBooks *ui; 21 | 22 | private slots: 23 | void returnLastWindow(); 24 | void enterPersonalCenter(); 25 | void returnBooks(); 26 | void freshTable(); 27 | }; 28 | 29 | #endif // USERRETURNBOOKS_H 30 | -------------------------------------------------------------------------------- /studip/userreturnbooks.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | UserReturnBooks 4 | 5 | 6 | 7 | 0 8 | 0 9 | 581 10 | 299 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | true 19 | 20 | 21 | 22 | 480 23 | 270 24 | 101 25 | 31 26 | 27 | 28 | 29 | 30 | 15 31 | 75 32 | true 33 | 34 | 35 | 36 | 个人中心 37 | 38 | 39 | 40 | 41 | true 42 | 43 | 44 | 45 | 0 46 | 220 47 | 101 48 | 31 49 | 50 | 51 | 52 | 53 | 15 54 | 75 55 | true 56 | 57 | 58 | 59 | 刷新 60 | 61 | 62 | 63 | 64 | 65 | 292 66 | 220 67 | 181 68 | 31 69 | 70 | 71 | 72 | 73 | 74 | 75 | 140 76 | 220 77 | 111 78 | 31 79 | 80 | 81 | 82 | 一键归还全部 83 | 84 | 85 | 86 | 87 | 88 | 30 89 | 10 90 | 521 91 | 91 92 | 93 | 94 | 95 | 96 | 0 97 | 0 98 | 99 | 100 | 101 | 102 | 50 103 | 75 104 | true 105 | true 106 | false 107 | 108 | 109 | 110 | QFrame::NoFrame 111 | 112 | 113 | QFrame::Plain 114 | 115 | 116 | 图书归还 117 | 118 | 119 | Qt::AutoText 120 | 121 | 122 | false 123 | 124 | 125 | Qt::AlignCenter 126 | 127 | 128 | false 129 | 130 | 131 | 132 | 133 | true 134 | 135 | 136 | 137 | 480 138 | 220 139 | 101 140 | 31 141 | 142 | 143 | 144 | 145 | 15 146 | 75 147 | true 148 | 149 | 150 | 151 | 归还 152 | 153 | 154 | 155 | 156 | 157 | 0 158 | 110 159 | 581 160 | 101 161 | 162 | 163 | 164 | 165 | 166 | true 167 | 168 | 169 | 170 | 0 171 | 270 172 | 101 173 | 31 174 | 175 | 176 | 177 | 178 | 15 179 | 75 180 | true 181 | 182 | 183 | 184 | 返回 185 | 186 | 187 | 188 | 189 | 190 | 191 | -------------------------------------------------------------------------------- /studip/userwindow.cpp: -------------------------------------------------------------------------------- 1 | #include "userwindow.h" 2 | #include "ui_userwindow.h" 3 | UserWindow::UserWindow(QWidget *parent) : 4 | QDialog(parent), 5 | ui(new Ui::UserWindow) 6 | { 7 | ui->setupUi(this); 8 | 9 | //用户提交还书申请 10 | connect(ui->returnbooks_pushbutton,&QPushButton::clicked,this,&UserWindow::returnBooks); 11 | //用户提交借书申请 12 | connect(ui->borrow_books_pushbutton,&QPushButton::clicked,this,&UserWindow::borrowBooks); 13 | //用户提交返回上级菜单申请 14 | connect(ui->retrun_pushbutton,&QPushButton::clicked,this,&UserWindow::returnLastWindow); 15 | //用户提交进入个人中心申请 16 | connect(ui->person_center_pushbutton,&QPushButton::clicked,this,&UserWindow::enterPersonalCenter); 17 | } 18 | 19 | UserWindow::~UserWindow() 20 | { 21 | delete ui; 22 | } 23 | 24 | void UserWindow::returnBooks(){ 25 | this->close(); 26 | UserReturnBooks* child = new UserReturnBooks; 27 | child->show(); 28 | } 29 | 30 | void UserWindow::borrowBooks(){ 31 | this->close(); 32 | UserBorrowBooks* child = new UserBorrowBooks(); 33 | child->show(); 34 | } 35 | 36 | void UserWindow::returnLastWindow(){ 37 | this->close(); 38 | MainWindow* father = new MainWindow(); 39 | father->show(); 40 | } 41 | 42 | void UserWindow::enterPersonalCenter(){ 43 | this->close(); 44 | PersonalCenter* child = new PersonalCenter(PersonalCenter::USERWINDOW); 45 | child->show(); 46 | } 47 | -------------------------------------------------------------------------------- /studip/userwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef USERWINDOW_H 2 | #define USERWINDOW_H 3 | 4 | #include 5 | #include"mainwindow.h" 6 | #include"database.h" 7 | #include"userborrowbooks.h" 8 | #include "ui_mainwindow.h" 9 | #include "personalcenter.h" 10 | namespace Ui { 11 | class UserWindow; 12 | } 13 | 14 | class UserWindow : public QDialog 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit UserWindow(QWidget *parent = nullptr); 20 | ~UserWindow(); 21 | 22 | private: 23 | Ui::UserWindow *ui; 24 | private slots: 25 | void returnBooks(); 26 | void borrowBooks(); 27 | void returnLastWindow(); 28 | void enterPersonalCenter(); 29 | }; 30 | 31 | #endif // USERWINDOW_H 32 | -------------------------------------------------------------------------------- /studip/userwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | UserWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 612 10 | 450 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | background-color:white 18 | 19 | 20 | 21 | true 22 | 23 | 24 | 25 | 500 26 | 420 27 | 113 28 | 31 29 | 30 | 31 | 32 | 33 | 15 34 | 75 35 | true 36 | 37 | 38 | 39 | 个人中心 40 | 41 | 42 | true 43 | 44 | 45 | 46 | 47 | true 48 | 49 | 50 | 51 | 0 52 | 420 53 | 101 54 | 31 55 | 56 | 57 | 58 | 59 | 15 60 | 75 61 | true 62 | 63 | 64 | 65 | 返回 66 | 67 | 68 | 69 | 70 | 71 | 20 72 | 10 73 | 541 74 | 111 75 | 76 | 77 | 78 | 79 | 0 80 | 0 81 | 82 | 83 | 84 | 85 | 50 86 | 75 87 | true 88 | true 89 | false 90 | 91 | 92 | 93 | QFrame::NoFrame 94 | 95 | 96 | QFrame::Plain 97 | 98 | 99 | WELCOME! 100 | 101 | 102 | Qt::AutoText 103 | 104 | 105 | false 106 | 107 | 108 | Qt::AlignCenter 109 | 110 | 111 | false 112 | 113 | 114 | 115 | 116 | 117 | 190 118 | 170 119 | 191 120 | 42 121 | 122 | 123 | 124 | 125 | 20 126 | 75 127 | true 128 | 129 | 130 | 131 | 图书借阅 132 | 133 | 134 | 135 | 136 | 137 | 190 138 | 300 139 | 191 140 | 42 141 | 142 | 143 | 144 | 145 | 20 146 | 75 147 | true 148 | 149 | 150 | 151 | 图书归还 152 | 153 | 154 | 155 | 156 | 157 | 158 | -------------------------------------------------------------------------------- /实验报告.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChenWeilinx/LibraryManagementSystem_QT/a0c76c627735e36d3647a29693ed4a9bddef1472/实验报告.docx --------------------------------------------------------------------------------