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

📄 buy.jsp

📁 EJB+Struts+Webservice实现的开放式基金管理系统
💻 JSP
字号:
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<script type="text/javascript">
function getCurrentFundPrice(selObj) {
  document.fundAccountForm.action = 'fundBuyForward.do';
  if(selObj.value!=''&&selObj.value!=null){
    document.fundAccountForm.submit();
  }
}
function clearFields()
{
	document.getElementById("fundno").selectedIndex=0
	document.getElementById("price").value="";
	document.getElementById("quantity").value="";
	document.getElementById("financialAccNo").value="";
	document.getElementById("password").value="";
}
</script><html:javascript formName="fundBuy"/>
<html:form action="fundBuy" styleId="fundAccountForm" onsubmit="return validateFundBuy(this);">
  <table border="0" width="100%">
    <tr>
      <td class="thd" colspan="2" align="center">
        <bean:message key="fundTrade.buy.title"/>
      </td>
    </tr>
    <tr>
      <td class="tdata" colspan="2" align="center">&nbsp;</td>
    </tr>
    <tr>
      <td class="tdata" width="50%">
        <bean:message key="fundTrade.fundAccountDto.fundNo"/>
        <font color="red">*</font>
      </td>
      <td class="tdata" width="50%">
        <html:select styleClass="inputstyle" styleId="fundno" property="fundAccountDto.fundNo" onchange="getCurrentFundPrice(this);">
          <html:option value="">-select-</html:option>
          <html:optionsCollection name="fundList" label="fundName" value="fundNo"/>
        </html:select>
      </td>
    </tr>
    <tr>
      <td class="tdata" width="50%">
        <bean:message key="fundTrade.fundAccountDto.price"/>
      </td>
      <td class="tdata" width="50%">
        <html:text readonly="true" styleClass="inputstyle" styleId="price" property="fundAccountDto.price" size="20"/>
      </td>
    </tr>
    <tr>
      <td class="tdata" width="50%">
        <bean:message key="fundTrade.fundAccountDto.quantity"/>
        <font color="red">*</font>
      </td>
      <td class="tdata" width="50%">
        <html:text styleClass="inputstyle" styleId="quantity" property="fundAccountDto.quantity" size="20"/>
      </td>
    </tr>
    <tr>
      <td class="tdata" width="50%">
        <bean:message key="fundTrade.fundAccountDto.financialAccNo"/>
        <font color="red">*</font>
      </td>
      <td class="tdata" width="50%">
        <html:text styleClass="inputstyle" styleId="financialAccNo" property="fundAccountDto.financialAccNo" size="20"/>
      </td>
    </tr>
    <tr>
      <td class="tdata" width="50%">
        <bean:message key="fundTrade.password"/>
        <font color="red">*</font>
      </td>
      <td class="tdata" width="50%">
        <html:password styleClass="inputstyle" styleId="password" property="password" size="20"/>
      </td>
    </tr>
    <tr>
      <td colspan="2" align="center">
        <html:submit styleClass="btnaction">
          <bean:message key="fundTrade.buy.submit"/>
        </html:submit>
        <!--html : reset styleClass="btnaction" --><!-- bean :message key="fundTrade.buy.reset"/ --><!--/html:reset -->
        <input type="button" name="clear" value="取消" class="btnaction" onClick="javascript:clearFields()">
      </td>
    </tr>
  </table>
</html:form>
<html:errors/>

⌨️ 快捷键说明

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