| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299 |
- #include "respgetusershxzserviceinfo.h"
- #include <QScriptValue>
- #include <QScriptEngine>
- #include <QScriptValueIterator>
- RespGetUserSHXZServiceInfo::RespGetUserSHXZServiceInfo(QString json)
- {
- this->json = json;
- QScriptEngine engine;
- QScriptValue sv = engine.evaluate("value = " + this->json);
- QScriptValueIterator it(sv);
- if(json.isEmpty())
- {
- rtnCode = RTNCODE_NETWORK_NOTAVAILABLE;
- rtnMemo = RTNMEMO_NETWORK_NOTAVAILABLE;
- }
- else if(json=="ABORT")
- {
- rtnCode = RTNCODE_NETWORK_ABORT;
- rtnMemo = RTNMEMO_NETWORK_ABORT;
- }
- else
- {
- rtnCode = RTNCODE_INVALID_FORMAT;
- rtnMemo = RTNMEMO_INVALID_FORMAT;
- while (it.hasNext())
- {
- it.next();
- if(it.name()=="rtnCode")
- {
- this->rtnCode = it.value().toInt32();
- }
- else if(it.name()=="rtnMemo")
- {
- this->rtnMemo = it.value().toString();
- }
- else if(it.name()=="payType")
- {
- this->rtnMemo = it.value().toString();
- }
- else if(it.name()=="monthStartTime")
- {
- this->monthStartTime = it.value().toString();
- }
- else if(it.name()=="monthEndTime")
- {
- this->monthEndTime = it.value().toString();
- }
- else if(it.name()=="monthDownShzs")
- {
- this->monthDownShzs = it.value().toString();
- }
- else if(it.name()=="monthMaxDownShzs")
- {
- this->monthMaxDownShzs = it.value().toString();
- }
- else if(it.name()=="shkjSmtLimitMinute")
- {
- this->shkjSmtLimitMinute = it.value().toString();
- }
- else if(it.name()=="shkjSmtLimitTimes")
- {
- this->shkjSmtLimitTimes = it.value().toString();
- }
- else if(it.name()=="shkjSmtLimitPnum")
- {
- this->shkjSmtLimitPnum = it.value().toString();
- }
- else if(it.name()=="shkjDaySubmitHmzs")
- {
- this->shkjDaySubmitHmzs = it.value().toString();
- }
- else if(it.name()=="shkjDayMaxSubmitHmzs")
- {
- this->shkjDayMaxSubmitHmzs = it.value().toString();
- }
- else if(it.name()=="zxshDayDownIn7dayShzs")
- {
- this->zxshDayDownIn7dayShzs = it.value().toString();
- }
- else if(it.name()=="zxshDayMaxDownIn7dayShzs")
- {
- this->zxshDayMaxDownIn7dayShzs = it.value().toString();
- }
- else if(it.name()=="zxshDayDownIn1MonthShzs")
- {
- this->zxshDayDownIn1MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshDayMaxDownIn1MonthShzs")
- {
- this->zxshDayMaxDownIn1MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshDayDownIn3MonthShzs")
- {
- this->zxshDayDownIn3MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshDayMaxDownIn3MonthShzs")
- {
- this->zxshDayMaxDownIn3MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshDayDownIn6MonthShzs")
- {
- this->zxshDayDownIn6MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshDayMaxDownIn6MonthShzs")
- {
- this->zxshDayMaxDownIn6MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshMonthDownIn7dayShzs")
- {
- this->zxshMonthDownIn7dayShzs = it.value().toString();
- }
- else if(it.name()=="zxshMonthMaxDownIn7dayShzs")
- {
- this->zxshMonthMaxDownIn7dayShzs = it.value().toString();
- }
- else if(it.name()=="zxshMonthDownIn1MonthShzs")
- {
- this->zxshMonthDownIn1MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshMonthMaxDownIn1MonthShzs")
- {
- this->zxshMonthMaxDownIn1MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshMonthDownIn3MonthShzs")
- {
- this->zxshMonthDownIn3MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshMonthMaxDownIn3MonthShzs")
- {
- this->zxshMonthMaxDownIn3MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshMonthDownIn6MonthShzs")
- {
- this->zxshMonthDownIn6MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshMonthMaxDownIn6MonthShzs")
- {
- this->zxshMonthMaxDownIn6MonthShzs = it.value().toString();
- }
- else if(it.name()=="zxshMonthDownShzs")
- {
- this->zxshMonthDownShzs = it.value().toString();
- }
- else if(it.name()=="zxshMonthMaxDownShzs")
- {
- this->zxshMonthMaxDownShzs = it.value().toString();
- }
- }
- }
- }
- int RespGetUserSHXZServiceInfo::getRtnCode()
- {
- return this->rtnCode;
- }
- QString RespGetUserSHXZServiceInfo::getRtnMemo()
- {
- return this->rtnMemo;
- }
- QString RespGetUserSHXZServiceInfo::getMonthStartTime()
- {
- return this->monthStartTime;
- }
- QString RespGetUserSHXZServiceInfo::getMonthEndTime()
- {
- return this->monthEndTime;
- }
- QString RespGetUserSHXZServiceInfo::getMonthDownShzs()
- {
- return this->monthDownShzs;
- }
- QString RespGetUserSHXZServiceInfo::getMonthMaxDownShzs()
- {
- return this->monthMaxDownShzs;
- }
- QString RespGetUserSHXZServiceInfo::getShkjSmtLimitMinute()
- {
- return this->shkjSmtLimitMinute;
- }
- QString RespGetUserSHXZServiceInfo::getShkjSmtLimitTimes()
- {
- return this->shkjSmtLimitTimes;
- }
- QString RespGetUserSHXZServiceInfo::getShkjSmtLimitPnum()
- {
- return this->shkjSmtLimitPnum;
- }
- QString RespGetUserSHXZServiceInfo::getShkjDaySubmitHmzs()
- {
- return this->shkjDaySubmitHmzs;
- }
- QString RespGetUserSHXZServiceInfo::getShkjDayMaxSubmitHmzs()
- {
- return this->shkjDayMaxSubmitHmzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshDayDownIn7dayShzs()
- {
- return this->zxshDayDownIn7dayShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshDayMaxDownIn7dayShzs()
- {
- return this->zxshDayMaxDownIn7dayShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshDayDownIn1MonthShzs()
- {
- return this->zxshDayDownIn1MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshDayMaxDownIn1MonthShzs()
- {
- return this->zxshDayMaxDownIn1MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshDayDownIn3MonthShzs()
- {
- return this->zxshDayDownIn3MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshDayMaxDownIn3MonthShzs()
- {
- return this->zxshDayMaxDownIn3MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshDayDownIn6MonthShzs()
- {
- return this->zxshDayDownIn6MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshDayMaxDownIn6MonthShzs()
- {
- return this->zxshDayMaxDownIn6MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshMonthDownIn7dayShzs()
- {
- return this->zxshMonthDownIn7dayShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshMonthMaxDownIn7dayShzs()
- {
- return this->zxshMonthMaxDownIn7dayShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshMonthDownIn1MonthShzs()
- {
- return this->zxshMonthDownIn1MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshMonthMaxDownIn1MonthShzs()
- {
- return this->zxshMonthMaxDownIn1MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshMonthDownIn3MonthShzs()
- {
- return this->zxshMonthDownIn3MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshMonthMaxDownIn3MonthShzs()
- {
- return this->zxshMonthMaxDownIn3MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshMonthDownIn6MonthShzs()
- {
- return this->zxshMonthDownIn6MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshMonthMaxDownIn6MonthShzs()
- {
- return this->zxshMonthMaxDownIn6MonthShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshMonthDownShzs()
- {
- return this->zxshMonthDownShzs;
- }
- QString RespGetUserSHXZServiceInfo::getZxshMonthMaxDownShzs()
- {
- return this->zxshMonthMaxDownShzs;
- }
|