#include "formcommandarea.h" #include "ui_formcommandarea.h" #include "dialogselectsegment.h" #include "respgetservertime.h" #include "respencrypt.h" #include "sncdatabase.h" FormCommandArea::FormCommandArea(QWidget *parent) : QWidget(parent), ui(new Ui::FormCommandArea) { ui->setupUi(this); //m_ssows = new WSSSO(); m_state = NotLogin; initUI(); } void FormCommandArea::setAccountInfo(QMap info) { m_account = info; QString ssoHash = info.value("ssohash"); if(!ssoHash.isEmpty()) { m_state = LoginOk; } else { m_state = NotLogin; } } FormCommandArea::~FormCommandArea() { qDebug()<pushButtonFree->setProperty("class","big-red-bg"); //ui->pushButtonShkj->setProperty("class","big-yellow-bg"); ui->pushButtonFree->setCursor(Qt::PointingHandCursor); //ui->pushButtonShkj->setCursor(Qt::PointingHandCursor); ui->widget->setProperty("class","blackborder"); } void FormCommandArea::on_pushButtonFree_clicked() { // if(!chkAccountState(m_state)) // return; DialogSelectSegment dialog; dialog.setAccountInfo(m_account); connect(&dialog,SIGNAL(zxshDownDataUpdated()),this,SIGNAL(zxshDownDataUpdated())); int rtCode = dialog.exec(); disconnect(&dialog,SIGNAL(zxshDownDataUpdated()),this,SIGNAL(zxshDownDataUpdated())); if(rtCode == QDialog::Accepted) { if(!dialog.isReserve()) ;//emit zxshDownDataUpdated(); else emit zxshReserveDataUpdated(); } } void FormCommandArea::onRowButtonClicked(QString type, QString data) { QStringList list = data.split("-"); QString province,city; QMap map; if(type=="HOTAREA" || type=="RESERVE") { province = list.at(0); city = list.at(1); } else if(type=="FREE") { qDebug()<