Skip to content

Commit

Permalink
finish Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
RicheyJang committed Aug 12, 2020
1 parent 846a723 commit 3d6492e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Client.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ QT += sql
QT += xlsx
QT += printsupport

RC_ICONS = logo.ico

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11
Expand Down
1 change: 1 addition & 0 deletions MainFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,5 +670,6 @@ Config::Config(QString filename)
itemStartWith[1] = '2';
MaxItemMoreSize=25;
MaxOrderMoreSize=45;
softName=QString("RJ仓库管理系统");
}
/*----------配置文件相关end---------*/
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@

2、安装后,配置根目录下conf.ini中的服务端ip、端口等信息。

## TODO
3、启动软件,开始使用

人员管理待实现

仓库入库账目审批待实现
1 change: 1 addition & 0 deletions maininclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Config {
int MaxItemMoreSize,MaxOrderMoreSize;
QString UserAgent;
QString basename;
QString softName;
QStringList statusList;
QStringList itemsList;
QStringList userIdentityList;
Expand Down
3 changes: 2 additions & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void MainWindow::flushMainWindow()

void MainWindow::initMainWindow()
{
setWindowTitle(config.softName);
errorW = new ErrorWidget(this);
errorW->hide();
ui->orderTable->setOrderTitle();
Expand Down Expand Up @@ -560,7 +561,7 @@ void MainWindow::on_about_me_triggered()
void MainWindow::on_about_writer_triggered()
{
QString emailA = QString("<a href='mailto:[email protected]'>[email protected]</a>");
QString text = QString("RJ仓库管理系统 v") + config.nowClientVersion
QString text = config.softName + QString(" v") + config.nowClientVersion
+ QString("<br>反馈:") + emailA + QString("<br>作者:姜雨奇<br>院校:HUST");
QMessageBox::information(nullptr, QString("关于本软件"), text);
}
Expand Down
4 changes: 2 additions & 2 deletions neworder.ui
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>已添加物品:</string>
<string>物品列表:</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -78,7 +78,7 @@
<bool>true</bool>
</property>
<attribute name="horizontalHeaderVisible">
<bool>true</bool>
<bool>false</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
Expand Down
3 changes: 3 additions & 0 deletions userdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ void UserDialog::setChangeUser(User user)
setTable(forOne);
ui->usernameEdit->setReadOnly(true);
dowhat=ONCHANGEUSER;
QString title=QString("修改用户 id:")+QString::number(forOne.id);
setWindowTitle(title);
}
void UserDialog::setAddNewUser()
{
Expand All @@ -42,6 +44,7 @@ void UserDialog::setAddNewUser()
forOne.password=nullptr;
setTable(forOne);
dowhat=ONADDNEWUSER;
setWindowTitle(QString("新增用户"));
}
/*--------类型设置end-------*/

Expand Down
1 change: 1 addition & 0 deletions usermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ UserManager::UserManager(QWidget* parent)
ui->setupUi(this);
setAttribute(Qt::WA_QuitOnClose, false);
setAttribute(Qt::WA_DeleteOnClose, true);
setWindowTitle(QString("用户管理"));

ui->table_User->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
ui->table_User->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch);
Expand Down

0 comments on commit 3d6492e

Please sign in to comment.