respgetusershxzserviceinfo.cpp 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. #include "respgetusershxzserviceinfo.h"
  2. #include <QScriptValue>
  3. #include <QScriptEngine>
  4. #include <QScriptValueIterator>
  5. RespGetUserSHXZServiceInfo::RespGetUserSHXZServiceInfo(QString json)
  6. {
  7. this->json = json;
  8. QScriptEngine engine;
  9. QScriptValue sv = engine.evaluate("value = " + this->json);
  10. QScriptValueIterator it(sv);
  11. if(json.isEmpty())
  12. {
  13. rtnCode = RTNCODE_NETWORK_NOTAVAILABLE;
  14. rtnMemo = RTNMEMO_NETWORK_NOTAVAILABLE;
  15. }
  16. else if(json=="ABORT")
  17. {
  18. rtnCode = RTNCODE_NETWORK_ABORT;
  19. rtnMemo = RTNMEMO_NETWORK_ABORT;
  20. }
  21. else
  22. {
  23. rtnCode = RTNCODE_INVALID_FORMAT;
  24. rtnMemo = RTNMEMO_INVALID_FORMAT;
  25. while (it.hasNext())
  26. {
  27. it.next();
  28. if(it.name()=="rtnCode")
  29. {
  30. this->rtnCode = it.value().toInt32();
  31. }
  32. else if(it.name()=="rtnMemo")
  33. {
  34. this->rtnMemo = it.value().toString();
  35. }
  36. else if(it.name()=="payType")
  37. {
  38. this->rtnMemo = it.value().toString();
  39. }
  40. else if(it.name()=="monthStartTime")
  41. {
  42. this->monthStartTime = it.value().toString();
  43. }
  44. else if(it.name()=="monthEndTime")
  45. {
  46. this->monthEndTime = it.value().toString();
  47. }
  48. else if(it.name()=="monthDownShzs")
  49. {
  50. this->monthDownShzs = it.value().toString();
  51. }
  52. else if(it.name()=="monthMaxDownShzs")
  53. {
  54. this->monthMaxDownShzs = it.value().toString();
  55. }
  56. else if(it.name()=="shkjSmtLimitMinute")
  57. {
  58. this->shkjSmtLimitMinute = it.value().toString();
  59. }
  60. else if(it.name()=="shkjSmtLimitTimes")
  61. {
  62. this->shkjSmtLimitTimes = it.value().toString();
  63. }
  64. else if(it.name()=="shkjSmtLimitPnum")
  65. {
  66. this->shkjSmtLimitPnum = it.value().toString();
  67. }
  68. else if(it.name()=="shkjDaySubmitHmzs")
  69. {
  70. this->shkjDaySubmitHmzs = it.value().toString();
  71. }
  72. else if(it.name()=="shkjDayMaxSubmitHmzs")
  73. {
  74. this->shkjDayMaxSubmitHmzs = it.value().toString();
  75. }
  76. else if(it.name()=="zxshDayDownIn7dayShzs")
  77. {
  78. this->zxshDayDownIn7dayShzs = it.value().toString();
  79. }
  80. else if(it.name()=="zxshDayMaxDownIn7dayShzs")
  81. {
  82. this->zxshDayMaxDownIn7dayShzs = it.value().toString();
  83. }
  84. else if(it.name()=="zxshDayDownIn1MonthShzs")
  85. {
  86. this->zxshDayDownIn1MonthShzs = it.value().toString();
  87. }
  88. else if(it.name()=="zxshDayMaxDownIn1MonthShzs")
  89. {
  90. this->zxshDayMaxDownIn1MonthShzs = it.value().toString();
  91. }
  92. else if(it.name()=="zxshDayDownIn3MonthShzs")
  93. {
  94. this->zxshDayDownIn3MonthShzs = it.value().toString();
  95. }
  96. else if(it.name()=="zxshDayMaxDownIn3MonthShzs")
  97. {
  98. this->zxshDayMaxDownIn3MonthShzs = it.value().toString();
  99. }
  100. else if(it.name()=="zxshDayDownIn6MonthShzs")
  101. {
  102. this->zxshDayDownIn6MonthShzs = it.value().toString();
  103. }
  104. else if(it.name()=="zxshDayMaxDownIn6MonthShzs")
  105. {
  106. this->zxshDayMaxDownIn6MonthShzs = it.value().toString();
  107. }
  108. else if(it.name()=="zxshMonthDownIn7dayShzs")
  109. {
  110. this->zxshMonthDownIn7dayShzs = it.value().toString();
  111. }
  112. else if(it.name()=="zxshMonthMaxDownIn7dayShzs")
  113. {
  114. this->zxshMonthMaxDownIn7dayShzs = it.value().toString();
  115. }
  116. else if(it.name()=="zxshMonthDownIn1MonthShzs")
  117. {
  118. this->zxshMonthDownIn1MonthShzs = it.value().toString();
  119. }
  120. else if(it.name()=="zxshMonthMaxDownIn1MonthShzs")
  121. {
  122. this->zxshMonthMaxDownIn1MonthShzs = it.value().toString();
  123. }
  124. else if(it.name()=="zxshMonthDownIn3MonthShzs")
  125. {
  126. this->zxshMonthDownIn3MonthShzs = it.value().toString();
  127. }
  128. else if(it.name()=="zxshMonthMaxDownIn3MonthShzs")
  129. {
  130. this->zxshMonthMaxDownIn3MonthShzs = it.value().toString();
  131. }
  132. else if(it.name()=="zxshMonthDownIn6MonthShzs")
  133. {
  134. this->zxshMonthDownIn6MonthShzs = it.value().toString();
  135. }
  136. else if(it.name()=="zxshMonthMaxDownIn6MonthShzs")
  137. {
  138. this->zxshMonthMaxDownIn6MonthShzs = it.value().toString();
  139. }
  140. else if(it.name()=="zxshMonthDownShzs")
  141. {
  142. this->zxshMonthDownShzs = it.value().toString();
  143. }
  144. else if(it.name()=="zxshMonthMaxDownShzs")
  145. {
  146. this->zxshMonthMaxDownShzs = it.value().toString();
  147. }
  148. }
  149. }
  150. }
  151. int RespGetUserSHXZServiceInfo::getRtnCode()
  152. {
  153. return this->rtnCode;
  154. }
  155. QString RespGetUserSHXZServiceInfo::getRtnMemo()
  156. {
  157. return this->rtnMemo;
  158. }
  159. QString RespGetUserSHXZServiceInfo::getMonthStartTime()
  160. {
  161. return this->monthStartTime;
  162. }
  163. QString RespGetUserSHXZServiceInfo::getMonthEndTime()
  164. {
  165. return this->monthEndTime;
  166. }
  167. QString RespGetUserSHXZServiceInfo::getMonthDownShzs()
  168. {
  169. return this->monthDownShzs;
  170. }
  171. QString RespGetUserSHXZServiceInfo::getMonthMaxDownShzs()
  172. {
  173. return this->monthMaxDownShzs;
  174. }
  175. QString RespGetUserSHXZServiceInfo::getShkjSmtLimitMinute()
  176. {
  177. return this->shkjSmtLimitMinute;
  178. }
  179. QString RespGetUserSHXZServiceInfo::getShkjSmtLimitTimes()
  180. {
  181. return this->shkjSmtLimitTimes;
  182. }
  183. QString RespGetUserSHXZServiceInfo::getShkjSmtLimitPnum()
  184. {
  185. return this->shkjSmtLimitPnum;
  186. }
  187. QString RespGetUserSHXZServiceInfo::getShkjDaySubmitHmzs()
  188. {
  189. return this->shkjDaySubmitHmzs;
  190. }
  191. QString RespGetUserSHXZServiceInfo::getShkjDayMaxSubmitHmzs()
  192. {
  193. return this->shkjDayMaxSubmitHmzs;
  194. }
  195. QString RespGetUserSHXZServiceInfo::getZxshDayDownIn7dayShzs()
  196. {
  197. return this->zxshDayDownIn7dayShzs;
  198. }
  199. QString RespGetUserSHXZServiceInfo::getZxshDayMaxDownIn7dayShzs()
  200. {
  201. return this->zxshDayMaxDownIn7dayShzs;
  202. }
  203. QString RespGetUserSHXZServiceInfo::getZxshDayDownIn1MonthShzs()
  204. {
  205. return this->zxshDayDownIn1MonthShzs;
  206. }
  207. QString RespGetUserSHXZServiceInfo::getZxshDayMaxDownIn1MonthShzs()
  208. {
  209. return this->zxshDayMaxDownIn1MonthShzs;
  210. }
  211. QString RespGetUserSHXZServiceInfo::getZxshDayDownIn3MonthShzs()
  212. {
  213. return this->zxshDayDownIn3MonthShzs;
  214. }
  215. QString RespGetUserSHXZServiceInfo::getZxshDayMaxDownIn3MonthShzs()
  216. {
  217. return this->zxshDayMaxDownIn3MonthShzs;
  218. }
  219. QString RespGetUserSHXZServiceInfo::getZxshDayDownIn6MonthShzs()
  220. {
  221. return this->zxshDayDownIn6MonthShzs;
  222. }
  223. QString RespGetUserSHXZServiceInfo::getZxshDayMaxDownIn6MonthShzs()
  224. {
  225. return this->zxshDayMaxDownIn6MonthShzs;
  226. }
  227. QString RespGetUserSHXZServiceInfo::getZxshMonthDownIn7dayShzs()
  228. {
  229. return this->zxshMonthDownIn7dayShzs;
  230. }
  231. QString RespGetUserSHXZServiceInfo::getZxshMonthMaxDownIn7dayShzs()
  232. {
  233. return this->zxshMonthMaxDownIn7dayShzs;
  234. }
  235. QString RespGetUserSHXZServiceInfo::getZxshMonthDownIn1MonthShzs()
  236. {
  237. return this->zxshMonthDownIn1MonthShzs;
  238. }
  239. QString RespGetUserSHXZServiceInfo::getZxshMonthMaxDownIn1MonthShzs()
  240. {
  241. return this->zxshMonthMaxDownIn1MonthShzs;
  242. }
  243. QString RespGetUserSHXZServiceInfo::getZxshMonthDownIn3MonthShzs()
  244. {
  245. return this->zxshMonthDownIn3MonthShzs;
  246. }
  247. QString RespGetUserSHXZServiceInfo::getZxshMonthMaxDownIn3MonthShzs()
  248. {
  249. return this->zxshMonthMaxDownIn3MonthShzs;
  250. }
  251. QString RespGetUserSHXZServiceInfo::getZxshMonthDownIn6MonthShzs()
  252. {
  253. return this->zxshMonthDownIn6MonthShzs;
  254. }
  255. QString RespGetUserSHXZServiceInfo::getZxshMonthMaxDownIn6MonthShzs()
  256. {
  257. return this->zxshMonthMaxDownIn6MonthShzs;
  258. }
  259. QString RespGetUserSHXZServiceInfo::getZxshMonthDownShzs()
  260. {
  261. return this->zxshMonthDownShzs;
  262. }
  263. QString RespGetUserSHXZServiceInfo::getZxshMonthMaxDownShzs()
  264. {
  265. return this->zxshMonthMaxDownShzs;
  266. }