`
文章列表
Array.prototype.remove=function(i){ if(isNaN(i) || i<0 || i>=this.length){   return ; } var rv=this[i]; for(;i<this.length-1;i++){   this[i]=this[i+1]; } this.pop(); return rv; } var keyArr; var valueArr; function HashTable_put(key,value){ var i=0; for(;i<keyArr.length;i++){   ...

case when 统计

with a as( select distinct t.cus_type3, sum(case when c.cat_no like 'A'||'%' then c.con_amt  else 0 end)  over (partition by t.cus_type3) ANUM3 , sum(case when c.cat_no like 'B'||'%' then c.con_amt  else 0 end)  over (partition by t.cus_type3) BNUM3, sum(case when c.cat_no like 'C'||'%' then c.con_a ...
   public void savaSoftFile(InputStream inputStream,String userid) {     // 传的是存入数据库图片的id         Connection conn=getConn();     Statement st = null;     BLOB blob = null; // 图片类型     OutputStream outputStream = null; // 输出流     File file = null; // 文件         ResultSet rs = null;     ...

用户权限授权

with  d as (select t.menu_no , b.usr_id from  menu_grant t, grp_members b where t.obj_type='G'  and t.obj_no = b.grp_no union select t.menu_no , b.usr_id from  menu_grant t, users b where t.obj_type='U' and t.obj_no= b.usr_id ) <!--不查询子菜单  select t.menu_no as     menuNo     ,t ...
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %> <%@ taglib prefix="s" uri="/struts-tags"%> <% response.setHeader("PRag ...
select * from( select a.id ,(select b.name from b where b.id=a.id) name,row_num() over (partition by dep order by add_date desc) rn ) where rn=1; 关联表放在上边,做等值关联,分组会出问题

人民币大小写转换

    博客分类:
  • JS
function convertCurrency(currencyDigits) {   // Constants:   var MAXIMUM_NUMBER = 99999999999.99;   // Predefine the radix characters and currency symbols for output:   var CN_ZERO = "零";   var CN_ONE = "壹";   var CN_TWO = "贰";   var CN_THREE = " ...
<s:iterator id="XX" value="XX" status="sta"> <s:if test='carEsions=="1"'>   <s:select name="XX[%{#sta.index}].carEsions" id="ddlSort1" cssStyle="Font-Size:9pt;Font-Names:Verdana; Width:148px" ...
<result name="initResponse"  type="redirect" >/BBSAction.action?action=getResponseByParentid&amp;id=${topicid}</result>
1.struts2.1.6 当float,double为0.或者0.0时候,会报错setString ,可以采用引入 在class目录下新建一个文件:xwork-conversion.properties,内容如下: Java代码 java.lang.Double=com.utils.DoubleConvert java.lang.Float=com.utils.DoubleConvert 2.将domain的javaBean里面的float 改为大写Float public void setPrice(Float price) {   this.price= price } 3.DoubleC ...

css页面只读

    博客分类:
  • JS
<style type="text/css">    input{       readonly:expression(this.readOnly=true);    }    textarea{       readonly:expression(this.readOnly=true);       }    a{      onclick:expression(this.onclick=function(){      void(0);      });    }    input[type="text"]     {     bac ...

js刷新父页面

    博客分类:
  • JS
1.window showMadialog,刷新父页面,关闭自己,原来使用reload无效,改成下面即可 window.dialogArguments.location.href=window.dialogArguments.location.href;
1.先关联出数据作为临时表a,取出最小值,然后将剩余的行数去掉最小值的行,即可 with   a   as (SELECT A.cus_No FROM A  , B  where B.rel_org_no(+)=A.cus_no  and t.Stop_Flag='N' ) SELECT a.* from a where usr_id in  (select min(usr_Id) from users group by rel_org_no ) union SELECT a.* from a where cus_No not in ( SELECT cus_No from a wh ...
1.当删除表的某一行时,原来要为table表格的第3列的第2个button按钮使用jquery修改onclick事件,先删除原有事件,再绑定事件,因为要传参数,确定是哪一行,传i进去发现都一样,没办法动态绑定,只好通过event的事件,找到每行的tr的序号,就可以动态绑定了参数了 2.当我再次点击删除时,他会继续添加click,同时会触发2次click事件,所以需要unbind 接触之前的onclick事件 for(var i=0;i<=len;i++){ var $tr=$("tr[id='"+i+"']"); $tr.find("td ...
多写了个分号,
Global site tag (gtag.js) - Google Analytics