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

📄 addoreditvoucher.jsp

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

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

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

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

<script type="text/javascript">
    function validateForm(){
        var form = document.forms[0];

        if(validateVoucher(form)){
            if (confirm("<bean:message key='errors.save.confirm'/>")) {
                form.submit();        
            }
        }
    }
</script>

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

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

<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td colspan="2" height="28">
            <html:img src="${contextPath}/images/dot.gif" width="11" height="11"/>&nbsp;
            <bean:message key="navigation.financeManagement"/>&nbsp;&gt;
            <!-- todo zengyong -->
            <html:link page="" styleClass="subMenuTxt">
                <bean:message key="navigation.voucherManagement.dailyVoucher"/>
            </html:link>&nbsp;&gt;
            <bean:message key="navigation.voucherManagement.dailyVoucher.management"/>&nbsp;&gt;
            <html:link page="" styleClass="subMenuTxt">
                <c:choose>
                    <c:when test="${not empty param['edit']}">
                        <bean:message key="navigation.voucherManagement.dailyVoucher.management.edit"/>
                    </c:when>
                    <c:otherwise>
                        <bean:message key="navigation.voucherManagement.dailyVoucher.management.add"/>
                    </c:otherwise>
                </c:choose>
            </html:link>
        </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">
            <bean:message key="title.voucherManagement.voucherHeaderInfoArea"/>
        </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%">
                        <bean:message key="label.voucherManagement.companyId"/>
                    </td>
                    <td width="27%">
                        <html:text property="companyBean.salesOrg" readonly="true"/>
                    </td>
                    <td width="11%">
                        <bean:message key="label.voucherManagement.fiscalYear"/>
                    </td>
                    <td width="53%">
                        <html:text property="calendarPeriodBean.periodYear"/>
                        <bean:message key="label.voucherManagement.periodMonth"/>
                        <html:select property="calendarPeriodBean.periodNum">
                            <html:option value=""/>
                            <c:forEach begin="1" end="13" varStatus="status">
                                <html:option value="${status.index}"/>
                            </c:forEach>
                        </html:select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <bean:message key="label.voucherManagement.voucherNo"/>
                    </td>
                    <td>
                        <html:text property="voucherHeaderBean.voucherNo"/>
                    </td>
                    <td>
                        <bean:message key="label.voucherManagement.voucherType"/>
                    </td>
                    <td>
                        <html:select property="voucherHeaderBean.voucherType">
                            <html:option value=""/>
                            <code:dispCodes codeType="VOUCHER_TYPE" selectValue="${voucherForm.map['voucherHeaderBean'].voucherType}"/>
                        </html:select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <bean:message key="label.voucherManagement.voucherDate"/>
                    </td>
                    <td>
                        <html:text property="voucherDate"/>
                        <html:img src="${contextPath}/images/calendar.gif"
                                  styleId="choose_voucher_date" styleClass="mouse" border="0"/>
                        <script type="text/javascript">
                            registerCalendar('voucherDate', 'choose_voucher_date');
                        </script>
                    </td>
                    <td>
                        <bean:message key="label.voucherManagement.postingDate"/>
                    </td>
                    <td>
                        <html:text property="postingDate" readonly="true"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <bean:message key="label.voucherManagement.current"/>
                    </td>
                    <td>
                        <html:text property="companyBean.currency" readonly="true"/>
                    </td>
                    <td>
                        <bean:message key="label.voucherManagement.crossCompany"/>
                    </td>
                    <td>
                        <html:text property="voucherHeaderBean.crossCompany" readonly="true"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <bean:message key="label.voucherManagement.docNo"/>
                    </td>
                    <td>
                        <html:text property="voucherHeaderBean.docNo" readonly="true"/>
                    </td>
                    <td>
                        <bean:message key="label.voucherManagement.docType"/>
                    </td>
                    <td>
                        <html:text property="voucherHeaderBean.docType" readonly="true"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <bean:message key="label.voucherManagement.headerText"/>
                    </td>
                    <td>
                        <html:text property="voucherHeaderBean.headText"/>
                    </td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</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();">
                            <bean:message key="button.save"/>
                        </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="/vouchermanagement/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>

<html:javascript formName="voucherForm" method="validateVoucher"/>

⌨️ 快捷键说明

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