Spring的声明式事务

摘要: 1.与hibernate集成 ... 阅读全文
posted @ 2015-10-29 17:27 xunianchong 阅读(373) 评论(0) 推荐(0) 编辑

setTimeout 传递的方法

摘要: function waitExe(param){ if(time -- 阅读全文
posted @ 2015-08-15 09:46 xunianchong 阅读(450) 评论(0) 推荐(0) 编辑

extjs4 treepanel 多个checkbox先中 多个节点选中 多级节点展开

摘要: //var checkedNodes = { _data:{}, update:function(id,text,checked){ if(checked){ this.add(id,text,checked); }else if(!checked){ this.delById(i... 阅读全文
posted @ 2015-08-11 09:41 xunianchong 阅读(734) 评论(0) 推荐(0) 编辑

extjs 4 checkboxgroup Panel的简单用法

摘要: Ext.require([ 'Ext.tree.*', 'Ext.data.*', 'Ext.window.MessageBox', 'Ext.tip.*' ]);Ext.onReady(... 阅读全文
posted @ 2015-08-11 09:40 xunianchong 阅读(504) 评论(0) 推荐(0) 编辑

oracle case where 复杂sql语句

摘要: update hr_user u set u.is_approve=(case when u.curr_org_id in (select t.org_id from hr_organization t ... 阅读全文
posted @ 2015-08-04 10:57 xunianchong 阅读(1497) 评论(0) 推荐(0) 编辑

oracle中去掉文本中的换行符、回车符、制表符

摘要: 一、特殊符号ascii定义制表符 chr(9) 换行符 chr(10)回车符 chr(13)UPDATE tc_car_order set USE_REASON = REPLACE('USE_REASON',chr(9),'');UPDATE tc_car_order set USE_REASON ... 阅读全文
posted @ 2015-07-16 10:15 xunianchong 阅读(1707) 评论(0) 推荐(0) 编辑

oracle中的exists和not exists和in用法详解

摘要: in是把外表和内表作hash连接,而exists是对外表作loop循环,每次loop循环再对内表进行查询。notexists:做NL,对子查询先查,有个虚表,有确定值,所以就算子查询有NULL最终也有值返回notin:做hash,对子查询表建立内存数组,用外表匹配,那子查询要是有NULL那外表没的匹... 阅读全文
posted @ 2015-07-10 10:32 xunianchong 阅读(1383) 评论(0) 推荐(0) 编辑

将异常(getStackTrace)转化成String

摘要: 方法一:private static String getStackMsg(Exception e) { StringBuffer sb = new StringBuffer(); StackTraceElement[] stackArray = e.getStackTr... 阅读全文
posted @ 2015-06-15 09:50 xunianchong 阅读(2555) 评论(0) 推荐(0) 编辑

树的深度优先遍历和广度优先遍历的原理和java实现代码

摘要: import java.util.ArrayDeque;public class BinaryTree { static class TreeNode{ int value; TreeNode left; TreeNode right; ... 阅读全文
posted @ 2015-05-18 11:35 xunianchong 阅读(421) 评论(0) 推荐(0) 编辑

extjs4.0 treepanel节点的选中、展开! 数据的重新加载

摘要: 1.extjs4.0API较3.0有非常大变化2.多级子父节点的选中和展开。3.数据的重新加载。tree.getStore().load4.节点的移除,从树中根据ID获取节点 tree.getStore().getNodeById();5.获取选中的节点,tree.getView().getChec... 阅读全文
posted @ 2015-05-13 17:00 xunianchong 阅读(4802) 评论(0) 推荐(0) 编辑