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

📄 explore.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="com.cyberway.dynaform.form.ejb.Form"%>
<%@ page import="com.cyberway.framework.web.WebUser"%>
<%@ page import="com.cyberway.web.ParamsTable"%>
<%@ page import="com.cyberway.constants.Web"%>
<%@ page import="com.cyberway.dynaform.document.web.DocumentForm"%>
<%@ page import="com.cyberway.dynaform.document.ejb.Document"%>
<%@ page import="com.cyberway.dynaform.form.ejb.ValidateMessage"%>
<%@ page import="java.util.Collection"%>
<%@ page import="java.util.Iterator"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/smartweb" prefix="s" %>
<%
String contextPath = request.getContextPath();
String formname = request.getParameter("formname");

Document document = null;
Form template = (Form)request.getAttribute("TEMPLATE");
DocumentForm documentForm = (DocumentForm)request.getAttribute("DocumentForm");

if (documentForm!=null){
	 document = (Document)documentForm.getValueObject();
	 formname = document.getFormname();
}

String Pagetitle = template.getPagetitle();
String Pagecss = template.getPagecss();

Pagetitle = (Pagetitle!=null) ? Pagetitle : "";
Pagecss = (Pagecss!=null) ? Pagecss : "";
%>

<head>
<title><%=Pagetitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script src="<%= contextPath %>/js/billitem.js"></script>
<script src="<%= contextPath %>/js/check.js"></script>
<script src="<%= contextPath %>/js/util.js"></script>
<script src="<%= contextPath %>/js/xml.js"></script>
<script src="<%= contextPath %>/js/select.js"></script>
<link rel="stylesheet" href="<%=contextPath%><%=Pagecss%>" type="text/css" rel="stylesheet">
</head>
<script>
function doPrint2(){
  parent.window.frames['_content'].focus();
  try{
	  topbutton.style.display = 'none';
  }catch(ex){}
  parent.window.frames['_content'].print();
  try{
	  topbutton.style.display = '';
  }catch(ex){}
}

 function doPrintView()
{
	var OLECMDID = 7;
	/* OLECMDID values:
	* 6 - print
	* 7 - print preview
	* 1 - open window
	* 4 - Save As
	*/

  parent.window.frames['_content'].focus();
  topbutton.style.display= "none";
	var PROMPT = 1; // 2 DONTPROMPTUSER 
//	var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
//	document.body.insertAdjacentHTML("beforeEnd", WebBrowser); 
	WebBrowser1.ExecWB(OLECMDID, PROMPT);
	//WebBrowser1.outerHTML = "";
  
	
  //parent.window.frames['_content'].print();
	topbutton.style.display= "";

}
</script>
<xml id="myXML"></xml>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="try{bodyOnload()}catch(ex){}">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="topbutton">
  <tr>
    <td align="left" valign="middle" height="40"> &nbsp;
   <input type="button" name="btnPrint" value="<s:Language key="print"/>" class="bt-print" onclick="doPrint2()">

   <input type="button" name="btnReturn" value="<s:Language key="return"/>" class="bt-exit" onclick="javascript:history.back(-1)" >
   </td>
  </tr>
</table>
<%
Collection errors = (Collection)request.getAttribute("ERRORS");
System.out.println("******************error->"+errors);
	if (errors != null && errors.size() > 0){
		System.out.println("******************error:");
        	Iterator iter = errors.iterator();
        	while(iter.hasNext()) {
	        	ValidateMessage error = (ValidateMessage)iter.next();
	        	System.out.println(error.getErrmessage());
        	}
	}
ParamsTable params = ParamsTable.convertHTTP(request);
WebUser user = (WebUser)session.getAttribute(Web.SESSION_ATTRIBUTE_USER);
out.print(template.toHtml(document, params, user, errors));
%>
</body>

⌨️ 快捷键说明

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