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

📄 industryajax.java

📁 使用java写的ERP系统,功能比较全
💻 JAVA
字号:
package crm.sales;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import sys.dao.bean.Industry;

@SuppressWarnings("serial")
public class IndustryAjax extends HttpServlet
{

	@SuppressWarnings("unchecked")
	@Override
	public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
	{
		List list = null;
		if (request.getSession().getAttribute("d").equals("1"))
		{
			list = (List) request.getSession().getServletContext().getAttribute("industrys");
		}
		else
		{
			list = (List) request.getSession().getServletContext().getAttribute("industry");
		}
		String backtrack = "";
		for (int i = 0; i < list.size(); i++)
		{
			Industry industry = (Industry) list.get(i);
			backtrack = backtrack + "<option value=" + industry.getIndustryid() + " >" + industry.getIndustry() + "</option>";
		}
		response.getWriter().println(backtrack);
	}
}

⌨️ 快捷键说明

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