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

📄 sells_collection_frame.jsp

📁 医药供应链管理系统
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"%>
<jsp:directive.page import="java.util.ArrayList"/>
<jsp:directive.page import="com.captainli.dboperation.SellsDA"/>
<jsp:directive.page import="com.captainli.bean.SellsBean"/>
<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 sid = document.getElementById("s_id").value;
	
	createRequest("../utilPages/show_collection_ajax.jsp?s_id="+sid);
}
function sub(){
	var crem = document.getElementById("c_rem").value;
	var csett = document.getElementById("c_sett").value;
	if(csett == ""){
		alert("请输入结算金额!");
		form1.c_sett.focus();
		return false;
	}
	if(eval(csett) > eval(crem)){
		alert("请核对结算金额!\n\n(结算金额不大于余额)");
		form1.c_sett.focus();
		return false;
	}
}
</script>
</head>
<%
	String c_no = request.getParameter("c_no");
	int c_i_id = Integer.parseInt(request.getParameter("c_i_id"));
	int c_l_id = Integer.parseInt(request.getParameter("c_l_id"));
	int c_b_id = Integer.parseInt(request.getParameter("c_b_id"));
	String c_note = new String(request.getParameter("c_note").getBytes("ISO-8859-1"), "GB2312");
	//通过p_i_id获得该公司所有未结算完的入库单据
	ArrayList arryFalsePur = new SellsDA().showSellsS_no(c_i_id);
 %>
<body>
<form name="form1" method="post" action="../collection.do?method=addCollectionBySid">
  <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="s_id" name="s_id" onchange="psub()">
                <option value="0">--选择需要结算的单据--</option>
                <%
          		for(int i = 0;i < arryFalsePur.size();i++){
          			SellsBean bean = (SellsBean)arryFalsePur.get(i);
          	 %>
                <option value="<%= bean.getS_id() %>"><%= bean.getS_no() %></option>
                <%} %>
            </select>
            <input type="hidden" name="c_no" id="c_no" value="<%= c_no %>">
			<input type="hidden" name="c_i_id" id="c_i_id" value="<%= c_i_id %>">
			<input type="hidden" name="c_l_id" id="c_l_id" value="<%= c_l_id %>">
			<input type="hidden" name="c_b_id" id="c_b_id" value="<%= c_b_id %>">
			<input type="hidden" name="c_note" id="c_note" value="<%= c_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 + -