| | |
| | | |
| | | #include <QMessageBox> |
| | | |
| | | PmsClientSocket::PmsClientSocket(QObject * parent):QObject(parent) |
| | | PmsClientSocket::PmsClientSocket(QWidget * parent):QWidget(parent) |
| | | { |
| | | client = new QTcpSocket(this); |
| | | |
| | |
| | | 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)); |
| | |
| | | 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, "鏇存柊缁撴灉", "鏉冮檺淇℃伅鏇存柊澶辫触"); |
| | | } |