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

📄 docsl.java

📁 仓库管理系统,适合各种行业的仓库管理系统
💻 JAVA
字号:
package com.store.action.check;

import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;

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

import com.bean.DAO.ApplicationDAO;
import com.bean.DAO.ProductDAO;
import com.bean.DTO.UserinforDTO;
import com.database.DataSourceFactory;
import com.servlet.AbstractAction;
import com.system.action.popedomCheck;
public class doCsl extends AbstractAction {

	public String process(HttpServletRequest request, HttpServletResponse response)
	throws ServletException, IOException{
		String path="storeManage/check/checkSearch.jsp";
		UserinforDTO udt = (UserinforDTO) request.getSession().getAttribute("userinfor");
		popedomCheck pc = new popedomCheck(udt);
		if (pc.storeCheck1()) {
		ApplicationDAO prd=new ApplicationDAO();
		ProductDAO pd=new ProductDAO();
		Connection con;
		try {
			con = DataSourceFactory.getDataSource().getConnection();
			String productID=(String) request.getParameter("productID");
			String inputtime=(String) request.getParameter("apptime");
			String amount=(String) request.getParameter("amount");
			String directorID=(String) request.getParameter("directorID");
			if(productID!=null&&directorID!=null){
				int pid=Integer.parseInt(productID);
				int did=Integer.parseInt(directorID);
				int mount=Integer.parseInt(amount);
				if(prd.upddirectorID(pid, inputtime, did,con))
					pd.upProductamount(pid, mount,con);
			}
			con.close();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		} else {
			path = "User/login.jsp";
		}
		return path;
	}

}

⌨️ 快捷键说明

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