import QtQuick 2.0 import Label 2.0 import "../../com/neusoft/auto/widgets" import "../../layoutList.js" as Layout import "../../windowsList.js" as WindowsList import "../" HMIMask { id:canUpdate_home widowsType:Layout.POP_TYPE formId: WindowsList.DIAG_CANUPDATECHECKFILE height:1280 width: 960 property string bgImageStyle: systemCtrl.style //del by yx start // property string sCANUpdateMDUCurrVersion:diagCtrl.sCANUpdateMDUCurrVersion // property string sCANUpdateMDUNewVersion:diagCtrl.sCANUpdateMDUNewVersion //del by yx end property string sCANUpdateSOCCurrVersion:diagCtrl.sCANUpdateSOCCurrVersion property string sCANUpdateSOCNewVersion:diagCtrl.sCANUpdateSOCNewVersion property string sCANUpdateMCUCurrVersion:diagCtrl.sCANUpdateMCUCurrVersion property string sCANUpdateMCUNewVersion:diagCtrl.sCANUpdateMCUNewVersion property string sCANUpdateTBOXCurrVersion:diagCtrl.sCANUpdateTBOXCurrVersion property string sCANUpdateTBOXNewVersion:diagCtrl.sCANUpdateTBOXNewVersion property string sCANUpdateNaviCurrVersion:naviCtrl.getNaviVersion()//diagCtrl.sUpdateCurrNAVIVersion property string sCANUpdateNAVISoftNewVersion:diagCtrl.sCANUpdateNAVISoftNewVersion property string sCANUpdateCurrdbVersion:naviCtrl.getDBVersion() property string sCANUpdatedbNewVersion:diagCtrl.sCANUpdateNAVINewVersion property string sCANUpdateLogoNewVersion:diagCtrl.sCANUpdateLogoNewVersion //ADD #FOO94 baojinfeng 2016/11/23 begin property string sCANUpdateMinisystemCurrVersion:diagCtrl.sCANUpdateMinisystemCurrVersion property string sCANUpdateMinisystemNewVersion:diagCtrl.sCANUpdateMinisystemNewVersion //ADD #FOO94 baojinfeng 2016/11/23 end //ADD #F0120 baojinfeng 2016/12/05 begin property string sCANUpdateAnimationCurrVersion:diagCtrl.sCANUpdateAnimationCurrVersion property string sCANUpdateAnimationNewVersion:diagCtrl.sCANUpdateAnimationNewVersion //ADD #F0120 baojinfeng 2016/12/05 end //ADD #F0146 baojinfeng 2017/01/03 begin property string sCANUpdatePDCNewVersion:diagCtrl.sCANUpdatePDCNewVersion //ADD #F0146 baojinfeng 2017/01/03 end //ADD UserManual update baojinfeng 2017/05/15 begin property string sCANUpdateManualNewVersion:diagCtrl.sCANUpdateManualNewVersion //ADD UserManual update baojinfeng 2017/05/15 end property int bBtStatus: diagCtrl.bBtStatus//add #127989 20170116 liuming end property bool isSwitching: btCtrl.btSwitchStatus//add #127989 20170116 liuming end Component.onCompleted: { } onVisibleChanged: { if (canUpdate_home.visible == true) { //add #127989 20170116 liuming begin if(isSwitching == true) { diagCtrl.bBtStatus = 1//1 mean bt ON ;0 mean bt Off } else { diagCtrl.bBtStatus = 0//1 mean bt ON ;0 mean bt Off } //add #127989 20170116 liuming end //checkTimer.start();//del #127989 20170116 baojinfeng end btPowerOff();//add #127989 20170116 baojinfeng end // diagCtrl.getDBCurrVersion(); // diagCtrl.getNaviCurrVersion(); //add by plc start naviCtrl.getNaviVersion(); naviCtrl.getDBVersion(); // diagCtrl.reqCheckDBFile(false); // diagCtrl.reqCheckNAVISoftFile(false); //add by plc end //dummy start //checkFileLabel.text = "File Checked Failed" //fileCheckFailedTimer.start() //mduTimer.start() //checkFileItem.visible = false //updateVersionInfoItem.visible = true //dummy end pop_shengji_title_tx.visible = true } else { pop_shengji_title_tx.visible = false } } MouseArea { anchors.fill: parent } Rectangle { anchors.fill: parent color: "black" //opacity: 0.8 } HMILabel { id: pop_shengji_title_tx x: 0 y: 18 width: 960 height: 40//82 text: qsTr("Do not do any operation!") font.pixelSize: 30 color: "red" visible: false horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } Item { id:checkFileItem visible: true anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter Image { anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter width: 844 height: 352 source: "qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING" + bgImageStyle Rectangle { anchors.fill: parent color: "black" } HMILabel { id:checkFileLabel width: 840 height: 300 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter text:qsTr("CAN Update Checking File!") color:"red" } } } Item { id:updateVersionInfoItem x:50 y:73//FOD #142746 baojinfeng 2017/01/03 visible: false //anchors.horizontalCenter: parent.horizontalCenter width: 842 height: 1200 Flickable { id:flick1 x: 0 y: 0 width: 842 height: 1200//798//760-124 anchors.topMargin: 0 anchors.fill: parent contentHeight: column1.height contentWidth: parent.width clip:true Column { id:column1 width: 842 spacing: 2 Image { id: tbox width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(0)//ADD #F0120 baojinfeng 2016/12/05 HMILabel { id:tboxVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"TBOX Version" color:"white" } } Row { id: currtbox width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(0)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:currtboxLabel x:20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currtboxVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"111" text:sCANUpdateTBOXCurrVersion color:"white" } } Row { id: newtbox width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(0)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:newtboxLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newtboxVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"222" text:sCANUpdateTBOXNewVersion color:"white" } } Row { id: tboxProcessBar x: 20 width: 800 height: 30 visible: diagCtrl.getCANUpdateIndexStatus(0)//ADD #F0120 baojinfeng 2016/12/05 Rectangle { id:tboxprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.tboxUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.tboxUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //ADD UserManual update baojinfeng 2017/05/15 begin Image { id: manual width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(10) HMILabel { id:manualVersion x:20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"UserManual Version" color:"white" } } Row { id: newManual width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(10) Item { width: 20 height: 1 } HMILabel { id:newManualLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newManualVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter font.pixelSize: 24 horizontalAlignment: Text.AlignRight text:sCANUpdateManualNewVersion color:"white" } } Row { id: manualProcessBarRow x: 20 width: 800 height: 30 visible: diagCtrl.getCANUpdateIndexStatus(10) Rectangle { id:manualprocessbar width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.manualUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.manualUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //ADD UserManual update baojinfeng 2017/05/15 end //ADD #F0146 baojinfeng 2017/01/03 begin Image { id: pdc width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(9) HMILabel { id:pdcVersion x:20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"PDC Version" color:"white" } } Row { id: newpdc width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(9) Item { width: 20 height: 1 } HMILabel { id:newpdcLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newpdcVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 text:sCANUpdatePDCNewVersion color:"white" } } Row { id: pdcProcessBarRow x: 20 width: 800 height: 30 visible: diagCtrl.getCANUpdateIndexStatus(9) Rectangle { id:pdcprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.pdcUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.pdcUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //ADD #F0146 baojinfeng 2017/01/03 end //ADD #F0120 baojinfeng 2016/12/05 begin Image { id: animation width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(1)//ADD #F0120 baojinfeng 2016/12/05 HMILabel { id:animationVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Animation Version" color:"white" } } Row { id: currtAnimation width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(1)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:currtAnimationLabel x:20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currAnimationVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"111" text:sCANUpdateAnimationCurrVersion color:"white" } } Row { id: newAnimation width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(1)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:newAnimationLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newAnimationVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"222" text:sCANUpdateAnimationNewVersion color:"white" } } Row { id: animationProcessBar x: 20 width: 800 height: 30 visible: diagCtrl.getCANUpdateIndexStatus(1)//ADD #F0120 baojinfeng 2016/12/05 Rectangle { id:animationprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.bootAnimationUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.bootAnimationUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //ADD #F0120 baojinfeng 2016/12/05 end //ADD #FOO93 baojinfeng 2016/11/23 begin Image { id: minisystem width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(2)//ADD #F0120 baojinfeng 2016/12/05 HMILabel { id:minisystemVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Minisystem Version" color:"white" } } Row { id: currtminisystem width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(2)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:currtMinisystemLabel x:20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currMinisystemVersion width: 622//ADD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//ADD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"111" text:sCANUpdateMinisystemCurrVersion color:"white" } } Row { id: newtMinisystem width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(2)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:newtMinisystemLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newtMinisystemVersion width: 622//ADD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"222" text:sCANUpdateMinisystemNewVersion color:"white" } } Row { id: minisystemProcessBar x: 20 width: 800 height: 30 visible: diagCtrl.getCANUpdateIndexStatus(2)//ADD #F0120 baojinfeng 2016/12/05 Rectangle { id:minisystemprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.minisystemUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.minisystemUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //ADD #FOO93 baojinfeng 2016/11/23 end Image { id: naviSoft width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(3)//ADD #F0120 baojinfeng 2016/12/05 HMILabel { id:naviSoftVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Navi Version" color:"white" } } Row { id: currnaviSoft width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(3)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:currnaviSoftLabel x:20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currnaviSoftVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"111" text:sCANUpdateNaviCurrVersion color:"white" } } Row { id: newnaviSoft width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(3)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:newnaviSoftLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newnaviSoftVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"222" text:sCANUpdateNAVISoftNewVersion color:"white" } } Row { id: naviSoftProcessBar x: 20 width: 800 height: 30 visible: diagCtrl.getCANUpdateIndexStatus(3)//ADD #F0120 baojinfeng 2016/12/05 Rectangle { id:naviSoftprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.naviUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.naviUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } Image { id: navi width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(4)//ADD #F0120 baojinfeng 2016/12/05 HMILabel { id:naviVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"DB Version" color:"white" } } Row { id: currnavi width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(4)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:currnaviLabel x:20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currnaviVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"111" text:sCANUpdateCurrdbVersion//sCANUpdateCurrMAPVersion color:"white" } } Row { id: newnavi width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(4)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:newnaviLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newnaviVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"222" text:sCANUpdatedbNewVersion//sCANUpdateNaviNewVersion color:"white" } } Row { id: naviProcessBar x: 20 width: 800 height: 30 visible: diagCtrl.getCANUpdateIndexStatus(4)//ADD #F0120 baojinfeng 2016/12/05 Rectangle { id:naviprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.dbUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.dbUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } Image { id: logo width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(5)//ADD #F0120 baojinfeng 2016/12/05 HMILabel { id:logoVersion x:20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"LOGO Version" color:"white" } } Row { id: newlogo width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(5)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:newlogoLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newlogoVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter font.pixelSize: 24 //text:"222" horizontalAlignment: Text.AlignRight text:sCANUpdateLogoNewVersion color:"white" } } Row { id: logoProcessBarRow x: 20 width: 800 height: 30 visible: diagCtrl.getCANUpdateIndexStatus(5)//ADD #F0120 baojinfeng 2016/12/05 Rectangle { id:logoprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.diagImageUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.diagImageUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //del by yx start // Image // { // id: mdu // width: 842 // height: 78 // source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle // visible: diagCtrl.getCANUpdateIndexStatus(6)//ADD #F0120 baojinfeng 2016/12/05 // HMILabel // { // id:mduVersion // x:20 // width: 822 // height: 78 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"MDU Version" // color:"white" // } // } // Row // { // id: currmdu // width: 842 // height: 45 // visible: diagCtrl.getCANUpdateIndexStatus(6)//ADD #F0120 baojinfeng 2016/12/05 // Item // { // width: 20 // height: 1 // } // HMILabel // { // id:currmduLabel // x:20 // width: 200 // height: 30 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"Current:" // color:"white" // } // HMILabel // { // id:currmduVersion // width: 822 // height: 30 // anchors.verticalCenter: parent.verticalCenter // //horizontalAlignment: Text.AlignRight // font.pixelSize: 24 // //text:"111" // text:sCANUpdateMDUCurrVersion // color:"white" // } // } // Row // { // id: newmdu // width: 842 // height: 45 // visible: diagCtrl.getCANUpdateIndexStatus(6)//ADD #F0120 baojinfeng 2016/12/05 // Item // { // width: 20 // height: 1 // } // HMILabel // { // id:newmduLabel // x: 20 // width: 200 // height: 30 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"New:" // color:"white" // } // HMILabel // { // id:newmduVersion // width: 822 // height: 30 // anchors.verticalCenter: parent.verticalCenter // //horizontalAlignment: Text.AlignRight // font.pixelSize: 24 // //text:"222" // text:sCANUpdateMDUNewVersion // color:"white" // } // } // Row // { // id: mduProcessBar // x: 20 // width: 800 // height: 30 // visible: diagCtrl.getCANUpdateIndexStatus(6)//ADD #F0120 baojinfeng 2016/12/05 // Rectangle // { // id:mduprocessbar // //anchors.horizontalCenter: parent.horizontalCenter // width: 500 // height: 30 // visible: true // Rectangle // { // anchors.bottom: parent.bottom // anchors.left: parent.left // width:diagCtrl.mduUpdateProgress*5 // height: 30 // color: "green" // } // HMILabel // { // anchors.centerIn: parent // width:500 // height: 30 // text:diagCtrl.mduUpdateProgress + "%" // color: "black" // font.pixelSize: 20 // } // } // } //del by yx end Image { id: soc width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(7)//ADD #F0120 baojinfeng 2016/12/05 HMILabel { id:socVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"SOC Version" color:"white" } } Row { id: currsoc width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(7)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:currsocLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currsocVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter //horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"333" horizontalAlignment: Text.AlignRight text:sCANUpdateSOCCurrVersion color:"white" } } Row { id: newsoc width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(7)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:newsocLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newsocVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter //horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"444" horizontalAlignment: Text.AlignRight text:sCANUpdateSOCNewVersion color:"white" } } Image { id: mcu width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(8)//ADD #F0120 baojinfeng 2016/12/05 HMILabel { id:mcuVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"MCU Version" color:"white" } } Row { id: currmcu width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(8)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:currmcuLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currmcuVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter //horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"555" horizontalAlignment: Text.AlignRight text:sCANUpdateMCUCurrVersion color:"white" } } Row { id: newmcu width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(8)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:newmcuLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newmcuVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter //horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"666" horizontalAlignment: Text.AlignRight text:sCANUpdateMCUNewVersion color:"white" } } } } } Timer { id:fileCheckFailedTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE) } } //del by yx start // Timer // { // id:mduTimer // interval: 2000 // running: false // repeat: false // onTriggered: // { // ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE) // } // } //del by yx end Timer { id:tboxTimer interval: 2000 running: false repeat: false onTriggered: { //systemCtrl.RequestHide(46) ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE) } } Timer { id:naviTimer interval: 2000 running: false repeat: false onTriggered: { //systemCtrl.RequestHide(46) ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE) } } Timer { id:dbTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE) } } Timer { id:logoTimer interval: 2000 running: false repeat: false onTriggered: { //systemCtrl.RequestHide(46) ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE) } } //ADD #FOO94 baojinfeng 2016/11/23 begin Timer { id:minisystemTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE)//ADD #F0120 baojinfeng 2016/12/05 } } //ADD #FOO94 baojinfeng 2016/11/23 end //ADD #F0120 baojinfeng 2016/12/05 begin Timer { id:animationTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE) } } //ADD #F0120 baojinfeng 2016/12/05 end //ADD #F0146 baojinfeng 2017/01/03 begin Timer { id:pdcTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE) } } //ADD #F0146 baojinfeng 2017/01/03 end //ADD UserManual update baojinfeng 2017/05/15 begin Timer { id:manualTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE) } } //ADD UserManual update baojinfeng 2017/05/15 end //del #F0146 baojinfeng 2017/01/17 begin // Timer // { // id:checkTimer // interval: 2000 // running: false // repeat: false // onTriggered: // { // btPowerOff(); // } // } //del #F0146 baojinfeng 2017/01/17 end function updateIndexVisible() { tbox.visible = diagCtrl.getCANUpdateIndexStatus(0); currtbox.visible = diagCtrl.getCANUpdateIndexStatus(0); newtbox.visible = diagCtrl.getCANUpdateIndexStatus(0); tboxProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(0); animation.visible = diagCtrl.getCANUpdateIndexStatus(1); currtAnimation.visible = diagCtrl.getCANUpdateIndexStatus(1); newAnimation.visible = diagCtrl.getCANUpdateIndexStatus(1); animationProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(1); minisystem.visible = diagCtrl.getCANUpdateIndexStatus(2); currtminisystem.visible = diagCtrl.getCANUpdateIndexStatus(2); newtMinisystem.visible = diagCtrl.getCANUpdateIndexStatus(2); minisystemProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(2); //FOD #142746 #142745 142744 #142742 baojinfeng 2017/01/03 begin navi.visible = diagCtrl.getCANUpdateIndexStatus(3); currnavi.visible = diagCtrl.getCANUpdateIndexStatus(3); newnavi.visible = diagCtrl.getCANUpdateIndexStatus(3); naviProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(3); naviSoft.visible = diagCtrl.getCANUpdateIndexStatus(4); currnaviSoft.visible = diagCtrl.getCANUpdateIndexStatus(4); newnaviSoft.visible = diagCtrl.getCANUpdateIndexStatus(4); naviSoftProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(4); //FOD #142746 #142745 142744 #142742 baojinfeng 2017/01/03 end logo.visible = diagCtrl.getCANUpdateIndexStatus(5); newlogo.visible = diagCtrl.getCANUpdateIndexStatus(5); logoProcessBarRow.visible = diagCtrl.getCANUpdateIndexStatus(5); //del by yx start // mdu.visible = diagCtrl.getCANUpdateIndexStatus(6); // currmdu.visible = diagCtrl.getCANUpdateIndexStatus(6); // newmdu.visible = diagCtrl.getCANUpdateIndexStatus(6); // mduProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(6); //del by yx end soc.visible = diagCtrl.getCANUpdateIndexStatus(7); currsoc.visible = diagCtrl.getCANUpdateIndexStatus(7); newsoc.visible = diagCtrl.getCANUpdateIndexStatus(7); mcu.visible = diagCtrl.getCANUpdateIndexStatus(8); currmcu.visible = diagCtrl.getCANUpdateIndexStatus(8); newmcu.visible = diagCtrl.getCANUpdateIndexStatus(8); //ADD #F0146 baojinfeng 2017/01/03 begin pdc.visible = diagCtrl.getCANUpdateIndexStatus(9); newpdc.visible = diagCtrl.getCANUpdateIndexStatus(9); pdcProcessBarRow.visible = diagCtrl.getCANUpdateIndexStatus(9); //ADD #F0146 baojinfeng 2017/01/03 end //ADD UserManual update baojinfeng 2017/05/15 begin manual.visible = diagCtrl.getCANUpdateIndexStatus(10); newManual.visible = diagCtrl.getCANUpdateIndexStatus(10); manualProcessBarRow.visible = diagCtrl.getCANUpdateIndexStatus(10); //ADD UserManual update baojinfeng 2017/05/15 end } //add #127989 20170116 liuming begin function btPowerOff() { if(bBtStatus == 1) { console.log("onClicked MDU bBtStatus == true") //btCtrl.setBtPowerOff()//del #127989 20170120 baojinfeng end btCtrl.setBtPowerOffForSleep()//add #127989 20170120 baojinfeng end } else { //do nothing } } //add #127989 20170116 liuming end //add #127989 20170116 liuming begin function btStatus() { console.log("btStatus() ------------------bBtStatus="+bBtStatus) if(bBtStatus == 1) { //btCtrl.setBtPowerOn() //del #127989 20170120 baojinfeng end btCtrl.setBtPowerOnForSleep()//add #127989 20170120 baojinfeng end } else { //do nothing } } //add #127989 20170116 liuming end //ADD #FOO94 baojinfeng 2016/11/23 begin Connections { target:diagCtrl /* New Update Target Start */ onCanUpdateFileCheckFailed: { //add #127989 20170116 liuming begin diagCtrl.setCanUpdateFlag(0) //checkTimer.stop()//del #127989 20170120 baojinfeng end btStatus(); //add #127989 20170116 liuming end checkFileLabel.text = "File Checked Failed" fileCheckFailedTimer.start() } //add by zhangna for configuration error onCanUpdateFileCheckError: { //add #127989 20170116 liuming begin diagCtrl.setCanUpdateFlag(0) //checkTimer.stop()//del #127989 20170120 baojinfeng end btStatus(); //add #127989 20170116 liuming end checkFileLabel.text = "Soc File H/L Configuration Error" fileCheckFailedTimer.start() } onCanUpdateFileCheckSuccess: { checkFileItem.visible = false updateVersionInfoItem.visible = true updateIndexVisible();//ADD #F0120 baojinfeng 2016/12/05 begin } onMduCANUpdateStart: { diagCtrl.reqStartUpdateSOCMCU()//reqStartUpdateMDU() mod by yx } //del by yx start // onMduUpdateStartOK: // { // diagCtrl.setCANUpdateStatus(0)//RESULT_CAN_UPDATE // mduProcessBar.visible = true // } // onMduUpdateStartNG: // { // systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 // btStatus();//add #127989 20170116 liuming end // checkFileItem.visible = true // updateVersionInfoItem.visible = false // checkFileLabel.text = "MDU Start CAN Update NG" // mduTimer.start() // diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL // } //del by yx end onMcu_socCANUpdateStart: { settingCtrl.setSocMcuUpdateFlag(1)//ADD #168534 #168208 2017/4/26 baojinfeng begin diagCtrl.reqStartUpdateSOCMCU() diagCtrl.setCANUpdateStatus(0)//RESULT_CAN_UPDATE } onCanUpdateFinish: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end diagCtrl.setCANUpdateStatus(1)//RESULT_CAN_UPDATE_SUCCESS checkFileItem.visible = true checkFileLabel.text = "CAN Update Success!" updateVersionInfoItem.visible = false // mduTimer.start()//del by yx } //del by yx start // onMduUpdateSuccess: // { // diagCtrl.checkCANUpdateMCUSOCStatus() // } //del by yx end onTboxCANUpdateStart: { diagCtrl.reqStartUpdateTBox() } onTboxUpdateStartOK: { diagCtrl.setCANUpdateStatus(0)//RESULT_CAN_UPDATE tboxProcessBar.visible = true } onTboxUpdateStartNG: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "TBOX Start CAN Update NG" tboxTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } onTboxUpdateSuccess: { //FOD F0094 2106/11/21 BAOJINFENG begin //diagCtrl.checkCANUpdateNaviSoftStatus() //diagCtrl.checkCANUpdateMinisystemStatus()//DEL F0120 2106/12/05 BAOJINFENG //FOD F0094 2106/11/21 BAOJINFENG end //diagCtrl.checkCANUpdatePDCStatus() //DEL UserManual update baojinfeng 2017/05/15 begin diagCtrl.checkCANUpdateManualStatus() //ADD UserManual update baojinfeng 2017/05/15 begin } onTboxUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "T-BOX CAN Update Failed for Package Decompression Error!" tboxTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } //ADD #142743 2017/1/5 BAOJINFENG BEGIN onTboxFileRoteFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX CAN Update Failed for File Rote Error!") tboxTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } onTboxFileChekcFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX CAN Update Failed for File Chekc Error!") tboxTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } onTboxFileNameErrorFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX CAN Update Failed for File Name Error!") tboxTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } onTboxMCUFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX CAN Update Failed for MCU Update Failed!") tboxTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } onTboxSOCFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX CAN Update Failed for SOC Update Failed!") tboxTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } onTboxFileDownloadFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX CAN Update Failed for UpdateFile Download Failed!") tboxTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } onTboxUpdateOtherFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX CAN Update Failed!") tboxTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } //ADD #142743 2017/1/5 BAOJINFENG END onLogoCANUpdateStart: { //diagCtrl.reqStartUpdateDiagImage() diagCtrl.reqStartCANUpdateLogo() } onDiagImageUpdateStartOK: { diagCtrl.setCANUpdateStatus(0)//RESULT_CAN_UPDATE logoprocessbar.visible = true } onDiagImageUpdateStartNG: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "Logo Start CAN Update NG" logoTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } onDiagImageUpdateSuccess: { diagCtrl.checkCANUpdateMCUSOCStatus()//checkCANUpdateMDUStatus() mod by yx } onDiagImageUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "Logo CAN Update Failed" logoTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } onNaviUpdateSuccess: { diagCtrl.checkCANUpdateDBStatus() } onNaviSoftCANUpdateStart: { diagCtrl.setCANUpdateStatus(0)//RESULT_CAN_UPDATE diagCtrl.reqStartUpdateNAVISoft() } onNaviUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "Navi CAN Update Failed" naviTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } onDbUpdateSuccess: { diagCtrl.checkCANUpdateLogoStatus() } onDbCANUpdateStart: { diagCtrl.setCANUpdateStatus(0)//RESULT_CAN_UPDATE diagCtrl.reqStartUpdateDB() } onDbUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "Navi CAN Update Failed" dbTimer.start() diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL } //ADD F0094 2106/11/21 BAOJINFENG begin onMinisystemUpdateSuccess: { diagCtrl.checkCANUpdateNaviSoftStatus() } onMinisystemCANUpdateStart: { diagCtrl.reqStartUpdateMinisystem() } onMinisystemUpdateFailed: { //checkFileItem.visible = true //updateVersionInfoItem.visible = false //checkFileLabel.text = "Minisystem One Key Update Failed" //minisystemTimer.start() //diagCtrl.setCANUpdateStatus(2)//RESULT_CAN_UPDATE_FAIL diagCtrl.reqStartUpdateMinisystem() } //ADD F0094 2106/11/21 BAOJINFENG end //ADD F0120 2106/12/05 BAOJINFENG begin onAnimationUpdateSuccess: { diagCtrl.checkCANUpdateMinisystemStatus() } onAnimationCANUpdateStart: { diagCtrl.reqStartUpdateBootAnimation() } onAnimationUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "Animation CAN Update Failed" animationTimer.start() } //ADD F0120 2106/12/05 BAOJINFENG end //ADD #F0146 baojinfeng 2017/01/03 begin onPdcUpdateSuccess: { diagCtrl.checkCANUpdateAnimationStatus() } onPdcCANUpdateStart: { btStatus();//add #127989 20170116 liuming end diagCtrl.reqStartUpdatePDC() } onPdcUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "PDC CAN Update Failed" pdcTimer.start() } //ADD #F0146 baojinfeng 2017/01/03 end //ADD F0120 2106/12/05 BAOJINFENG end //ADD UserManual update baojinfeng 2017/05/15 begin onManualUpdateSuccess: { diagCtrl.checkCANUpdatePDCStatus() } onManualCANUpdateStart: { btStatus(); diagCtrl.reqStartUpdateManual() } onManualUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF) btStatus(); checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "UserManual CAN Update Failed" manualTimer.start() } //ADD UserManual update baojinfeng 2017/05/15 end } }