From faa7c12646bdffa39944541e9c9a485f691f3b3f Mon Sep 17 00:00:00 2001
From: endian11 <Dana_Lee1016@126.com>
Date: 星期一, 08 二月 2021 14:10:45 +0800
Subject: [PATCH] s replace为秒, 上传了联芳 giscar  和 场地,可以绑定设备;arcgis_url为空,则打开简易地图

---
 app/src/main/java/safeluck/drive/evaluation/util/DataInit.kt                |    2 +-
 app/src/main/java/safeluck/drive/evaluation/app.java                        |    2 +-
 app/src/main/java/safeluck/drive/evaluation/fragment/ArcGisMapFragment.java |    3 ++-
 app/src/main/java/safeluck/drive/evaluation/bean/GisCarModel.java           |    2 +-
 app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java     |   29 +++++++++++++++--------------
 5 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/app/src/main/java/safeluck/drive/evaluation/app.java b/app/src/main/java/safeluck/drive/evaluation/app.java
index 1408829..5446caa 100644
--- a/app/src/main/java/safeluck/drive/evaluation/app.java
+++ b/app/src/main/java/safeluck/drive/evaluation/app.java
@@ -319,7 +319,7 @@
 
 
                                     Criteria  ttsStr=WorkRoomDataBase.getWorkRoomDataBase(getAppContext()).getCriteriaDao().queryItemForCriteriaNoLive(emp_id);
-                                    ExamPlatformData.getInstance().getTTS().speak(ttsStr.getDeducting_reason() + (ttsStr.getScore_deducting() == 100? "涓嶅悎鏍�  " : "鎵�" +
+                                    ExamPlatformData.getInstance().getTTS().speak(ttsStr.getDeducting_reason().replace("s","绉�") + (ttsStr.getScore_deducting() == 100? "涓嶅悎鏍�  " : "鎵�" +
                                             ttsStr.getScore_deducting() + "鍒�  "));
                                     jkMessage0203.fail_item_id =ttsStr.getItem_id();
                                     jkMessage0203.fail_score = ttsStr.getScore_deducting();
diff --git a/app/src/main/java/safeluck/drive/evaluation/bean/GisCarModel.java b/app/src/main/java/safeluck/drive/evaluation/bean/GisCarModel.java
index 0c0422c..e103553 100644
--- a/app/src/main/java/safeluck/drive/evaluation/bean/GisCarModel.java
+++ b/app/src/main/java/safeluck/drive/evaluation/bean/GisCarModel.java
@@ -27,10 +27,10 @@
     private List<Integer> right_rear_tire;
     private List<Integer> left_front_glass;
     private List<Integer> left_rear_glass;
-    private List<Integer> left_center_glass;
     private List<Integer> right_front_glass;
     private List<Integer> right_rear_glass;
     private List<Integer> right_center_glass;
+    private List<Integer> left_center_glass;
 
     public List<Integer> getAxial() {
         return axial;
diff --git a/app/src/main/java/safeluck/drive/evaluation/fragment/ArcGisMapFragment.java b/app/src/main/java/safeluck/drive/evaluation/fragment/ArcGisMapFragment.java
index c00b7b7..4fda76a 100644
--- a/app/src/main/java/safeluck/drive/evaluation/fragment/ArcGisMapFragment.java
+++ b/app/src/main/java/safeluck/drive/evaluation/fragment/ArcGisMapFragment.java
@@ -25,6 +25,7 @@
 import com.esri.arcgisruntime.geometry.Polyline;
 import com.esri.arcgisruntime.geometry.SpatialReference;
 import com.esri.arcgisruntime.layers.ArcGISMapImageLayer;
+import com.esri.arcgisruntime.layers.ArcGISTiledLayer;
 import com.esri.arcgisruntime.mapping.ArcGISMap;
 import com.esri.arcgisruntime.mapping.view.DefaultMapViewOnTouchListener;
 import com.esri.arcgisruntime.mapping.view.Graphic;
@@ -312,7 +313,7 @@
     }
     private void readGisCar() {
 
-        String carFilePath = Environment.getExternalStorageDirectory().getAbsolutePath()+"/"+_mActivity.getPackageName()+"/giscar.json";
+        String carFilePath = Environment.getExternalStorageDirectory().getAbsolutePath()+"/"+_mActivity.getPackageName()+"/lianfang_giscar.json";
         if (TextUtils.isEmpty(carFilePath)){
             MyLog.i (TAG, "GISCar杞﹁締妯″瀷鏂囦欢涓嶅瓨鍦�");
             return ;
diff --git a/app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java b/app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java
index 235ca92..0aa5f92 100644
--- a/app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java
+++ b/app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java
@@ -923,21 +923,22 @@
 
     private void startArcGisMapFragment(String url) {
 
-        MapFragment jiaXiaoFragment = findFragment(MapFragment.class);
-        if (jiaXiaoFragment == null) {
-            jiaXiaoFragment = (MapFragment) MapFragment.newInstance();
-        }
-        start(jiaXiaoFragment);
+//        url = "http://arcgis.aaej.cn/arcgis/rest/services/楂樺簷鏉戦椋為┚鏍$浜屽湴鍥�/MapServer";
+        if (!TextUtils.isEmpty(url)) {
+            ArcGisMapFragment jiaXiaoFragment = findFragment(ArcGisMapFragment.class);
+            if (jiaXiaoFragment == null) {
+                jiaXiaoFragment = (ArcGisMapFragment) ArcGisMapFragment.newInstance(url);
+            }
+            start(jiaXiaoFragment);
+        }else{
+            Toast.makeText(_mActivity, "閿欒锛欰rcGIS URL 涓虹┖锛�", Toast.LENGTH_SHORT).show();
 
-//        if (!TextUtils.isEmpty(url)) {
-//            ArcGisMapFragment jiaXiaoFragment = findFragment(ArcGisMapFragment.class);
-//            if (jiaXiaoFragment == null) {
-//                jiaXiaoFragment = (ArcGisMapFragment) ArcGisMapFragment.newInstance(url);
-//            }
-//            start(jiaXiaoFragment);
-//        }else{
-//            Toast.makeText(_mActivity, "閿欒锛欰rcGIS URL 涓虹┖锛�", Toast.LENGTH_SHORT).show();
-//        }
+            MapFragment jiaXiaoFragment = findFragment(MapFragment.class);
+            if (jiaXiaoFragment == null) {
+                jiaXiaoFragment = (MapFragment) MapFragment.newInstance();
+            }
+            start(jiaXiaoFragment);
+        }
     }
 
     private String getArcGisUrl(int examType) {
diff --git a/app/src/main/java/safeluck/drive/evaluation/util/DataInit.kt b/app/src/main/java/safeluck/drive/evaluation/util/DataInit.kt
index c13d8a6..d3e5108 100644
--- a/app/src/main/java/safeluck/drive/evaluation/util/DataInit.kt
+++ b/app/src/main/java/safeluck/drive/evaluation/util/DataInit.kt
@@ -326,7 +326,7 @@
                         else ->{
                             mapInfoHead.type = BaseDataUIBean.TYPE_.car
                             val car = gson.fromJson<HttpCarRespBean>(str,HttpCarRespBean::class.java)
-                        car.isResult = false
+//                        car.isResult = false
                             if (car.isResult){
                                 if (car.data !=null){
                                     mapInfoHead.version = car.data.version

--
Gitblit v1.8.0