📄 frontpage_jsp.java
字号:
Calendar cal = Calendar.getInstance();
ArrayList list = new ArrayList();
list.add(new EntityExpr("leadOwnerId", EntityOperator.EQUALS, ownerId));
list.add(new EntityExpr("statusId", EntityOperator.NOT_EQUAL, "50")); // Not converted
list.add(new EntityExpr("statusId", EntityOperator.NOT_EQUAL, "60")); // Not lost
ArrayList order = new ArrayList();
order.add("createdDate DESC");
List leadList = delegator.findByAnd("Lead", list, order);
return (GenericValue[])leadList.toArray(new GenericValue[0]);
}
GenericValue[] getDailyActivities(String ownerId, Calendar selectedDayCalendar, GenericDelegator delegator) throws GenericEntityException {
ArrayList list = new ArrayList();
list.add(new EntityExpr("activityOwnerId", EntityOperator.EQUALS, ownerId));
list.add(new EntityExpr("openDate", EntityOperator.EQUALS, new java.sql.Date(selectedDayCalendar.getTime().getTime())));
ArrayList order = new ArrayList();
order.add("openDate");
order.add("openStartTime");
List activityList = delegator.findByAnd("Activity", list, order);
return (GenericValue[])activityList.toArray(new GenericValue[0]);
}
GenericValue[] getIncompleteActivities(String ownerId, GenericDelegator delegator) throws GenericEntityException {
ArrayList list = new ArrayList();
list.add(new EntityExpr("activityOwnerId", EntityOperator.EQUALS, ownerId));
list.add(new EntityExpr("statusId", EntityOperator.NOT_EQUAL, "30")); // Not declined
list.add(new EntityExpr("statusId", EntityOperator.NOT_EQUAL, "50")); // Not On Hold
list.add(new EntityExpr("statusId", EntityOperator.NOT_EQUAL, "60")); // Not Canceled
list.add(new EntityExpr("statusId", EntityOperator.NOT_EQUAL, "70")); // Not Done
ArrayList order = new ArrayList();
order.add("openDate");
order.add("openStartTime");
List activityList = delegator.findByAnd("Activity", list, order);
return (GenericValue[])activityList.toArray(new GenericValue[0]);
}
private static java.util.Vector _jspx_includes;
static {
_jspx_includes = new java.util.Vector(13);
_jspx_includes.add("/includes/header.jsp");
_jspx_includes.add("/includes/oldFunctions.jsp");
_jspx_includes.add("/includes/oldDeclarations.jsp");
_jspx_includes.add("/includes/windowTitle.jsp");
_jspx_includes.add("/includes/userStyle.jsp");
_jspx_includes.add("/includes/uiFunctions.js");
_jspx_includes.add("/includes/onBeforeUnload.jsp");
_jspx_includes.add("/includes/ts_picker.js");
_jspx_includes.add("/includes/errormsg.jsp");
_jspx_includes.add("/includes/simpleActivityList.jsp");
_jspx_includes.add("/includes/simpleActivityList.jsp");
_jspx_includes.add("/includes/loginForm.jsp");
_jspx_includes.add("/includes/footer.jsp");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_ofbiz_url;
public frontPage_jsp() {
_jspx_tagPool_ofbiz_url = new org.apache.jasper.runtime.TagHandlerPool();
}
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspDestroy() {
_jspx_tagPool_ofbiz_url.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=ISO-8859-1");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n\r\n");
out.write("\r\n\r\n");
org.ofbiz.security.Security security = null;
synchronized (application) {
security = (org.ofbiz.security.Security) pageContext.getAttribute("security", PageContext.APPLICATION_SCOPE);
if (security == null){
throw new java.lang.InstantiationException("bean security not found within scope");
}
}
out.write("\r\n");
org.ofbiz.entity.GenericDelegator delegator = null;
synchronized (application) {
delegator = (org.ofbiz.entity.GenericDelegator) pageContext.getAttribute("delegator", PageContext.APPLICATION_SCOPE);
if (delegator == null){
throw new java.lang.InstantiationException("bean delegator not found within scope");
}
}
out.write("\r\n");
com.sourcetap.sfa.event.GenericWebEventProcessor webEventProcessor = null;
synchronized (application) {
webEventProcessor = (com.sourcetap.sfa.event.GenericWebEventProcessor) pageContext.getAttribute("webEventProcessor", PageContext.APPLICATION_SCOPE);
if (webEventProcessor == null){
try {
webEventProcessor = (com.sourcetap.sfa.event.GenericWebEventProcessor) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.sourcetap.sfa.event.GenericWebEventProcessor");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "com.sourcetap.sfa.event.GenericWebEventProcessor", exc);
}
pageContext.setAttribute("webEventProcessor", webEventProcessor, PageContext.APPLICATION_SCOPE);
}
}
out.write("\r\n");
com.sourcetap.sfa.event.GenericEventProcessor eventProcessor = null;
synchronized (application) {
eventProcessor = (com.sourcetap.sfa.event.GenericEventProcessor) pageContext.getAttribute("eventProcessor", PageContext.APPLICATION_SCOPE);
if (eventProcessor == null){
try {
eventProcessor = (com.sourcetap.sfa.event.GenericEventProcessor) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.sourcetap.sfa.event.GenericEventProcessor");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "com.sourcetap.sfa.event.GenericEventProcessor", exc);
}
pageContext.setAttribute("eventProcessor", eventProcessor, PageContext.APPLICATION_SCOPE);
}
}
out.write("\r\n");
com.sourcetap.sfa.ui.UICache uiCache = null;
synchronized (application) {
uiCache = (com.sourcetap.sfa.ui.UICache) pageContext.getAttribute("uiCache", PageContext.APPLICATION_SCOPE);
if (uiCache == null){
try {
uiCache = (com.sourcetap.sfa.ui.UICache) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.sourcetap.sfa.ui.UICache");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "com.sourcetap.sfa.ui.UICache", exc);
}
pageContext.setAttribute("uiCache", uiCache, PageContext.APPLICATION_SCOPE);
}
}
out.write("\r\n\r\n");
out.write("<!-- [oldFunctions.jsp] Begin -->\r\n");
out.write("\r\n");
out.write("<!-- [oldFunctions.jsp] End -->\r\n\r\n");
out.write("\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -