| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 | /**待办 *  */$.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+="<select   class='todoselectpicker' name='type' onchange='"+changefunc+"()' >";	}else{		str+="<select class='todoselectpicker' name='type'  >";	}		str+="<option></option>";	var json=eval(jsonstr);	for(var i=0;i<json.length;i++){		var k = json[i];		if(k.type==existVal){			str+=" <option selected='selected' value='"+k.type+"' >"+k.name+"</option>";		}else{			str+=" <option value='"+k.type+"' >"+k.name+"</option>";		}	}	str+="</select>";	$("#"+divid).empty();	$("#"+divid).append(str);	$('.todoselectpicker').selectpicker({		width:width	});}
 |