⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notelist.jsp

📁 国外的一套开源CRM
💻 JSP
字号:
<%@ include file="/includes/header.jsp" %>
<%@ page import="com.sourcetap.sfa.account.*" %>
<jsp:useBean id="abstractNoteEP" class="com.sourcetap.sfa.note.AbstractNoteEP" scope="application" />
<jsp:useBean id="abstractNoteWEP" class="com.sourcetap.sfa.note.AbstractNoteWEP" scope="application" />

<!-- Display the Section and process events. -->

<%
try {
	out.write(
		abstractNoteWEP.processEvents(
			"NOTE_ATTACHMENT",
			"NoteList",
			userInfo,
			request,
			response,
			delegator,
			abstractNoteEP,
			uiCache,
			false)
		);
} catch (Exception e) {
	e.printStackTrace();
}
%>

<script for='newForm' event='onsubmit()' language='JavaScript'>
	newNote(); return false;
</script>

<script>

Width = 600;
Height = 300;
Left = screen.width/2-Width/2;
Top = screen.height/2-Height/2;
Resizable = 'yes';
Scrollbars = 'no';
Script = '/sfa/control/noteEditPopup';
MainWindow = '0';


Swing = '?';
URL = Script;

function newNote() {

	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('','notePopup',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 + '&action=showInsert';
	Swing = '&';
} //-->
</script>







<%@ include file="/includes/footer.jsp" %>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -