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

📄 selectbycndt.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ 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" %>
<%@ page import="com.cyberway.framework.web.WebUser"%>
<%@ page import="com.cyberway.constants.Web"%>
<%@ page import="com.cyberway.dynaform.document.ejb.Document"%>
<%@ page import="com.cyberway.dynaform.form.ejb.FormField"%>
<%@ page import="com.cyberway.dynaform.form.ejb.Form"%>
<%@ page import="com.cyberway.cms.util.CMSCommonUtil"%>
<%@ page import="com.cyberway.utility.CommonUtil,com.cyberway.billflow.engine.FlowState"%>
<%
String contextPath = request.getContextPath();
String headText = (String)request.getAttribute("LIST_HEAD_STRING");
headText = headText!=null ? headText : "";



WebUser user = (WebUser)session.getAttribute(Web.SESSION_ATTRIBUTE_USER);

long channelid = Long.parseLong(request.getParameter("channelid"));
long defipk = CMSCommonUtil.getFlowidByChannel(channelid);
String formname = CMSCommonUtil.getFormtemplateByChannel(channelid);

%>
<html:html>
<head>
<title>  <s:Language key="typelist"/> </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="<%= contextPath %>/css/css.jsp" type="text/css">
<script src="<%= contextPath %>/js/billlist.js"></script>
<script src="<%= contextPath %>/js/util.js"></script>
<script src="<%= contextPath %>/js/select.js"></script>
<script src="<%= contextPath %>/js/xml.js"></script>
<script language="JavaScript">
var contextPath = '<%= contextPath %>';

function selectOne(value) {
  top.window.returnValue = value;
  top.window.close();
}
function ev_check() {
  return true;
}
function ev_resetForm() {
  resetForm();
}
</script>
</head>
<xml id="myXML"></xml>
<body color=black>
<style>
body { font-size: 10pt;	margin-left: 0px; margin-top: 0px;font-family: "<s:Language key='songti'/>"; scrollbar-base-color: #B6F48F;	scrollbar-arrow-color: #ffffff;	text-align: center;}
</style>
<html:form styleId="formList" method="post" action="/dynaform/document/selectByCndt.do">
<html:hidden property="_orderby"/>
<html:hidden property="_desc"/>
<html:hidden property="_currpage"/>
<html:hidden property="_pagelines"/>
<input type="hidden" name="cndt" value="<c:out value="${param.cndt}"/>">
<input type="hidden" name="orderby1" value="<c:out value="${param.orderby1}"/>">
<input type="hidden" name="orderby2" value="<c:out value="${param.orderby2}"/>">
<input type="hidden" name="orderby3" value="<c:out value="${param.orderby3}"/>">
<input type="hidden" name="_rowcount" value="<c:out value='${requestScope.LIST.rowCount}' />">
<input type="hidden" name="channelid" value="<%=request.getParameter("channelid")%>">
<table class="list-table" border="0" cellpadding="4" cellspacing="0" width="100%">
  <tr>
    <td class="list-srchbar">
    <%System.out.println("lgc--------->"+headText);%>
<%=headText%>

             <input type='submit' name='btnQuery' value='<s:Language key="query"/>' class='bt' onClick='resetPage();'>&nbsp;
     <input type="button" name="btnReset" value="<s:Language key="reset"/>" class="bt" onclick="ev_resetForm()">&nbsp;
    </td>
    <td class="list-srchbar" align="right">
     <input type="button" class="btcss" onclick="doExit()" value="<s:Language key="cancel"/>">
		  <input type="button" class="btcss" onclick="doEmpty()" value="<s:Language key="clear"/>">
    </td>
  </tr>
  <tr>
    <td colspan="2" align="right"><s:PageNav dpName="LIST"/></td>
  </tr>
  <tr>
    <td colspan="2" class="list-datas"> 
	  <table class="list-datas-table" border="0" cellpadding="0" cellspacing="1">
        <tr class="row-hd">
          
          <c:forEach var="field" items="${requestScope.FIELDLIST}">
		    <%
				FormField formfield = (FormField) pageContext.getAttribute("field");
				String fieldname = formfield.getName();
				String fieldtype = formfield.getFieldtype();
	  			String ordertag = fieldtype + "@" + fieldname;
			%>
		    <td width="100px"  class="dytable-col" nowrap><a href="javascript:doOrderby('<c:out value='${field.fieldtype}'/>@<c:out value='${field.name}'/>')"><font color="#FFFFFF"><c:out value="${field.name}"/></font></a><s:OrderImg form="ParamsTableWrapForm" field="<%=ordertag%>"/></td>
          </c:forEach>
        </tr>
        <c:forEach var="item" items="${requestScope.LIST.datas}">
         <%
      Document documentVO = (Document) pageContext.getAttribute("item");
      long id = documentVO.getId();
      //String url = "/dynaform/document/view.do?id="+id + "&formname=" + formname;
      //String writers = "";
      //if(!documentVO.getState().equals("5")){
      //  writers = CommonUtil.getWriterNames(id);
     // }
    %>
        <tr class="row-content">        
		  <a href="javascript:selectOne('<c:out value='${item.id}'/>;<c:out value='${item._brief}'/>')">
          
          <c:forEach var="field" items="${requestScope.FIELDLIST}" varStatus="status">
		  <%
			String fieldvalue = "";
			
			FormField formfield = (FormField) pageContext.getAttribute("field");
			String fieldname = formfield.getName();

			if(documentVO!=null&&fieldname!=null&&fieldname.length()>0)
			fieldvalue = documentVO.getItemValueAsString(fieldname);
		   %>
          <td class="dytable-cell" nowrap>
            <c:if test="${status.count eq '1'}">
            <a href="javascript:selectOne('<c:out value='&{item.id}'/>;<c:out value='${item._brief}'/>')">
            <%
              if(fieldvalue == null || fieldvalue.length() <= 0){
									fieldvalue = "null";
				       }
            %>
            </c:if>
            <%=fieldvalue%>
		    <c:if test="${status.count eq '1'}">
		    </c:if></td></a>
			
          
          </c:forEach>
		  </a>
		</tr>
        </c:forEach> 
	  </table>
	</td>
  </tr>
     <tr>
      <td height="25" colspan="2" bgcolor="#FFFFFF" align="right"><s:PageNav dpName="LIST"/></td>
   </tr>
</table>
</html:form>
</body>
</html:html>

⌨️ 快捷键说明

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