📄 purchase_payment_frame.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB2312"%>
<jsp:directive.page import="java.util.ArrayList"/>
<jsp:directive.page import="com.captainli.dboperation.PurchaseDA"/>
<jsp:directive.page import="com.captainli.bean.PurchaseBean"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="../css/sys.css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-right:0px;
margin-top: 0px;
background-color: #FFFFFF;
}
a:link {
color: #1A438E;
text-decoration: underline;
}
a:visited {
text-decoration: underline;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: underline;
}
.button1 {font:normal 12px/120% Verdana,'宋体';height:18px;
border-left:1px red solid;
border-top:1px red solid;
border-right:1px red solid;
border-bottom:1px red solid;
background: #dddddd;}
-->
</style>
<script type="text/javascript" language="javascript">
var http_request = false;
function createRequest(url) {
//初始化对象并发出XMLHttpRequest请求
http_request = false;
if (window.XMLHttpRequest) { // Mozilla或其他除IE以外的浏览器
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType("text/xml");
}
} else if (window.ActiveXObject) { // IE浏览器
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
alert("不能创建XMLHTTP实例!");
return false;
}
http_request.onreadystatechange = alertContents; //指定响应方法
//发出HTTP请求
http_request.open("GET", url, true);
http_request.setRequestHeader("If-Modified-Since","0");
http_request.send(null);
}
function alertContents() { //处理服务器返回的信息
if (http_request.readyState == 4) {
if (http_request.status == 200) {
d.innerHTML=http_request.responseText;
} else {
alert('您请求的页面发现错误');
}
}
}
</script>
<script type="text/javascript">
function psub(){
var pid = document.getElementById("p_id").value;
createRequest("../utilPages/show_purchase_ajax.jsp?p_id="+pid);
}
function sub(){
var prem = document.getElementById("p_rem").value;
var psett = document.getElementById("p_sett").value;
if(psett == ""){
alert("请输入结算金额!");
form1.p_sett.focus();
return false;
}
if(eval(psett) > eval(prem)){
alert("请核对结算金额!\n\n(结算金额不大于余额)");
form1.p_sett.focus();
return false;
}
}
</script>
</head>
<%
String p_no = request.getParameter("p_no");
int p_i_id = Integer.parseInt(request.getParameter("p_i_id"));
int p_l_id = Integer.parseInt(request.getParameter("p_l_id"));
int p_b_id = Integer.parseInt(request.getParameter("p_b_id"));
String p_note = new String(request.getParameter("p_note").getBytes("ISO-8859-1"), "GB2312");
//通过p_i_id获得该公司所有未结算完的入库单据
ArrayList arryFalsePur = new PurchaseDA().showPurP_no(p_i_id);
%>
<body>
<form name="form1" method="post" action="../payment.do?method=addPaymentByPid">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/system/r_1.gif" alt="" width="6" height="27" /></td>
<td width="100%" background="../images/system/r_0.gif"><table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="11%" align="right">选择入库单据:</td>
<td width="89%" align="left"><select id="p_id" name="p_id" onchange="psub()">
<option value="0">--选择需要结算的单据--</option>
<%
for(int i = 0;i < arryFalsePur.size();i++){
PurchaseBean bean = (PurchaseBean)arryFalsePur.get(i);
%>
<option value="<%= bean.getP_id() %>"><%= bean.getP_no() %></option>
<%} %>
</select>
<input type="hidden" name="p_no" id="p_no" value="<%= p_no %>">
<input type="hidden" name="p_i_id" id="p_i_id" value="<%= p_i_id %>">
<input type="hidden" name="p_l_id" id="p_l_id" value="<%= p_l_id %>">
<input type="hidden" name="p_b_id" id="p_b_id" value="<%= p_b_id %>">
<input type="hidden" name="p_note" id="p_note" value="<%= p_note %>">
</tr>
</table></td>
<td><img src="../images/system/r_2.gif" alt="" width="6" height="27" /></td>
</tr>
<tr>
<td></td>
<td><table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<tr>
<td id="d" align="left" valign="top"></td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td><img src="../images/system/r_4.gif" alt="" width="6" height="6" /></td>
<td></td>
<td><img src="../images/system/r_3.gif" alt="" width="6" height="6" /></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -