/** 待办 * */ $.namespace("todo"); var jsonstr="data=[{'type':'gg','name':'公告'},{'type':'dcsb','name':'单船申报'},{'type':'xkzsq','name':'许可证申请'},{'type':'xkzbg','name':'许可证变更'},{'type':'xkzyx','name':'许可证延续'},{'type':'xkzzx','name':'许可证注销'}]"; todo.init=function(){ }; todo.search=function(){ $("#todoform").submit(); }; todo.banli=function(type,id){ var path="/todo"; if(type=="dcsb"){ location.href=$.app+"/dcsb/view?flag=audit&path="+path+"&id="+id+"&type="+type; }else if(type=="jsjd"){ location.href=$.app+"/jsjdgl/edit?id="+id+"&flag=audit"+"&path="+path+"&type="+type; }else if(type=="jsjdjggz"){ location.href=$.app+"/jsjdgl/edit?id="+id+"&flag=audit"+"&path="+path+"&type="+type; }else if(type=="xkzyx"){ location.href=$.app+"/xkzyx/viewmain?flag=audit&id="+id+"&path2="+path+"&type="+type; }else if(type=="xkzsq"){ location.href=$.app+"/xkzsq/viewmain?flag=audit&id="+id+"&path2="+path+"&type="+type; }else if(type=="xkzbg"){ location.href=$.app+"/xkzbg/viewmain?flag=audit&id="+id+"&path2="+path+"&type="+type; }else if(type=="xkzzx"){ location.href=$.app+"/xkzzx/viewmain?flag=audit&id="+id+"&path2="+path+"&type="+type; } } todo.banliTh=function(type,id){ var path="/todo"; if(type=="dcsb"){ location.href=$.app+"/dcsb/edit?flag=th&path="+path+"&id="+id+"&type="+type; }else if(type=="jsjd"){ location.href=$.app+"/jsjdgl/edit?id="+id+"&flag=audit"+"&path="+path+"&type="+type; }else if(type=="jsjdjggz"){ location.href=$.app+"/jsjdgl/edit?id="+id+"&flag=audit"+"&path="+path+"&type="+type; }else if(type=="xkzyx"){ location.href=$.app+"/xkzyx/editmain?flag=th&id="+id+"&path2="+path+"&type="+type; }else if(type=="xkzsq"){ location.href=$.app+"/xkzsq/editmain?flag=th&id="+id+"&path2="+path+"&type="+type; }else if(type=="xkzbg"){ location.href=$.app+"/xkzbg/editmain?flag=th&id="+id+"&path2="+path+"&type="+type; }else if(type=="xkzzx"){ location.href=$.app+"/xkzzx/editmain?flag=th&id="+id+"&path2="+path+"&type="+type; } } function initTySelect(divid,existVal,changefunc,width){ var str = ""; if(changefunc!=null&&changefunc!=""){ str+=""; } str+=""; var json=eval(jsonstr); for(var i=0;i"+k.name+""; }else{ str+=" "; } } str+=""; $("#"+divid).empty(); $("#"+divid).append(str); $('.todoselectpicker').selectpicker({ width:width }); }