jquery注入页面
//加载已建立关系的上传数据列表,由上传组件使用页面调用
function attachmentList(divId,objectId,objectType,flag){
?var seqIdsValue = JQ("#attach_seqIds_"+divId).value==null?"":JQ("#attach_seqIds_"+divId).value;
?var delSeqIdsValue= JQ("#attach_delSeqIds_"+divId).value==null?"":JQ("#attach_delSeqIds_"+divId).value;
?JQ.ajax({
??url:"/spi/attachment/upload.shtml?objectId="+objectId+"&objectType="+objectType+"&seqIds="+seqIdsValue+"&delSeqIds="+delSeqIdsValue+"&flag="+flag+"&divId="+divId,
??cache: false,
??data: "",
??success: function(html){
???var divName = "#"+divId+"_c1";
???JQ(divName).html(html);
??}
?});
}
//加载上传控件form及未建立关系的上传数据列表,由上传组件使用页面调用
function uploadAttachment(divId,objectId,objectType,flag){
?var seqIdsValue = JQ("#attach_seqIds_"+divId).value==null?"":JQ("#attach_seqIds_"+divId).value;
?var delSeqIdsValue= JQ("#attach_delSeqIds_"+divId).value==null?"":JQ("#attach_delSeqIds_"+divId).value;
?JQ.ajax({
??url:"/spi/attachment/uploadattachment.shtml?objectId="+objectId+"&objectType="+objectType+"&seqIds="+seqIdsValue+"&delSeqIds="+delSeqIdsValue+"&flag="+flag+"&divId="+divId,
??cache: false,
??data: "",
??success: function(html){
???var divName = "#"+divId+"_c2";
???JQ(divName).html(html);
??}
?});
}