⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addoreditcostcenter.jsp

📁 一个关于tlms的一个小程序 看看能否帮助到别人
💻 JSP
字号:
<%--
  =============================================
  Copyright 2006 szmx

  Change Revision
  --------------------------------
  Date          Author       Remarks
  2006-4-18     Allen.Zeng      Create
  =============================================
--%>

<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp"%>

<c:set var="contextPath" value="${pageContext.request.contextPath}"/>

<c:choose>
    <c:when test="${not empty param['edit']}">
        <c:set var="formAction" value="/costcenter/edit?edit=true"/>
    </c:when>
    <c:otherwise>
        <c:set var="formAction" value="/costcenter/add"/>
    </c:otherwise>
</c:choose>

<html:javascript formName="costCenterForm" method="validateCostCenter"/>

<script type="text/javascript" language="JavaScript">
    function validateForm(){
        if(validateCostCenter(document.forms[0])){
            if (confirm("<bean:message key='errors.save.confirm'/>")) {
                document.forms[0].submit();
            }
        }
    }
</script>

<html:form action="${formAction}">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td height="28" colspan="2">
            <html:img src="${contextPath}/images/dot.gif" width="11" height="11"/>&nbsp;
            <bean:message key="navigation.financeManagement"/>&nbsp;&gt;
            <html:link page="/account/menu_paraConfig.do" styleClass="subMenuTxt">
                <bean:message key="navigation.costCenter.paramConfig"/>
            </html:link>&nbsp;&gt;
            <html:link page="/costcenter/search.do" styleClass="subMenuTxt">
                <bean:message key="navigation.costCenter.costCenterConfig"/>
            </html:link>&nbsp;&gt;
            <c:choose>
                <c:when test="${not empty param['edit']}">
                    <bean:message key="navigation.costCenter.editRecord"/>
                </c:when>
                <c:otherwise>
                    <bean:message key="navigation.costCenter.addRecord"/>
                </c:otherwise>
            </c:choose>
        </td>
    </tr>
    <tr>
        <td width="2%" height="31" class="section">
            <img src="<c:out value='/images/menu_dot.jpg'/>" width="6" height="19" alt="">
        </td>
        <td width="*" height="31" class="section">
            <c:choose>
                <c:when test="${not empty param['edit']}">
                    <bean:message key="label.costCenter.edit.title"/>
                </c:when>
                <c:otherwise>
                    <bean:message key="label.costCenter.add.title"/>
                </c:otherwise>
            </c:choose>
        </td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
            <table height="43" border="0" cellpadding="0" cellspacing="0" style="font-size:12px; width:96%">
                <tr>
                    <td width="11%" nowrap><bean:message key="label.costCenter.condition.costCenterCode"/></td>
                    <td width="27%">
                        <html:text property="costCenterBean.costCenterCode"/>
                    </td>
                    <td width="11%"><bean:message key="label.costCenter.condition.localAccoutCode"/></td>
                    <td width="53%">
                        <html:select property="costCenterBean.accountCode">
                            <html:option value=""/>
                            <code:dispCodes codeType="ACCOUNT_CODE"
                                            selectValue="${costCenterForm.map['costCenterBean'].accountCode}"/>
                        </html:select>
                    </td>
                </tr>
                <tr>
                    <td><bean:message key="label.costCenter.condition.costCenterDesc"/></td>
                    <td>
                        <html:text property="costCenterBean.costCenterDesc"/>
                    </td>
                    <td><bean:message key="label.costCenter.condition.expenseCategory"/></td>
                    <td>
                        <html:text property="costCenterBean.expenseCategory"/>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="2"><hr size="1"></td>
    </tr>
    <tr>
        <td height="39">&nbsp;</td>
        <td>
            <table border="0" cellspacing="0" cellpadding="0" align="left">
                <tr>
                    <td width="8" class="ButtonHOMEL-msover"></td>
                    <td class="ButtonHOME-msover">
                        <html:link href="#" onclick="validateForm();">
                            <c:choose>
                                <c:when test="${not empty param['edit']}">
                                    <bean:message key="button.save"/>
                                </c:when>
                                <c:otherwise>
                                    <bean:message key="button.save"/>
                                </c:otherwise>
                            </c:choose>
                        </html:link>
                    </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">
                        <html:link page="/costcenter/cancelAddOrEdit.do">
                            <bean:message key="label.cancel.button"/>
                        </html:link>
                    </td>
                    <td width="8" class="ButtonHOMER-msover"></td>
                    <td width="10"></td>
                </tr>
            </table>
        </td>
    </tr>
</table>

</html:form>

⌨️ 快捷键说明

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