📄 attachmentlist.jsp
字号:
<%@ include file="/includes/header.jsp" %>
<%@ page import="com.sourcetap.sfa.account.*" %>
<jsp:useBean id="abstractAttachmentEP" class="com.sourcetap.sfa.attachment.AbstractAttachmentEP" scope="application" />
<jsp:useBean id="abstractAttachmentWEP" class="com.sourcetap.sfa.attachment.AbstractAttachmentWEP" scope="application" />
<!-- Display the Section and process events. -->
<%
try {
out.write(
abstractAttachmentWEP.processEvents(
"FILE_ATTACHMENT",
"FileList",
userInfo,
request,
response,
delegator,
eventProcessor,
uiCache,
false)
);
} catch (Exception e) {
e.printStackTrace();
}
%>
<script for='newForm' event='onsubmit()' language='JavaScript'>
newAttachment(); return false;
</script>
<script>
Width = 450;
Height = 150;
Left = screen.width/2-Width/2;
Top = screen.height/2-Height/2;
Resizable = 'yes';
Scrollbars = 'no';
Script = '/sfa/control/attachmentEdit';
MainWindow = '0';
Swing = '?';
URL = Script;
function newAttachment() {
formContents = document.newForm.innerHTML;
if ( formContents.indexOf("accountId") >= 0 )
constructURL( "accountId", document.newForm.accountId.value );
if ( formContents.indexOf("contactId") >= 0 )
constructURL( "contactId", document.newForm.contactId.value );
if ( formContents.indexOf("activityId") >= 0 )
constructURL( "activityId", document.newForm.activityId.value );
if ( formContents.indexOf("dealId") >= 0 )
constructURL( "dealId", document.newForm.dealId.value );
if ( formContents.indexOf("productId") >= 0 )
constructURL( "productId", document.newForm.productId.value );
if ( formContents.indexOf("leadId") >= 0 )
constructURL( "leadId", document.newForm.leadId.value );
// constructURL( 'accountId', document.newForm.accountId.value );
// END OF JAVASCRIPT CUSTOMIZATION.
var att = 'width=' + Width + ',height=' + Height + ',scrollbars=' + Scrollbars + ',resizable=' + Resizable + ',top=' + Top + ',Left=' + Left;
var pu = window.open('','PU',att);
pu.location.href = URL;
Swing = '?';
URL = Script;
if((MainWindow == '0') || (MainWindow == 'o') || (MainWindow == 'O') || (MainWindow == '')) { return false; }
if(MainWindow > 0) {
history.go(-MainWindow);
return false;
}
if(MainWindow < 0) {
history.go(MainWindow);
return false;
}
window.location = MainWindow;
return false;
}
function constructURL(n,v) {
v = escape(v);
URL = URL + Swing + n + '=' + v;
Swing = '&';
} //-->
</script>
<%@ include file="/includes/footer.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -