2013年9月24日

摘要: window.opener后面的方法可以调用任意父窗口里面js的方法。eg.query()是父窗口的function refreshParent(){window.opener.query();window.close();} 阅读全文
posted @ 2013-09-24 15:55 wheat_pear 阅读(257) 评论(0) 推荐(0)
 
摘要: 问题:一个表里有 1, 2 1, 3 2, 1 2, 4 现在要找第一位是1的第二位:2,3 和 第二位是1的第一位:2。然后去掉重复项,最后剩下2,3错误:使用hql:StringBuffer sb = new StringBuffer(); sb.append("select distinct firCode from Coorger where secCode='"+curentOrganCode+"' and typeFlag='0' and flag='1'" + " union &qu 阅读全文
posted @ 2013-09-24 15:19 wheat_pear 阅读(1018) 评论(0) 推荐(0)