提交 c9ad4d48 编写于 作者: zhouweidong's avatar zhouweidong

实体行为参数

上级 7fdcdba8
...@@ -2002,40 +2002,40 @@ ${deaction.getRender().code} ...@@ -2002,40 +2002,40 @@ ${deaction.getRender().code}
<#comment>实体行为参数</#comment> <#comment>实体行为参数</#comment>
<#macro addDEActionParam deaction> <#macro addDEActionParam deaction>
<#if deaction.getParamMode?? && deaction.getParamMode()?? && deaction.getPSDEActionParams()??> <#if deaction.getParamMode?? && deaction.getParamMode()?? && deaction.getPSDEActionParams()??>
<#list deaction.getPSDEActionParams() as actionParam> <#list deaction.getPSDEActionParams() as actionParam>
<#assign actionParamValue="null"> <#assign actionParamValue="null">
<#assign targetFieldName="null"> <#assign targetFieldName="null">
<#if actionParam.getValueType()=='SESSION' || actionParam.getValueType()=='PARAM'|| actionParam.getValueType()=='CONTEXT'> <#if actionParam.getValueType()=='SESSION' || actionParam.getValueType()=='PARAM'|| actionParam.getValueType()=='CONTEXT'>
<#assign targetFieldName=actionParam.getValue()> <#assign targetFieldName=actionParam.getValue()>
<#if de.getPSDEField(targetFieldName,true)??> <#if de.getPSDEField(targetFieldName,true)??>
<#assign targetFieldName=srfcaseformat(de.getPSDEField(targetFieldName,true).getCodeName(),'l_u2lC')> <#assign targetFieldName=srfcaseformat(de.getPSDEField(targetFieldName,true).getCodeName(),'l_u2lC')>
</#if>
</#if>
<#assign actionParamFieldCodeName=actionParam.getPSDEField().codeName>
<#if actionParam.getValueType()=='VALUE'><#comment>指定值</#comment>
<#assign actionParamValue="\""+actionParam.getValue()+"\"">
<#elseif actionParam.getValueType()=='PARAM'><#comment>数据对象属性</#comment>
<#assign actionParamValue="et.get(\""+targetFieldName?lower_case+"\")">
<#elseif actionParam.getValueType()=='NULLVALUE'><#comment>空值</#comment>
<#elseif actionParam.getValueType()=='SESSION'><#comment>用户全局对象</#comment>
<#assign actionParamValue=pub.getPKGCodeName()+".util.security.AuthenticationUser.getAuthenticationUser().getSessionParams().get(\""+targetFieldName?lower_case+"\")">
<#elseif actionParam.getValueType()=='APPLICATION'><#comment>系统全局对象</#comment>
<#elseif actionParam.getValueType()=='UNIQUEID'><#comment>唯一编码</#comment>
<#assign actionParamValue="et.getDefaultKey(true)">
<#elseif actionParam.getValueType()=='CONTEXT'><#comment>网页请求</#comment>
<#assign actionParamValue="et.getExtensionparams().get(\""+targetFieldName?lower_case+"\")">
<#elseif actionParam.getValueType()=='OPERATOR'><#comment>当前操作用户(编号)</#comment>
<#assign actionParamValue=pub.getPKGCodeName()+".util.security.AuthenticationUser.getAuthenticationUser().getUserid()">
<#elseif actionParam.getValueType()=='OPERATORNAME'><#comment>当前操作用户(名称)</#comment>
<#assign actionParamValue=pub.getPKGCodeName()+".util.security.AuthenticationUser.getAuthenticationUser().getPersonname()">
<#elseif actionParam.getValueType()=='CURTIME'><#comment>当前时间</#comment>
<#assign actionParamValue="new Timestamp(new Date().getTime())">
<#elseif actionParam.getValueType()=='APPDATA'><#comment>当前应用数据</#comment>
</#if> </#if>
et.set("${actionParamFieldCodeName}",${actionParamValue}); </#if>
</#list> <#assign actionParamFieldCodeName=actionParam.getPSDEField().codeName>
</#if> <#if actionParam.getValueType()=='VALUE'><#comment>指定值</#comment>
<#assign actionParamValue="\""+actionParam.getValue()+"\"">
<#elseif actionParam.getValueType()=='PARAM'><#comment>数据对象属性</#comment>
<#assign actionParamValue="et.get(\""+targetFieldName?lower_case+"\")">
<#elseif actionParam.getValueType()=='NULLVALUE'><#comment>空值</#comment>
<#elseif actionParam.getValueType()=='SESSION'><#comment>用户全局对象</#comment>
<#assign actionParamValue=pub.getPKGCodeName()+".util.security.AuthenticationUser.getAuthenticationUser().getSessionParams().get(\""+targetFieldName?lower_case+"\")">
<#elseif actionParam.getValueType()=='APPLICATION'><#comment>系统全局对象</#comment>
<#elseif actionParam.getValueType()=='UNIQUEID'><#comment>唯一编码</#comment>
<#assign actionParamValue="et.getDefaultKey(true)">
<#elseif actionParam.getValueType()=='CONTEXT'><#comment>网页请求</#comment>
<#assign actionParamValue="et.getExtensionparams().get(\""+targetFieldName?lower_case+"\")">
<#elseif actionParam.getValueType()=='OPERATOR'><#comment>当前操作用户(编号)</#comment>
<#assign actionParamValue=pub.getPKGCodeName()+".util.security.AuthenticationUser.getAuthenticationUser().getUserid()">
<#elseif actionParam.getValueType()=='OPERATORNAME'><#comment>当前操作用户(名称)</#comment>
<#assign actionParamValue=pub.getPKGCodeName()+".util.security.AuthenticationUser.getAuthenticationUser().getPersonname()">
<#elseif actionParam.getValueType()=='CURTIME'><#comment>当前时间</#comment>
<#assign actionParamValue="new java.sql.Timestamp(new java.util.Date().getTime())">
<#elseif actionParam.getValueType()=='APPDATA'><#comment>当前应用数据</#comment>
</#if>
et.set("${actionParamFieldCodeName}",${actionParamValue});
</#list>
</#if>
</#macro> </#macro>
</#if> </#if>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册