📄 editaccount.jsp
字号:
<%--
Created by IntelliJ IDEA.
User: hliu
Date: 2006-4-6
Time: 16:45:20
To change this template use File | Settings | File Templates.
--%>
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<script type="text/javascript" language="javascript">
function addAccount() {
var form = document.forms[0];
if (!validateAddAccountBean(form)) {
return false;
}
else {
form.action = '<c:url value="/finance/account/addAccount.do"/>';
form.submit();
}
}
function updateAccount() {
var form = document.forms[0];
if (!validateUpdateAccountBean(form)) {
return false;
}
else {
form.action = '<c:url value="/finance/account/updateAccount.do"/>';
form.submit();
}
}
function searchAccount() {
var f = document.forms[0];
f.action = "<c:url value="/finance/account/searchAccount.do"/>";
f.submit();
}
</script>
<html:form action="account/addAccount.do">
<html:hidden property="accountBean.id" value="${accountBean.id}"/>
<html:hidden property="accountBean.version" value="${accountBean.version}"/>
<div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="table1">
<tr>
<td height="28" colspan="2">
<img alt="" src="<c:url value='/images/dot.gif'/>" width="11" height="11">
<bean:message key="navigation.financeManagement"/>>
<a href="<c:url value='/finance/account/menu_paraConfig.do'/>" class="subMenuTxt" target="content_right">
<bean:message key="label.finance.navigation.paramConfig"/>
</a>>
<a href="<c:url value='/finance/account/searchAccount.do'/>" class="subMenuTxt" target="content_right">
<bean:message key="navigation.account.accountConfig"/>
</a>>
<c:choose>
<c:when test="${empty accountBean.id}">
<bean:message key="label.costCenter.add.title"/>
</c:when>
<c:otherwise>
<bean:message key="label.costCenter.edit.title"/>
</c:otherwise>
</c:choose>
</td>
</tr>
<tr>
<td width="2%" height="31" background="<c:url value='/images/menu_bg.jpg'/>">
<img alt="" src="<c:url value='/images/menu_dot.jpg'/>" width="6" height="19">
</td>
<td width="98%" background="<c:url value='/images/menu_bg.jpg'/>" class="MenuTxt">
<c:choose>
<c:when test="${empty accountBean.id}">
<bean:message key="label.costCenter.add.title"/>
</c:when>
<c:otherwise>
<bean:message key="label.costCenter.edit.title"/>
</c:otherwise>
</c:choose>
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<table width="100%" height="43" border="0" cellpadding="0" cellspacing="0" style="font-size:12px; width:96% "
id="table2">
<tr>
<td nowrap><bean:message key="label.account.sapAccountCode"/></td>
<td nowrap><html:text property="accountBean.sapAccountCode" value="${accountBean.sapAccountCode}" maxlength="15"/>
</td>
<td nowrap><bean:message key="label.account.sapAccountDesc"/></td>
<td nowrap><html:text style="width:200px" property="accountBean.sapAccountDesc" value="${accountBean.sapAccountDesc}" /></td>
</tr>
<tr>
<td nowrap><bean:message key="label.account.localAccountCode1"/></td>
<td nowrap><html:text property="accountBean.localAccountCode1" value="${accountBean.localAccountCode1}" />
</td>
<td nowrap><bean:message key="label.account.localAccountDesc1"/></td>
<td nowrap><html:text style="width:200px" property="accountBean.localAccountDesc1" value="${accountBean.localAccountDesc1}" /></td>
</tr>
<tr>
<td nowrap><bean:message key="label.account.localAccountCode2"/></td>
<td nowrap><html:text property="accountBean.localAccountCode2" value="${accountBean.localAccountCode2}" />
</td>
<td nowrap><bean:message key="label.account.localAccountDesc2"/></td>
<td nowrap><html:text style="width:200px" property="accountBean.localAccountDesc2" value="${accountBean.localAccountDesc2}" /></td>
</tr>
<tr>
<td colspan="4" nowrap></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><hr size="1"></td>
</tr>
<tr>
<td></td>
<td>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<c:choose>
<c:when test="${empty accountBean.id}">
<div class="hrefColor" style="cursor:hand" onclick="return addAccount()"><bean:message key="button.save"/></div>
</c:when>
<c:otherwise>
<div class="hrefColor" style="cursor:hand" onclick="return updateAccount()"><bean:message key="button.save"/></div>
</c:otherwise>
</c:choose>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover"><div class="hrefColor" style="cursor:hand" onclick="searchAccount();"><bean:message key="button.cancel"/></div></td>
<td width="8" class="ButtonHOMER-msover"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</html:form>
<html:javascript formName="accountForm" method="validateAddAccountBean"/>
<html:javascript formName="accountForm" method="validateUpdateAccountBean"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -