📄 sells_showstock_ajax.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB2312" pageEncoding="GB2312"%>
<jsp:directive.page import="java.util.ArrayList"/>
<jsp:directive.page import="com.captainli.dboperation.ProduitDA"/>
<jsp:directive.page import="com.captainli.dboperation.RaidDA"/>
<jsp:directive.page import="com.captainli.bean.RaidBean"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>Insert title here</title>
</head>
<body>
<%//ajax实现联动菜单
if(request.getParameter("s_w_id").toString().equals("0")){%>
<select name="r_id" size="100" id="r_id" style="height:140px; width: 200px ">
<option value="0">--请选择要出货的仓库--</option>
</select>
<%}else if(request.getParameter("pname").toString().equals("undefined") || request.getParameter("pname").toString().equals("")){%>
<select name="r_id" size="100" id="r_id" style="height:140px; width: 200px ">
<option value="0">--请选择要出库的药品--</option>
</select>
<%}else{
int p_id = new ProduitDA().showProId(new String(request.getParameter("pname").trim().getBytes("ISO-8859-1"),"GB2312"));
ArrayList arry = new RaidDA().showRaidR_no(p_id, Integer.parseInt(request.getParameter("s_w_id").toString()));
if(arry.isEmpty()){ %>
<select name="r_id" size="100" id="r_id" style="height:140px; width: 200px ">
<option value="0">--无此药品库存--</option>
</select>
<%}else{ %>
<select name="r_id" size="100" id="r_id" style="height:140px; width: 200px " onchange="showRaid()">
<%
for(int i = 0;i < arry.size();i++){
RaidBean bean = (RaidBean)arry.get(i);
%><option value="<%= bean.getR_no() %>"><%= bean.getR_no() %></option><%} %>
</select><%}} %>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -