From d6f9a70d695ebe43eca2be363ceda30643450526 Mon Sep 17 00:00:00 2001
From: whyclj <1525436766@qq.com>
Date: 星期六, 05 一月 2019 11:42:45 +0800
Subject: [PATCH] 修改设备状态记录查询的title并且改城设备历史事件查询,并添加到国际化文件中

---
 gx_tieta/WebRoot/zzlogin1.jsp |  135 ++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 127 insertions(+), 8 deletions(-)

diff --git a/gx_tieta/WebRoot/zzlogin1.jsp b/gx_tieta/WebRoot/zzlogin1.jsp
index 12a727f..3572c01 100644
--- a/gx_tieta/WebRoot/zzlogin1.jsp
+++ b/gx_tieta/WebRoot/zzlogin1.jsp
@@ -5,6 +5,11 @@
 %>
 <%@ taglib uri="/struts-tags" prefix="s" %>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
+<%
+		ServletContext context = getServletContext();
+        String serverInfo = context.getServerInfo();
+        System.out.println(serverInfo);
+ %>
 <!DOCTYPE HTML123>
 <html>
   <head>
@@ -72,6 +77,7 @@
             <source src="" type="audio/wav"></source>
         </audio>
     </div>
+    <pre id="code"></pre>
 </body>
 <script type="text/javascript" src="js/base.js"></script>
 <script type="text/javascript">
@@ -86,27 +92,140 @@
 	var test = new Date('2018-09-03 14:49:00');
 	console.info((now.getTime()-test.getTime())/1000);
 	
-	//鏍规嵁璁惧id淇敼璁惧鐨勫瓙缃戞帺鐮�,缃戝叧鍜岃澶噄p
-	var temp = {
-		media_text:"123"
-	};
-	createBroadcast(temp);
 	
-	function createBroadcast(param){
+	var CMD_GETGPRSPARAM = 145;					//鍙戦�佸懡浠ょ粰gprs
+	var CMD_GETSTATIONSIGNAL = "CSQ";
+	
+	var CMD_GETDEVICETHREADINFO =	0x17;
+
+	var temp = {
+		num:CMD_GETDEVICETHREADINFO,
+		dev_id:910000001
+	};
+	console.info(JSON.stringify(temp));
+	SendDeviceThreadInfo(temp,function(data){
+		console.info(data);
+		    
+		 searchDeviceThreadInfo({dev_id:910000001});
+	});
+	
+	
+	//缁橤PRS鍙戦�佹寚瀹氱殑鍛戒护锛岃幏鍙朅T杩斿洖鍊�
+	function SendDeviceThreadInfo(param,callback){
 		$.ajax({ 	
 	        type:"post", 								
-	        url: "BroadcastAction_media_createBroadcast",						
+	        url: "Bts_gprs_stateAction_action_update_bts_task_inf",						
 	        async:true,				
 	        dataType:'json',
 	        data:'json='+JSON.stringify(param),		
 	        success: function(data){ 
 				var model = eval('('+data.result+')');
 				console.info(model);
-				setWarnAudio(model.data.media_name);
+				if(callback && typeof callback == 'function'){
+					callback(model);
+				}
+        	},error:function(e){
+        		var model = {
+        			code:0,
+        			data:e,
+        			msg:'閫氫俊澶辫触'
+        		};
+        		if(callback && typeof callback == 'function'){
+					callback(model);
+				}
         	} 				
 		});
 	}
 	
+	//鏌ヨ璁惧鐨勮繘绋嬩俊鎭�
+	function searchDeviceThreadInfo(param,callback){
+		$.ajax({ 	
+	        type:"post", 								
+	        url: "Bts_gprs_stateAction_action_serchByCondition",						
+	        async:true,				
+	        dataType:'json',
+	        data:'json='+JSON.stringify(param),		
+	        success: function(data){ 
+				var model = eval('('+data.result+')');
+				console.info(model);
+				$('#code').text(model.data[0].bts_task_inf);
+				if(callback && typeof callback == 'function'){
+					callback(model);
+				}
+        	},error:function(e){
+        		var model = {
+        			code:0,
+        			data:e,
+        			msg:'閫氫俊澶辫触'
+        		};
+        		if(callback && typeof callback == 'function'){
+					callback(model);
+				}
+        	} 				
+		});
+	}
+	
+	
+	//缁橤PRS鍙戦�佹寚瀹氱殑鍛戒护锛岃幏鍙朅T杩斿洖鍊�
+	function searchStationSignal(param,callback){
+		$.ajax({ 	
+	        type:"post", 								
+	        url: "Bts_gprs_stateAction_action_update",						
+	        async:true,				
+	        dataType:'json',
+	        data:'json='+JSON.stringify(param),		
+	        success: function(data){ 
+				var model = eval('('+data.result+')');
+				console.info(model);
+				if(callback && typeof callback == 'function'){
+					callback(model);
+				}
+        	},error:function(e){
+        		var model = {
+        			code:0,
+        			data:e,
+        			msg:'閫氫俊澶辫触'
+        		};
+        		if(callback && typeof callback == 'function'){
+					callback(model);
+				}
+        	} 				
+		});
+	}
+	
+	
+	//鐢ㄦ埛瑕佽缃殑閰嶇疆椤�
+	var temp = {
+		echarts1_enable:0,
+		echarts2_enable:0,
+		echarts3_enable:0,
+		echarts4_enable:0,
+		echarts5_enable:0,
+		echarts6_enable:0,
+		echarts7_enable:0,
+		echarts8_enable:0,
+		echarts9_enable:0,
+		echarts10_enable:0
+	};
+	
+	//updateUserBieState(temp);
+	//鏌ヨ褰撳墠鐢ㄦ埛璁剧疆楗肩姸鍥剧殑浣胯兘鐘舵��
+	function updateUserBieState(temp){
+		$.ajax({ 	
+	        type:"post", 								
+	        url: "Echarts_usrAction!add",						
+	        async:true,				
+	        dataType:'json',
+	        data:'json='+JSON.stringify(temp),		
+	        success: function(data){ 
+				var model = eval('('+data.result+')');
+				console.info(model);
+        	} 				
+		});
+	}	
+	
+	
+	
 	function setWarnAudio(filename) {
 		var src = '../mediafiles/'+filename;
         $('#warnAudio source').prop('src', src);

--
Gitblit v1.9.1