/** 待办 * */ $.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; }else if(type=="jsjdcbsjds"){ location.href=$.app+"/jsjdcbsjds/view?flag=audit&path="+path+"&id="+id+"&type="+type; }else if(type=="jsjdbgds"){ location.href=$.app+"/jsjdbgds/view?flag=audit&path="+path+"&id="+id+"&type="+type; }else if(type=="jgsqds"){ location.href=$.app+"/jgsqds/view?flag=audit&path="+path+"&id="+id+"&type="+type; }else if(type=="jsjdcbsj"){ location.href=$.app+"/jsjdcbsj/view?flag=audit&path="+path+"&id="+id+"&type="+type; }else if(type=="jsjdbg"){ location.href=$.app+"/jsjdbg/view?flag=audit&path="+path+"&id="+id+"&type="+type; }else if(type=="jgsq"){ location.href=$.app+"/jgsq/view?flag=audit&path="+path+"&id="+id+"&type="+type; }else if(type=="lhsq"){ location.href=$.app+"/lhsq/view?flag=audit&path="+path+"&id="+id+"&type="+type; }else if(type=="lhbg"){ location.href=$.app+"/lhbg/view?flag=audit&path="+path+"&id="+id+"&type="+type; }else if(type=="lhzx"){ location.href=$.app+"/lhzx/view?flag=audit&path="+path+"&id="+id+"&type="+type; }else if(type=="jdtx"){ location.href=$.app+"/jdtxxx/view?flag=audit&path="+path+"&id="+id+"&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; }else if(type=="jsjdcbsjds"){ location.href=$.app+"/jsjdcbsjds/edit?flag=th&path="+path+"&id="+id+"&type="+type; }else if(type=="jsjdbgds"){ location.href=$.app+"/jsjdbgds/edit?flag=th&path="+path+"&id="+id+"&type="+type; }else if(type=="jgsqds"){ location.href=$.app+"/jgsqds/edit?flag=th&path="+path+"&id="+id+"&type="+type; }else if(type=="jsjdcbsj"){ location.href=$.app+"/jsjdcbsj/edit?flag=th&path="+path+"&id="+id+"&type="+type; }else if(type=="jsjdbg"){ location.href=$.app+"/jsjdbg/edit?flag=th&path="+path+"&id="+id+"&type="+type; }else if(type=="jgsq"){ location.href=$.app+"/jgsq/edit?flag=th&path="+path+"&id="+id+"&type="+type; }else if(type=="lhsq"){ location.href=$.app+"/lhsq/edit?flag=th&path="+path+"&id="+id+"&type="+type; }else if(type=="lhbg"){ location.href=$.app+"/lhbg/edit?flag=th&path="+path+"&id="+id+"&type="+type; }else if(type=="lhzx"){ location.href=$.app+"/lhzx/edit?flag=th&path="+path+"&id="+id+"&type="+type; }else if(type=="jdtx"){ location.href=$.app+"/jdtxxx/edit?flag=audit&path="+path+"&id="+id+"&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 }); }