240717班级,工业化控制系统,煤矿相关行业,昆仑系统
wangky
2024-10-31 2303163f4c0109057af678ca49428653ee8c6dfd
Client/姜可庚/code/2024kunlun_project_permisson/PmsClientSocket.cpp
@@ -2,7 +2,7 @@
#include <QMessageBox>
PmsClientSocket::PmsClientSocket(QObject * parent):QObject(parent)
PmsClientSocket::PmsClientSocket(QWidget * parent):QWidget(parent)
{
    client = new QTcpSocket(this);
@@ -70,8 +70,8 @@
              vector<PmsQueryResult> vecs;
              for(int i =0;i<100;i++){
                  if(*(int *)&res->pmsList[i]){
                      PmsRes structRes = res->pmsList[i];
                  PmsRes structRes =res->pmsList[i];
                  if(*(int *)&structRes){
                      PmsQueryResult res;
                      res.setName(string(structRes.name));
                      res.setUserNo(string(structRes.userNo));
@@ -100,8 +100,8 @@
        if(res->success){
            QString dlgTitle = "鏇存柊缁撴灉";
            QString strInfo = "鏉冮檺淇℃伅鏇存柊鎴愬姛";
//            QMessageBox::information(this,dlgTitle,strInfo,
//                                     QMessageBox::Ok, QMessageBox::NoButton);
            QMessageBox::information(this,dlgTitle,strInfo,
                                      QMessageBox::Ok, QMessageBox::NoButton);
        }else{
//            QMessageBox::warning(this, "鏇存柊缁撴灉", "鏉冮檺淇℃伅鏇存柊澶辫触");
        }