Skip to content

Commit

Permalink
Up 22112020
Browse files Browse the repository at this point in the history
  • Loading branch information
Minh Đức Trương committed Nov 21, 2020
1 parent 983db66 commit 45b2060
Show file tree
Hide file tree
Showing 11 changed files with 198 additions and 258 deletions.
16 changes: 8 additions & 8 deletions QuanLyChiTieu/adduser.ui
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ background-color: rgb(255, 119, 137,0);</string>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);
border: 2px solid gray;
border-radius: 10px;
border-radius: 7px;
font: 12pt &quot;Segoe UI&quot;;</string>
</property>
</widget>
Expand All @@ -118,7 +118,7 @@ font: 12pt &quot;Segoe UI&quot;;</string>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);
border: 2px solid gray;
border-radius: 10px;
border-radius: 7px;
font: 12pt &quot;Segoe UI&quot;;</string>
</property>
<property name="echoMode">
Expand All @@ -137,7 +137,7 @@ font: 12pt &quot;Segoe UI&quot;;</string>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);
border: 2px solid gray;
border-radius: 10px;
border-radius: 7px;
font: 12pt &quot;Segoe UI&quot;;</string>
</property>
<property name="echoMode">
Expand All @@ -156,7 +156,7 @@ font: 12pt &quot;Segoe UI&quot;;</string>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);
border: 2px solid gray;
border-radius: 10px;
border-radius: 7px;
font: 12pt &quot;Segoe UI&quot;;</string>
</property>
</widget>
Expand All @@ -172,7 +172,7 @@ font: 12pt &quot;Segoe UI&quot;;</string>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);
border: 2px solid gray;
border-radius: 10px;
border-radius: 7px;
font: 12pt &quot;Segoe UI&quot;;</string>
</property>
</widget>
Expand All @@ -188,7 +188,7 @@ font: 12pt &quot;Segoe UI&quot;;</string>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);
border: 2px solid gray;
border-radius: 10px;
border-radius: 7px;
font: 12pt &quot;Segoe UI&quot;;</string>
</property>
</widget>
Expand All @@ -202,7 +202,7 @@ font: 12pt &quot;Segoe UI&quot;;</string>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-radius: 15px;
<string notr="true">border-radius: 10px;
color: rgb(255, 255, 255);
background-color: rgb(48, 165, 255);
font: 75 18pt &quot;MS Shell Dlg 2&quot;;</string>
Expand Down Expand Up @@ -239,7 +239,7 @@ font: 75 18pt &quot;MS Shell Dlg 2&quot;;</string>
<property name="styleSheet">
<string notr="true">background-image: url(:/Images/BackGr/budget.jpg);
border: 2px solid yellow;
border-radius: 50px;</string>
border-radius: 40px;</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
Expand Down
10 changes: 5 additions & 5 deletions QuanLyChiTieu/changepin.ui
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<widget class="QLabel" name="label_MaPinCu">
<property name="geometry">
<rect>
<x>110</x>
<x>113</x>
<y>100</y>
<width>91</width>
<height>41</height>
Expand All @@ -39,7 +39,7 @@
<widget class="QLabel" name="label_MaPinMoi">
<property name="geometry">
<rect>
<x>100</x>
<x>101</x>
<y>150</y>
<width>101</width>
<height>21</height>
Expand All @@ -55,7 +55,7 @@
<widget class="QLabel" name="label_NhapLaiMaPinMoi">
<property name="geometry">
<rect>
<x>30</x>
<x>33</x>
<y>190</y>
<width>161</width>
<height>21</height>
Expand Down Expand Up @@ -126,7 +126,7 @@
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-radius: 15px;
<string notr="true">border-radius: 10px;
color: rgb(255, 255, 255);
background-color: rgb(48, 165, 255);
font: 75 15pt &quot;MS Shell Dlg 2&quot;;</string>
Expand All @@ -145,7 +145,7 @@ font: 75 15pt &quot;MS Shell Dlg 2&quot;;</string>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-radius: 15px;
<string notr="true">border-radius: 10px;
color: rgb(255, 255, 255);
background-color: rgb(48, 165, 255);
font: 75 15pt &quot;MS Shell Dlg 2&quot;;</string>
Expand Down
10 changes: 5 additions & 5 deletions QuanLyChiTieu/chitieu.ui
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ QComboBox::down-arrow:on { /* shift the arrow when popup is open */
<string notr="true">font: 16pt &quot;Segoe UI&quot;;
background-color: rgb(255, 255, 255);

border-radius: 10px;
border-radius: 7px;
border: 2px solid #e1eff6;</string>
</property>
<property name="placeholderText">
Expand All @@ -118,7 +118,7 @@ border: 2px solid #e1eff6;</string>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-radius: 10px;
<string notr="true">border-radius: 7px;
border: 2px solid #e1eff6;
color: rgb(0, 0, 0);
background-color: rgb(255, 255, 255);
Expand Down Expand Up @@ -173,7 +173,7 @@ font: 75 14pt &quot;Segoe UI&quot;;</string>
</property>
<property name="styleSheet">
<string notr="true">font: 14pt &quot;Segoe UI&quot;;
border-radius: 10px;
border-radius: 7px;
border: 2px solid #e1eff6;</string>
</property>
<property name="placeholderText">
Expand Down Expand Up @@ -287,7 +287,7 @@ color: rgb(0, 0, 0);</string>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-radius: 15px;
<string notr="true">border-radius: 10px;
color: rgb(255, 255, 255);
background-color: rgb(255, 106, 108);
font: 75 15pt &quot;MS Shell Dlg 2&quot;;</string>
Expand All @@ -306,7 +306,7 @@ font: 75 15pt &quot;MS Shell Dlg 2&quot;;</string>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-radius: 15px;
<string notr="true">border-radius: 10px;
color: rgb(255, 255, 255);
background-color: rgb(255, 106, 108);
font: 75 15pt &quot;MS Shell Dlg 2&quot;;</string>
Expand Down
74 changes: 36 additions & 38 deletions QuanLyChiTieu/expensetracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ ExpenseTracker::ExpenseTracker(QWidget *parent) :
ui(new Ui::ExpenseTracker)
{
ui->setupUi(this);
this->setFixedSize(1320,701);
//this->setFixedSize(1320,701);
this->setWindowIcon(QIcon(":/Images\\Icon\\cash-icon.png"));

// Hiển thị trang chủ đầu tiên khi truy cập phần mềm

setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setWindowFlags(windowFlags() & Qt::WindowMinMaxButtonsHint);

ui->stackedWidget->setCurrentIndex(0);

ui->pushButton_TrangChinh->animateClick(10);

// Đặt title
this->setWindowTitle(QString::fromUtf8("Quản lý chi tiêu"));
this->setWindowTitle(QString::fromUtf8("Quản lý thu chi"));

// Đặt ngày dateEdit về ngày hiện tại

Expand Down Expand Up @@ -171,11 +174,11 @@ void ExpenseTracker::on_pushButton_TrangChinh_clicked()
ui->stackedWidget->setCurrentIndex(0);
ui->comboBox->clear();

ui->pushButton_ChiTieu->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ChiTieu->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
//Đồ thị
lli TienGD, TienSK, TienMS, TienHP, TienHD, TienKD, TienOT, TienQT, TienDC, TienGT, TienBH;

Expand Down Expand Up @@ -357,15 +360,16 @@ void ExpenseTracker::on_pushButton_ChiTieu_clicked()
{
ui->stackedWidget->setCurrentIndex(1);

ui->pushButton_ChiTieu->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: rgb(48, 165, 255); font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ChiTieu->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: rgb(48, 165, 255); font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");



//
ui->btn_p2_TimKiemChung->animateClick(5);
ui->comboBox_p2_TenTaiKhoan->clear();

ui->comboBox_p2_TenTaiKhoan->addItem("Tất Cả");
Expand All @@ -389,12 +393,12 @@ void ExpenseTracker::on_pushButton_ThuNhap_clicked()
{
ui->stackedWidget->setCurrentIndex(2);

ui->pushButton_ThuNhap->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: rgb(48, 165, 255); font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: rgb(48, 165, 255); font: 75 15pt 'MS Shell Dlg 2';");

ui->pushButton_ChiTieu->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ChiTieu->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");

ui->comboBox_p3_DenTaiKhoan_tab1->clear();
ui->comboBox_p3_LoaiThuNhap_tab1->clear();
Expand Down Expand Up @@ -456,12 +460,12 @@ void ExpenseTracker::on_pushButton_TaiKhoan_clicked()
{
ui->stackedWidget->setCurrentIndex(3);

ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: rgb(48, 165, 255); font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: rgb(48, 165, 255); font: 75 15pt 'MS Shell Dlg 2';");

ui->pushButton_ChiTieu->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ChiTieu->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");


///Cap nhat bang page 4
Expand Down Expand Up @@ -514,12 +518,12 @@ void ExpenseTracker::on_pushButton_ThongKe_clicked()
{
ui->stackedWidget->setCurrentIndex(4);

ui->pushButton_ThongKe->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: rgb(48, 165, 255); font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: rgb(48, 165, 255); font: 75 15pt 'MS Shell Dlg 2';");

ui->pushButton_ChiTieu->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ChiTieu->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");

//
ui->comboBox_P5_TenTaiKhoan_tab2->clear();
Expand Down Expand Up @@ -562,12 +566,12 @@ void ExpenseTracker::on_pushButton_ThongKe_clicked()
void ExpenseTracker::on_pushButton_NguoiDung_clicked()
{
ui->stackedWidget->setCurrentIndex(5);
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: rgb(48, 165, 255); font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_NguoiDung->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: rgb(48, 165, 255); font: 75 15pt 'MS Shell Dlg 2';");

ui->pushButton_ChiTieu->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 15px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ChiTieu->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_TaiKhoan->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThongKe->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");
ui->pushButton_ThuNhap->setStyleSheet("border-radius: 10px; color: rgb(255, 255, 255); background-color: #161925; font: 75 15pt 'MS Shell Dlg 2';");


QString HoVaTen, Email,CongViec;
Expand All @@ -588,12 +592,6 @@ void ExpenseTracker::on_pushButton_NguoiDung_clicked()

}

// Resize
void ExpenseTracker::on_pushButton_minimize_clicked()
{
this->setWindowState(Qt::WindowMinimized);
}

//Thay mã pin
void ExpenseTracker::on_pushButton_ThayMaPin_clicked()
{
Expand Down
2 changes: 0 additions & 2 deletions QuanLyChiTieu/expensetracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ private slots:

void on_pushButton_NguoiDung_clicked();

void on_pushButton_minimize_clicked();

void on_pushButton_ThayMaPin_clicked();

void on_btn_p2_TimTheoNgay_clicked();
Expand Down
Loading

0 comments on commit 45b2060

Please sign in to comment.