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

📄 content.jsp

📁 OBPM是一个开源
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="ww" uri="webwork"%>
<%@include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>{*[{*[Column info]*}]*}</title>
<link rel="stylesheet"
	href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
	type="text/css"></head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="<ww:url id="url" value='/resourse/main.css'/>"/>
<script src="<ww:url value='/script/list.js'/>"></script>
<script src='<ww:url value="/dwr/engine.js"/>'></script>
<script src='<ww:url value="/dwr/util.js"/>'></script>
<script src='<ww:url value="/dwr/interface/FormHelper.js"/>'></script>
<script src='<ww:url value="/dwr/interface/ConfigUtil.js"/>'></script>
<script src='<ww:url value="/dwr/interface/DWRHtmlUtil.js"/>'></script>
<script src='<ww:url value="/dwr/interface/ApplicationUtil.js"/>'></script>
<script src='<ww:url value="/script/htmlutil.js"/>'></script>
<script src="<ww:url value='/script/util.js'/>"></script>
<body >
<script>
function ev_onchange(val) {
	document.all('appid').style.display='';
	document.all('fftrid').style.display='';
	document.all('vsid').style.display='';
   	if (val=='COLUMNMAPPING_TYPE_FIELD'){
		document.all('vsid').style.display='none';
		
	}
	else if (val=='COLUMNMEPPING_TYPE_SCRIPT') {
	  	document.all('appid').style.display='none';
		document.all('fftrid').style.display='none';
	}
}

function swichLength()
{

  if(document.all('content.toType').value=="Date")
  {
      document.all('disLength').style.display='none';
      document.all('disPrecision').style.display ='none';
  }else if(document.all('content.toType').value=="DECIMAL"){
     document.all('disLength').style.display = '';
     document.all('disPrecision').style.display = '';
     
  } else if(document.all('content.toType').value=="VARCHAR"){
      document.all('disLength').style.display='';
      document.all('disPrecision').style.display ='none';
  }
}
</script>
<ww:form name="columnform" action="save" method="post">
<ww:bean name="cn.myapps.core.dynaform.view.action.ColumnHelper" id="helper" />
<ww:bean name="cn.myapps.core.dynaform.form.action.FormHelper" id="formHelper" >
	<ww:param name="moduleid" value="#parameters.moduleid" />
</ww:bean>

<%@include file="/common/page.jsp"%>
<ww:hidden name="mappingid"/>
<ww:hidden name='mode' value="%{#parameters.mode}" />
<ww:hidden name="s_mappingConfig" value="%{#parameters.mappingid}"/>
<table width="98%" >
		<tr>
			<td width="10" class="image-label"><img
				src="<ww:url value="/resource/image/email2.jpg"/>" /></td>
			<td width="3"></td>
			<td width="90" class="text-label">{*[ColumnMapping]*}</td>
			<td>
			<table width="100%" border=1 cellpadding="0" cellspacing="0" class="line-position" ><tr><td ></td>
				<td class="line-position2" width="60" valign="top">
				<button class="button-image" onClick="forms[0].action='<ww:url action="save"></ww:url>';forms[0].submit();"><img src="<ww:url value="/resource/image/save.gif"/>">{*[Save]*}</button>
				</td>
				<td class="line-position2" width="70" valign="top">
				<button class="button-image" onClick="forms[0].action='<ww:url action="list"></ww:url>';forms[0].submit();"><img src="<ww:url value="/resource/image/back.gif"/>">{*[Exit]*}</button>
				</td>
			</tr></table>
			</td>
		</tr>
	</table>
		<ww:if test="hasFieldErrors()">
	<span class="errorMessage"> <b>Errors:</b><br>
	<ww:iterator value="fieldErrors">
		*<ww:property value="value[0]" />;
	</ww:iterator> </span>
</ww:if>
<table>
	<tr><td class="commFont">Type:</td><td> &nbsp;&nbsp;<ww:radio  name="content.type" theme="simple" list="_COLMAPTYPE" onclick="ev_onchange(this.value)" /></td></tr>
	<tr>
	<td colspan="2">
	 <div id="appid" >
	   <table>
	
	   <tr id="moid"><td class="commFont">Module:</td><td><ww:select  theme="simple" label="Module" name="_moduleid" list="{}" /></td></tr>
	   <tr><td class="commFont">Form:</td><td><ww:select   theme="simple" label="Form" name="_formid" list="{}" /></td></tr>
	  	</table></div>
	  	</td>
	  	</tr>
	<tr id='fftrid' >
	    <td class="commFont">{*[Field]*}:</td>
		<td>
			&nbsp;&nbsp;<ww:select label="Field" name="content.fromName" list="{}" emptyOption="true" theme="simple" />
		</td>
	</tr>
	<tr id="vsid" style="display:none"><td class="commFont">{*[Vaule script]*}:</td>
		<td>
			&nbsp;&nbsp;<ww:textarea  cssClass="input-cmd" label="{*[Vaule script]*}" name="content.valuescript" cols="40" rows="5" theme="simple"/>
		</td></tr>
	<tr>
	    <td class="commFont">{*[ToName]*}:</td><td>&nbsp;&nbsp;<ww:textfield  cssClass="input-cmd" theme="simple" name="content.toName" /></td>
	    </tr>	
	    <tr><td class="commFont">ToType:</td><td>&nbsp;&nbsp;<ww:select theme="simple" onchange="swichLength()" name="content.toType" list="_TOTYPE" emptyOption="true" /></td></tr>
	    <tr id="disLength"><td class="commFont">{*[Length]*}:</td><td >&nbsp;&nbsp;<ww:textfield cssClass="input-cmd"  name="content.length" theme="simple"/></td></tr>
	   <tr id="disPrecision" style="display:none"><td class="commFont">{*[Precision]*}:</td><td >&nbsp;&nbsp;<ww:textfield cssClass="input-cmd"  name="content.precision" theme="simple"/></td></tr>
    </table>	    
</ww:form>

</body>
<script>
//ev_init('content.formid','content.fromName');
swichLength();
var tempvalue='';
  for (var i=0;i<document.forms[0].elements.length;i++){  
		var e=document.forms[0].elements[i];		
		if ((e.type=='radio')&&e.checked){  
				 tempvalue = e.value;
			}	 
			
  		}
  if(tempvalue!=''&&tempvalue=='COLUMNMEPPING_TYPE_SCRIPT')
  {
       document.all('vsid').style.display='';
	   document.all('fftrid').style.display='none';
		document.all('appid').style.display='none';
  }
  ev_select('_moduleid','_formid','content.fromName');
    function ev_select(module,form,formName)
{


var mv = document.all(module).value;
var fv = document.all(form).value;
var fnv = document.all(formName).value;
var mode = '<ww:property value="#parameters.mode" />';
if (mode == 'module'){
	document.all('moid').style.display='none';
}

if (document.all(form).value=='') {
	fv = '<ww:property value="_formid"/>'
}
if (document.all(module).value=='') {
	mv = '<ww:property value="_moduleid"/>';
}
if(document.all(formName).value=='')
{
   fnv = '<ww:property value="content.fromName"/>';
}

else if (document.all(module).value==''){
 	mv = 'none';
	fv = 'none';
	fnv = 'none';
}

var func = new Function("ev_select('"+module+"','"+form+"','"+formName+"')");
document.all(module).onchange = func;
document.all(form).onchange = func;

ApplicationUtil.creatModule(module,'<ww:property value="#session.APPLICATION"/>',mv,function(str) {var func=eval(str);func.call()}); 
ApplicationUtil.creatForm(form,'<ww:property value="#session.APPLICATION"/>',mv,fv,function(str) {var func=eval(str);func.call()});
FormHelper.creatFormfieldOptionsByApplicationAndModule(formName,'<ww:property value="#session.APPLICATION"/>',mv,fv,fnv,function(str) {var func=eval(str);func.call()});

}
  </script>
</html>

⌨️ 快捷键说明

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