240717班级,工业化控制系统,煤矿相关行业,昆仑系统
lzz
2024-11-01 ea5a9a7ea7dc79e9144bb9d084d766eda6e46284
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef PERMISSONWINDOW_H
#define PERMISSONWINDOW_H
 
#include <QMainWindow>
#include <QMenu>
#include <qstandarditemmodel.h>
#include <QDebug>
#include <map>
#include "permissondialog.h"
#include "syncdatatodb.h"
#include "PmsClientSocket.h"
 
#include <QMessageBox>
 
 
 
using namespace std;
 
namespace Ui {
class PermissonWindow;
}
 
class PermissonWindow : public QMainWindow
{
    Q_OBJECT
public:
    explicit PermissonWindow(QWidget *parent = 0);
    ~PermissonWindow();
 
    bool eventFilter(QObject *watch, QEvent *event);
 
signals:
    void sendUserNo(PmsQueryResult);
private slots:
    void on_pushButton_clicked();
 
    void listenItemChange(QStandardItem * item);
 
    void renderItemData(vector<PmsQueryResult> res);
 
 
 
private:
    Ui::PermissonWindow *ui;
    QStandardItemModel * m_model;
    QMenu * m;
    PermissonDialog *dia;
    SyncDataToDB * dbInfo;
    map<string,int> roleMap;
 
    vector<PmsQueryResult> globalPms;
    PmsClientSocket * clientSocket;
 
 
};
 
#endif // PERMISSONWINDOW_H