<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css"
href="<%=path%>/resource/css/style.css">
<link rel="stylesheet" type="text/css"
href="<%=path%>/resource/css/jsppage.css">
<script type="text/javascript" src="<%=path%>/js/unibss3.js"></script>
<script type="text/javascript" src="<%=path%>/js/jsppage.js"></script>
<script type="text/javascript">
function selectOk(id,text){
document.getElementById("v1:detail:subForm:organization_id").value = id;
document.getElementById("v1:detail:subForm:ssxq").value = text;
return true;
}
</script>
</head>
<body>
<f:subview id="detail">
<%--h:form 用于所有提交按钮 --%>
<h:form id="subForm">
<table style="width: 98%" border="0" cellspacing="0"
cellpadding="10">
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="单位名称"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:panelGroup>
<h:inputText id="name" value="#{splicence.entity.name}"
requiredMessage="单位名称不能为空" required="true">
<rich:toolTip event="onmouseover" followMouse="true"
for="name" mode="client" styleClass="tooltip" layout="block"
showDelay="1000">
<span style="white-space: nowrap">单位名称不能为空</span>
</rich:toolTip>
</h:inputText>
<font color="red">*</font>
<rich:message for="name" tooltip="true"
errorLabelClass="messageLabel-css" style="width:16px;">
<f:facet name="errorMarker">
<a4j:outputPanel>
<h:graphicImage value="/resource/images/ajax/error.gif" />
<rich:toolTip showDelay="300" style="width:200px"
οnshοw="showValidationMessage2(this);" styleClass="tooltip"
layout="block">
<h:outputText value="" style="color:red" />
</rich:toolTip>
</a4j:outputPanel>
</f:facet>
</rich:message>
</h:panelGroup>
</td>
<td class="border-bottom-css nowrap-css">
所属辖区
</td>
<td class="border-bottom-css nowrap-css">
<h:panelGroup>
<h:inputHidden id="organization_id"
value="#{splicence.entity.area.orgId}"></h:inputHidden>
<h:inputText οnfοcus="this.blur()" id="ssxq" value="#{splicence.entity.area.orgName}" requiredMessage="所属辖区不能为空" required="true">
<rich:toolTip event="onmouseover" followMouse="true"
for="ssxq" mode="client" styleClass="tooltip" layout="block"
showDelay="1000">
<span style="white-space: nowrap">所属辖区不能为空</span>
</rich:toolTip>
</h:inputText>
<h:commandLink id="commandLinkid"
οnclick="Richfaces.showModalPanel('panelFilter');return false;">
<h:graphicImage
url="/ext/resources/images/default/tree/leaf.gif"></h:graphicImage>
</h:commandLink>
<font color="red">*</font>
<rich:message for="ssxq" tooltip="true"
errorLabelClass="messageLabel-css" style="width:16px;">
<f:facet name="errorMarker">
<a4j:outputPanel>
<h:graphicImage value="/resource/images/ajax/error.gif" />
<rich:toolTip showDelay="300" style="width:200px"
οnshοw="showValidationMessage2(this);" styleClass="tooltip"
layout="block">
<h:outputText value="" style="color:red" />
</rich:toolTip>
</a4j:outputPanel>
</f:facet>
</rich:message>
</h:panelGroup>
</td>
</tr>
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="类别"></h:outputText>
</td>
<td align="left" width="170" class="border-bottom-css nowrap-css">
<h:panelGroup>
<h:selectOneMenu id="type" value="#{splicence.entity.type}"
styleClass="input" style="width:150px" requiredMessage="类别不能为空" required="true">
<rich:toolTip event="onmouseover" followMouse="true"
for="type" mode="client" styleClass="tooltip" layout="block"
showDelay="1000">
<span style="white-space: nowrap">类别不能为空</span>
</rich:toolTip>
<f:selectItem itemValue="" itemLabel="--请选择--" />
<f:selectItems value="#{splicence.typeList}"/>
</h:selectOneMenu>
<font color="red">*</font>
<rich:message for="type" tooltip="true"
errorLabelClass="messageLabel-css" style="width:16px;">
<f:facet name="errorMarker">
<a4j:outputPanel>
<h:graphicImage value="/resource/images/ajax/error.gif" />
<rich:toolTip showDelay="300" style="width:200px"
οnshοw="showValidationMessage2(this);" styleClass="tooltip"
layout="block">
<h:outputText value="" style="color:red" />
</rich:toolTip>
</a4j:outputPanel>
</f:facet>
</rich:message>
</h:panelGroup>
</td>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="电话"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:panelGroup>
<h:inputText id="tel" value="#{splicence.entity.tel}"
requiredMessage="电话不能为空" required="true">
<rich:toolTip event="onmouseover" followMouse="true"
for="tel" mode="client" styleClass="tooltip" layout="block"
showDelay="1000">
<span style="white-space: nowrap">电话不能为空</span>
</rich:toolTip>
</h:inputText>
<font color="red">*</font>
<rich:message for="tel" tooltip="true"
errorLabelClass="messageLabel-css" style="width:16px;">
<f:facet name="errorMarker">
<a4j:outputPanel>
<h:graphicImage value="/resource/images/ajax/error.gif" />
<rich:toolTip showDelay="300" style="width:200px"
οnshοw="showValidationMessage2(this);" styleClass="tooltip"
layout="block">
<h:outputText value="" style="color:red" />
</rich:toolTip>
</a4j:outputPanel>
</f:facet>
</rich:message>
</h:panelGroup>
</td>
</tr>
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="法定代表人"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:panelGroup>
<h:inputText id="chargeman" value="#{splicence.entity.chargeman}"
requiredMessage="法定代表人不能为空" required="true">
<rich:toolTip event="onmouseover" followMouse="true"
for="chargeman" mode="client" styleClass="tooltip" layout="block"
showDelay="1000">
<span style="white-space: nowrap">法定代表人不能为空</span>
</rich:toolTip>
</h:inputText>
<font color="red">*</font>
<rich:message for="chargeman" tooltip="true"
errorLabelClass="messageLabel-css" style="width:16px;">
<f:facet name="errorMarker">
<a4j:outputPanel>
<h:graphicImage value="/resource/images/ajax/error.gif" />
<rich:toolTip showDelay="300" style="width:200px"
οnshοw="showValidationMessage2(this);" styleClass="tooltip"
layout="block">
<h:outputText value="" style="color:red" />
</rich:toolTip>
</a4j:outputPanel>
</f:facet>
</rich:message>
</h:panelGroup>
</td>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="许可证号"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:panelGroup>
<h:inputText id="licence" value="#{splicence.entity.licence}"
requiredMessage="许可证号不能为空" required="true">
<rich:toolTip event="onmouseover" followMouse="true"
for="licence" mode="client" styleClass="tooltip" layout="block"
showDelay="1000">
<span style="white-space: nowrap">许可证号不能为空</span>
</rich:toolTip>
</h:inputText>
<font color="red">*</font>
<rich:message for="licence" tooltip="true"
errorLabelClass="messageLabel-css" style="width:16px;">
<f:facet name="errorMarker">
<a4j:outputPanel>
<h:graphicImage value="/resource/images/ajax/error.gif" />
<rich:toolTip showDelay="300" style="width:200px"
οnshοw="showValidationMessage2(this);" styleClass="tooltip"
layout="block">
<h:outputText value="" style="color:red" />
</rich:toolTip>
</a4j:outputPanel>
</f:facet>
</rich:message>
</h:panelGroup>
</td>
</tr>
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="有效期限"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:panelGroup>
<h:inputText id="limitdate" value="#{splicence.entity.limitdate}"
requiredMessage="有效期限不能为空" required="true">
<rich:toolTip event="onmouseover" followMouse="true"
for="limitdate" mode="client" styleClass="tooltip" layout="block"
showDelay="1000">
<span style="white-space: nowrap">有效期限不能为空</span>
</rich:toolTip>
</h:inputText>
<font color="red">*</font>
<rich:message for="limitdate" tooltip="true"
errorLabelClass="messageLabel-css" style="width:16px;">
<f:facet name="errorMarker">
<a4j:outputPanel>
<h:graphicImage value="/resource/images/ajax/error.gif" />
<rich:toolTip showDelay="300" style="width:200px"
οnshοw="showValidationMessage2(this);" styleClass="tooltip"
layout="block">
<h:outputText value="" style="color:red" />
</rich:toolTip>
</a4j:outputPanel>
</f:facet>
</rich:message>
</h:panelGroup>
</td>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="联系人"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:panelGroup>
<h:inputText id="linkman" value="#{splicence.entity.linkman}"
requiredMessage="联系人不能为空" required="true">
<rich:toolTip event="onmouseover" followMouse="true"
for="linkman" mode="client" styleClass="tooltip" layout="block"
showDelay="1000">
<span style="white-space: nowrap">联系人不能为空</span>
</rich:toolTip>
</h:inputText>
<font color="red">*</font>
<rich:message for="linkman" tooltip="true"
errorLabelClass="messageLabel-css" style="width:16px;">
<f:facet name="errorMarker">
<a4j:outputPanel>
<h:graphicImage value="/resource/images/ajax/error.gif" />
<rich:toolTip showDelay="300" style="width:200px"
οnshοw="showValidationMessage2(this);" styleClass="tooltip"
layout="block">
<h:outputText value="" style="color:red" />
</rich:toolTip>
</a4j:outputPanel>
</f:facet>
</rich:message>
</h:panelGroup>
</td>
</tr>
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="手机"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:panelGroup>
<h:inputText id="mobile" value="#{splicence.entity.mobile}"
requiredMessage="手机号不能为空且必须为11位数字" required="true">
<f:validateLength minimum="11" maximum="11" ></f:validateLength>
<rich:toolTip event="onmouseover" followMouse="true"
for="mobile" mode="client" styleClass="tooltip" layout="block"
showDelay="1000">
<span style="white-space: nowrap">手机号不能为空且必须为11位数字</span>
</rich:toolTip>
</h:inputText>
<font color="red">*</font>
<rich:message for="mobile" tooltip="true"
errorLabelClass="messageLabel-css" style="width:16px;">
<f:facet name="errorMarker">
<a4j:outputPanel>
<h:graphicImage value="/resource/images/ajax/error.gif" />
<rich:toolTip showDelay="300" style="width:200px"
οnshοw="showValidationMessage2(this);" styleClass="tooltip"
layout="block">
<h:outputText value="手机号不能为空且必须为11位数字" style="color:red" />
</rich:toolTip>
</a4j:outputPanel>
</f:facet>
</rich:message>
</h:panelGroup>
</td>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="地址"></h:outputText>
</td>
<td align="left" width="320" class="border-bottom-css nowrap-css" >
<h:panelGroup>
<h:inputText id="address" value="#{splicence.entity.address}"
requiredMessage="地址不能为空" required="true">
<rich:toolTip event="onmouseover" followMouse="true"
for="address" mode="client" styleClass="tooltip" layout="block"
showDelay="1000">
<span style="white-space: nowrap">地址不能为空</span>
</rich:toolTip>
</h:inputText>
<font color="red">*</font>
<rich:message for="address" tooltip="true"
errorLabelClass="messageLabel-css" style="width:16px;">
<f:facet name="errorMarker">
<a4j:outputPanel>
<h:graphicImage value="/resource/images/ajax/error.gif" />
<rich:toolTip showDelay="300" style="width:200px"
οnshοw="showValidationMessage2(this);" styleClass="tooltip"
layout="block">
<h:outputText value="" style="color:red" />
</rich:toolTip>
</a4j:outputPanel>
</f:facet>
</rich:message>
</h:panelGroup>
</td>
</tr>
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="备注"></h:outputText>
</td>
<td align="left" width="320" class="border-bottom-css nowrap-css" colspan="3">
<h:inputTextarea id="note" value="#{splicence.entity.note}"
style="input">
</h:inputTextarea>
</td>
</tr>
<%--
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="录入人id"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:inputText id="createid" value="#{splicence.entity.createid}"
style="input">
</h:inputText>
</td>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="创建时间"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<rich:calendar id="createtime" value="#{splicence.entity.createtime}" popup="true"
locale="zh_cn" datePattern="yyyy-MM-dd" style="width:133px"/>
</td>
</tr>
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="最后修改人id"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:inputText id="modifyid" value="#{splicence.entity.modifyid}"
style="input">
</h:inputText>
</td>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="最后修改时间"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<rich:calendar id="modifytime" value="#{splicence.entity.modifytime}" popup="true"
locale="zh_cn" datePattern="yyyy-MM-dd" style="width:133px"/>
</td>
</tr>
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="最后审核人id"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:inputText id="checkid" value="#{splicence.entity.checkid}"
style="input">
</h:inputText>
</td>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="最后审核时间"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<rich:calendar id="checktime" value="#{splicence.entity.checktime}" popup="true"
locale="zh_cn" datePattern="yyyy-MM-dd" style="width:133px"/>
</td>
</tr>
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="状态"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:selectOneMenu id="status" value="#{splicence.entity.status}"
styleClass="input" style="width:150px">
<f:selectItem itemValue="" itemLabel="--请选择--" />
<f:selectItems value="#{splicence.status}"/>
</h:selectOneMenu>
</td>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="动态字段1"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:inputText id="dynafield1" value="#{splicence.entity.dynafield1}"
style="input">
</h:inputText>
</td>
</tr>
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="动态字段2"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:inputText id="dynafield2" value="#{splicence.entity.dynafield2}"
style="input">
</h:inputText>
</td>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="动态字段3"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:inputText id="dynafield3" value="#{splicence.entity.dynafield3}"
style="input">
</h:inputText>
</td>
</tr>
<tr>
<td align="left" width="70" class="border-bottom-css nowrap-css">
<h:outputText value="动态字段4"></h:outputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
<h:inputText id="dynafield4" value="#{splicence.entity.dynafield4}"
style="input">
</h:inputText>
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
</td>
<td align="left" width="160" class="border-bottom-css nowrap-css">
</td>
</tr>
--%>
<tr>
<td colspan="6" align="center"
class="border-bottom-css nowrap-css">
<%-- <h:inputHidden value="#{splicence.entity.}"></h:inputText>--%>
<a4j:commandButton value=" 保 存 "
action="#{splicence.doSave}" styleClass="cssButtonBG"
reRender="queryTable,msg_sub" >
</a4j:commandButton>
<rich:spacer width="10" height="2"></rich:spacer>
<a4j:commandButton value=" 返 回 "
οnclick="javascript:Richfaces.hideModalPanel('parapane2');return false;"
immediate="true" styleClass="cssButtonBG" reRender="queryTable">
</a4j:commandButton>
</td>
</tr>
<tr>
<td colspan="6" align="center">
<h:outputText id="msg_sub" value="#{splicence.msg}" style="color:red;"></h:outputText>
</td>
</tr>
</table>
<h:inputHidden value="#{splicence.operation}"></h:inputHidden>
</h:form>
<rich:modalPanel id="panelFilter" height="400"
οnshοw="document.getElementById('panelFilterCDiv').style.removeExpression('top');"
autosized="true" width="400">
<f:facet name="header">
<h:outputLabel value="辖区选择"></h:outputLabel>
</f:facet>
<f:facet name="controls">
<a4j:commandLink value="关闭"
οnclick="javascript:Richfaces.hideModalPanel('panelFilter');return false;"></a4j:commandLink>
</f:facet>
<iframe id="orgFrame" name="orgFrame"
src="<%=path%>/common/orgTree.jsf"
style="width: 100%; height: 100%; border: 0;"></iframe>
</rich:modalPanel>
</f:subview>
</body>
</html>
组织机构必选备份
最新推荐文章于 2023-05-25 14:55:05 发布