📄 ware.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
<html:base />
<script type='text/javascript' src='/CarSellSystem/dwr/interface/orderBillSubDWR.js'></script>
<script type='text/javascript' src='/CarSellSystem/dwr/engine.js'></script>
<script type='text/javascript' src='/CarSellSystem/dwr/util.js'></script>
<script>
var obj = window.dialogArguments;
function show(){
alert("您传递的参数为:" + obj.name);
document.forms[0].orderCode.value=obj.name;
}
function close1(){
alert("保存成功!!");
window.close();
}
function getData(){
var wareCode=document.forms[0].wareCode.value;
alert(wareCode);
orderBillSubDWR.findCode(wareCode,function(data)
{
document.forms[0].elements["unitPrice"].value=data.unitPrice;
document.forms[0].elements["quantity"].value=data.quantity;
document.forms[0].elements["taxUnitPrice"].value=data.taxUnitPrice;
document.forms[0].elements["capitalTax"].value=data.capitalTax;
document.forms[0].elements["taxRate"].value=data.taxRate;
document.forms[0].elements["capitalMoney"].value=data.capitalMoney;
document.forms[0].elements["capitalTaxUnitPrice"].value=data.capitalTaxUnitPrice;
document.forms[0].elements["capitalUnitPrice"].value=data.capitalUnitPrice;
document.forms[0].elements["wholeMoney"].value=data.wholeMoney;
document.forms[0].elements["remark"].value=data.remark;
});
}
</script>
<title>ware.jsp</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body onload="show()">
<html:form action="/saveOrderBillSub.do" target="hiddenfram">
<table width="854" height="126" border="1" align="center"
cellSpacing=0 cellPadding=2 id="PowerTable">
<tr with=100% align=middle bgcolor=#C4E6DE>
<td >
订单编号
</td>
<td >
货物编码
</td>
<td >
单价
</td>
<td >
数量
</td>
<td >
含税价格
</td>
<td >
税额
</td>
<td >
税率
</td>
<td >
价税金额
</td>
<td >
含税单价
</td>
<td >
不含税单价
</td>
<td >
总金额
</td>
<td >
备注
</td>
</tr>
<tr>
<td >
<html:text property="orderCode"></html:text>
</td>
<td >
<html:select property="wareCode" onchange="getData()">
<html:option value="">--请选择--</html:option>
<logic:iterate id="w" name="huowu" >
<html:option value="${w.wareCode}">
${w.wareName }
</html:option>
</logic:iterate>
</html:select>
</td>
<td >
<html:text property="unitPrice"></html:text>
</td>
<td >
<html:text property="quantity"></html:text>
</td>
<td >
<html:text property="taxUnitPrice"></html:text>
</td>
<td >
<html:text property="capitalTax"></html:text>
</td>
<td >
<html:text property="taxRate"></html:text>
</td>
<td >
<html:text property="capitalMoney"></html:text>
</td>
<td >
<html:text property="capitalTaxUnitPrice"></html:text>
</td>
<td >
<html:text property="capitalUnitPrice"></html:text>
</td>
<td >
<html:text property="wholeMoney"></html:text>
</td>
<td >
<html:text property="remark"></html:text>
</td>
</tr>
</table>
<br>
<html:submit value="提交" onclick="close1()"></html:submit>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -