From 8e4ee083249c6cde78b481de5829fe402e1bc1f4 Mon Sep 17 00:00:00 2001
From: CJJ <Administrator@USER-20180117QL>
Date: 星期二, 18 十二月 2018 16:08:50 +0800
Subject: [PATCH] 修改

---
 gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html |  144 ++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 109 insertions(+), 35 deletions(-)

diff --git a/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html b/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
index 1f4be94..de28ba3 100644
--- a/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
+++ b/gx_tieta/WebRoot/mobil/batt-infor-conf-temp1.html
@@ -416,41 +416,115 @@
 	//瀵煎叆琛ㄦ牸榛樿鏁版嵁
 	function installstartdata(temp){
 		creatgroupid();
-		document.getElementById("StationId").value = temp[0];
-		document.getElementById("station_name1").value = temp[1];
-		document.getElementById("city").value = temp[2];			//甯�
-		document.getElementById("county").value = temp[3];			//鍖哄幙
-		document.getElementById("StationName3").value = temp[4];   //鏈烘埧鍚嶇О
-		document.getElementById("StationName4").value = temp[5];    //璁惧鍚嶇О
-		document.getElementById("StationIp").value = temp[6];		//璁惧IP
-		//document.getElementById("FBSDeviceId").value = dev_id;	
-		document.getElementById("FbsDeviceIp").value = temp[8];
-		document.getElementById("FbsDeviceIp_YM").value = temp[9];
-		document.getElementById("FbsDeviceIp_WG").value = temp[10];
-		document.getElementById("FBSDeviceName").value = temp[11];
-		//document.getElementById("GroupIndexInFBSDevice").value = temp[12];
-		document.getElementById("BattGroupId").value = temp[13];
-		document.getElementById("BattGroupNum").value = suoyin;
-		//document.getElementById("BattGroupName").value = temp[15];
-		document.getElementById("FloatVolLevel").value = temp[16];
-		document.getElementById("OfflineVolLevel").value = temp[17];
-		document.getElementById("BattFloatCurrent").value = temp[18];
-		document.getElementById("MonCount").value = temp[19];
-		document.getElementById("MonCapStd").value = temp[20];
-		document.getElementById("MonVolStd").value = temp[21];
-		document.getElementById("MonResStd").value = temp[22];
-		document.getElementById("MonSerStd").value = temp[23];
-		document.getElementById("MonVolLowToAvg").value = temp[24];
-		document.getElementById("Load_curr").value = temp[25];
-		document.getElementById("DisCurrMax").value = temp[26];
-		document.getElementById("station_phone").value = temp[27];
-		document.getElementById("BattProducer").value = temp[28];
-		document.getElementById("BattModel").value = temp[29];
-		//document.getElementById("startTestrecord").value = temp[30];
-		//document.getElementById("endTestrecord").value = temp[31];
-		setTimes($("#startTestrecord"),temp[30]);
-		setTimes($("#endTestrecord"),temp[31]);
-		document.getElementById("install_user").value = temp[32];
+		var data = {
+                StationId: '4011100'
+                ,StationName1: '骞胯タ鐪�'
+                ,StationName2: '鐧借壊甯�'
+                ,StationName5: '涔愪笟鍘�'
+                ,StationName3: 'GX鐧捐壊涔愪笟鍘跨珛鏂板皬鍖篧F'
+                ,StationName4: 'BTS璁惧'
+                ,StationIp: '192.168.0.1'
+                ,FBSDeviceId: '960000111'
+                ,FbsDeviceIp: '127.0.0.1'
+                ,FbsDeviceIp_YM: '255.255.255.0'
+                ,FbsDeviceIp_WG: '127.0.0.1'
+                ,FBSDeviceName: '璁惧鍚嶇О'
+                ,GroupIndexInFBSDevice: 1 
+                ,BattGroupId: 1000005
+                ,BattGroupNum: 2
+                ,BattGroupName: '鐢垫睜缁�1'
+                ,FloatVolLevel: 54
+                ,OfflineVolLevel: 42.9 
+                ,BattFloatCurrent: 10
+                ,MonCount: 24
+                ,MonCapStd: 300
+                ,MonVolStd: 2
+                ,MonResStd: 0.2
+                ,MonSerStd: 5000
+                ,MonVolLowToAvg: 0.05 
+                ,Load_curr: 15
+                ,DisCurrMax: '0'
+                ,station_phone: 12345678912
+                ,BattProducer: '鍗囬槼'
+                ,BattModel: ''
+                ,productDate: '2018-09-18 00:00:00'
+                ,useDate: '2018-09-18 00:00:00'
+                ,install_user: '鍛靛懙'
+            };
+            console.info(data.StationId);
+		if(temp.length>0){
+			document.getElementById("StationId").value = data.StationId;
+	//		document.getElementById("station_name1").value = data.StationName1;
+	//		document.getElementById("city").value = data.StationName2;			//甯�
+	//		document.getElementById("county").value = data.StationName5;			//鍖哄幙
+	//		document.getElementById("StationName3").value = data.StationName3;   //鏈烘埧鍚嶇О
+	//		document.getElementById("StationName4").value = data.StationName4;    //璁惧鍚嶇О
+			document.getElementById("StationIp").value = data.StationIp;		//璁惧IP
+			//document.getElementById("FBSDeviceId").value = dev_id;	
+			document.getElementById("FbsDeviceIp").value = data.FbsDeviceIp;
+			document.getElementById("FbsDeviceIp_YM").value = data.FbsDeviceIp_YM;
+			document.getElementById("FbsDeviceIp_WG").value = data.FbsDeviceIp_WG;
+	//		document.getElementById("FBSDeviceName").value = data.FBSDeviceName;
+			//document.getElementById("GroupIndexInFBSDevice").value = temp[12];
+			document.getElementById("BattGroupId").value = data.BattGroupId;
+			document.getElementById("BattGroupNum").value = data.BattGroupNum;
+			//document.getElementById("BattGroupName").value = temp[15];
+	//		document.getElementById("FloatVolLevel").value = data.FloatVolLevel;
+	//		document.getElementById("OfflineVolLevel").value = data.OfflineVolLevel;
+	//		document.getElementById("BattFloatCurrent").value = data.BattFloatCurrent;
+	//		document.getElementById("MonCount").value = data.MonCount;
+	//		document.getElementById("MonCapStd").value = data.MonCapStd;
+	//		document.getElementById("MonVolStd").value = data.MonVolStd;
+	//		document.getElementById("MonResStd").value = data.MonResStd;
+	//		document.getElementById("MonSerStd").value = data.MonSerStd;
+	//		document.getElementById("MonVolLowToAvg").value = data.MonVolLowToAvg;
+	//		document.getElementById("Load_curr").value = data.Load_curr;
+	//		document.getElementById("DisCurrMax").value = data.DisCurrMax;
+	//		document.getElementById("station_phone").value = data.station_phone;
+	//		document.getElementById("BattProducer").value = data.BattProducer;
+			document.getElementById("BattModel").value = data.BattModel;
+			//document.getElementById("startTestrecord").value = temp[30];
+			//document.getElementById("endTestrecord").value = temp[31];
+			setTimes($("#startTestrecord"),data.productDate);
+			setTimes($("#endTestrecord"),data.useDate);
+	//		document.getElementById("install_user").value = data.install_user;			
+		}else{
+			document.getElementById("StationId").value = temp[0];
+			document.getElementById("station_name1").value = temp[1];
+			document.getElementById("city").value = temp[2];			//甯�
+			document.getElementById("county").value = temp[3];			//鍖哄幙
+			document.getElementById("StationName3").value = temp[4];   //鏈烘埧鍚嶇О
+			document.getElementById("StationName4").value = temp[5];    //璁惧鍚嶇О
+			document.getElementById("StationIp").value = temp[6];		//璁惧IP
+			//document.getElementById("FBSDeviceId").value = dev_id;	
+			document.getElementById("FbsDeviceIp").value = temp[8];
+			document.getElementById("FbsDeviceIp_YM").value = temp[9];
+			document.getElementById("FbsDeviceIp_WG").value = temp[10];
+			document.getElementById("FBSDeviceName").value = temp[11];
+			//document.getElementById("GroupIndexInFBSDevice").value = temp[12];
+			document.getElementById("BattGroupId").value = temp[13];
+			document.getElementById("BattGroupNum").value = suoyin;
+			//document.getElementById("BattGroupName").value = temp[15];
+			document.getElementById("FloatVolLevel").value = temp[16];
+			document.getElementById("OfflineVolLevel").value = temp[17];
+			document.getElementById("BattFloatCurrent").value = temp[18];
+			document.getElementById("MonCount").value = temp[19];
+			document.getElementById("MonCapStd").value = temp[20];
+			document.getElementById("MonVolStd").value = temp[21];
+			document.getElementById("MonResStd").value = temp[22];
+			document.getElementById("MonSerStd").value = temp[23];
+			document.getElementById("MonVolLowToAvg").value = temp[24];
+			document.getElementById("Load_curr").value = temp[25];
+			document.getElementById("DisCurrMax").value = temp[26];
+			document.getElementById("station_phone").value = temp[27];
+			document.getElementById("BattProducer").value = temp[28];
+			document.getElementById("BattModel").value = temp[29];
+			//document.getElementById("startTestrecord").value = temp[30];
+			//document.getElementById("endTestrecord").value = temp[31];
+			setTimes($("#startTestrecord"),temp[30]);
+			setTimes($("#endTestrecord"),temp[31]);
+			document.getElementById("install_user").value = temp[32];
+		}
 		setFloatAndoutLine();
 	}
 	

--
Gitblit v1.9.1