📄 editscenario.jsp
字号:
<!--
=============================================
Copyright 2006 szmx
Change Revision
--------------------------------
Date Author Remarks
2006-4-21 terry.zhang Create
=============================================
-->
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html" %>
<link rel="stylesheet" type="text/css" href="../css/main.css">
<script src="../js/verify.js" language="javascript" type="text/javascript"></script>
<script src="../js/option.js" language="javascript" type="text/javascript"></script>
<script language="javascript">
function searchScenario(){
var form=document.forms[0];
form.action='<c:url value="/supplychain/datamapping/searchScenarioInfo.do"/>';
form.submit();
}
function addScenario() {
var form=document.forms[0];
if (validateAddScenario(form)) {
form.action='<c:url value="/supplychain/datamapping/addScenario.do"/>';
form.submit();
}
}
function updateScenario() {
var form=document.forms[0];
if (validateAddScenario(form)) {
form.action='<c:url value="/supplychain/datamapping/updateScenario.do"/>';
form.submit();
}
}
</script>
<div align="center">
<html:form action="/datamapping/addScenario.do">
<html:hidden property="scenarioBean.id"/>
<html:hidden property="scenarioBean.version"/>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="table1">
<tr>
<td height="28" colspan="2"><img src="../images/dot.gif" width="11" height="11"> <bean:message key="label.supplyChain.dicSet"/>>
<a href="<c:url value="/supplychain/datamapping/index.do"/>" class="subMenuTxt"><bean:message key="label.supplyChain.maintainDate"/></a>>
<a href="<c:url value="/supplychain/datamapping/searchScenarioInfo.do"/>" class="subMenuTxt">Scenario
<bean:message key="label.supplyChain.list"/></a>>Scenario
<c:choose>
<c:when test="${empty scenarioBean.id}">
<bean:message key="button.add"/>
</c:when>
<c:otherwise>
<bean:message key="label.supplyChain.refresh"/>
</c:otherwise>
</c:choose>
</td>
</tr>
<tr>
<td width="2%" height="31" background="../images/menu_bg.jpg"><img src="../images/menu_dot.jpg" width="6" height="19"></td>
<td width="98%" background="../images/menu_bg.jpg" class="MenuTxt">Scenario
<c:choose>
<c:when test="${empty scenarioBean.id}">
<bean:message key="button.add"/>
</c:when>
<c:otherwise>
<bean:message key="label.supplyChain.refresh"/>
</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 width="11%" nowrap><bean:message key="label.supplyChain.type"/></td>
<td nowrap>
<c:choose>
<c:when test="${empty scenarioBean.id}">
<html:text property="scenarioBean.type" size="30"/>
</c:when>
<c:otherwise>
<%--<c:out value="${scenarioBean.type}"/> --%>
<html:text property="scenarioBean.type" size="30" readonly="true"/>
</c:otherwise>
</c:choose>
</td>
<td nowrap><bean:message key="label.supplyChain.subType"/></td>
<td nowrap><html:text property="scenarioBean.subType" size="30"/></td>
</tr>
<tr>
<td nowrap><bean:message key="label.supplyChain.max"/></td>
<td width="28%" nowrap><html:text property="scenarioBean.max" size="15"/></td>
<td width="11%" nowrap><bean:message key="label.supplyChain.min"/></td>
<td width="53%" nowrap><html:text property="scenarioBean.min" size="15"/></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>
<c:choose>
<c:when test="${empty scenarioBean.id}">
<td class="ButtonHOME-msover">
<a href=# onClick="addScenario();" class="hrefColor">
<bean:message key="button.save"/>
</a>
</td>
</c:when>
<c:otherwise>
<td class="ButtonHOME-msover">
<a href=# onClick="updateScenario();" class="hrefColor">
<bean:message key="button.save"/>
</a>
</td>
</c:otherwise>
</c:choose>
<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"><a href=# onClick="searchScenario();" class="hrefColor"><bean:message key="button.cancel"/></a></td>
<td width="8" class="ButtonHOMER-msover"></td>
</tr>
</table></td>
</tr>
</table>
</html:form>
</div>
<html:javascript formName="/datamapping/addScenario" method="validateAddScenario"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -