?? receiptlist.jsp
字號:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>查看收據</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/LightBlue_Css.css"/>
<script type="text/javascript">
function showPayMoney(){
var obj=document.reforms.payMoney.value;
if(obj==null){
alert("請付款...");
return false;
}
return true;
}
function check(formq){
var id = formq.childNodes[0].firstChild.value;
var payMon = formq.childNodes[2].firstChild.value;
var payMoney = formq.childNodes[7].firstChild.value;
if(payMoney==""||payMoney==null){
alert("請輸入要繳款的錢數!");
return false;
}else{
if(payMon<=payMoney){
alert("付款成功....");
window.location.href="<%=request.getContextPath()%>/receiptServlet?opertion=3&id="+id+"&payMoney="+payMoney;
}else{
alert("請繼續付款,你的錢數不夠..");
return false;
}
}
}
</script>
</head>
<body>
<form method="post" name="reforms${receipt.id}" action="<%=request.getContextPath()%>/receiptServlet?opertion=4">
<table class="simple textCss">
<tr>
<th width="5%" align="center">編號</th>
<th width="10%" align="center">項目</th>
<th width="8%" align="center">金額</th>
<th width="10%" align="center">收款人</th>
<th width="10%" align="center">付款人</th>
<th width="15%" align="center">日期</th>
<th width="8%" align="center">是否收訖</th>
<th width="10%" align="center">收款</th>
<th width="10%" align="center">操作</th>
</tr>
<c:forEach items="${receiptList}" var="receipt">
<tr>
<td align="center"><input type="text" name="payMon" value="${receipt.id}" class="txt"></td>
<td align="center">${receipt.items}</td>
<td align="center"><input type="text" name="payMon" value="${receipt.pay}" class="txt"></td>
<td align="center">${receipt.payee}</td>
<td align="center">${receipt.payeeId}
<a href="<%=request.getContextPath()%>/patientListServlet?opertion=3&oid=${receipt.payeeId}">付款人</a>
</td>
<td align="center">${receipt.pdate}</td>
<td align="center">
<c:if test="${receipt.isFinished==1}">已交款</c:if>
<c:if test="${receipt.isFinished==0}">未交款</c:if>
</td>
<c:if test="${receipt.isFinished==0}">
<td align="center">
<input type="text" name="payMoney" class="txt" value="" onkeyup="this.value=this.value.replace(/\D/g,'')">
</td>
<%--<td align="center">
<input type="button" value="付款" class="buttonClass"
onclick="window.location.href='<%=request.getContextPath()%>/receiptServlet?opertion=3&id=${receipt.id}'">
</td>
--%>
<td align="center">
<input type="button" value="付款" class="buttonClass" onclick="return check(this.parentNode.parentNode);">
</td>
</c:if>
</tr>
</c:forEach>
<tr>
<th colspan="8" align="center">
<input type="button" value="已交款查詢" class="buttonClass"
onclick="window.location.href='<%=request.getContextPath()%>/receiptServlet?opertion=4&isFinsh=1&oid=${receipt.payeeId}'">
<input type="button" value="未交款查詢" class="buttonClass"
onclick="window.location.href='<%=request.getContextPath()%>/receiptServlet?opertion=4&isFinsh=0&oid=${receipt.payeeId}'">
<input type="button" value="返回" class="buttonClass" onClick="window.location.href='${pageContext.request.contextPath}/view_zhouxiaoli/patientsSelect.jsp'">
</th>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -