From 0e5bcdb2d4d2e87e3624f14e5cc58a1d03de99fc Mon Sep 17 00:00:00 2001 From: wumu <mayi@mayi.com> Date: 星期二, 14 五月 2024 23:06:42 +0800 Subject: [PATCH] 0514 --- internal_system_v1/threemergeproblemlist.h | 31 ++++++++++++++++++++++++++++++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/internal_system_v1/threemergeproblemlist.h b/internal_system_v1/threemergeproblemlist.h index 3a5fbf5..ccbab03 100644 --- a/internal_system_v1/threemergeproblemlist.h +++ b/internal_system_v1/threemergeproblemlist.h @@ -6,6 +6,12 @@ #include <QMenu> #include <QAction> +#include "filedialogdelegate.h" +#include "customheaderview.h" + +#include "comboboxdelegate.h" +#include "datedelegate.h" + namespace Ui { class ThreeMergeProblemList; } @@ -26,6 +32,11 @@ void readCompanyFromSQL(); void loadDataFromSQL(const QString &arg1); + int selectSQL(QString sql,QVector<QVector<QString>> &result); // 鎷跨粨鏋滈泦鐨剆ql + int changeSQL(QString sql); // 鎷挎潯鏁扮殑sql + int saveDataLine(int row); // 淇濆瓨鎸囧畾琛� 鍏堝垽鏂搴旂殑绱㈠紩id鏄惁瀛樺湪锛屽瓨鍦ㄥ垯鏇存柊锛屼笉瀛樺湪鍒欐柊寤烘彃鍏� + int saveFile(QString path, QString id,QString &absSavePath); // 鏍规嵁id鏉ユ寚瀹氬瓙鐩綍杩涜鏂囦欢鐨勬嫹璐濆拰瀛樺偍 + private slots: // 闂娓呭崟 void showMenuSlot(QPoint); @@ -37,7 +48,8 @@ // 鏁存敼鍙拌处 void showMenuSlotRectBook(QPoint); - void deleteActionRectBook(); + void deleteActionRectBook(); // 鍒犻櫎褰撳墠琛� + void saveActionRectBook(); // 淇濆瓨鍗曡 褰撳墠 void on_pushButton_addRow_3_clicked(); @@ -51,11 +63,28 @@ void on_pushButton_save_clicked(); + + void on_pushButton_search_clicked(); + + void on_pushButton_save_3_clicked(); + private: Ui::ThreeMergeProblemList *ui; QMenu *m_menu; // 闂娓呭崟鑿滃崟 QMenu *m_menuResult; // 鏁存敼鎴愭灉 QMenu *m_menuRectBook; // 鏁存敼鍙拌处 + + FileDialogDelegate *m_fdd; + CustomHeaderView *m_custonHV; + + ComboBoxDelegate *m_cbb_nw; // 鍐呭鎴栧瀹� + DateDelegate *m_date_year; // 瀹¤骞村害 + ComboBoxDelegate *m_cbb_company; // 瀹¤鍗曚綅 + ComboBoxDelegate *m_cbb_way; // 瀹¤鏂瑰紡 + ComboBoxDelegate *m_cbb_pro; // 瀹¤椤圭洰 + ComboBoxDelegate *m_cbb_file_wri; // 闂鎻忚堪浣愯瘉 + + DateDelegate *m_date_ymd; // 鏃堕棿 骞存湀鏃� }; #endif // THREEMERGEPROBLEMLIST_H -- Gitblit v1.8.0