10 2012 档案
摘要:UPDATE dbo.DEVICE_BIT_NUMBERSET code = substring(code,1,1) + substring(code,6,5) +substring(code,2,4) + substring(code,11,4) WHERE CODE LIKE '%ZNZM%';UPDATE dbo.DEVICE_BIT_NUMBERSET code = replace(code ,'-','_') WHERE CODE LIKE '%ZNZM%';SELECT substring(code,1,1) FROM
阅读全文
摘要:INSERT INTO DEVICE_BIT_NUMBER ( DEVICE_ID, CODE )VALUES ( SELECT device_id,DEVICE_CODE FROM device_info WHERE device_code LIKE '%ZNZM%' )提示出错,正确写法去掉“values”,如下:INSERT INTO DEVICE_BIT_NUMBER ( DEVICE_ID, CODE )SELECT device_id, device_code FROM device_info a WHERE a.device_c...
阅读全文
摘要:首先buildPath,增加相应的包接着,将src设置为源码包,就不会出现java文件图标是空心等异常问题好了,解决!
阅读全文
摘要:ajax的时间戳当你的ajax需要的数据是及时更新的,也就是说在没有刷新页面的情况下,得到其他操作的新数据,你的ajax提交url中加入一个时间戳,这样,就可以避免页面使用缓存了,原理是:时间戳本事就是一个随时更新的变量,时间戳只是一个叫法,你可以这么理解:你的url中加了一个随时更新的变量,,那么,提交时是不会使用缓存的。var url = "insertData.jsp?textName="+nameAdd+"&date="+new Date().getTime();也可以用时间的数值形式:var url = "insertData
阅读全文
摘要:jsp页面:$(document).ready(function() { setInterval(function myTimer() { //alert('a'); getViews(); },1000); }); //播放 function getViews(){ $.ajax({ 'url':"${pageContext.request.contextPath}/video/getVideos.action?r="+Math.random()+"&op...
阅读全文
摘要:package com.supcon.hospital.jianche.service;import java.util.Hashtable;/*** @date 2012-10-11*/public class VideoHashTable {private static VideoHashTable receHashTable;private Hashtable<Long, Long> rht = new Hashtable<Long, Long>();private boolean updateFlag = true;private VideoHashTable(
阅读全文
摘要:创建Dom4j的Document用于解析xmlprotected Element createDocument(String xml) {try {Document document = new SAXReader().read(Thread.currentThread().getContextClassLoader().getResourceAsStream(xml));// Document document = DocumentHelper.parseText(xml);Element root = document.getRootElement();return root;} catc
阅读全文
摘要:package com.supcon.honcomb.basearchives.entity;import java.awt.AlphaComposite;import java.awt.Color;import java.awt.Composite;import java.awt.Graphics2D;import java.awt.Paint;import java.awt.Polygon;import java.awt.Rectangle;import java.awt.Shape;import java.awt.Stroke;import java.awt.font.FontRende
阅读全文
摘要:package com.supcon.contingency.util;import java.awt.BasicStroke;import java.awt.Color;import java.awt.Font;import java.awt.geom.Ellipse2D;import java.io.UnsupportedEncodingException;import java.util.List;import org.jfree.chart.ChartFactory;import org.jfree.chart.ChartUtilities;import org.jfree.chart
阅读全文
摘要:JFreeChart chart = JFreeChartTool.ToLineChart(list);try {HttpSession session = ServletActionContext.getRequest().getSession();String filename = ServletUtilities.saveChartAsPNG(chart, 500,300, null, session);System.out.println(filename);String graphURL = request.getContextPath()+ "/servlet/Displ
阅读全文