📄 detailedit.jsp
字号:
<%@ page contentType = "text/html;charset=GBK"%>
<%@ taglib uri="/WEB-INF/tag.tld" prefix="tag" %>
<%@ page import="cn.com.juneng.system.common.COMMON"%>
<%@ page import="cn.com.juneng.system.vo.QueryDetailVOImpl"%>
<link href="<%=request.getContextPath()%>/css/commonPage.css" rel="stylesheet" type="text/css">
<script type='text/javascript' language='JavaScript' src='<%=request.getContextPath()%>/js/COMMON.js'></script>
<script type='text/javascript' language='JavaScript' src='<%=request.getContextPath()%>/js/calendar.js'></script>
<script>
function setContent(){
if(form1.inputContent.value==""){
form1.inputContent.value="<input type=\"text\" value=\""+form1.defaultValue.value+"\" name=\""+form1.queryColumn.value+"\" id=\""+form1.queryColumn.value+"\">";
}
}
function getGroup(){
var tree = new Tree();
//tree.setTreeType("SYS_ORG");
tree.setTreeName("系统角色");
tree.setSql("select role_id as nodeid,role_name as nodename,'0' as parentid from sys_role");
tree.setSelectType("checkbox");
var nodes = getValues(tree);
if(nodes!=null){
alert(nodes[0]);
setValue("fillGroup",nodes[0]);
setValue("fillGroupName",nodes[1]);
}
}
</script>
<%
QueryDetailVOImpl vo = (QueryDetailVOImpl)request.getAttribute("VO");
%>
<table >
<tr>
<td class="tHeading"><div align='center'><b>查询条件<%=vo.isReadonly()?"":".编辑"%></b></div></td>
</tr>
<%
if(request.getAttribute("Error")!=null){%>
<tr>
<td ><font color='red'><%=request.getAttribute("Error")%></font></td>
</tr>
<%}%>
</table>
<form name="form1" action="<tag:attr source="ActionUrl" />" method="post">
<input type="hidden" name="readonly" value="<tag:attr source="VO" attr="readonly" />">
<input type="hidden" name="currentPage" value="<tag:attr source="VO" attr="currentPage" />">
<input type="hidden" name="actionType" value="<tag:attr source="VO" attr="actionType" />">
<input type="hidden" name="queryDetailId" value="<tag:attr source="VO" attr="queryDetailId" />">
<input type="hidden" name="queryId" value="<tag:attr source="VO" attr="queryId" />">
<table <%=COMMON.TABLE_STYLE %> >
<tr>
<td class="list_condition_td_title" width="20%">条件描述</td>
<td class="list_condition_td_input" width="30%"><input type="text" required='true' name="detailDesc" value="<tag:attr source="VO" attr="detailDesc" />"></td>
<td class="list_condition_td_title" width="15%">对应数据库列</td>
<td class="list_condition_td_input" width="35%"><input type="text" required='true' name="queryColumn" value="<tag:attr source="VO" attr="queryColumn" />"></td>
</tr>
<tr>
<td class="list_condition_td_title">查询输入项</td>
<td class="list_condition_td_input" colspan='3'>
<textarea name="inputContent" style="width:100%" rows=3 required='true' onfocus="setContent()" ><tag:attr source="VO" attr="inputContent" /></textarea>
</tr>
<tr>
<!--
<td class="list_condition_td_title">风格</td>
<td class="list_condition_td_input" ><input type="text" name="columnStyle" value="<tag:attr source="VO" attr="columnStyle" />"></td>
-->
<td class="list_condition_td_title">匹配方式</td>
<td class="list_condition_td_input" >
<tag:dic name="condition" value="<%=vo.getCondition()==null?"like":vo.getCondition() %>" kind="029" showType="select" attr="required='true'"/>
</td>
<td class="list_condition_td_title">默认值</td>
<td class="list_condition_td_input" ><input type="text" name="defaultValue" value="<tag:attr source="VO" attr="defaultValue" />"></td>
</tr>
<tr>
<td class="list_condition_td_title">是否必填项</td>
<td class="list_condition_td_input" >
<tag:dic name="isNeed" value="<%=vo.getIsNeed()==null?"0":vo.getIsNeed() %>" kind="002" showType="radio" attr="required='true'"/>
</td>
<td class="list_condition_td_title">权限组</td>
<td class="list_condition_td_input" >
<textarea name="fillGroupName" readonly cols=30 rows=3><tag:attr source="VO" attr="fillGroupName" /></textarea>
<input type="hidden" name="fillGroup" value="<tag:attr source="VO" attr="fillGroup" />">
<br><input type=button value="选择" onclick="getGroup()">
<input type=button value="清除" onclick="form1.fillGroupName.value='';form1.fillGroup.value='';">
</td>
</tr>
<tr>
<td class="list_condition_td_title">对应用户属性</td>
<td class="list_condition_td_input" ><input type="text" name="userProperty" value="<tag:attr source="VO" attr="userProperty" />"></td>
<td class="list_condition_td_title">显示顺序</td>
<td class="list_condition_td_input" ><input type="text" name="detailPos" value="<tag:attr source="VO" attr="detailPos" />"></td>
</tr>
</table><br>
<%if(!vo.isReadonly()){%><input type=submit id="s_button" ACCESSKEY="S" title="【CTRL+S】或者【ALT+S】快速存盘" value="保存" onclick="return CheckForm(form1)"><%}%>
<input type=button value="返回" onclick='back()'>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -