editaccountdrcr.jsp

来自「一个关于tlms的一个小程序 看看能否帮助到别人」· JSP 代码 · 共 158 行

JSP
158
字号
<%--
  Created by szmx.
  User: hliu
  Date: 2006-4-24
  Time: 20:44:02
  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 (!validateAddAccountCrDrBean(form)) {
            return false;
        }
        else {
            form.action = '<c:url value="/finance/accountDrCr/addAccountDrCr.do"/>';
            form.submit();
        }
    }

    function updateAccount() {
        var form = document.forms[0];
        if (!validateUpdateAccountCrDrBean(form)) {
            return false;
        }
        else {
            form.action = '<c:url value="/finance/accountDrCr/updateAccountDrCr.do"/>';
            form.submit();
        }
    }

    function searchAccount() {
        var f = document.forms[0];
        f.action = "<c:url value="/finance/accountDrCr/searchAccountDrCr.do"/>";
        f.submit();
    }
</script>

<html:form action="account/addAccount.do">
<html:hidden property="accountBean.id" value="${accountDrCrBean.id}"/>
<html:hidden property="accountBean.version" value="${accountDrCrBean.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/accountDrCr/searchAccountDrCr.do'/>" class="subMenuTxt" target="content_right">
          <bean:message key="label.accountDrCr.name"/>
        </a>>
        <c:choose>
            <c:when test="${empty accountDrCrBean.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 accountDrCrBean.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.accountDrCr.AccountCode"/></td>
                <td nowrap>
                    <html:text property="accountBean.sapAccountCode" value="${accountDrCrBean.accountNo}" />

                </td>
                <td nowrap></td>
                <td nowrap></td>
            </tr>

            <tr>
                <td nowrap><bean:message key="label.accountDrCr.accountCategary"/></td>
                <td nowrap><html:text property="accountBean.localAccountCode1" value="${accountDrCrBean.isDr}" />

                </td>
                <td nowrap></td>
                <td nowrap></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="validateAddAccountCrDrBean"/>
<html:javascript formName="accountForm" method="validateUpdateAccountCrDrBean"/>

⌨️ 快捷键说明

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