WorkPage.qml 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903
  1. import QtQuick
  2. import QtQuick.Controls 2.5
  3. import QtQuick.Layouts 1.3
  4. Rectangle {
  5. width: parent.width-400
  6. height: parent.height
  7. color: 'transparent'
  8. property StackView stack: null
  9. /*
  10. CButton {
  11. id: switchButton
  12. x:1650
  13. y:140
  14. visible:true
  15. textHeight: 50
  16. fontHeight: 0.4
  17. width: 120
  18. height: 50
  19. color: pressed ? textClickedColor : mainAppColor
  20. text: "切换远程"
  21. onClicked: appModel.switchDriver()
  22. }
  23. */
  24. TabBar {
  25. id: bar
  26. width: parent.width
  27. y:150
  28. x:100
  29. currentIndex:0
  30. TabButton {
  31. text: qsTr("A区")
  32. height:60
  33. }
  34. TabButton {
  35. text: qsTr("B区")
  36. height:60
  37. }
  38. TabButton {
  39. text: qsTr("C区")
  40. height:60
  41. }
  42. TabButton {
  43. text: qsTr("D区")
  44. height:60
  45. }
  46. TabButton {
  47. text: qsTr("E区")
  48. height:60
  49. }
  50. TabButton {
  51. text: qsTr("F区")
  52. height:60
  53. }
  54. TabButton {
  55. text: qsTr("G区")
  56. height:60
  57. }
  58. TabButton {
  59. text: qsTr("H区")
  60. height:60
  61. }
  62. TabButton {
  63. text: qsTr("接渣区")
  64. height:60
  65. }
  66. TabButton {
  67. text: qsTr("倒渣区")
  68. height:60
  69. }
  70. // onCurrentIndexChanged:
  71. // {
  72. // appModel.areaChanged(currentIndex)
  73. //}
  74. }
  75. Row {
  76. height: parent.height
  77. // anchors.horizontalCenter: parent.horizontalCenter
  78. // anchors.top:parent.top
  79. // anchors.topMargin: 20
  80. y:250
  81. x:100
  82. spacing: 20
  83. CButton {
  84. // id: resultButton
  85. // anchors.top: loginPassword.bottom
  86. // anchors.topMargin: 50
  87. // anchors.horizontalCenter: parent.horizontalCenter
  88. textHeight: 50
  89. fontHeight: 0.4
  90. width: 150
  91. height: 50
  92. color: pressed ? textClickedColor : mainAppColor
  93. text: bar.currentIndex===8?"放罐等待区":bar.currentIndex===9?"倒渣1":"新"+String.fromCharCode(0x41+bar.currentIndex) +"01"
  94. onClicked: moveBegin(bar.currentIndex,1)
  95. }
  96. CButton {
  97. // id: resultButton
  98. // anchors.top: loginPassword.bottom
  99. // anchors.topMargin: 50
  100. // anchors.horizontalCenter: parent.horizontalCenter
  101. textHeight: 50
  102. fontHeight: 0.4
  103. width: 150
  104. height: 50
  105. visible: true //bar.currentIndex !== 8
  106. color: pressed ? textClickedColor : mainAppColor
  107. text: bar.currentIndex===9?"倒渣2":"新"+String.fromCharCode(0x41+bar.currentIndex) +"02"
  108. onClicked: moveBegin(bar.currentIndex,2)
  109. }
  110. CButton {
  111. // id: resultButton
  112. // anchors.top: loginPassword.bottom
  113. // anchors.topMargin: 50
  114. // anchors.horizontalCenter: parent.horizontalCenter
  115. textHeight: 50
  116. fontHeight: 0.4
  117. width: 150
  118. height: 50
  119. visible: true// bar.currentIndex !== 8
  120. color: pressed ? textClickedColor : mainAppColor
  121. text: bar.currentIndex===9?"倒渣3":String.fromCharCode(0x41+bar.currentIndex) +"01"
  122. onClicked: moveBegin(bar.currentIndex,3)
  123. }
  124. CButton {
  125. // id: resultButton
  126. // anchors.top: loginPassword.bottom
  127. // anchors.topMargin: 50
  128. // anchors.horizontalCenter: parent.horizontalCenter
  129. textHeight: 50
  130. fontHeight: 0.4
  131. width: 150
  132. height: 50
  133. visible: true //bar.currentIndex !== 8
  134. color: pressed ? textClickedColor : mainAppColor
  135. text: bar.currentIndex===9?"倒渣4":String.fromCharCode(0x41+bar.currentIndex) +"02"
  136. onClicked: moveBegin(bar.currentIndex,4)
  137. }
  138. CButton {
  139. // id: resultButton
  140. // anchors.top: loginPassword.bottom
  141. // anchors.topMargin: 50
  142. // anchors.horizontalCenter: parent.horizontalCenter
  143. textHeight: 50
  144. fontHeight: 0.4
  145. width: 150
  146. height: 50
  147. visible: bar.currentIndex !== 8
  148. color: pressed ? textClickedColor : mainAppColor
  149. text: bar.currentIndex===9?"倒渣5":String.fromCharCode(0x41+bar.currentIndex) +"03"
  150. onClicked: moveBegin(bar.currentIndex,5)
  151. }
  152. CButton {
  153. // id: resultButton
  154. // anchors.top: loginPassword.bottom
  155. // anchors.topMargin: 50
  156. // anchors.horizontalCenter: parent.horizontalCenter
  157. textHeight: 50
  158. fontHeight: 0.4
  159. width: 150
  160. height: 50
  161. visible: bar.currentIndex !== 8
  162. color: pressed ? textClickedColor : mainAppColor
  163. text: bar.currentIndex===9?"倒渣6":String.fromCharCode(0x41+bar.currentIndex) +"04"
  164. onClicked: moveBegin(bar.currentIndex,6)
  165. }
  166. CButton {
  167. // id: resultButton
  168. // anchors.top: loginPassword.bottom
  169. // anchors.topMargin: 50
  170. // anchors.horizontalCenter: parent.horizontalCenter
  171. textHeight: 50
  172. fontHeight: 0.4
  173. width: 150
  174. height: 50
  175. visible: bar.currentIndex !== 8
  176. color: pressed ? textClickedColor : mainAppColor
  177. text: bar.currentIndex===9?"倒渣7":String.fromCharCode(0x41+bar.currentIndex) +"05"
  178. onClicked: moveBegin(bar.currentIndex,7)
  179. }
  180. CButton {
  181. // id: resultButton
  182. // anchors.top: loginPassword.bottom
  183. // anchors.topMargin: 50
  184. // anchors.horizontalCenter: parent.horizontalCenter
  185. textHeight: 50
  186. fontHeight: 0.4
  187. width: 150
  188. height: 50
  189. visible: bar.currentIndex !== 8
  190. color: pressed ? textClickedColor : mainAppColor
  191. text: bar.currentIndex===9?"倒渣8":String.fromCharCode(0x41+bar.currentIndex) +"06"
  192. onClicked: moveBegin(bar.currentIndex,8)
  193. }
  194. CButton {
  195. // id: resultButton
  196. // anchors.top: loginPassword.bottom
  197. // anchors.topMargin: 50
  198. // anchors.horizontalCenter: parent.horizontalCenter
  199. textHeight: 50
  200. fontHeight: 0.4
  201. width: 150
  202. height: 50
  203. visible: bar.currentIndex !== 8
  204. color: pressed ? textClickedColor : mainAppColor
  205. text: bar.currentIndex===9?"倒渣9":String.fromCharCode(0x41+bar.currentIndex) +"07"
  206. onClicked: moveBegin(bar.currentIndex,9)
  207. }
  208. CButton {
  209. // id: resultButton
  210. // anchors.top: loginPassword.bottom
  211. // anchors.topMargin: 50
  212. // anchors.horizontalCenter: parent.horizontalCenter
  213. textHeight: 50
  214. fontHeight: 0.4
  215. width: 150
  216. height: 50
  217. visible: bar.currentIndex !== 8
  218. color: pressed ? textClickedColor : mainAppColor
  219. text: bar.currentIndex===9?"倒渣10":String.fromCharCode(0x41+bar.currentIndex) +"08"
  220. onClicked: moveBegin(bar.currentIndex,10)
  221. }
  222. }
  223. Row {
  224. height: parent.height
  225. // anchors.horizontalCenter: parent.horizontalCenter
  226. // anchors.top:parent.top
  227. // anchors.topMargin: 20
  228. y:400
  229. x:100
  230. spacing: 20
  231. CButton {
  232. // id: resultButton
  233. // anchors.top: loginPassword.bottom
  234. // anchors.topMargin: 50
  235. // anchors.horizontalCenter: parent.horizontalCenter
  236. textHeight: 50
  237. fontHeight: 0.4
  238. width: 150
  239. height: 50
  240. visible: true //bar.currentIndex !== 9
  241. color: pressed ? textClickedColor : mainAppColor
  242. text: bar.currentIndex===9?"倒渣11":String.fromCharCode(0x41+bar.currentIndex) +"09"
  243. onClicked: moveBegin(bar.currentIndex,11)
  244. }
  245. CButton {
  246. // id: resultButton
  247. // anchors.top: loginPassword.bottom
  248. // anchors.topMargin: 50
  249. // anchors.horizontalCenter: parent.horizontalCenter
  250. textHeight: 50
  251. fontHeight: 0.4
  252. width: 150
  253. height: 50
  254. visible: true ///bar.currentIndex !== 9
  255. color: pressed ? textClickedColor : mainAppColor
  256. text: bar.currentIndex===9?"倒渣12":String.fromCharCode(0x41+bar.currentIndex) +"10"
  257. onClicked: moveBegin(bar.currentIndex,12)
  258. }
  259. CButton {
  260. // id: resultButton
  261. // anchors.top: loginPassword.bottom
  262. // anchors.topMargin: 50
  263. // anchors.horizontalCenter: parent.horizontalCenter
  264. textHeight: 50
  265. fontHeight: 0.4
  266. width: 150
  267. height: 50
  268. visible: true //bar.currentIndex !== 9
  269. color: pressed ? textClickedColor : mainAppColor
  270. text: bar.currentIndex===9?"倒渣13":String.fromCharCode(0x41+bar.currentIndex) +"11"
  271. onClicked: moveBegin(bar.currentIndex,13)
  272. }
  273. CButton {
  274. // id: resultButton
  275. // anchors.top: loginPassword.bottom
  276. // anchors.topMargin: 50
  277. // anchors.horizontalCenter: parent.horizontalCenter
  278. textHeight: 50
  279. fontHeight: 0.4
  280. width: 150
  281. height: 50
  282. visible: true //bar.currentIndex !== 9
  283. color: pressed ? textClickedColor : mainAppColor
  284. text: bar.currentIndex===9?"倒渣14":String.fromCharCode(0x41+bar.currentIndex) +"12"
  285. onClicked: moveBegin(bar.currentIndex,14)
  286. }
  287. CButton {
  288. // id: resultButton
  289. // anchors.top: loginPassword.bottom
  290. // anchors.topMargin: 50
  291. // anchors.horizontalCenter: parent.horizontalCenter
  292. textHeight: 50
  293. fontHeight: 0.4
  294. width: 150
  295. height: 50
  296. visible: bar.currentIndex < 8
  297. color: pressed ? textClickedColor : mainAppColor
  298. text: String.fromCharCode(0x41+bar.currentIndex) +"13"
  299. onClicked: moveBegin(bar.currentIndex,15)
  300. }
  301. CButton {
  302. // id: resultButton
  303. // anchors.top: loginPassword.bottom
  304. // anchors.topMargin: 50
  305. // anchors.horizontalCenter: parent.horizontalCenter
  306. textHeight: 50
  307. fontHeight: 0.4
  308. width: 150
  309. height: 50
  310. visible: bar.currentIndex < 8
  311. color: pressed ? textClickedColor : mainAppColor
  312. text: String.fromCharCode(0x41+bar.currentIndex) +"14"
  313. onClicked: moveBegin(bar.currentIndex,16)
  314. }
  315. CButton {
  316. // id: resultButton
  317. // anchors.top: loginPassword.bottom
  318. // anchors.topMargin: 50
  319. // anchors.horizontalCenter: parent.horizontalCenter
  320. textHeight: 50
  321. fontHeight: 0.4
  322. width: 150
  323. height: 50
  324. visible: bar.currentIndex < 8
  325. color: pressed ? textClickedColor : mainAppColor
  326. text: String.fromCharCode(0x41+bar.currentIndex) +"15"
  327. onClicked: moveBegin(bar.currentIndex,17)
  328. }
  329. CButton {
  330. // id: resultButton
  331. // anchors.top: loginPassword.bottom
  332. // anchors.topMargin: 50
  333. // anchors.horizontalCenter: parent.horizontalCenter
  334. textHeight: 50
  335. fontHeight: 0.4
  336. width: 150
  337. height: 50
  338. visible: bar.currentIndex < 8
  339. color: pressed ? textClickedColor : mainAppColor
  340. text: String.fromCharCode(0x41+bar.currentIndex) +"16"
  341. onClicked: moveBegin(bar.currentIndex,18)
  342. }
  343. CButton {
  344. // id: resultButton
  345. // anchors.top: loginPassword.bottom
  346. // anchors.topMargin: 50
  347. // anchors.horizontalCenter: parent.horizontalCenter
  348. textHeight: 50
  349. fontHeight: 0.4
  350. width: 150
  351. height: 50
  352. visible: bar.currentIndex < 8
  353. color: pressed ? textClickedColor : mainAppColor
  354. text: String.fromCharCode(0x41+bar.currentIndex) +"17"
  355. onClicked: moveBegin(bar.currentIndex,19)
  356. }
  357. CButton {
  358. // id: resultButton
  359. // anchors.top: loginPassword.bottom
  360. // anchors.topMargin: 50
  361. // anchors.horizontalCenter: parent.horizontalCenter
  362. textHeight: 50
  363. fontHeight: 0.4
  364. width: 150
  365. height: 50
  366. visible: bar.currentIndex < 8
  367. color: pressed ? textClickedColor : mainAppColor
  368. text: String.fromCharCode(0x41+bar.currentIndex) +"18"
  369. onClicked: moveBegin(bar.currentIndex,20)
  370. }
  371. }
  372. Row {
  373. height: parent.height
  374. // anchors.horizontalCenter: parent.horizontalCenter
  375. // anchors.top:parent.top
  376. // anchors.topMargin: 20
  377. y:550
  378. x:100
  379. spacing: 20
  380. CButton {
  381. // id: resultButton
  382. // anchors.top: loginPassword.bottom
  383. // anchors.topMargin: 50
  384. // anchors.horizontalCenter: parent.horizontalCenter
  385. textHeight: 50
  386. fontHeight: 0.4
  387. width: 150
  388. height: 50
  389. visible: bar.currentIndex < 8
  390. color: pressed ? textClickedColor : mainAppColor
  391. text: String.fromCharCode(0x41+bar.currentIndex) +"19"
  392. onClicked: moveBegin(bar.currentIndex,21)
  393. }
  394. CButton {
  395. // id: resultButton
  396. // anchors.top: loginPassword.bottom
  397. // anchors.topMargin: 50
  398. // anchors.horizontalCenter: parent.horizontalCenter
  399. textHeight: 50
  400. fontHeight: 0.4
  401. width: 150
  402. height: 50
  403. visible: bar.currentIndex < 8
  404. color: pressed ? textClickedColor : mainAppColor
  405. text: String.fromCharCode(0x41+bar.currentIndex) +"20"
  406. onClicked: moveBegin(bar.currentIndex,22)
  407. }
  408. CButton {
  409. // id: resultButton
  410. // anchors.top: loginPassword.bottom
  411. // anchors.topMargin: 50
  412. // anchors.horizontalCenter: parent.horizontalCenter
  413. textHeight: 50
  414. fontHeight: 0.4
  415. width: 150
  416. height: 50
  417. visible: bar.currentIndex < 8
  418. color: pressed ? textClickedColor : mainAppColor
  419. text: String.fromCharCode(0x41+bar.currentIndex) +"21"
  420. onClicked: moveBegin(bar.currentIndex,23)
  421. }
  422. CButton {
  423. // id: resultButton
  424. // anchors.top: loginPassword.bottom
  425. // anchors.topMargin: 50
  426. // anchors.horizontalCenter: parent.horizontalCenter
  427. textHeight: 50
  428. fontHeight: 0.4
  429. width: 150
  430. height: 50
  431. visible: bar.currentIndex < 8
  432. color: pressed ? textClickedColor : mainAppColor
  433. text: String.fromCharCode(0x41+bar.currentIndex) +"22"
  434. onClicked: moveBegin(bar.currentIndex,24)
  435. }
  436. CButton {
  437. // id: resultButton
  438. // anchors.top: loginPassword.bottom
  439. // anchors.topMargin: 50
  440. // anchors.horizontalCenter: parent.horizontalCenter
  441. textHeight: 50
  442. fontHeight: 0.4
  443. width: 150
  444. height: 50
  445. visible: bar.currentIndex < 8
  446. color: pressed ? textClickedColor : mainAppColor
  447. text: String.fromCharCode(0x41+bar.currentIndex) +"23"
  448. onClicked: moveBegin(bar.currentIndex,25)
  449. }
  450. CButton {
  451. // id: resultButton
  452. // anchors.top: loginPassword.bottom
  453. // anchors.topMargin: 50
  454. // anchors.horizontalCenter: parent.horizontalCenter
  455. textHeight: 50
  456. fontHeight: 0.4
  457. width: 150
  458. height: 50
  459. visible: bar.currentIndex < 8
  460. color: pressed ? textClickedColor : mainAppColor
  461. text: String.fromCharCode(0x41+bar.currentIndex) + "24"
  462. onClicked: moveBegin(bar.currentIndex,26)
  463. }
  464. CButton {
  465. // id: resultButton
  466. // anchors.top: loginPassword.bottom
  467. // anchors.topMargin: 50
  468. // anchors.horizontalCenter: parent.horizontalCenter
  469. textHeight: 50
  470. fontHeight: 0.4
  471. width: 150
  472. height: 50
  473. visible: bar.currentIndex < 8
  474. color: pressed ? textClickedColor : mainAppColor
  475. text: String.fromCharCode(0x41+bar.currentIndex) +"25"
  476. onClicked: moveBegin(bar.currentIndex,27)
  477. }
  478. CButton {
  479. // id: resultButton
  480. // anchors.top: loginPassword.bottom
  481. // anchors.topMargin: 50
  482. // anchors.horizontalCenter: parent.horizontalCenter
  483. textHeight: 50
  484. fontHeight: 0.4
  485. width: 150
  486. height: 50
  487. visible: bar.currentIndex < 8
  488. color: pressed ? textClickedColor : mainAppColor
  489. text: String.fromCharCode(0x41+bar.currentIndex) +"26"
  490. onClicked: moveBegin(bar.currentIndex,28)
  491. }
  492. CButton {
  493. // id: resultButton
  494. // anchors.top: loginPassword.bottom
  495. // anchors.topMargin: 50
  496. // anchors.horizontalCenter: parent.horizontalCenter
  497. textHeight: 50
  498. fontHeight: 0.4
  499. width: 150
  500. height: 50
  501. visible: bar.currentIndex < 8
  502. color: pressed ? textClickedColor : mainAppColor
  503. text: String.fromCharCode(0x41+bar.currentIndex) +"27"
  504. onClicked: moveBegin(bar.currentIndex,29)
  505. }
  506. CButton {
  507. // id: resultButton
  508. // anchors.top: loginPassword.bottom
  509. // anchors.topMargin: 50
  510. // anchors.horizontalCenter: parent.horizontalCenter
  511. textHeight: 50
  512. fontHeight: 0.4
  513. width: 150
  514. height: 50
  515. visible: bar.currentIndex < 8
  516. color: pressed ? textClickedColor : mainAppColor
  517. text: String.fromCharCode(0x41+bar.currentIndex) +"28"
  518. onClicked: moveBegin(bar.currentIndex,30)
  519. }
  520. }
  521. Row {
  522. height: parent.height
  523. // anchors.horizontalCenter: parent.horizontalCenter
  524. // anchors.top:parent.top
  525. // anchors.topMargin: 20
  526. y:700
  527. x:100
  528. spacing: 20
  529. CButton {
  530. // id: resultButton
  531. // anchors.top: loginPassword.bottom
  532. // anchors.topMargin: 50
  533. // anchors.horizontalCenter: parent.horizontalCenter
  534. textHeight: 50
  535. fontHeight: 0.4
  536. width: 150
  537. height: 50
  538. visible: bar.currentIndex < 8
  539. color: pressed ? textClickedColor : mainAppColor
  540. text: String.fromCharCode(0x41+bar.currentIndex) +"29"
  541. onClicked: moveBegin(bar.currentIndex,31)
  542. }
  543. CButton {
  544. // id: resultButton
  545. // anchors.top: loginPassword.bottom
  546. // anchors.topMargin: 50
  547. // anchors.horizontalCenter: parent.horizontalCenter
  548. textHeight: 50
  549. fontHeight: 0.4
  550. width: 150
  551. height: 50
  552. visible: bar.currentIndex < 8
  553. color: pressed ? textClickedColor : mainAppColor
  554. text: String.fromCharCode(0x41+bar.currentIndex) +"30"
  555. onClicked: moveBegin(bar.currentIndex,32)
  556. }
  557. CButton {
  558. // id: resultButton
  559. // anchors.top: loginPassword.bottom
  560. // anchors.topMargin: 50
  561. // anchors.horizontalCenter: parent.horizontalCenter
  562. textHeight: 50
  563. fontHeight: 0.4
  564. width: 150
  565. height: 50
  566. visible: bar.currentIndex < 8
  567. color: pressed ? textClickedColor : mainAppColor
  568. text: String.fromCharCode(0x41+bar.currentIndex) +"31"
  569. onClicked: moveBegin(bar.currentIndex,33)
  570. }
  571. CButton {
  572. // id: resultButton
  573. // anchors.top: loginPassword.bottom
  574. // anchors.topMargin: 50
  575. // anchors.horizontalCenter: parent.horizontalCenter
  576. textHeight: 50
  577. fontHeight: 0.4
  578. width: 150
  579. height: 50
  580. visible: bar.currentIndex < 8
  581. color: pressed ? textClickedColor : mainAppColor
  582. text: String.fromCharCode(0x41+bar.currentIndex) +"32"
  583. onClicked: moveBegin(bar.currentIndex,34)
  584. }
  585. CButton {
  586. // id: resultButton
  587. // anchors.top: loginPassword.bottom
  588. // anchors.topMargin: 50
  589. // anchors.horizontalCenter: parent.horizontalCenter
  590. textHeight: 50
  591. fontHeight: 0.4
  592. width: 150
  593. height: 50
  594. visible: bar.currentIndex < 8
  595. color: pressed ? textClickedColor : mainAppColor
  596. text: String.fromCharCode(0x41+bar.currentIndex) +"33"
  597. onClicked: moveBegin(bar.currentIndex,35)
  598. }
  599. CButton {
  600. // id: resultButton
  601. // anchors.top: loginPassword.bottom
  602. // anchors.topMargin: 50
  603. // anchors.horizontalCenter: parent.horizontalCenter
  604. textHeight: 50
  605. fontHeight: 0.4
  606. width: 150
  607. height: 50
  608. visible: bar.currentIndex < 8
  609. color: pressed ? textClickedColor : mainAppColor
  610. text: String.fromCharCode(0x41+bar.currentIndex) +"34"
  611. onClicked: moveBegin(bar.currentIndex,36)
  612. }
  613. CButton {
  614. // id: resultButton
  615. // anchors.top: loginPassword.bottom
  616. // anchors.topMargin: 50
  617. // anchors.horizontalCenter: parent.horizontalCenter
  618. textHeight: 50
  619. fontHeight: 0.4
  620. width: 150
  621. height: 50
  622. visible: bar.currentIndex < 8
  623. color: pressed ? textClickedColor : mainAppColor
  624. text: String.fromCharCode(0x41+bar.currentIndex) +"35"
  625. onClicked: moveBegin(bar.currentIndex,37)
  626. }
  627. CButton {
  628. // id: resultButton
  629. // anchors.top: loginPassword.bottom
  630. // anchors.topMargin: 50
  631. // anchors.horizontalCenter: parent.horizontalCenter
  632. textHeight: 50
  633. fontHeight: 0.4
  634. width: 150
  635. height: 50
  636. visible: bar.currentIndex < 8
  637. color: pressed ? textClickedColor : mainAppColor
  638. text: String.fromCharCode(0x41+bar.currentIndex) +"36"
  639. onClicked: moveBegin(bar.currentIndex,38)
  640. }
  641. CButton {
  642. // id: resultButton
  643. // anchors.top: loginPassword.bottom
  644. // anchors.topMargin: 50
  645. // anchors.horizontalCenter: parent.horizontalCenter
  646. textHeight: 50
  647. fontHeight: 0.4
  648. width: 150
  649. height: 50
  650. visible: bar.currentIndex < 8
  651. color: pressed ? textClickedColor : mainAppColor
  652. text: String.fromCharCode(0x41+bar.currentIndex) +"37"
  653. onClicked: moveBegin(bar.currentIndex,39)
  654. }
  655. CButton {
  656. // id: resultButton
  657. // anchors.top: loginPassword.bottom
  658. // anchors.topMargin: 50
  659. // anchors.horizontalCenter: parent.horizontalCenter
  660. textHeight: 50
  661. fontHeight: 0.4
  662. width: 150
  663. height: 50
  664. visible: bar.currentIndex < 8
  665. color: pressed ? textClickedColor : mainAppColor
  666. text: String.fromCharCode(0x41+bar.currentIndex) +"38"
  667. onClicked: moveBegin(bar.currentIndex,40)
  668. }
  669. }
  670. Row {
  671. height: parent.height
  672. // anchors.horizontalCenter: parent.horizontalCenter
  673. // anchors.top:parent.top
  674. // anchors.topMargin: 20
  675. y:850
  676. x:100
  677. spacing: 20
  678. CButton {
  679. // id: resultButton
  680. // anchors.top: loginPassword.bottom
  681. // anchors.topMargin: 50
  682. // anchors.horizontalCenter: parent.horizontalCenter
  683. textHeight: 50
  684. fontHeight: 0.4
  685. width: 150
  686. height: 50
  687. visible: bar.currentIndex < 8
  688. color: pressed ? textClickedColor : mainAppColor
  689. text: String.fromCharCode(0x41+bar.currentIndex) +"39"
  690. onClicked: moveBegin(bar.currentIndex,41)
  691. }
  692. CButton {
  693. // id: resultButton
  694. // anchors.top: loginPassword.bottom
  695. // anchors.topMargin: 50
  696. // anchors.horizontalCenter: parent.horizontalCenter
  697. textHeight: 50
  698. fontHeight: 0.4
  699. width: 150
  700. height: 50
  701. visible: bar.currentIndex < 8
  702. color: pressed ? textClickedColor : mainAppColor
  703. text: String.fromCharCode(0x41+bar.currentIndex) +"40"
  704. onClicked: moveBegin(bar.currentIndex,42)
  705. }
  706. CButton {
  707. // id: resultButton
  708. // anchors.top: loginPassword.bottom
  709. // anchors.topMargin: 50
  710. // anchors.horizontalCenter: parent.horizontalCenter
  711. textHeight: 50
  712. fontHeight: 0.4
  713. width: 150
  714. height: 50
  715. visible: bar.currentIndex < 8
  716. color: pressed ? textClickedColor : mainAppColor
  717. text: String.fromCharCode(0x41+bar.currentIndex) +"41"
  718. onClicked: moveBegin(bar.currentIndex,43)
  719. }
  720. CButton {
  721. // id: resultButton
  722. // anchors.top: loginPassword.bottom
  723. // anchors.topMargin: 50
  724. // anchors.horizontalCenter: parent.horizontalCenter
  725. textHeight: 50
  726. fontHeight: 0.4
  727. width: 150
  728. height: 50
  729. visible: bar.currentIndex < 8
  730. color: pressed ? textClickedColor : mainAppColor
  731. text: String.fromCharCode(0x41+bar.currentIndex) +"42"
  732. onClicked: moveBegin(bar.currentIndex,44)
  733. }
  734. CButton {
  735. // id: resultButton
  736. // anchors.top: loginPassword.bottom
  737. // anchors.topMargin: 50
  738. // anchors.horizontalCenter: parent.horizontalCenter
  739. textHeight: 50
  740. fontHeight: 0.4
  741. width: 150
  742. height: 50
  743. visible: bar.currentIndex < 8
  744. color: pressed ? textClickedColor : mainAppColor
  745. text: String.fromCharCode(0x41+bar.currentIndex) +"43"
  746. onClicked: moveBegin(bar.currentIndex,45)
  747. }
  748. CButton {
  749. // id: resultButton
  750. // anchors.top: loginPassword.bottom
  751. // anchors.topMargin: 50
  752. // anchors.horizontalCenter: parent.horizontalCenter
  753. textHeight: 50
  754. fontHeight: 0.4
  755. width: 150
  756. height: 50
  757. visible: bar.currentIndex < 8
  758. color: pressed ? textClickedColor : mainAppColor
  759. text: String.fromCharCode(0x41+bar.currentIndex) +"44"
  760. onClicked: moveBegin(bar.currentIndex,46)
  761. }
  762. CButton {
  763. // id: resultButton
  764. // anchors.top: loginPassword.bottom
  765. // anchors.topMargin: 50
  766. // anchors.horizontalCenter: parent.horizontalCenter
  767. textHeight: 50
  768. fontHeight: 0.4
  769. width: 150
  770. height: 50
  771. visible: bar.currentIndex < 8
  772. color: pressed ? textClickedColor : mainAppColor
  773. text: String.fromCharCode(0x41+bar.currentIndex) +"45"
  774. onClicked: moveBegin(bar.currentIndex,47)
  775. }
  776. CButton {
  777. // id: resultButton
  778. // anchors.top: loginPassword.bottom
  779. // anchors.topMargin: 50
  780. // anchors.horizontalCenter: parent.horizontalCenter
  781. textHeight: 50
  782. fontHeight: 0.4
  783. width: 150
  784. height: 50
  785. visible: bar.currentIndex < 8
  786. color: pressed ? textClickedColor : mainAppColor
  787. text: String.fromCharCode(0x41+bar.currentIndex) +"46"
  788. onClicked: moveBegin(bar.currentIndex,48)
  789. }
  790. CButton {
  791. // id: resultButton
  792. // anchors.top: loginPassword.bottom
  793. // anchors.topMargin: 50
  794. // anchors.horizontalCenter: parent.horizontalCenter
  795. textHeight: 50
  796. fontHeight: 0.4
  797. width: 150
  798. height: 50
  799. visible: bar.currentIndex < 8
  800. color: pressed ? textClickedColor : mainAppColor
  801. text: String.fromCharCode(0x41+bar.currentIndex) +"47"
  802. onClicked: moveBegin(bar.currentIndex,49)
  803. }
  804. CButton {
  805. // id: resultButton
  806. // anchors.top: loginPassword.bottom
  807. // anchors.topMargin: 50
  808. // anchors.horizontalCenter: parent.horizontalCenter
  809. textHeight: 50
  810. fontHeight: 0.4
  811. width: 150
  812. height: 50
  813. visible: bar.currentIndex < 8
  814. color: pressed ? textClickedColor : mainAppColor
  815. text: String.fromCharCode(0x41+bar.currentIndex) +"48"
  816. onClicked: moveBegin(bar.currentIndex,50)
  817. }
  818. }
  819. CButton {
  820. id: carButton
  821. x:10
  822. y:400
  823. textHeight: 50
  824. fontHeight: 0.4
  825. width: 50
  826. height: 200
  827. color: pressed ? textClickedColor : mainAppColor
  828. Text{
  829. text: "\n 车\n 辆\n 管\n 理"
  830. wrapMode: Text.WordWrap
  831. font.pointSize: 20
  832. color:"white"
  833. // anchors.horizontalCenter: parent.horizontalCenter
  834. // horizontalAlignment: Text.AlignHCenter
  835. verticalAlignment: Text.AlignVCenter
  836. }
  837. onClicked:carManage();
  838. }
  839. }