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

📄 returnmoney.jsp

📁 关于网上汽车销售系统的详细编程项目实战实例
💻 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 />

	<title>ReturnMoney.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">

</head>
<script type="text/javascript">
 function checkform(){  
//回款单号
	var returnMoneyCode=document.returnMoneyForm.returnMoneyCode.value;
	alert(returnMoneyCode);
	if(returnMoneyCode.length==0)
	{
		alert("回款单号不能为空!");
		document.returnMoneyForm.returnMoneyCode.focus();
		return false;
	}
//回款类型
	var rmtcode=document.returnMoneyForm.rmtcode.value;
	fi(rmtcode.lehgth==0){
		alert("回款类型不能为空!");
		document.returnMoneyForm.rmtcode.focus();
		return false;
	}

//客 户
	var cusCode=document.returnMoneyForm.cusCode.value;
	if(cusCode.length==0||cusCode=='null'){
		alert("客户不能为空!");
		document.returnMoneyForm.cusCode.focus();
		return false;
	}
//结算方式
	var ssCode=document.returnMoneyForm.ssCode.value;
	if(ssCode.length==0){
		alert("结算方式不能为空!");
		document.returnMoneyForm.ssCode.focus();
		return false;
	}
	
//部 门
	var deptCode=document.returnMoneyForm.deptCode.value;
	if(deptCode.length==0||deptCode=='null'){
		alert("部门不能为空!");
		document.returnMoneyForm.deptCode.focus();
		return false;
	}
//销 售 员
	var personCode=document.returnMoneyForm.personCode.value;
	if(personCode.length==0){
		alert("销售员不能为空!");
		document.returnMoneyForm.personCode.focus();
		return false;
	}
//币种
	var foreignCurrcode=document.returnMoneyForm.foreignCurrcode.value;
	if(foreignCurrcode.length==0||foreignCurrcode==''){
		alert("币种不能为空!");
		document.returnMoneyForm.foreignCurrcode.focus();
		return false;
	}
//回款金额
	var money = document.returnMoneyForm.returnMoney.value;
	if(money.length==0||money==''){
		alert("回款金额不能为空!");
		document.returnMoney.returnMoney.focus();
		return false;
	}else if(money =='0.0'){
		alert("回款金额不能为空!");
		document.returnMoney.returnMoney.focus();
		return false;
	}
}
function exchartgetValue(){
	var foreignCurrcode = document.returnMoneyForm.foreignCurrcode.value;
	alert(foreignCurrcode);
	if(foreignCurrcode=='1'){
		document.returnMoneyForm.exchart.value='1';
	}
	else if(foreignCurrcode=='2'){
		document.returnMoneyForm.exchart.value='0.7';
	}
	else if(foreignCurrcode=='3'){
		document.returnMoneyForm.exchart.value='0.8';
	}else{
		alert("请选择币种!");
		document.returnMoneyForm.exchart.value='';
	}
}
</script>

<body bgcolor="#CFFFF">

	<br>
	<html:form action="/returnMoney.do" onsubmit="return checkform()">
		<h1 align="center">
			回款处理
		</h1>
		<table align="center" id="returnMoney" border="0">
			<tr>
				<td>
					回款单号:
					<html:text property="returnMoneyCode"></html:text>
					*
				</td>
				<td>
					回款类型:
					<html:select property="rmtcode">
						<html:option value="">------请选择------</html:option>
						<logic:iterate id="list1" name="rmtlist">
							<html:option value="${list1.rmtcode}">${list1.rmtname}</html:option>
						</logic:iterate>
					</html:select>
				</td>
				<td>
					客 户:&nbsp;&nbsp;&nbsp;
					<html:select property="cusCode">
						<html:option value="">------请选择------</html:option>
						`<logic:iterate id="list2" name="cuslist">
							<html:option value="${list2.cusCode}">${list2.cusName}</html:option>
						</logic:iterate>
					</html:select>
					*
				</td>
			</tr>
			<tr>
				<td>
					结算方式:
					<html:select property="ssCode">
						<html:option value="">------请选择------</html:option>
						<logic:iterate id="list3" name="cwsmdaolist">
							<html:option value="${list3.ssCode}">${list3.state}</html:option>
						</logic:iterate>
					</html:select>
				</td>
				<td>
					部 门:&nbsp;&nbsp;&nbsp;
					<html:select property="deptCode">
						<html:option value="">------请选择------</html:option>
						<logic:iterate id="list4" name="deptdaolist">
							<html:option value="${list4.deptCode}">${list4.deptName}</html:option>
						</logic:iterate>
					</html:select>
					*
				</td>
				<td>
					销 售 员:
					<html:select property="personCode">
						<html:option value="">------请选择------</html:option>
						<logic:iterate id="list5" name="personlist">
							<html:option value="${list5.personCode}">${list5.personName}</html:option>
						</logic:iterate>
					</html:select>
				</td>
			</tr>
			<tr>
				<td>
					开户银行:
					<html:text property="bank"></html:text>
				</td>
				<td>
					银行帐号:
					<html:text property="bankAccount"></html:text>
				</td>
				<td>
					经 办 人:
					<html:text property="processor"></html:text>
				</td>
			</tr>
			<tr>
				<td>
					币 种: &nbsp;&nbsp;
					<html:select property="foreignCurrcode" onblur="exchartgetValue()">
						<html:option value="">------请选择------</html:option>
						<logic:iterate id="list6" name="fcdaolist">
							<html:option value="${list6.foreignCurrCode}">${list6.state}</html:option>
						</logic:iterate>
					</html:select>
					*
				</td>
				<td>
					汇 率:&nbsp;&nbsp;&nbsp;
					<html:text property="exchart"></html:text>
				</td>
				<td>
					票 据 号:
					<html:select property="billNo">
						<html:option value="">------请选择------</html:option>
						<logic:iterate id="list7" name="csbsdaolist">
							<html:option value="${list7.consignCode}">${list7.consignCode}</html:option>
						</logic:iterate>
					</html:select>
				</td>
			</tr>
			<tr>
				<td>
					回款金额:
					<html:text property="returnMoney"></html:text>
					*
				</td>
				<td>
					签收人:&nbsp;&nbsp;
					<html:text property="signer"></html:text>
				</td>
				<td colspan="2">
					备 注:&nbsp;&nbsp;
					<html:textarea property="remark" cols="20"></html:textarea>
				</td>
			</tr>
			<tr>
			</tr>
			<TR>
				<td>
					制 单 人:
					<html:text property="maker"></html:text>
				</td>
				<td colspan="2">
					审核人:&nbsp;
					<html:text property="checker"></html:text>
				</td>
				<td></td>
			</tr>
			<tr>
				<TD colspan="3" align="center">
					<html:submit>提交</html:submit>
					<html:reset>重置</html:reset>
				</TD>
			</TR>
		</table>
	</html:form>
</body>
</html:html>

⌨️ 快捷键说明

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