刘建广

博客园 首页 联系 订阅 管理

2012年11月7日

摘要: // excel 文件上传例子public ActionForward productNeworderExcel(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) throws Exception{HttpSession session=request.getSession();if(session.getAttribute("managerid")==null){return new ActionForward("/ma 阅读全文
posted @ 2012-11-07 10:44 刘建广 阅读(411) 评论(0) 推荐(0)

2012年11月6日

摘要: // java 生成文件public ActionForward createProductPrograma(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) {/** **************************权限判断******************************** */HttpSession session = request.getSession();CheckAuthen checkauthen = new Check 阅读全文
posted @ 2012-11-06 17:38 刘建广 阅读(5292) 评论(0) 推荐(0)

摘要: // 读取一个.html 文件内容public ActionForward editProductProgramaLabel(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws ParseException, UnsupportedEncodingException {HttpSession session = request.getSession();if(session.getAttribute("managerid" 阅读全文
posted @ 2012-11-06 17:16 刘建广 阅读(1014) 评论(0) 推荐(0)

摘要: 一个Quartz的CronTrigger表达式分为七项子表达式,其中每一项以空格隔开,从左到右分别是:秒,分,时,月的某天,月,星期的某天,年;其中年不是必须的,也就是说任何一个表达式最少需要六项!例:0 0 12 ? * WED 表示每个星期三的12点执行,这里没有“年”这项!字段名(项) 必须 值范围 特殊字符 秒 是 0-59 , - * / 分 是 0-59 , - * / 时 是 0-23 , - * / 月的某天 是 1-31 , - * ? / L W 月 是 1-12 or JAN-DEC , - * / 星期的某天 是 1-7 or SUN-SAT , - * ? / L # 阅读全文
posted @ 2012-11-06 17:01 刘建广 阅读(471) 评论(0) 推荐(0)

摘要: try{URL newURL = new URL("http://localhost:8080/auto/productNeworder.do?method=createProductPrograma");HttpURLConnection conn = (HttpURLConnection) newURL.openConnection();conn.connect();BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));in.close();}catch( 阅读全文
posted @ 2012-11-06 16:51 刘建广 阅读(328) 评论(0) 推荐(0)

2012年10月18日

摘要: // 图片等比例缩放效果 方法一 、 function fixImage(i,w,h){ var ow = i.width; var oh = i.height; var rw = w/ow; var rh = h/oh; var r = Math.min(rw,rh); if (w ==0 && h == 0){ r = 1; }else if (w == 0){ r = rh<1?rh:1; }else if (h == 0){ r = rw<1?rw:1; } ... 阅读全文
posted @ 2012-10-18 11:18 刘建广 阅读(213) 评论(0) 推荐(0)

2012年10月12日

摘要: 如果你希望尖角居中显示,可以在.poptip-arrow这个span上加上style="left:50%"或者style="top:50%"。这个代码兼容IE6-10、Chrome、Firefox等基本上所有主流浏览器,所以不必担心其兼容性和实用性。<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>CSS用◆制作 小三角气泡提示框效果丨芯晴网页 阅读全文
posted @ 2012-10-12 11:28 刘建广 阅读(329) 评论(0) 推荐(0)

2012年9月28日

摘要: <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>一个流行的弹出层的效果</title></head><script>var docEle = function() {return document.getElementById(arguments[0]) || false;}function openNewDiv(_id) {var m = & 阅读全文
posted @ 2012-09-28 14:20 刘建广 阅读(1733) 评论(0) 推荐(0)

2012年8月7日

摘要: 1、Ext.tree.TreePanel主要配置项:root:树的根节点。rootVisible:是否显示根节点,默认为true。useArrows:是否在树中使用Vista样式箭头,默认为false。lines:是否显示树线,默认为true。loader:树节点的加载器,默认为Ext.tree.TreeLoader。selModel:树的选择模式,默认为Ext.tree.DefaultSelectionModel。pathSeparator:树节点路径的分隔符,默认为“/”。singleExpand:是否一次只展开树中的一个节点,默认为true。requestMethod:请求方法,可选值有 阅读全文
posted @ 2012-08-07 15:55 刘建广 阅读(491) 评论(0) 推荐(0)

2012年7月10日

摘要: 技术发展日新月异,为了与时俱进,不让自己很快的落伍,正好项目有所需要,就学习了下 新发布的Google Maps API V3。 V3相对于V2存在许多改变,比如在地图的加载上,尤其是手机浏览器访问的速度更快了(参考自其说明文档)。从开发上,V3版不再需要获取API的Key(以往每部署一套程序,都得去申请一个key,麻烦的很),V3所有都在google.maps.*的命名空间下,没有以“G”为前缀的全局变量了,所以以往的v2代码都不能复用,需要进行一定的修改。<%@ Page Language="C#" AutoEventWireup="true" 阅读全文
posted @ 2012-07-10 10:50 刘建广 阅读(268) 评论(0) 推荐(0)