requirementcrud.jsp
来自「一个很好的开源项目管理系统源代码」· JSP 代码 · 共 152 行
JSP
152 行
<%@ include file="../includes/taglibs.jsp" %><%@ page import="net.java.workeffort.infrastructure.security.ISecurityProfile"%><form name="appForm" action="requirementCrud.do" method="post"> <input type="hidden" name="dispatch" value=""> <input type="hidden" name="_txToken" value="<%=session.getAttribute("txToken") %>"> <%@ include file="../includes/crumbs.jsp" %> <div id="buttonBar"> <%@ include file="../includes/crudButtonBar.jsp" %> </div> <spring:nestedPath path="command"> <div id="crud" > <table> <tr> <td class="assignedLabel"> <spring:message code="requirementId"/>: </td> <td> <html:hidden path="version"/> <html:text path="requirementId" size="10" maxlength="10" readonly='true' styleClass='readonlyField' /> </td> </tr> <tr> <td class="requiredLabel"> <spring:message code="requirementTypeCd"/>*: </td> <td><html:select path="requirementTypeCd" disabled='${viewHelper.fldReadonly}' styleClass='${viewHelper.fldCss}'> <html:options items="${getCachedRequirementTypeLov}" value="value" label="label" selected="${command.requirementTypeCd}" /> </html:select> </td> </tr> <tr> <td class="requiredLabel"> <spring:message code="name"/>*: </td> <td> <html:text path="name" size="40" maxlength="40" readonly='${viewHelper.fldReadonly}' styleClass='${viewHelper.fldCss}' /> </td> </tr> <tr> <td class="label"> <spring:message code="description"/>: </td> <td colspan="3"> <html:textarea path="description" cols="70" rows="3" readonly='${viewHelper.fldReadonly}' styleClass='${viewHelper.fldCss}' /> </td> </tr> <tr> <td class="label"> <spring:message code="reason"/>: </td> <td colspan="3"> <html:textarea path="reason" cols="70" rows="3" readonly='${viewHelper.fldReadonly}' styleClass='${viewHelper.fldCss}' /> </td> </tr> <tr> <td class="label"> <spring:message code="estimatedCost"/>: </td> <td> <html:text path="estimatedCost" size="10" maxlength="10" readonly='${viewHelper.fldReadonly}' styleClass='${viewHelper.fldCss}' /> <span class="label"> <spring:message code="estimatedCostCur"/>:</span> <html:select path="estimatedCostCur" disabled='${viewHelper.fldReadonly}' styleClass='${viewHelper.fldCss}'> <html:options items="${getCachedCurrencyLov}" value="value" label="label" selected="${command.estimatedCostCur}" /> </html:select> </td> </tr> <tr> <td class="label"> <spring:message code="requiredByDt"/>: </td> <td> <workeffort:datePicker path="requiredByDt" formName="appForm" readonly='${viewHelper.fldReadonly}' size="10" styleClass='${viewHelper.fldCss}' /> </td> </tr> <tr> <td class="label"> <spring:message code="productQty"/>: </td> <td> <html:text path="productQty" size="10" maxlength="10" readonly='${viewHelper.fldReadonly}' styleClass='${viewHelper.fldCss}' /> </td> </tr> <tr> <td class="label"> <spring:message code="authorizedBy"/>: </td> <td> <html:text path="authorizedBy" size="15" maxlength="15" readonly='${viewHelper.fldReadonly}' styleClass='${viewHelper.fldCss}' /> </td> </tr> <tr> <td class="label"> <spring:message code="ownerCd"/>: </td> <% ISecurityProfile securityProfile = (ISecurityProfile) pageContext.findAttribute("net.java.workeffort.SECURITY_PROFILE"); if (securityProfile.getAccessDecision("RequirementService", "updateRequirement") == ISecurityProfile.ALLOWED) { pageContext.getRequest().setAttribute("updateable", "yes"); } else { pageContext.getRequest().setAttribute("updateable", null); } %> <c:if test='${updateable == "yes"}' > <td> <html:text path="ownerCd" size="15" maxlength="15" /> </td> </c:if> <c:if test='${updateable != "yes"}' > <td> <html:text path="ownerCd" size="15" maxlength="15" readonly='true' styleClass='readonlyField' /> </td> </c:if> </tr> <tr> <td class="assignedLabel"> <spring:message code="createdBy"/>: </td> <td> <html:text path="createdBy" size="10" maxlength="10" readonly='true' styleClass='readonlyField' /> </td> <td class="assignedLabel"> <spring:message code="createdTs"/>: </td> <td> <html:text path="createdTs" size="10" maxlength="10" readonly='true' styleClass='readonlyField' /> </td> </tr> <tr> <td class="assignedLabel"> <spring:message code="lastModifiedBy"/>: </td> <td> <html:text path="lastModifiedBy" size="10" maxlength="10" readonly='true' styleClass='readonlyField' /> </td> <td class="assignedLabel"> <spring:message code="lastModifiedTs"/>: </td> <td> <html:text path="lastModifiedTs" size="10" maxlength="10" readonly='true' styleClass='readonlyField' /> </td> </tr> </table> </div> </spring:nestedPath></form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?