diff --git a/LibManageSystem_Sever/LibManageSystem_Sever.pro b/LibManageSystem_Sever/LibManageSystem_Sever.pro index 15e98c2f453f34bba008122791e8d3bc606936a1..84619d6ee85a9bbdc45b4bd365ba1361e6ca575b 100644 --- a/LibManageSystem_Sever/LibManageSystem_Sever.pro +++ b/LibManageSystem_Sever/LibManageSystem_Sever.pro @@ -59,3 +59,6 @@ FORMS += \ qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target + +RESOURCES += \ + png.qrc diff --git a/LibManageSystem_Sever/addbook.cpp b/LibManageSystem_Sever/addbook.cpp index f6c6b5657f9a35a553a1a331a0a7bd9db9d2903c..41e2d0f54c4afd8bc4a63a97ac5ab974606177ee 100644 --- a/LibManageSystem_Sever/addbook.cpp +++ b/LibManageSystem_Sever/addbook.cpp @@ -10,14 +10,10 @@ addbook::addbook(Operat* _db,QWidget *parent) : ui->pushButton->setStyleSheet( //正常状态样式 "QPushButton{" "background-color:#67a6f8;"//设置按钮背景色 - "border-radius:10px;"//设置圆角半径 + "border-radius:6px;"//设置圆角半径 "color:white;"//设置按钮字体颜色 "}" - //鼠标悬停样式 - "QPushButton:hover{" - "background-color:#5f9ae6;" - "color:green;" - "}"); + ); QRegularExpression regExp1("[0-9-]+"); ui->datelEdit->setValidator(new QRegularExpressionValidator(regExp1,this)); QRegularExpression regExp2("[0-9]+"); diff --git a/LibManageSystem_Sever/addbook.ui b/LibManageSystem_Sever/addbook.ui index e2f2ec97262899b2d491726fe181c0599db5cd80..47bab902eb564a32491bc5c8bb9291aa2b75ad58 100644 --- a/LibManageSystem_Sever/addbook.ui +++ b/LibManageSystem_Sever/addbook.ui @@ -35,8 +35,8 @@ - 160 - 100 + 140 + 90 50 20 @@ -54,9 +54,9 @@ - 220 - 100 - 150 + 190 + 90 + 221 25 @@ -76,8 +76,8 @@ - 160 - 140 + 140 + 150 50 20 @@ -95,9 +95,9 @@ - 220 - 140 - 150 + 190 + 150 + 221 25 @@ -114,8 +114,8 @@ - 140 - 180 + 120 + 210 70 20 @@ -133,9 +133,9 @@ - 220 - 180 - 150 + 190 + 210 + 221 25 @@ -152,9 +152,9 @@ - 123 - 220 - 100 + 450 + 270 + 81 20 @@ -171,9 +171,9 @@ - 220 - 220 - 150 + 540 + 270 + 151 25 @@ -191,7 +191,7 @@ 480 - 100 + 90 50 20 @@ -209,9 +209,9 @@ - 540 - 220 - 150 + 190 + 270 + 221 25 @@ -229,7 +229,7 @@ 480 - 180 + 210 50 20 @@ -247,8 +247,8 @@ - 450 - 220 + 100 + 270 100 20 @@ -267,7 +267,7 @@ 540 - 100 + 90 150 25 @@ -280,7 +280,7 @@ 480 - 140 + 150 50 20 @@ -299,7 +299,7 @@ 540 - 180 + 210 150 25 @@ -317,8 +317,8 @@ - 150 - 280 + 130 + 330 50 20 @@ -331,9 +331,9 @@ 190 - 300 + 330 500 - 91 + 141 @@ -357,12 +357,15 @@ hr { height: 1px; border-width: 0; } - 580 - 420 - 100 - 30 + 420 + 510 + 121 + 41 + + PointingHandCursor + 确认添加 @@ -370,14 +373,29 @@ hr { height: 1px; border-width: 0; } - -10 - 0 - 80 - 30 + 570 + 510 + 121 + 41 + + + Microsoft YaHei UI + 12 + + + + PointingHandCursor + + + background-color: #808069; + border-radius:6px; + color:white; + + - <-返回 + 返回 true @@ -387,7 +405,7 @@ hr { height: 1px; border-width: 0; } 540 - 140 + 150 150 25 diff --git a/LibManageSystem_Sever/dlandeditbook.cpp b/LibManageSystem_Sever/dlandeditbook.cpp index 9f894e132602acfebd2fa2320bf0c660ab8dd935..da86cc822f996b904425c6204daf5d92d820be6d 100644 --- a/LibManageSystem_Sever/dlandeditbook.cpp +++ b/LibManageSystem_Sever/dlandeditbook.cpp @@ -54,7 +54,7 @@ void DlandEdItbook::on_refreshBtn_clicked() if(index.isValid()) { EditDialog *w=new EditDialog(db,Id); - w->setWindowTitle("发送消息"); + w->setWindowTitle("编辑书籍信息"); w->exec(); w->setAttribute(Qt::WA_DeleteOnClose); } diff --git a/LibManageSystem_Sever/dlandeditbook.ui b/LibManageSystem_Sever/dlandeditbook.ui index e659d57fb3c4647e6b1b958f2db8969b10664b65..934bdedc2db67ce9d17884b3da285c3f10156af9 100644 --- a/LibManageSystem_Sever/dlandeditbook.ui +++ b/LibManageSystem_Sever/dlandeditbook.ui @@ -36,7 +36,7 @@ 70 - 490 + 520 50 20 @@ -55,7 +55,7 @@ 150 - 490 + 520 150 25 @@ -73,8 +73,8 @@ - 360 - 490 + 350 + 520 100 20 @@ -92,8 +92,8 @@ - 470 - 490 + 460 + 520 150 25 @@ -111,10 +111,10 @@ - 660 - 180 - 80 - 25 + 680 + 220 + 91 + 31 @@ -123,6 +123,15 @@ 12 + + PointingHandCursor + + + background-color:#67a6f8; + border-radius:6px; + color:white; + + 查看 @@ -130,10 +139,10 @@ - 660 - 260 - 80 - 25 + 680 + 270 + 91 + 31 @@ -142,6 +151,15 @@ 12 + + PointingHandCursor + + + background-color:#00C78C ; + border-radius:6px; + color:white; + + 编辑 @@ -149,10 +167,10 @@ - 660 - 350 - 80 - 25 + 680 + 320 + 91 + 31 @@ -161,6 +179,15 @@ 12 + + PointingHandCursor + + + background-color:#B0171F; + border-radius:6px; + color:white; + + 删除 @@ -168,12 +195,21 @@ - 660 - 100 - 80 - 25 + 680 + 370 + 91 + 31 + + PointingHandCursor + + + background-color: #808069; + border-radius:6px; + color:white; + + 返回 @@ -181,6 +217,35 @@ false + + + + 660 + 470 + 111 + 101 + + + + border-image: url(:/png/reading-list.png); + + + + + + + + + 30 + 480 + 111 + 21 + + + + 搜索条件: + + diff --git a/LibManageSystem_Sever/editdialog.cpp b/LibManageSystem_Sever/editdialog.cpp index 085c25874b50bdccbb551129648a8d8585451e28..14bc9bc14bbc0433ba56f31158d0f71c15aea5e4 100644 --- a/LibManageSystem_Sever/editdialog.cpp +++ b/LibManageSystem_Sever/editdialog.cpp @@ -5,6 +5,7 @@ EditDialog::EditDialog(Operat* _db,int ID,QWidget *parent) : QDialog(parent),ui(new Ui::EditDialog), db(_db),Id(ID) { + setWindowTitle("编辑书籍信息"); ui->setupUi(this); QStringList booklist=db->search(Id).split(","); ui->namelEdit->setText(booklist[0]); diff --git a/LibManageSystem_Sever/editdialog.ui b/LibManageSystem_Sever/editdialog.ui index 35734292b248c2e78f941af177f04027c1977676..929888fcdcd7cfc09b7c2b294592c5b4584dbcd9 100644 --- a/LibManageSystem_Sever/editdialog.ui +++ b/LibManageSystem_Sever/editdialog.ui @@ -119,7 +119,7 @@ - 270 + 20 160 100 20 @@ -138,7 +138,7 @@ - 10 + 270 160 100 20 @@ -286,6 +286,9 @@ 11 + + + QFrame::NoFrame @@ -320,7 +323,7 @@ hr { height: 1px; border-width: 0; } - 30 + 40 120 70 20 @@ -371,7 +374,7 @@ hr { height: 1px; border-width: 0; } - 110 + 350 160 150 25 @@ -390,7 +393,7 @@ hr { height: 1px; border-width: 0; } - 350 + 110 160 150 25 @@ -415,6 +418,12 @@ hr { height: 1px; border-width: 0; } 25 + + background-color:#67a6f8; + border-radius:6px; + color:white; + + 提交编辑 diff --git a/LibManageSystem_Sever/main.cpp b/LibManageSystem_Sever/main.cpp index 515e3295de8d556e0fe2c976202be5fecd003f8d..f8a494f49bb12758c0810907dcf1790df9eb1944 100644 --- a/LibManageSystem_Sever/main.cpp +++ b/LibManageSystem_Sever/main.cpp @@ -7,6 +7,7 @@ int main(int argc, char *argv[]) QApplication a(argc, argv); Widget w; + w.setWindowTitle("图书管理系统--管理员端"); w.show(); diff --git a/LibManageSystem_Sever/mainwindow.ui b/LibManageSystem_Sever/mainwindow.ui index 0169a789143118ce707826e886e6dd1f05e08ef4..aba00dee75386cbf970268f0736175219dfbc362 100644 --- a/LibManageSystem_Sever/mainwindow.ui +++ b/LibManageSystem_Sever/mainwindow.ui @@ -17,12 +17,25 @@ - 60 - 60 - 101 - 51 + 450 + 460 + 281 + 41 + + + 12 + + + + PointingHandCursor + + + background-color:#F5DEB3; + border-radius:6px; + color:black; + 打开监控窗口 @@ -30,9 +43,9 @@ - 380 - 270 - 120 + 509 + 317 + 181 25 @@ -52,9 +65,9 @@ - 380 - 210 - 120 + 509 + 267 + 181 25 @@ -74,12 +87,26 @@ - 420 - 340 - 80 - 25 + 450 + 380 + 281 + 41 + + + 14 + + + + PointingHandCursor + + + background-color:#67a6f8; + border-radius:6px; + color:white; + + 登录 @@ -87,12 +114,17 @@ - 330 - 210 - 50 + 449 + 267 + 51 20 + + + 14 + + 账号: @@ -100,12 +132,17 @@ - 330 - 270 + 449 + 317 50 20 + + + 14 + + 密码: @@ -113,8 +150,8 @@ - 510 - 270 + 700 + 320 21 20 @@ -135,6 +172,60 @@ + + + + 192 + 80 + 491 + 71 + + + + + 华文新魏 + 55 + + + + 图书管理系统 + + + + + + 583 + 170 + 161 + 31 + + + + + 华文新魏 + 20 + + + + --管理员端 + + + + + + 80 + 270 + 261 + 241 + + + + border-image: url(:/png/studying.png); + + + + + diff --git a/LibManageSystem_Sever/managerwindow.cpp b/LibManageSystem_Sever/managerwindow.cpp index 3772eecd286150cebaf4f9efe743144df848c2c9..d010b76b74bd29a29ce89351e38201e55b2630ff 100644 --- a/LibManageSystem_Sever/managerwindow.cpp +++ b/LibManageSystem_Sever/managerwindow.cpp @@ -6,39 +6,39 @@ ManagerWindow::ManagerWindow(Operat* _db,QWidget *parent) : db(_db) { ui->setupUi(this); - ui->usermanageBtn->setStyleSheet( //正常状态样式 - "QPushButton{" - "background-color:#67a6f8;"//设置按钮背景色 - "border-radius:10px;"//设置圆角半径 - "color:white;"//设置按钮字体颜色 - "}" - //鼠标悬停样式 - "QPushButton:hover{" - "background-color:#5f9ae6;" - "color:green;" - "}"); - ui->editbookBtn->setStyleSheet( //正常状态样式 - "QPushButton{" - "background-color:#67a6f8;"//设置按钮背景色 - "border-radius:10px;"//设置圆角半径 - "color:white;"//设置按钮字体颜色 - "}" - //鼠标悬停样式 - "QPushButton:hover{" - "background-color:#5f9ae6;" - "color:green;" - "}"); - ui->addbookBtn->setStyleSheet( //正常状态样式 - "QPushButton{" - "background-color:#67a6f8;"//设置按钮背景色 - "border-radius:10px;"//设置圆角半径 - "color:white;"//设置按钮字体颜色 - "}" - //鼠标悬停样式 - "QPushButton:hover{" - "background-color:#5f9ae6;" - "color:green;" - "}"); +// ui->usermanageBtn->setStyleSheet( //正常状态样式 +// "QPushButton{" +// "background-color:#67a6f8;"//设置按钮背景色 +// "border-radius:10px;"//设置圆角半径 +// "color:white;"//设置按钮字体颜色 +// "}" +// //鼠标悬停样式 +// "QPushButton:hover{" +// "background-color:#5f9ae6;" +// "color:green;" +// "}"); +// ui->editbookBtn->setStyleSheet( //正常状态样式 +// "QPushButton{" +// "background-color:#67a6f8;"//设置按钮背景色 +// "border-radius:10px;"//设置圆角半径 +// "color:white;"//设置按钮字体颜色 +// "}" +// //鼠标悬停样式 +// "QPushButton:hover{" +// "background-color:#5f9ae6;" +// "color:green;" +// "}"); +// ui->addbookBtn->setStyleSheet( //正常状态样式 +// "QPushButton{" +// "background-color:#67a6f8;"//设置按钮背景色 +// "border-radius:10px;"//设置圆角半径 +// "color:white;"//设置按钮字体颜色 +// "}" +// //鼠标悬停样式 +// "QPushButton:hover{" +// "background-color:#5f9ae6;" +// "color:green;" +// "}"); } diff --git a/LibManageSystem_Sever/managerwindow.ui b/LibManageSystem_Sever/managerwindow.ui index 1d74045785040f9e4fe715b54b3862f887e2d39d..1c5ed519d0a0ac5afdb8faec00b6834c257a5c98 100644 --- a/LibManageSystem_Sever/managerwindow.ui +++ b/LibManageSystem_Sever/managerwindow.ui @@ -35,60 +35,166 @@ - 350 - 230 - 100 - 30 + 490 + 270 + 241 + 81 + + + 微软雅黑 + 16 + + + + PointingHandCursor + - 用户管理 + 用户管理 + + + + :/png/software-as-a-service-users.png:/png/software-as-a-service-users.png + + + + 35 + 35 + - 520 - 230 - 100 - 30 + 490 + 410 + 241 + 81 + + + 微软雅黑 + 16 + + + + PointingHandCursor + - 添加书籍 + 添加书籍 + + + + :/png/education-book.png:/png/education-book.png + + + + 35 + 35 + - 200 - 230 - 100 - 30 + 490 + 130 + 241 + 81 + + + Microsoft YaHei UI + 16 + + + + PointingHandCursor + + + + - 删改书籍 + 删改书籍 + + + + :/png/multimedia-icon-book.png:/png/multimedia-icon-book.png + + + + 35 + 35 + - 0 + 670 10 - 80 - 31 + 131 + 41 + + + Microsoft YaHei UI + 14 + + + + PointingHandCursor + + + +color: #FF4500; + 退出登录 + + + :/png/multimedia-icon-close.png:/png/multimedia-icon-close.png + + + + 25 + 25 + + true + + + + 10 + 110 + 411 + 371 + + + + image: url(:/png/bookmark.png); + + + + + + label + usermanageBtn + addbookBtn + editbookBtn + returnBtn - + + + diff --git a/LibManageSystem_Sever/operat.cpp b/LibManageSystem_Sever/operat.cpp index d56c0e37e4f91e90925da0b8a102b5b23111b6b8..e6b299eb7f5a33ec4917caf2f08e432ff35cafac 100644 --- a/LibManageSystem_Sever/operat.cpp +++ b/LibManageSystem_Sever/operat.cpp @@ -926,7 +926,7 @@ void Operat::searchbookinsever(QString Name,QString ID,QTableView *view,QSqlQuer { if(model->data(model->index(i,0))==Id&&model->data(model->index(i,1))==Name) { - view->setStyleSheet("selection-background-color:green"); + view->setStyleSheet("selection-background-color:#B0E0E6"); view->setSelectionBehavior(QAbstractItemView::SelectRows); view->setCurrentIndex(model->index(i,0)); flag=1; @@ -949,7 +949,7 @@ void Operat::searchbookinsever(QString Name,QString ID,QTableView *view,QSqlQuer { if(model->data(model->index(i,1))==Name) { - view->setStyleSheet("selection-background-color:blue"); + view->setStyleSheet("selection-background-color:#87CEFA"); view->setSelectionBehavior(QAbstractItemView::SelectRows); view->setCurrentIndex(model->index(i,1)); flag=1; @@ -963,7 +963,7 @@ void Operat::searchbookinsever(QString Name,QString ID,QTableView *view,QSqlQuer { if(model->data(model->index(i,0))==Id) { - view->setStyleSheet("selection-background-color:blue"); + view->setStyleSheet("selection-background-color:#87CEFA"); view->setSelectionBehavior(QAbstractItemView::SelectRows); view->setCurrentIndex(model->index(i,0)); flag=1; diff --git a/LibManageSystem_Sever/png.qrc b/LibManageSystem_Sever/png.qrc new file mode 100644 index 0000000000000000000000000000000000000000..01ad191e117f879988d218b9da10f930b11376a4 --- /dev/null +++ b/LibManageSystem_Sever/png.qrc @@ -0,0 +1,15 @@ + + + png/interface-phonebook.png + png/multimedia-icon-book.png + png/reading-list.png + png/bookmark.png + png/software-as-a-service-users.png + png/education-book.png + png/multimedia-icon-close.png + png/studying.png + png/ecommerce-search.png + png/add.png + png/photo-album.png + + diff --git a/LibManageSystem_Sever/png/add.png b/LibManageSystem_Sever/png/add.png new file mode 100644 index 0000000000000000000000000000000000000000..8564f74f6c0101b9626e7a49a8ccfe244bcc9199 Binary files /dev/null and b/LibManageSystem_Sever/png/add.png differ diff --git a/LibManageSystem_Sever/png/bookmark.png b/LibManageSystem_Sever/png/bookmark.png new file mode 100644 index 0000000000000000000000000000000000000000..1e74bfa4d2a95560deaedb9c792346c7091896dd Binary files /dev/null and b/LibManageSystem_Sever/png/bookmark.png differ diff --git a/LibManageSystem_Sever/png/ecommerce-search.png b/LibManageSystem_Sever/png/ecommerce-search.png new file mode 100644 index 0000000000000000000000000000000000000000..059d8d05b24e7951d3d5e518d4947b2f00e93101 Binary files /dev/null and b/LibManageSystem_Sever/png/ecommerce-search.png differ diff --git a/LibManageSystem_Sever/png/education-book.png b/LibManageSystem_Sever/png/education-book.png new file mode 100644 index 0000000000000000000000000000000000000000..43843c28590f0a4e0c18fd595e5309e80dee9a83 Binary files /dev/null and b/LibManageSystem_Sever/png/education-book.png differ diff --git a/LibManageSystem_Sever/png/interface-phonebook.png b/LibManageSystem_Sever/png/interface-phonebook.png new file mode 100644 index 0000000000000000000000000000000000000000..43a3449023e1efa61136b84c5c2c8c66745290f4 Binary files /dev/null and b/LibManageSystem_Sever/png/interface-phonebook.png differ diff --git a/LibManageSystem_Sever/png/multimedia-icon-book.png b/LibManageSystem_Sever/png/multimedia-icon-book.png new file mode 100644 index 0000000000000000000000000000000000000000..6ce4ef39d0d80a02eb94d8e1d8dfd9bef2b9c36b Binary files /dev/null and b/LibManageSystem_Sever/png/multimedia-icon-book.png differ diff --git a/LibManageSystem_Sever/png/multimedia-icon-close.png b/LibManageSystem_Sever/png/multimedia-icon-close.png new file mode 100644 index 0000000000000000000000000000000000000000..a7dd718763ce98a96dbc560242d181225a658d68 Binary files /dev/null and b/LibManageSystem_Sever/png/multimedia-icon-close.png differ diff --git a/LibManageSystem_Sever/png/photo-album.png b/LibManageSystem_Sever/png/photo-album.png new file mode 100644 index 0000000000000000000000000000000000000000..acd138c071b1a57a2ce6306dc7e7574f92f9d63a Binary files /dev/null and b/LibManageSystem_Sever/png/photo-album.png differ diff --git a/LibManageSystem_Sever/png/reading-list.png b/LibManageSystem_Sever/png/reading-list.png new file mode 100644 index 0000000000000000000000000000000000000000..703a6c26302552014541bf8026db1354c813551e Binary files /dev/null and b/LibManageSystem_Sever/png/reading-list.png differ diff --git a/LibManageSystem_Sever/png/software-as-a-service-users.png b/LibManageSystem_Sever/png/software-as-a-service-users.png new file mode 100644 index 0000000000000000000000000000000000000000..0174b93a11ea850fb356bc44464d496623814bc8 Binary files /dev/null and b/LibManageSystem_Sever/png/software-as-a-service-users.png differ diff --git a/LibManageSystem_Sever/png/studying.png b/LibManageSystem_Sever/png/studying.png new file mode 100644 index 0000000000000000000000000000000000000000..d74ab844ce5eb899a63b32c42011a09c1eb3b0a2 Binary files /dev/null and b/LibManageSystem_Sever/png/studying.png differ diff --git a/LibManageSystem_Sever/sendmessagedialog.ui b/LibManageSystem_Sever/sendmessagedialog.ui index c39bdd03d363de47538dd4ecc19684b23efd3719..a794ac4a21d22651e19665ff7413e0a1d0e41ae6 100644 --- a/LibManageSystem_Sever/sendmessagedialog.ui +++ b/LibManageSystem_Sever/sendmessagedialog.ui @@ -22,8 +22,8 @@ - 39 - 30 + 30 + 20 331 220 @@ -38,12 +38,18 @@ - 320 - 260 - 60 - 25 + 310 + 250 + 71 + 31 + + background-color:#67a6f8; + border-radius:6px; + color:white; + + 发送 diff --git a/LibManageSystem_Sever/usermanage.cpp b/LibManageSystem_Sever/usermanage.cpp index 36d9eb77e3b7f61369f2a9779f45ada4b8d0daa3..425b5821bdd10c38e4f4c07db5e6bf61afac0a9b 100644 --- a/LibManageSystem_Sever/usermanage.cpp +++ b/LibManageSystem_Sever/usermanage.cpp @@ -6,6 +6,7 @@ UserManage::UserManage(Operat* _db,QWidget *parent) : db(_db) { ui->setupUi(this); + mod= new QStandardItemModel(this); QRegularExpression regExpl("[0-9]{1,11}"); ui->PholineEdit->setValidator(new QRegularExpressionValidator(regExpl,this)); @@ -13,11 +14,11 @@ UserManage::UserManage(Operat* _db,QWidget *parent) : //限制邮箱输入条件 QRegularExpression regExp2("[a-zA-Z0-9.]+[@][a-zA-Z0-9.]+"); ui->EmalineEdit->setValidator(new QRegularExpressionValidator(regExp2,this)); - ui->EmalineEdit->setPlaceholderText("输入新邮箱"); + ui->EmalineEdit->setPlaceholderText("输入邮箱"); //限制昵称输入条件 QRegularExpression regExp3("[^ ]{1,15}"); ui->NinlineEdit->setValidator(new QRegularExpressionValidator(regExp3,this)); - ui->NinlineEdit->setPlaceholderText("输入新昵称,限制15个字符"); + ui->NinlineEdit->setPlaceholderText("输入昵称,限制15个字符"); popMenu=new QMenu(ui->tableView); QAction *actioncontibor=new QAction(); QAction *actionreturn=new QAction(); diff --git a/LibManageSystem_Sever/usermanage.ui b/LibManageSystem_Sever/usermanage.ui index ef4e05c93401e5d1749dd431ff112291a219e64b..b960f719fcdcd202ac32d5dc38c37a7dbc38ede9 100644 --- a/LibManageSystem_Sever/usermanage.ui +++ b/LibManageSystem_Sever/usermanage.ui @@ -38,10 +38,10 @@ - 140 - 90 + 110 + 60 50 - 20 + 21 @@ -51,8 +51,8 @@ - 190 - 90 + 170 + 60 180 25 @@ -70,8 +70,8 @@ - 140 - 130 + 110 + 100 50 20 @@ -83,8 +83,8 @@ - 190 - 130 + 170 + 100 180 25 @@ -102,10 +102,10 @@ - 140 - 170 + 110 + 140 50 - 20 + 21 @@ -115,8 +115,8 @@ - 190 - 170 + 170 + 140 180 25 @@ -134,8 +134,8 @@ - 140 - 210 + 110 + 180 50 20 @@ -147,8 +147,8 @@ - 190 - 210 + 170 + 180 180 25 @@ -169,8 +169,8 @@ - 140 - 260 + 110 + 220 50 20 @@ -182,8 +182,8 @@ - 190 - 260 + 170 + 220 41 23 @@ -194,6 +194,9 @@ 11 + + + false @@ -201,34 +204,77 @@ - 600 - 110 - 80 - 25 + 610 + 330 + 121 + 41 + + + Microsoft YaHei UI + 12 + + + + PointingHandCursor + + + background-color:#67a6f8; + border-radius:6px; + color:white; + + + + + + + - 查询 + 查询 + + + + :/png/ecommerce-search.png:/png/ecommerce-search.png - 600 - 200 - 80 - 25 + 610 + 390 + 121 + 41 + + PointingHandCursor + + + background-color:#8FBC8F; + border-radius:6px; + color:white; + + - 添加 + 添加 + + + + :/png/add.png:/png/add.png + + + + 15 + 15 + - 100 - 380 + 80 + 270 80 20 @@ -240,8 +286,8 @@ - 80 - 490 + 60 + 480 100 20 @@ -253,8 +299,8 @@ - 200 - 490 + 170 + 480 180 25 @@ -272,8 +318,8 @@ - 200 - 310 + 170 + 270 300 161 @@ -288,27 +334,73 @@ - 190 - 530 - 80 - 25 + 469 + 480 + 111 + 31 + + + Microsoft YaHei UI + 11 + + + + PointingHandCursor + + + background-color:#67a6f8; + border-radius:6px; + color:white; + + - 取消预约 + 取消该预约 - 300 - 530 + 370 + 480 80 - 24 + 31 + + + 微软雅黑 + 11 + + + + PointingHandCursor + + + background-color:#67a6f8; + border-radius:6px; + color:white; + + - 预约 + 进行预约 + + + + + + 460 + 30 + 301 + 201 + + + + image: url(:/png/photo-album.png); + + + @@ -318,7 +410,7 @@ 0 0 800 - 28 + 23 @@ -377,6 +469,8 @@ - + + + diff --git a/LibManageSystem_Sever/widget.cpp b/LibManageSystem_Sever/widget.cpp index e6b40e7dee086751a7887acf8bbb6fc92d66e138..2869426f5585f3e86026352f935181456eba289e 100644 --- a/LibManageSystem_Sever/widget.cpp +++ b/LibManageSystem_Sever/widget.cpp @@ -6,6 +6,7 @@ Widget::Widget(QWidget *parent) : ui(new Ui::Widget) { ui->setupUi(this); + setFixedSize(800,600); //初始化数据库对象以及获取当前程序绝对路径 QString library_db_path; QString absolute_path=QCoreApplication::applicationDirPath(); @@ -30,7 +31,7 @@ Widget::Widget(QWidget *parent) : ui->stackedWidget->addWidget(manageWidget); ui->stackedWidget->addWidget(loginWidget); - ui->stackedWidget->setCurrentWidget(loginWidget); + ui->stackedWidget->setCurrentWidget(manageWidget); connect(loginWidget,&MainWindow::open_managewin,[=](){ ui->stackedWidget->setCurrentWidget(manageWidget); diff --git a/LibManagementSystem/clientRes/education-book.png b/LibManagementSystem/clientRes/education-book.png new file mode 100644 index 0000000000000000000000000000000000000000..43843c28590f0a4e0c18fd595e5309e80dee9a83 Binary files /dev/null and b/LibManagementSystem/clientRes/education-book.png differ diff --git a/LibManagementSystem/clientResources.qrc b/LibManagementSystem/clientResources.qrc index 0bd26e7a7e1323be7c570eea827b21a0c4361369..27458dbbb29d5e9f097a64cedc410b96293b6e38 100644 --- a/LibManagementSystem/clientResources.qrc +++ b/LibManagementSystem/clientResources.qrc @@ -3,5 +3,6 @@ clientRes/BackGround.png clientRes/LibIcon.png clientRes/MainBackGround.png + clientRes/education-book.png diff --git a/LibManagementSystem/login.cpp b/LibManagementSystem/login.cpp index 194a72ee4a8f00f262e9f288501677d506e4e68d..6f9f047e398de5d419dcd56f3f316249c96254ae 100644 --- a/LibManagementSystem/login.cpp +++ b/LibManagementSystem/login.cpp @@ -11,6 +11,8 @@ login::login(QWidget *parent) : QRegularExpression regExp1("[a-zA-Z0-9.@#/?!-%]+"); ui->passwordlineEdit->setValidator(new QRegularExpressionValidator(regExp1,this)); ui->passwordlineEdit->setPlaceholderText("输入您的密码"); + QRegularExpression regExp2("[^^]+"); + ui->accountlineEdit->setValidator(new QRegularExpressionValidator(regExp2,this)); ui->accountlineEdit->setPlaceholderText("输入您的账号"); } diff --git a/LibManagementSystem/login.ui b/LibManagementSystem/login.ui index 0c0c832324c4ea7e3e5e8a087152527da0730501..8319fb709b5e1cfbc8841d4ae779fb26c389a8dd 100644 --- a/LibManagementSystem/login.ui +++ b/LibManagementSystem/login.ui @@ -294,6 +294,22 @@ border:1px solid #c3d4dd; 密 码 : + + + + 80 + 250 + 251 + 221 + + + + image: url(:/images/clientRes/education-book.png); + + + + + diff --git a/LibManagementSystem/regis.cpp b/LibManagementSystem/regis.cpp index 94c5ffd567c43122ca2d249751e2ac18b06b901e..73f02d37efa74fcd97fb8dd2c04e7270ebec33db 100644 --- a/LibManagementSystem/regis.cpp +++ b/LibManagementSystem/regis.cpp @@ -15,17 +15,19 @@ regis::regis(QDialog *parent) : ui->inpho->setValidator(new QRegularExpressionValidator(regExp1,this)); ui->inpho->setPlaceholderText("输入您的手机号"); //限制邮箱输入条件 - QRegularExpression regExp2("[a-zA-Z0-9.]+[@]+[a-zA-Z0-9.]+"); + QRegularExpression regExp2("[a-zA-Z0-9.]+[@][a-zA-Z0-9.]+"); ui->inmai->setValidator(new QRegularExpressionValidator(regExp2,this)); ui->inmai->setPlaceholderText("输入您的邮箱"); //限制昵称输入条件 - QRegularExpression regExp3("[^ ]{1,15}"); + QRegularExpression regExp3("[^^]{1,15}"); ui->inna->setValidator(new QRegularExpressionValidator(regExp3,this)); ui->inna->setPlaceholderText("输入您的昵称,限制15个字符"); //账号 + QRegularExpression regExp5("[^^]+"); + ui->inacc->setValidator(new QRegularExpressionValidator(regExp5,this)); ui->inacc->setPlaceholderText("输入您的账号,之后不可更改"); //密码 - QRegularExpression regExp4("[a-zA-Z0-9.@#/?!-%]+"); + QRegularExpression regExp4("[a-zA-Z0-9.@#/?!-%]"); ui->inpass->setValidator(new QRegularExpressionValidator(regExp4,this)); ui->inrepa->setValidator(new QRegularExpressionValidator(regExp4,this)); ui->inpass->setPlaceholderText("输入您的密码,至少6位");