import QtQuick 2.8 import QtQuick.Controls 1.4 import QtQuick.Controls.Styles 1.4 import QtQuick.Controls 2.3 import QtQuick.Dialogs 1.1 import QtGraphicalEffects 1.0 import QtQuick.Controls.Material 2.3 Rectangle{ id: rectangle width: 700 height: 700 color: "#33e1e1e1" Component.onCompleted: { scriptsTimer.start(); var component = Qt.createComponent("Expander.qml"); } LinearGradient { anchors.fill: rectangle start: Qt.point(0, 0) end: Qt.point(0, rectangle.height) gradient: Gradient { GradientStop { position: 1.0; color: "#606c88" } GradientStop { position: 0.1; color: "#3f4c6b" } } } ScrollView{ id: scrollView anchors.fill: parent GroupBox { id: groupBox x: 390 y: 20 width: 230 height: 612 anchors.top: parent.top anchors.topMargin: 20 anchors.right: parent.right anchors.rightMargin: 20 title: qsTr("اطلاعات پلاک") font.family: "B Nazanin" Rectangle { id: row x: -12 width: 206 height: 32 color: "#33e1e1e1" anchors.top: parent.top anchors.topMargin: 0 anchors.right: parent.right anchors.rightMargin: 0 anchors.verticalCenterOffset: 0 anchors.verticalCenter: text5.verticalCenter Text { id: text4 text: qsTr("Text") font.bold: true anchors.verticalCenter: parent.verticalCenter font.pixelSize: 13 font.family: "B Nazanin" } Text { id: text3 width: 29 height: 16 text: qsTr("Text") anchors.left: text4.right anchors.leftMargin: 10 horizontalAlignment: Text.AlignHCenter font.bold: true anchors.verticalCenter: parent.verticalCenter font.pixelSize: 13 font.family: "B Nazanin" } Text { id: text2 text: qsTr("Text") anchors.left: text3.right anchors.leftMargin: 10 font.bold: true anchors.verticalCenter: parent.verticalCenter font.pixelSize: 13 font.family: "B Nazanin" } Text { id: text5 color: "#000000" text: qsTr("شماره پلاک") anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 0 font.pixelSize: 12 font.family: "B Nazanin" } } Rectangle { id: column width: 93 height: 50 color: "#33e1e1e1" anchors.left: parent.left anchors.leftMargin: 0 anchors.top: row.bottom anchors.topMargin: 5 Text { id: text1 color: "#000000" text: qsTr("سریال پلاک") anchors.right: parent.right anchors.rightMargin: 0 elide: Text.ElideRight horizontalAlignment: Text.AlignRight font.pixelSize: 12 font.family: "B Nazanin" } TextField { id: plateSerial x: 18 y: 15 width: 75 height: 35 text: qsTr("") anchors.bottom: parent.bottom anchors.bottomMargin: 0 anchors.horizontalCenter: parent.horizontalCenter horizontalAlignment: Text.AlignRight font.bold: true font.pixelSize: 13 font.family: "B Nazanin" onTextChanged: { var js = "document.getElementById('content_formContent_txtPlaqueSerial_RN').value = '"+text+"'" } } } Rectangle { id: column1 width: 93 height: 59 color: "#33e1e1e1" anchors.right: parent.right anchors.rightMargin: 0 Text { id: text6 color: "#000000" text: qsTr("شهر پلاک") font.pixelSize: 12 horizontalAlignment: Text.AlignRight elide: Text.ElideRight anchors.rightMargin: 0 anchors.right: parent.right font.family: "B Nazanin" } ComboBox { id: plateCiy x: 8 width: 85 height: 34 anchors.horizontalCenter: parent.horizontalCenter anchors.top: text6.bottom anchors.topMargin: 6 font.pixelSize: 13 font.bold: true Material.background: Material.Teal onCurrentIndexChanged: { if(currentIndex!=0){ var js = "document.getElementById('content_formContent_cmbPlaqueCity_R').selectedIndex = "+currentIndex webView.runJavaScript(js,function(res){ }) } } font.family: "B Nazanin" } anchors.topMargin: 5 anchors.top: row.bottom } Rectangle { id: column2 height: 36 color: "#33e1e1e1" anchors.left: parent.left anchors.leftMargin: 0 anchors.top: column.bottom anchors.topMargin: 15 anchors.right: parent.right anchors.rightMargin: 0 Text { id: text7 color: "#000000" text: qsTr("نوع پلاک") anchors.verticalCenter: parent.verticalCenter font.pixelSize: 12 horizontalAlignment: Text.AlignRight elide: Text.ElideRight anchors.rightMargin: 0 anchors.right: parent.right font.family: "B Nazanin" } ComboBox { id: plateType height: 0 anchors.right: text7.left anchors.rightMargin: 5 anchors.verticalCenterOffset: 0 anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: 5 anchors.top: parent.top anchors.topMargin: 0 onCurrentIndexChanged: { if(currentIndex!=0){ var js = "document.getElementById('content_formContent_cmbPlaqueType_R').selectedIndex = "+currentIndex webView.runJavaScript(js,function(res){}) } } font.pixelSize: 13 Material.background: Material.Teal font.bold: true font.family: "B Nazanin" } } Button { id: button x: 146 width: 60 height: 28 text: qsTr("ذخیره") anchors.bottom: parent.bottom anchors.bottomMargin: 5 font.pointSize: 10 font.bold: false anchors.top: descTxt.bottom anchors.topMargin: 5 anchors.right: parent.right anchors.rightMargin: 0 Material.background: Material.Teal font.family: "B Nazanin" onClicked: { var js_temp = "document.getElementById('content_formContent_btnPlaqueUpdate').click()" webView.runJavaScript(js_temp,function(res){ if(res==null){ messageDialog.open() } }) } } Rectangle { id: rectangle3 height: 50 color: "#33e1e1e1" anchors.left: parent.left anchors.leftMargin: 3 anchors.right: parent.right anchors.rightMargin: 3 anchors.top: column2.bottom anchors.topMargin: 5 TextField { id: nameTxt y: 0 height: 45 text: qsTr("") selectByMouse: true anchors.left: parent.left anchors.leftMargin: 5 anchors.right: text17.left anchors.rightMargin: 5 anchors.verticalCenter: parent.verticalCenter placeholderText: "" horizontalAlignment: Text.AlignRight font.family: "B Nazanin" onTextChanged: { var js = "document.getElementById('content_formContent_txtPlaqueName_R').value = '"+text+"'" webView.runJavaScript(js,function(res){ }) } } Text { id: text17 x: 146 y: 0 width: 50 height: 29 text: qsTr("نام و نام خانوادگی") anchors.right: parent.right anchors.rightMargin: 5 anchors.verticalCenter: parent.verticalCenter wrapMode: Text.WordWrap font.pixelSize: 12 } } Rectangle { id: rectangle4 height: 50 color: "#33e1e1e1" anchors.top: rectangle3.bottom anchors.topMargin: 5 anchors.left: parent.left anchors.leftMargin: 3 anchors.right: parent.right anchors.rightMargin: 3 TextField { id: telTxt y: 0 height: 45 text: qsTr("") selectByMouse: true anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: 5 placeholderText: "" horizontalAlignment: Text.AlignRight anchors.right: text18.left anchors.rightMargin: 5 font.family: "B Nazanin" onTextChanged: { var js = "document.getElementById('content_formContent_txtPlaqueTel').value = '"+text+"'" webView.runJavaScript(js,function(res){ }) } } Text { id: text18 x: 156 y: 15 width: 50 text: qsTr("تلفن") anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 5 font.pixelSize: 12 } } Rectangle { id: rectangle5 x: 3 width: 200 height: 100 color: "#33e1e1e1" anchors.top: rectangle4.bottom anchors.topMargin: 5 TextField { id: addressTxt text: qsTr("") anchors.rightMargin: 5 anchors.leftMargin: 5 anchors.topMargin: 30 anchors.fill: parent placeholderText: "" selectByMouse: true wrapMode: Text.WordWrap horizontalAlignment: Text.AlignRight font.family: "B Nazanin" onTextChanged: { var js = "document.getElementById('content_formContent_txtPlaqueAddress').value = '"+text+"'" webView.runJavaScript(js,function(res){}) } } Text { id: text19 x: 169 text: qsTr("آدرس") anchors.top: parent.top anchors.topMargin: 5 anchors.right: parent.right anchors.rightMargin: 5 font.pixelSize: 12 } } Rectangle { id: rectangle6 x: 3 width: 200 height: 100 color: "#33e1e1e1" anchors.top: rectangle5.bottom anchors.topMargin: 5 TextField { id: descTxt text: qsTr("") anchors.rightMargin: 5 anchors.leftMargin: 5 selectByMouse: true placeholderText: "" horizontalAlignment: Text.AlignRight anchors.fill: parent anchors.topMargin: 30 wrapMode: Text.WordWrap font.family: "B Nazanin" onTextChanged: { var js = "document.getElementById('content_formContent_txtPlaqueDescription').value = '"+text+"'" webView.runJavaScript(js,function(res){}) } } Text { id: text20 x: 169 text: qsTr("توضیحات") font.pixelSize: 12 anchors.rightMargin: 5 anchors.topMargin: 5 anchors.right: parent.right anchors.top: parent.top } } } GroupBox { id: groupBox1 x: 141 y: 20 width: 239 height: 633 anchors.top: parent.top anchors.topMargin: 20 anchors.right: groupBox.left anchors.rightMargin: 10 title: qsTr("اطلاعات خودرو") TextField { id: idCode selectByMouse: true x: 7 width: 162 height: 40 text: qsTr("") font.pixelSize: 11 anchors.top: parent.top anchors.topMargin: 0 anchors.right: parent.right anchors.rightMargin: 5 placeholderText: "کد شناسه" onTextChanged: { var js ="document.getElementById('content_formContent_txtIdentity17Digit').value = '"+text+"'" webView.runJavaScript(js,function(res){}) } anchors.horizontalCenter: parent.horizontalCenter font.family: "B Nazanin" verticalAlignment: "AlignBottom" } TextField { id: engineNumber x: 15 width: 162 selectByMouse: true height: 40 text: qsTr("") font.pixelSize: 11 anchors.right: parent.right anchors.rightMargin: 5 anchors.top: idCode.bottom anchors.topMargin: 5 anchors.horizontalCenterOffset: 0 placeholderText: "شماره موتور" anchors.horizontalCenter: parent.horizontalCenter font.family: "B Nazanin" verticalAlignment: "AlignBottom" onTextChanged: { var js = "document.getElementById('content_formContent_txtMotor_R').value = '"+text+"'" webView.runJavaScript(js,function(res){}) } } TextField { id: shasiNum x: 19 width: 162 height: 40 selectByMouse: true text: qsTr("") font.pixelSize: 11 anchors.right: parent.right anchors.rightMargin: 5 placeholderText: "شماره شاسی" anchors.topMargin: 5 anchors.top: engineNumber.bottom anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenterOffset: 0 onTextChanged: { var js = "document.getElementById('content_formContent_txtFrame').value = '"+text+"'" webView.runJavaScript(js,function(res){}) } font.family: "B Nazanin" verticalAlignment: "AlignBottom" } Rectangle { id: rectCarName height: 83 color: "#33e1e1e1" anchors.top: rectUser.bottom anchors.topMargin: 5 anchors.left: parent.left anchors.leftMargin: 3 anchors.right: parent.right anchors.rightMargin: 3 Text { id: text9 x: 121 y: 8 text: "نوع خودرو" anchors.right: parent.right anchors.rightMargin: 5 anchors.verticalCenter: textField.verticalCenter font.pixelSize: 12 font.family: "B Nazanin" } TextField { id: textField width: 113 height: 40 text: qsTr("") font.pixelSize: 11 selectByMouse: true anchors.top: parent.top anchors.topMargin: 3 anchors.left: parent.left anchors.leftMargin: 5 font.family: "B Nazanin" placeholderText: "فیلتر کردن نوع خودرو" onTextChanged: { var js = "document.getElementById('content_formContent_txtSearchcmbSystemType').value ='"+text+"'" webView.runJavaScript(js,function(res){ }) } } ComboBox { id: carsCombo height: 30 anchors.top: textField.bottom anchors.topMargin: 5 anchors.left: parent.left anchors.leftMargin: 5 anchors.right: parent.right Material.background: Material.Teal popup: Popup{ id:popup y: carsCombo.height - 100 width: carsCombo.width height: 400 padding: 1 contentItem: ListView { id: listview implicitHeight: popup.height clip: true model:carsCombo.delegateModel currentIndex: carsCombo.highlightedIndex interactive: true highlightMoveDuration: 0 boundsBehavior: ListView.StopAtBounds ScrollBar.vertical:ScrollBar {} } } anchors.rightMargin: 5 onCurrentIndexChanged: { if(currentIndex!=0){ var js = "document.getElementById('content_formContent_cmbSystemType_R').selectedIndex = "+currentIndex webView.runJavaScript(js,function(res){}) } } font.family: "B Nazanin" } } Rectangle { id: rectCarType x: 0 height: 82 color: "#33e1e1e1" anchors.left: parent.left Text { id: text10 x: 121 y: 8 text: "تیپ" anchors.right: parent.right anchors.rightMargin: 5 font.pixelSize: 12 anchors.verticalCenter: textField1.verticalCenter font.family: "B Nazanin" } TextField { id: textField1 width: 113 height: 40 selectByMouse: true text: qsTr("") font.pixelSize: 11 anchors.left: parent.left placeholderText: "فیلتر کردن تیپ خودرو" anchors.leftMargin: 5 anchors.topMargin: 3 anchors.top: parent.top font.family: "B Nazanin" Material.foreground: "black" onTextChanged: { var js = "document.getElementById('content_formContent_txtSearchcmbBrigadeType').value = '"+text+"'" webView.runJavaScript(js,function(res){}) } } ComboBox { id: carTypeCombo Material.background: Material.Teal height: 30 anchors.left: parent.left anchors.rightMargin: 5 anchors.leftMargin: 5 anchors.topMargin: 5 anchors.right: parent.right anchors.top: textField1.bottom popup: Popup{ id:popup3 y: carsCombo.height - 100 width: carsCombo.width height: 400 padding: 1 contentItem: ListView { implicitHeight: popup3.height clip: true model:carsCombo.delegateModel currentIndex: carsCombo.highlightedIndex interactive: true highlightMoveDuration: 0 boundsBehavior: ListView.StopAtBounds ScrollBar.vertical:ScrollBar {} } } onCurrentIndexChanged: { if(currentIndex!=0){ var js = "document.getElementById('content_formContent_cmbBrigadeType_R').selectedIndex = "+currentIndex webView.runJavaScript(js,function(res){}) } } font.family: "B Nazanin" } anchors.rightMargin: 3 anchors.leftMargin: 3 anchors.topMargin: 5 anchors.right: parent.right anchors.top: rectCarName.bottom } Rectangle { id: rectUser height: 40 color: "#33e1e1e1" anchors.left: parent.left anchors.leftMargin: 3 anchors.right: parent.right anchors.rightMargin: 3 anchors.top: shasiNum.bottom anchors.topMargin: 5 Text { id: text11 text: qsTr("کاربری") anchors.right: parent.right anchors.rightMargin: 5 font.pixelSize: 12 anchors.verticalCenter: parent.verticalCenter font.family: "B Nazanin" } ComboBox { id: comboBox3 y: 9 font.family: "B Nazanin" height: 30 anchors.right: text11.left anchors.rightMargin: 15 anchors.left: parent.left anchors.leftMargin: 3 anchors.verticalCenter: parent.verticalCenter Material.background: Material.Teal onCurrentIndexChanged: { if(currentIndex!=0){ var js = "document.getElementById('content_formContent_cmbUsage_R').selectedIndex = "+currentIndex webView.runJavaScript(js,function(res){}) } } } } Rectangle { id: rectFuel height: 42 color: "#33e1e1e1" anchors.left: parent.left anchors.leftMargin: 3 anchors.right: parent.right anchors.rightMargin: 3 anchors.top: rectCarType.bottom anchors.topMargin: 5 Text { id: text8 x: 114 y: 11 text: qsTr("نوع سوخت") anchors.right: parent.right font.family: "B Nazanin" anchors.rightMargin: 5 font.pixelSize: 12 } ComboBox { id: fuelCombo y: 8 height: 30 anchors.right: text8.left anchors.rightMargin: 15 anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: 5 onCurrentIndexChanged: { if(currentIndex!=0){ var js ="document.getElementById('content_formContent_cmbSookht_R').selectedIndex = "+currentIndex webView.runJavaScript(js,function(res){}) } } font.family: "B Nazanin" Material.background: Material.Teal } } Rectangle { id: rectColor height: 40 color: "#33e1e1e1" anchors.left: parent.left anchors.leftMargin: 3 anchors.right: parent.right anchors.rightMargin: 3 Text { id: text12 x: 114 y: 11 text: qsTr("رنگ خودرو") font.pixelSize: 12 font.family: "B Nazanin" anchors.rightMargin: 5 anchors.right: parent.right } ComboBox { id: colorCombo y: 8 height: 30 popup: Popup{ id:popup1 y: parent.y - 401 width: carsCombo.width height: 400 padding: 1 contentItem: ListView { implicitHeight: popup1.height clip: true model:carsCombo.delegateModel currentIndex: carsCombo.highlightedIndex interactive: true highlightMoveDuration: 0 boundsBehavior: ListView.StopAtBounds ScrollBar.vertical:ScrollBar {} } } anchors.right: text12.left anchors.rightMargin: 15 anchors.left: parent.left anchors.leftMargin: 5 onCurrentIndexChanged: { if(currentIndex!=0){ var js ="document.getElementById('content_formContent_cmbColor_R').selectedIndex = "+currentIndex webView.runJavaScript(js,function(res){}) } } anchors.verticalCenter: parent.verticalCenter font.family: "B Nazanin" Material.background: Material.Teal } anchors.topMargin: 5 anchors.top: rectFuel.bottom } Rectangle { id: rectCarDet y: 421 height: 105 color: "#33e1e1e1" anchors.left: parent.left anchors.leftMargin: 3 anchors.right: parent.right anchors.rightMargin: 3 Text { id: text13 x: 114 y: 11 text: qsTr("مدل") font.family: "B Nazanin" anchors.verticalCenter: modelTxt.verticalCenter font.pixelSize: 12 anchors.rightMargin: 3 anchors.right: parent.right } TextField { id: modelTxt x: 99 width: 40 height: 40 selectByMouse: true text: qsTr("") font.pixelSize: 11 anchors.right: text13.left anchors.rightMargin: 3 anchors.top: parent.top onTextChanged: { var js = "document.getElementById('content_formContent_txtModel_RN').value = "+text webView.runJavaScript(js,function(res){}) } anchors.topMargin: 5 font.family: "B Nazanin" } TextField { id: modelTxt1 selectByMouse: true y: -2 width: 40 height: 40 text: qsTr("") font.pixelSize: 11 anchors.left: parent.left anchors.leftMargin: 3 anchors.topMargin: 3 onTextChanged: { var js = "document.getElementById('content_formContent_txtNumDifferential_RN').value = "+text webView.runJavaScript(js,function(res){}) } font.family: "B Nazanin" anchors.top: parent.top } Text { id: text14 y: 5 width: 54 height: 28 text: qsTr("تعداد دیفرانسیل") anchors.left: modelTxt1.right anchors.leftMargin: 3 font.family: "B Nazanin" wrapMode: Text.WordWrap font.pixelSize: 12 anchors.verticalCenter: modelTxt.verticalCenter } TextField { id: modelTxt2 x: 108 y: 8 width: 40 selectByMouse: true height: 40 text: qsTr("") font.pixelSize: 11 anchors.verticalCenterOffset: 0 font.family: "B Nazanin" anchors.verticalCenter: text15.verticalCenter anchors.right: text15.left onTextChanged: { var js = "document.getElementById('content_formContent_txtNumCylinder_RN').value = "+text webView.runJavaScript(js,function(res){}) } anchors.rightMargin: 3 } Text { id: text15 x: 171 width: 35 height: 28 text: qsTr("تعداد سیلندر") anchors.top: modelTxt.bottom anchors.topMargin: 15 font.family: "B Nazanin" anchors.right: parent.right anchors.rightMargin: 3 font.pixelSize: 12 wrapMode: Text.WordWrap } Text { id: text16 y: 57 text: qsTr("تعداد چرخ") horizontalAlignment: Text.AlignRight anchors.verticalCenterOffset: 0 anchors.left: modelTxt3.right anchors.leftMargin: 3 font.family: "B Nazanin" anchors.verticalCenter: text15.verticalCenter font.pixelSize: 12 } TextField { id: modelTxt3 x: -2 y: 7 width: 40 selectByMouse: true height: 40 text: qsTr("") font.pixelSize: 11 onTextChanged: { var js = "document.getElementById('content_formContent_txtNumWeel_RN').value = "+text webView.runJavaScript(js,function(res){}) } anchors.left: parent.left anchors.leftMargin: 3 font.family: "B Nazanin" anchors.topMargin: 15 anchors.top: modelTxt1.bottom } anchors.topMargin: 5 anchors.top: rectColor.bottom } Button { id: button1 x: 149 width: 63 height: 30 text: qsTr("ذخیره") anchors.top: rectCarDet.bottom anchors.topMargin: 11 Material.background: Material.Teal onClicked: { var js = "document.getElementById('content_formContent_btnVehicleUpdate').click()" webView.runJavaScript(js,function(res){ if(res==null){ messageDialog.open() } }) } font.family: "B Nazanin" anchors.horizontalCenterOffset: 0 anchors.horizontalCenter: parent.horizontalCenter } } } TabView { id: tabView anchors.fill: parent currentIndex: 1 Tab{ title: "گزارشات" } Tab{ title: "اطلاعات" } style: TabViewStyle { tabsAlignment: Qt.AlignRight } } MessageDialog { id: messageDialog title: "خطای دسترسی" text: "این امکان برای کاربر مهمان وجود ندارد." onAccepted: { } } Timer{ id:scriptsTimer interval: 500 running: false repeat: true onTriggered: { if(webView.loadProgress == 100){ var js = "document.getElementById('content_formContent_txtPlaque2Digit_RN').value" webView.runJavaScript(js,function(res){ text4.text = res }) var js2 = "document.getElementById('content_formContent_cmbPlaqueAlphaBeta_R').value" webView.runJavaScript(js2,function(res){ text3.text = res }) var js3 = "document.getElementById('content_formContent_txtPlaque3Digit_RN').value" webView.runJavaScript(js3,function(res){ text2.text = res }) // var js4 = "document.getElementById('content_formContent_cmbPlaqueCity_R').options[document.getElementById('content_formContent_cmbPlaqueCity_R').selectedIndex].innerText" // webView.runJavaScript(js4,function(res){ // plateCiy.text = res // }) var js4 = "document.getElementById('content_formContent_cmbPlaqueCity_R').selectedIndex" webView.runJavaScript(js4,function(res){ plateCiy.currentIndex = res }) var js5 = "document.getElementById('content_formContent_txtPlaqueSerial_RN').value" webView.runJavaScript(js5,function(res){ plateSerial.text = res }) var js7 = "document.getElementById('content_formContent_txtPlaqueName_R').value" webView.runJavaScript(js7,function(res){ nameTxt.text = res }) var js8 = "document.getElementById('content_formContent_txtPlaqueTel').value" webView.runJavaScript(js8,function(res){ telTxt.text = res }) var js9 = "document.getElementById('content_formContent_txtPlaqueAddress').value" webView.runJavaScript(js9,function(res){ addressTxt.text = res }) var js10 = "document.getElementById('content_formContent_txtPlaqueDescription').value" webView.runJavaScript(js10,function(res){ descTxt.text = res }) var js11 = "document.getElementById('content_formContent_txtIdentity17Digit').value" webView.runJavaScript(js11,function(res){ idCode.text = res }) var js12 = "document.getElementById('content_formContent_txtMotor_R').value" webView.runJavaScript(js12,function(res){ engineNumber.text = res }) var js13 = "document.getElementById('content_formContent_txtFrame').value" webView.runJavaScript(js13,function(res){ shasiNum.text = res }) var js14 = "document.getElementById('content_formContent_txtModel_RN').value" webView.runJavaScript(js14,function(res){ modelTxt.text = res }) var js15 = "document.getElementById('content_formContent_txtNumDifferential_RN')" webView.runJavaScript(js15,function(res){ modelTxt1.text = res }) var js16 = "document.getElementById('content_formContent_txtNumCylinder_RN').value" webView.runJavaScript(js16,function(res){ modelTxt2.text = res }) var js17 = "document.getElementById('content_formContent_txtNumWeel_RN').value" webView.runJavaScript(js17,function(res){ modelTxt3.text = res }) defReadTableTill() defComboBoxReader() combotimer1.start() timerCars.start() plateCityTimer.start() callReadTable(0,2,'content_formContent_gvMarking') stop() } } } Timer{ id:plateCityTimer interval: 500 running: false repeat: true onTriggered: { if(plateCiy.model == null){ var js = "getComboBoxItems('content_formContent_cmbPlaqueCity_R')" webView.runJavaScript(js,function(res){ plateCiy.model = res }) } else{ stop() var js = "document.getElementById('content_formContent_cmbPlaqueCity_R').selectedIndex" webView.runJavaScript(js,function(res){ plateCiy.currentIndex = res }) } } } Timer{ id:combotimer1 interval: 500 running: false repeat: true onTriggered: { if(comboBox3.model == null){ var js = "getComboBoxItems('content_formContent_cmbUsage_R')" webView.runJavaScript(js,function(res){ comboBox3.model= res; }) } else{ var js = "document.getElementById('content_formContent_cmbUsage_R').selectedIndex" webView.runJavaScript(js,function(res){ comboBox3.currentIndex = res }) stop() } } } Timer{ id:combotimer0 interval: 500 running: true repeat: true onTriggered: { if(plateType.model == null){ get_plate_type() } else{ //var js6 = "document.getElementById('content_formContent_cmbPlaqueType_R').options[document.getElementById('content_formContent_cmbPlaqueType_R').selectedIndex].innerText" var js6 = "document.getElementById('content_formContent_cmbPlaqueType_R').selectedIndex" webView.runJavaScript(js6,function(res){ plateType.currentIndex = res }) } } } Timer{ id: timerCars interval: 500 running: false repeat: true onTriggered:{ if(carsCombo.model == null){ var js = "getComboBoxItems('content_formContent_cmbSystemType_R')" webView.runJavaScript(js,function(res){ carsCombo.model= res; }) } else{ var sj = "document.getElementById('content_formContent_cmbSystemType_R').selectedIndex" webView.runJavaScript(sj,function(res){ carsCombo.currentIndex = res }) stop() } } } Timer{ id:carTypeTimer interval: 500 repeat: true running: true onTriggered: { if(carTypeCombo.model == null){ var js = "getComboBoxItems('content_formContent_cmbBrigadeType_R')" webView.runJavaScript(js,function(res){ carTypeCombo.model = res }) } else{ var js = "document.getElementById('content_formContent_cmbBrigadeType_R').selectedIndex" webView.runJavaScript(js,function(res){ carTypeCombo.currentIndex = res }) stop() } } } Timer{ id:fuelTimer interval: 500 running: true repeat: true onTriggered: { if(fuelCombo.model == null){ var sj = "getComboBoxItems('content_formContent_cmbSookht_R')" webView.runJavaScript(sj,function(res){ fuelCombo.model = res }) } else{ var sj = "document.getElementById('content_formContent_cmbSookht_R').selectedIndex" webView.runJavaScript(sj,function(res){ fuelCombo.currentIndex = res }) stop() } } } Timer{ id:colorTimer interval: 500 running: true repeat: true onTriggered: { if(colorCombo.model == null){ var sj="getComboBoxItems('content_formContent_cmbColor_R')" webView.runJavaScript(sj,function(res){ colorCombo.model = res }) } else{ var sj = "document.getElementById('content_formContent_cmbColor_R').selectedIndex" webView.runJavaScript(sj,function(res){ colorCombo.currentIndex = res }) } } } function get_plate_type(){ // var js = "function getPlateType(){var model=[];for(i=0;i