[java]代码库
public void doQueryForUpdate(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException,
ClassNotFoundException, SQLException {
String orderInNum = request.getParameter("hd_orderInNum");
int flag = OrderInService.getFlag(orderInNum);
String msg = "";
if (flag == 2) {
msg = "该入库单已确认,不能修改";
doQuery(request, response, msg);
} else {
HttpSession session = request.getSession();
session.setAttribute("orderInNum", orderInNum);
//List<WarehouseVo> warehouseVoList = new ArrayList<WarehouseVo>();
//warehouseVoList = warehouseService.query(" flag=0 ");
//request.setAttribute("warehouseVoList", warehouseVoList);
ResultSet rs = OrderInService.query(" orderIn.flag in (0,2) and orderInNum='"+ orderInNum + "'");
request.setAttribute("rs", rs);
ResultSet orderInDtlRs = OrderInDtlService.query(" orderindtl.flag=0 and orderindtl.orderInNum='"+ orderInNum + "' ");
request.setAttribute("orderInDtlRs", orderInDtlRs);
RequestDispatcher rd = request
.getRequestDispatcher("/stock/order2002.jsp?opt=update&orderInNum="
+ orderInNum);
rd.forward(request, response);
}
}
[源代码打包下载]