triggered_time

	// 通过lightId和date查询light画布需要的Triggered Time所有的信息
	@RequestMapping(value="/admin/getLightTriggeredTimesCanvasInfo.action", headers = {"Accept=application/json"})
	@ResponseBody
	public Map<String,Object> getLightTriggeredTimesCanvasInfo(HttpServletRequest request, @RequestBody EnergyConsumptionDTO consumptionDTO) {
		try {
			Date sysDate = new Date();
			String dateString = FormatUtil.dateToString(sysDate);
			Map<String,Object> map = new HashMap<String,Object>();
			if(consumptionDTO!=null && consumptionDTO.getLightId()!=null) {
				Integer lightId = consumptionDTO.getLightId();
				String lightDate = consumptionDTO.getDate();
				if(lightDate==null || lightDate.trim()=="") {
					lightDate = dateString;
				}
				// 通过lightId查询是否OVP和其发生的时间
				List<StatusOverDTO> ovpList = communityDetailService.selectOvpListByLightId(lightId,lightDate);
				// 通过lightId查询是否OCP和其发生的时间
				List<StatusOverDTO> ocpList = communityDetailService.selectOcpListByLightId(lightId,lightDate);
				// 通过lightId查询是否pirFail和其发生的时间
				List<StatusOverDTO> pirFailList = communityDetailService.selectPirFailListByLightId(lightId,lightDate);
				map.put("ovpList", ovpList);
				map.put("ocpList", ocpList);
				map.put("pirFailList", pirFailList);
			}
			return map;
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="itheima" uri="http://itcast.cn/common/"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Smart Lighting Management System</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/assets/vendors/bootstrap/css/bootstrap.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/assets/vendors/font-awesome/css/font-awesome.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/assets/css/admin.css">
  <script src="${pageContext.request.contextPath}/static/assets/vendors/nprogress/nprogress.js"></script>
  <script src="${pageContext.request.contextPath}/static/assets/vendors/jquery/jquery.js"></script>
  <script src="${pageContext.request.contextPath}/static/assets/vendors/bootstrap/js/bootstrap.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath }/js/bootbox.all.min.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.8.3.js"></script>
  <script src="${pageContext.request.contextPath}/js/My97DatePicker/WdatePicker.js"></script>
  
  <style type="text/css">
  	* {
  	 	font-family: Century Gothic;
  	}
	.main {
		background-image: url(${pageContext.request.contextPath}/img/BG1.jpg);
	}
    .all_info {
      margin: 20px auto;
      width: 1200px;
      height: 690px;
      /* border: 1px solid #D7D8DA; */
      /* overflow: hidden; */
    }
    .all_info div {      
      width: 1200px;
      height: 815px;
      /* border: 1px solid #D7D8DA; */
      /*float: left;*/
      position: relative;
    }
     /* 添加light部分 */
	.area_title{
      position: absolute;
      width: 40px;
      height: 20px;
      /*border: 1px solid red;*/
      display: inline-block;
      top: -4px;
      left: 65px;
      font-size: 14px;
      color: #0496A4;
	}
    .area_light {
      /*margin-right: 5px;*/
      position: absolute;
      width: 120px;
      height: 20px;
      /*border: 1px solid red;*/
      display: inline-block;
      top: -8px;
      left: 106px;
    }
    .area_light select {
          width: 145px;
          height: 29px;
          padding: 0.2em 0.4em 0.2em 0.4em;
          vertical-align : middle;
          border: 1px solid #626462;
          -moz-border-radius: 0.2em;
          -webkit-border-radius: 0.2em;
          border-radius: 0.2em;
          -webkit-appearance: none;
          -moz-appearance: none;
          appearance: none;
          font-family: Century Gothic;
          font-size: 12px;
          color: #8D8E92;
          cursor: pointer;
          background: #F4F4F6 url(${pageContext.request.contextPath}/img/select_arrow.png) no-repeat right;
    }
     .area_light select option:hover { 
         background-color: #f80; 
         color: #FFB6C1; 
     }
	.block_title{
      position: absolute;
      width: 40px;
      height: 20px;
      /*border: 1px solid red;*/
      display: inline-block;
      top: -4px;
      left: 264px;
      font-size: 14px;
      color: #0496A4;
	}
    .block_light {
      /*margin-right: 5px;*/
      position: absolute;
      width: 120px;
      height: 20px;
      /*border: 1px solid red;*/
      display: inline-block;
      top: -8px;
      left: 308px;
    }
    .block_light select {
          width: 145px;
          height: 29px;
          padding: 0.2em 0.4em 0.2em 0.4em;
          vertical-align : middle;
          border: 1px solid #626462;
          -moz-border-radius: 0.2em;
          -webkit-border-radius: 0.2em;
          border-radius: 0.2em;
          -webkit-appearance: none;
          -moz-appearance: none;
          appearance: none;
          font-family: Century Gothic;
          font-size: 12px;
          color: #8D8E92;
          cursor: pointer;
          background: #F4F4F6 url(${pageContext.request.contextPath}/img/select_arrow.png) no-repeat right;
    }
     .block_light select option:hover { 
         background-color: #f80; 
         color: #FFB6C1; 
     }
	.floor_title{
      position: absolute;
      width: 40px;
      height: 20px;
      /*border: 1px solid red;*/
      display: inline-block;
      top: -4px;
      left: 465px;
      font-size: 14px;
      color: #0496A4;
	}
    .floor_light {
      /*margin-right: 5px;*/
      position: absolute;
      width: 120px;
      height: 20px;
      /*border: 1px solid red;*/
      display: inline-block;
      top: -8px;
      left: 506px;
    }
    .floor_light select {
          width: 145px;
          height: 29px;
          padding: 0.2em 0.4em 0.2em 0.4em;
          vertical-align : middle;
          border: 1px solid #626462;
          -moz-border-radius: 0.2em;
          -webkit-border-radius: 0.2em;
          border-radius: 0.2em;
          -webkit-appearance: none;
          -moz-appearance: none;
          appearance: none;
          font-family: Century Gothic;
          font-size: 12px;
          color: #8D8E92;
          cursor: pointer;
          background: #F4F4F6 url(${pageContext.request.contextPath}/img/select_arrow.png) no-repeat right;
    }
     .floor_light select option:hover { 
         background-color: #f80; 
         color: #FFB6C1; 
     }
	 .Wdate {
	 	height: 28px;
	 	width: 108px;
	 }
	.light_title{
      position: absolute;
      width: 40px;
      height: 20px;
      /*border: 1px solid red;*/
      display: inline-block;
      top: -4px;
      left: 666px;
      font-size: 14px;
      color: #0496A4;
	}
    .light_light {
      /*margin-right: 5px;*/
      position: absolute;
      width: 120px;
      height: 20px;
      /*border: 1px solid red;*/
      display: inline-block;
      top: -8px;
      left: 706px;
    }
    .light_light select {
          width: 145px;
          height: 29px;
          padding: 0.2em 0.4em 0.2em 0.4em;
          vertical-align : middle;
          border: 1px solid #626462;
          -moz-border-radius: 0.2em;
          -webkit-border-radius: 0.2em;
          border-radius: 0.2em;
          -webkit-appearance: none;
          -moz-appearance: none;
          appearance: none;
          font-family: Century Gothic;
          font-size: 12px;
          color: #8D8E92;
          cursor: pointer;
          background: #F4F4F6 url(${pageContext.request.contextPath}/img/select_arrow.png) no-repeat right;
    }
     .light_light select option:hover { 
         background-color: #f80; 
         color: #FFB6C1; 
     }
    .span_date_light {
      /*margin-right: 5px;*/
      position: absolute;
      width: 120px;
      height: 20px;
      /*border: 1px solid red;*/
      display: inline-block;
      top: -8px;
      left: 908px;
    }
	.date_title{
      position: absolute;
      width: 40px;
      height: 20px;
      /*border: 1px solid red;*/
      display: inline-block;
      top: -4px;
      left: 866px;
      font-size: 14px;
      color: #0496A4;
	}
  </style>
  <script>
  
	  function today(){
	      var today=new Date();
	      var y = today.getFullYear();
	      var m = today.getMonth()+1;
	      var d = today.getDate();
	      return y+"-"+m+"-"+d;
	  }
  	  
      function drawLightTriggerTimesTitle(context){
          context.font = "24px Century Gothic";
          context.fillStyle = "#FF69B4";
          context.fillText("OVP", 400, 65);
          context.fillStyle = "#FFF";
          context.fillText("&", 460, 65);
          context.fillStyle = "#228B22";
          context.fillText("OCP", 485, 65);
          context.fillStyle = "#FFF";
          context.fillText("&", 545, 65);
          context.fillStyle = "#00BFFF";
          context.fillText("PIR-Fail", 569, 65);
          //画OVP图形描述
          context.beginPath();
          context.fillStyle = "#FF69B4";
          context.moveTo(490,90);
          context.lineTo(498,81);
          context.lineTo(506,90);
          context.lineTo(498,99);
          context.fill();
          context.closePath();  
          //画OVP文字
          context.font = "15px Century Gothic";
          context.fillText("OVP",515,94);
          //画OCP图像描述
          context.beginPath();
          context.fillStyle = "#228B22";
          context.moveTo(490,119);
          context.lineTo(498,111);
          context.lineTo(506,119);
          context.lineTo(498,127);
          context.fill();
          context.closePath();
          //画OCP文字
          context.font = "15px Century Gothic";
          context.fillText("OCP",515,123);
          //画PIR Fault图形描述
          context.beginPath();
          context.fillStyle = "#00BFFF";
          context.moveTo(490,147);
          context.lineTo(498,139);
          context.lineTo(506,147);
          context.lineTo(498,155);
          context.fill();
          context.closePath();
          //画PIR Fault文字
          context.fillText("PIR Fail",515,151);          
      }
      
      function drawLightYMark(context){
          context.font = "12px Century Gothic";
          context.fillStyle = "#00BFFF";
          context.fillText("PIR-Fail", 0, 384);
          context.fillStyle = "#228B22";
          context.fillText("OCP", 12, 284);
          context.fillStyle = "#FF69B4";
          context.fillText("OVP", 12, 184);
      }
      
    function changeLightAreaSelections(communityId){	
			  // console.log("communityId",communityId);
			  var params = {"communityId":communityId};
			  // console.log("params",params);
			  var paramsStr = JSON.stringify(params);
		  	  // 初始化Area信息
		      $.ajax({	
		    		type : "POST",
		    		dataType : "JSON",
		    		url : "${pageContext.request.contextPath}/admin/getCurrentUserBlock.action",
		    		contentType:"application/json;charset=UTF-8",
		    		data : paramsStr,
		    		success : function(data){
					  // console.log(data);    			 
				      var blockHtml = "";
				      if(data!=null && data.length>0){
				        $(data).each(function(index,item){	
				          if(item){			        	  
					          var blockId = item["blockId"];
					          var blockName = item["blockName"];
					          if(blockId!=null && blockId!=undefined){			        	  
					          	 blockHtml += "<option value='"+blockId+"' selected='selected'>"+blockName+"</option>";
					          }
				          }
				        });
					    // console.log(blockHtml);
					    // console.log("changeLightAreaSelections()");
					    $("#s_block_light").html(blockHtml);
					    $("#s_block_light option:first").prop("selected", 'selected');
					    getLightCurrentFloorSelections();
				      }	
		    		}	
		    	});
	  }
    
    function getLightCurrentFloorSelections(){	
		  var blockId = $("#s_block_light option:selected").val(); 			  
		  // console.log("blockId",blockId);
		  var params = {"blockId":blockId};
		  // console.log("params",params);
		  paramsStr = JSON.stringify(params);
	  	  // 初始化Area信息
	      $.ajax({	
	    		type : "POST",
	    		dataType : "JSON",
	    		url : "${pageContext.request.contextPath}/admin/getCurrentUserFloor.action",
	    		contentType:"application/json;charset=UTF-8",
	    		data : paramsStr,
	    		success : function(data){
				  // console.log(data);    			 
			      var floorHtml = "";
			      if(data!=null && data.length>0){
			        $(data).each(function(index,item){
			          if(item){			        	  
				          var floorId = item["floorId"];
				          var floorName = item["floorName"];
				          if(floorId!=null && floorId!=undefined){		        	  
				        	  floorHtml += "<option value='"+floorId+"' selected='selected'>"+floorName+"</option>";
				          }
			          }
			        });
				    // console.log(floorHtml);
				    // console.log("getLightCurrentFloorSelections()");
				    $("#s_floor_light").html(floorHtml);
				    $("#s_floor_light option:first").prop("selected", 'selected');
				    getInitialLightSelections();				    
			      }	
	    		}	
	    	});
	  }
    
	  function getInitialLightSelections(){	
		  var floorId = $("#s_floor_light option:selected").val().trim();
  		  // console.log("floorId",floorId);
		  var params = {"floorId":floorId};
		  // console.log("params",params);
		  var paramsStr = params = JSON.stringify(params);
	  	  // 初始化Light信息
	      $.ajax({	
	    		type : "POST",
	    		dataType : "JSON",
	    		url : "${pageContext.request.contextPath}/admin/getCurrentUserLight.action",
	    		contentType:"application/json;charset=UTF-8",
	    		data : paramsStr,
	    		success : function(data){
				  // console.log(data);    			 
			      var lightHtml = "";
			      if(data!=null && data.length>0){
			        $(data).each(function(index,item){	
			          if(item){			        	  
				          var lightId = item["lightId"];
				          var lightName = item["lightName"];
				          if(lightId!=null && lightId!=undefined){		        	  
				        	  lightHtml += "<option value='"+lightId+"' selected='selected'>"+lightName+"</option>";
				          }
			          }
			        });
				    // console.log(lightHtml);
				    // console.log("getInitialLightSelections()");
				    $("#s_light_light").html(lightHtml);
				    $("#s_light_light option:first").prop("selected", 'selected');
				    drawLightTriggerTimes();
			      }	
	    		}	
	    	});
	  }
    
	  function changeLightBlockSelections(blockId){	
			  // console.log("blockId",blockId);
			  var params = {"blockId":blockId};
			  // console.log("params",params);
			  var paramsStr = JSON.stringify(params);
		  	  // 初始化Area信息
		      $.ajax({	
		    		type : "POST",
		    		dataType : "JSON",
		    		url : "${pageContext.request.contextPath}/admin/getCurrentUserFloor.action",
		    		contentType:"application/json;charset=UTF-8",
		    		data : paramsStr,
		    		success : function(data){
					  // console.log(data);    			 
				      var floorHtml = "";
				      if(data!=null && data.length>0){
				        $(data).each(function(index,item){	
				          if(item){			        	  
					          var floorId = item["floorId"];
					          var floorName = item["floorName"];
					          if(floorId!=null && floorId!=undefined){		        	  
					        	floorHtml += "<option value='"+floorId+"' selected='selected'>"+floorName+"</option>";
					          }
				          }
				        });
				      }	
					    // console.log(floorHtml);
					    // console.log("changeLightBlockSelections(blockId)");
					    $("#s_floor_light").html(floorHtml);
					    $("#s_floor_light option:first").prop("selected", 'selected');
					    getInitialLightSelections();
		    		}	
		    	});
	  }
	  
	  function changeLightFloorSelections(floorId){	
		  var params = {"floorId":floorId};
		  // console.log("params",params);
		  var paramsStr = params = JSON.stringify(params);
	  	  // 初始化Light信息
	      $.ajax({	
	    		type : "POST",
	    		dataType : "JSON",
	    		url : "${pageContext.request.contextPath}/admin/getCurrentUserLight.action",
	    		contentType:"application/json;charset=UTF-8",
	    		data : paramsStr,
	    		success : function(data){
				  // console.log(data);    			 
			      var lightHtml = "";
			      if(data!=null && data.length>0){
			        $(data).each(function(index,item){	
			          if(item){			        	  
				          var lightId = item["lightId"];
				          var lightName = item["lightName"];
				          if(lightId!=null && lightId!=undefined){		        	  
				        	  lightHtml += "<option value='"+lightId+"' selected='selected'>"+lightName+"</option>";
				          }
			          }
			        });
				    // console.log(lightHtml);
				    // console.log("changeLightFloorSelections("+floorId+")");
				    $("#s_light_light").html(lightHtml);
				    $("#s_light_light option:first").prop("selected", 'selected');
				    drawLightTriggerTimes();
			      }	
	    		}	
	    	});
  	  }
	  
	  function changeLightDate(){
			// console.log(11);
			var date = $("#lightDate").val();
			$("#areaDate").val(date);
			$("#blockDate").val(date);
			$("#floorDate").val(date);
			// console.log("date",date);
			drawLightTriggerTimes();
	  }
	  
	  function getInitialBlockSelections(){	
		  var communityId = $("#s_area_light option:selected").val().trim();
  		  // console.log("communityId",communityId);
		  var params = {"communityId":communityId};
		  // console.log("params",params);
		  var paramsStr = params = JSON.stringify(params);
	  	  // 初始化Area信息
	      $.ajax({	
	    		type : "POST",
	    		dataType : "JSON",
	    		url : "${pageContext.request.contextPath}/admin/getCurrentUserBlock.action",
	    		contentType:"application/json;charset=UTF-8",
	    		data : paramsStr,
	    		success : function(data){
				  // console.log(data);    			 
			      var blockHtml = "";
			      if(data!=null && data.length>0){
			        $(data).each(function(index,item){	
			          if(item){			        	  
				          var blockId = item["blockId"];
				          var blockName = item["blockName"];
				          if(blockId!=null && blockId!=undefined){			        	  
				          	 blockHtml += "<option value='"+blockId+"' selected='selected'>"+blockName+"</option>";
				          }
			          }
			        });
				    // console.log(blockHtml);
				    $("#s_block_light").html(blockHtml); 
				    $("#s_block_light option:first").prop("selected", 'selected');
				    getLightCurrentFloorSelections();
			      }	
	    		}	
	    	});
}
	  
	  function getAreaSelections(){	
		  	  // 初始化Area信息
		      $.ajax({	
		    		type : "POST",
		    		dataType : "JSON",
		    		url : "${pageContext.request.contextPath}/admin/getCurrentUserCommunity.action",
		    		contentType:"application/json;charset=UTF-8",
		    		//data : areaParams,
		    		success : function(data){
	    			  // console.log(data);    			 
				      var areaHtml = "";
				      if(data!=null && data.length>0){
				        $(data).each(function(index,item){
				          var communityId = item["communityId"];
				          var communityName = item["communityName"];
				          areaHtml += "<option value='"+communityId+"' selected='selected'>"+communityName+"</option>";
				        });
				      }	     
				      // console.log(areaHtml);	     
				      $("#s_area_light").html(areaHtml);
				      $("#s_area_light option:first").prop("selected", 'selected');
				      getInitialBlockSelections();
		    		}	
		    	});
	  }
	  
	  function drawOVPLine(context,data){
		  // console.log(data);
		  var ovpList = data.ovpList;
		  // console.log("ovpList",ovpList);
		  var ovpLength = data.ovpList.length;
		  // console.log("ovpLength",ovpLength);
		  if(ovpLength>0){
			  for(var i=0;i<ovpLength;i++){
				  // console.log(ovpList[i].currentSecond,ovpList[i].ovpValue);
				  drawSingleOVPLine(context,ovpList[i].currentSecond,ovpList[i].ovpValue);
			  }
		  }
	  }
	  
      // 画OVP单个点的方法
      function drawSingleOVPLine(context,currentSecond,ovpValue){
        if(ovpValue==1){
          context.beginPath();
          context.lineWidth = 5;
          context.strokeStyle = "#FF69B4";
          var leftPoint = (currentSecond/88)+50;
          var rightPoint = (currentSecond/88)+54;
          context.moveTo(leftPoint,182);          
          context.lineTo(rightPoint,186);
          context.stroke();
          context.closePath();
        }
      }
      
	  function drawOCPLine(context,data){
		  // console.log(data);
		  var ocpList = data.ocpList;
		  // console.log("ocpList",ocpList);
		  var ocpLength = data.ocpList.length;
		  // console.log("ocpLength",ocpLength);
		  if(ocpLength>0){
			  for(var i=0;i<ocpLength;i++){
				  // console.log(ocpList[i].currentSecond,ocpList[i].ocpValue);
				  drawSingleOCPLine(context,ocpList[i].currentSecond,ocpList[i].ocpValue);
			  }
		  }
	  }
	  
      // 画OCP单个点的方法
      function drawSingleOCPLine(context,currentSecond,ocpValue){
          if(ocpValue==1){
	            context.beginPath();
	            context.lineWidth = 5;
	            context.strokeStyle = "#228B22";
	            var leftPoint = (currentSecond/88)+50;
	            var rightPoint = (currentSecond/88)+54;
	            context.moveTo(leftPoint,282);          
	            context.lineTo(rightPoint,286);
	            context.stroke();
	            context.closePath();
	      }
      }
      
	  function drawPIRFailLine(context,data){
		  // console.log(data);
		  var pirFailList = data.pirFailList;
		  // console.log("pirFailList",pirFailList);
		  var pirFailLength = data.pirFailList.length;
		  // console.log("pirFailLength",pirFailLength);
		  if(pirFailLength>0){
			  for(var i=0;i<pirFailLength;i++){
				  // console.log(pirFailList[i].currentSecond,pirFailList[i].ovpValue);
				  drawSinglePIRFailLine(context,pirFailList[i].currentSecond,pirFailList[i].failStatus);
			  }
		  }
	  }
	  
      // 画PIR-Fail单个点的方法
      function drawSinglePIRFailLine(context,currentSecond,failStatus){
          if(failStatus==1){
	            context.beginPath();
	            context.lineWidth = 5;
	            context.strokeStyle = "#00BFFF";
	            var leftPoint = (currentSecond/88)+50;
	            var rightPoint = (currentSecond/88)+54;
	            context.moveTo(leftPoint,382);          
	            context.lineTo(rightPoint,386);
	            context.stroke();
	            context.closePath();
	     }
      }
	  
      function drawLightCanvasInfo(context,paramsStr){ 	
		    $.ajax({	
	    		type : "POST",
	    		dataType : "JSON",
	    		url : "${pageContext.request.contextPath}/admin/getLightTriggeredTimesCanvasInfo.action",
	    		contentType:"application/json;charset=UTF-8",
	    		data : paramsStr,
	    		success : function(data){
	    		  	// 画OVP点的方法
	    			drawOVPLine(context,data);
	    		  	// 画OCP点的方法
	    			drawOCPLine(context,data);
	    		  	// 画PIR-Fail点的方法
	    			drawPIRFailLine(context,data);
	    		}	
		    });
     }
      
      function drawHorizontalLine(context){
          var valueOfY = 484;
          //判断不能越界
          while(valueOfY>150){
              context.beginPath();
              context.moveTo(45,valueOfY+0.5);
              context.lineTo(1040,valueOfY+0.5);
              context.lineWidth = 1;
              context.strokeStyle = "#D7D8DA";
              context.stroke();
            //y月往上其实值是-step
            valueOfY -=  100;
          }          
      }

      //画x轴的函数
      function drawHourXMark(context){
        for(var i=0;i<25;i++){      
          //画刻度线
          context.font = "12px Century Gothic";
          context.fillStyle = "#2f4050";
          context.fillText(i, 40+40*i, 496);        
        }
      }  
	  
	  function drawLightTriggerTimes(){
			var lightId = $("#s_light_light option:selected").val();
			lightId = parseInt(lightId);
			// console.log("lightId",lightId);
			
			var lightDate = $("#lightDate").val();
			// console.log("lightDate",lightDate);
			
			var canvas = document.getElementById("lightTriggerTimesCanvas");
			var context = canvas.getContext("2d");
			
			context.clearRect(0,0,canvas.width,canvas.height);
			
	        drawHorizontalLine(context); 
	
	        // 画Hour的x轴的函数
	        drawHourXMark(context); 	
	        
	        // 写标题信息
	        drawLightTriggerTimesTitle(context);
	        
	        // 画Light的Hours的Y轴mark
	        drawLightYMark(context);
	        
	        var lightParams = {
	        	"lightId":lightId,
	        	"date":lightDate
	        };            
	        // console.log("lightParams",lightParams);
	        var paramsStr = JSON.stringify(lightParams);
	        // console.log("paramsStr",paramsStr); 
	        
	        // 填充后台传过来的数据
	        drawLightCanvasInfo(context,paramsStr);
		    
			console.log("drawLightTriggerTimes()");
	  }
	  
  
  	 $(function(){
  		  // 初始化Area信息
  		  getAreaSelections();
  		  
  		  // 给Area一个默认时间是当天
  		  var date = today();  		 
  		  $("#lightDate").val(date);
	      
		  /* 添加Light部分 */
		  $('#s_area_light').change(function(){
		   		var communityId = $(this).children('option:selected').val();
		   		communityId = parseInt(communityId);
		   		// console.log("communityId",communityId); 		
		   		changeLightAreaSelections(communityId);
		  });
		   	
		  $('#s_block_light').change(function(){
		   		var blockId = $(this).children('option:selected').val();
		   		blockId = parseInt(blockId);
		   		//console.log("blockId",blockId); 	
		   		changeLightBlockSelections(blockId);
		  });
		  
		  $('#s_floor_light').change(function(){
		   		var floorId = $(this).children('option:selected').val();
		   		floorId = parseInt(floorId);
		   		//console.log("blockId",blockId); 	
		   		changeLightFloorSelections(floorId);
		  });

		  $('#s_light_light').change(function(){
		   		var lightId = $(this).children('option:selected').val();
		   		lightId = parseInt(lightId);
		   		// console.log("lightId",lightId);	
		   		drawLightTriggerTimes();
		  });  	        
  	 });
  	 
  	 
  	 
  </script>
</head>
<body>

  <div class="main">

	<c:import url="navbar.jsp"></c:import>

    <div class="container-fluid">	  
	  <div class="all_info">	    
	    <!-- light Trigger Times 部分 -->
	    <div class="light">
			<canvas id="lightTriggerTimesCanvas" width="1200" height="600" >
				Your browser does not support HTML5.
			</canvas>
	        <span class="area_title">
	          Area:
	        </span>
	        <span class="area_light">
	          <select name="" id="s_area_light">
	           
	          </select>
	        </span>
	        <span class="block_title">
	          Block:
	        </span>
	        <span class="block_light">
	          <select name="" id="s_block_light">
	           
	          </select>
	        </span>
	        <span class="floor_title">
	          Floor:
	        </span>
	        <span class="floor_light">
	          <select name="" id="s_floor_light">
	           
	          </select>
	        </span>
	        <span class="light_title">
	          Light:
	        </span>
	        <span class="light_light">
	          <select name="" id="s_light_light">
	           
	          </select>
	        </span>
	        <span class="date_title">
	          Date:
	        </span>
	        <span class="span_date_light">
				<input type="text" onClick="WdatePicker({lang:'en',onpicked:changeLightDate,maxDate:new Date()})"  readonly="readonly" class="Wdate" id=lightDate />
	        </span>
	    </div>
	  </div>
    </div>
  </div>

  <c:set var="current_page" scope="session" value="triggered_time"/>
  <c:import url="sidebar.jsp"></c:import>

</body>
</html>

 

智慧旅游解决方案利用云计算、物联网和移动互联网技术,通过便携终端设备,实现对旅游资源、经济、活动和旅游者信息的智能感知和发布。这种技术的应用旨在提升游客在旅游各个环节的体验,使他们能够轻松获取信息、规划行程、预订票务和安排食宿。智慧旅游平台为旅游管理部门、企业和游客提供服务,包括政策发布、行政管理、景区安全、游客流量统计分析、投诉反馈等。此外,平台还提供广告促销、库存信息、景点介绍、电子门票、社交互动等功能。 智慧旅游的建设规划得到了国家政策的支持,如《国家中长期科技发展规划纲要》和国务院的《关于加快发展旅游业的意见》,这些政策强调了旅游信息服务平台的建设和信息化服务的重要性。随着技术的成熟和政策环境的优化,智慧旅游的时机已经到来。 智慧旅游平台采用SaaS、PaaS和IaaS等云服务模式,提供简化的软件开发、测试和部署环境,实现资源的按需配置和快速部署。这些服务模式支持旅游企业、消费者和管理部门开发高性能、高可扩展的应用服务。平台还整合了旅游信息资源,提供了丰富的旅游产品创意平台和统一的旅游综合信息库。 智慧旅游融合应用面向游客和景区景点主管机构,提供无线城市门户、智能导游、智能门票及优惠券、景区综合安防、车辆及停车场管理等服务。这些应用通过物联网和云计算技术,实现了旅游服务的智能化、个性化和协同化,提高了旅游服务的自由度和信息共享的动态性。 智慧旅游的发展标志着旅游信息化建设的智能化和应用多样化趋势,多种技术和应用交叉渗透至旅游行业的各个方面,预示着全面的智慧旅游时代已经到来。智慧旅游不仅提升了游客的旅游体验,也为旅游管理和服务提供了高效的技术支持。
智慧旅游解决方案利用云计算、物联网和移动互联网技术,通过便携终端设备,实现对旅游资源、经济、活动和旅游者信息的智能感知和发布。这种技术的应用旨在提升游客在旅游各个环节的体验,使他们能够轻松获取信息、规划行程、预订票务和安排食宿。智慧旅游平台为旅游管理部门、企业和游客提供服务,包括政策发布、行政管理、景区安全、游客流量统计分析、投诉反馈等。此外,平台还提供广告促销、库存信息、景点介绍、电子门票、社交互动等功能。 智慧旅游的建设规划得到了国家政策的支持,如《国家中长期科技发展规划纲要》和国务院的《关于加快发展旅游业的意见》,这些政策强调了旅游信息服务平台的建设和信息化服务的重要性。随着技术的成熟和政策环境的优化,智慧旅游的时机已经到来。 智慧旅游平台采用SaaS、PaaS和IaaS等云服务模式,提供简化的软件开发、测试和部署环境,实现资源的按需配置和快速部署。这些服务模式支持旅游企业、消费者和管理部门开发高性能、高可扩展的应用服务。平台还整合了旅游信息资源,提供了丰富的旅游产品创意平台和统一的旅游综合信息库。 智慧旅游融合应用面向游客和景区景点主管机构,提供无线城市门户、智能导游、智能门票及优惠券、景区综合安防、车辆及停车场管理等服务。这些应用通过物联网和云计算技术,实现了旅游服务的智能化、个性化和协同化,提高了旅游服务的自由度和信息共享的动态性。 智慧旅游的发展标志着旅游信息化建设的智能化和应用多样化趋势,多种技术和应用交叉渗透至旅游行业的各个方面,预示着全面的智慧旅游时代已经到来。智慧旅游不仅提升了游客的旅游体验,也为旅游管理和服务提供了高效的技术支持。
深度学习是机器学习的一个子领域,它基于人工神经网络的研究,特别是利用多层次的神经网络来进行学习和模式识别。深度学习模型能够学习数据的高层次特征,这些特征对于图像和语音识别、自然语言处理、医学图像分析等应用至关重要。以下是深度学习的一些关键概念和组成部分: 1. **神经网络(Neural Networks)**:深度学习的基础是人工神经网络,它是由多个层组成的网络结构,包括输入层、隐藏层和输出层。每个层由多个神经元组成,神经元之间通过权重连接。 2. **前馈神经网络(Feedforward Neural Networks)**:这是最常见的神经网络类型,信息从输入层流向隐藏层,最终到达输出层。 3. **卷积神经网络(Convolutional Neural Networks, CNNs)**:这种网络特别适合处理具有网格结构的数据,如图像。它们使用卷积层来提取图像的特征。 4. **循环神经网络(Recurrent Neural Networks, RNNs)**:这种网络能够处理序列数据,如时间序列或自然语言,因为它们具有记忆功能,能够捕捉数据中的时间依赖性。 5. **长短期记忆网络(Long Short-Term Memory, LSTM)**:LSTM 是一种特殊的 RNN,它能够学习长期依赖关系,非常适合复杂的序列预测任务。 6. **生成对抗网络(Generative Adversarial Networks, GANs)**:由两个网络组成,一个生成器和一个判别器,它们相互竞争,生成器生成数据,判别器评估数据的真实性。 7. **深度学习框架**:如 TensorFlow、Keras、PyTorch 等,这些框架提供了构建、训练和部署深度学习模型的工具和库。 8. **激活函数(Activation Functions)**:如 ReLU、Sigmoid、Tanh 等,它们在神经网络中用于添加非线性,使得网络能够学习复杂的函数。 9. **损失函数(Loss Functions)**:用于评估模型的预测与真实值之间的差异,常见的损失函数包括均方误差(MSE)、交叉熵(Cross-Entropy)等。 10. **优化算法(Optimization Algorithms)**:如梯度下降(Gradient Descent)、随机梯度下降(SGD)、Adam 等,用于更新网络权重,以最小化损失函数。 11. **正则化(Regularization)**:技术如 Dropout、L1/L2 正则化等,用于防止模型过拟合。 12. **迁移学习(Transfer Learning)**:利用在一个任务上训练好的模型来提高另一个相关任务的性能。 深度学习在许多领域都取得了显著的成就,但它也面临着一些挑战,如对大量数据的依赖、模型的解释性差、计算资源消耗大等。研究人员正在不断探索新的方法来解决这些问题。
深度学习是机器学习的一个子领域,它基于人工神经网络的研究,特别是利用多层次的神经网络来进行学习和模式识别。深度学习模型能够学习数据的高层次特征,这些特征对于图像和语音识别、自然语言处理、医学图像分析等应用至关重要。以下是深度学习的一些关键概念和组成部分: 1. **神经网络(Neural Networks)**:深度学习的基础是人工神经网络,它是由多个层组成的网络结构,包括输入层、隐藏层和输出层。每个层由多个神经元组成,神经元之间通过权重连接。 2. **前馈神经网络(Feedforward Neural Networks)**:这是最常见的神经网络类型,信息从输入层流向隐藏层,最终到达输出层。 3. **卷积神经网络(Convolutional Neural Networks, CNNs)**:这种网络特别适合处理具有网格结构的数据,如图像。它们使用卷积层来提取图像的特征。 4. **循环神经网络(Recurrent Neural Networks, RNNs)**:这种网络能够处理序列数据,如时间序列或自然语言,因为它们具有记忆功能,能够捕捉数据中的时间依赖性。 5. **长短期记忆网络(Long Short-Term Memory, LSTM)**:LSTM 是一种特殊的 RNN,它能够学习长期依赖关系,非常适合复杂的序列预测任务。 6. **生成对抗网络(Generative Adversarial Networks, GANs)**:由两个网络组成,一个生成器和一个判别器,它们相互竞争,生成器生成数据,判别器评估数据的真实性。 7. **深度学习框架**:如 TensorFlow、Keras、PyTorch 等,这些框架提供了构建、训练和部署深度学习模型的工具和库。 8. **激活函数(Activation Functions)**:如 ReLU、Sigmoid、Tanh 等,它们在神经网络中用于添加非线性,使得网络能够学习复杂的函数。 9. **损失函数(Loss Functions)**:用于评估模型的预测与真实值之间的差异,常见的损失函数包括均方误差(MSE)、交叉熵(Cross-Entropy)等。 10. **优化算法(Optimization Algorithms)**:如梯度下降(Gradient Descent)、随机梯度下降(SGD)、Adam 等,用于更新网络权重,以最小化损失函数。 11. **正则化(Regularization)**:技术如 Dropout、L1/L2 正则化等,用于防止模型过拟合。 12. **迁移学习(Transfer Learning)**:利用在一个任务上训练好的模型来提高另一个相关任务的性能。 深度学习在许多领域都取得了显著的成就,但它也面临着一些挑战,如对大量数据的依赖、模型的解释性差、计算资源消耗大等。研究人员正在不断探索新的方法来解决这些问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值