📄 accountmodified.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GBK" import="imis.*,javax.naming.*,javax.rmi.PortableRemoteObject,java.util.*,java.text.*"%><% request.setCharacterEncoding("GBK"); session=request.getSession(); userStruct user=(userStruct)session.getAttribute("user"); if(user==null){ response.sendRedirect("../../login.html"); } else if(user.userAccess.equals(new Integer(3))||user.userAccess.equals(new Integer(4))||user.userAccess.equals(new Integer(5))||user.userAccess.equals(new Integer(6))||user.userAccess.equals(new Integer(7))||user.userAccess.equals(new Integer(11))){ try{ Context ctx = new InitialContext(); Object ref = ctx.lookup("OtherController"); OtherControllerHome otherControllerHome = (OtherControllerHome) PortableRemoteObject.narrow(ref, OtherControllerHome.class); OtherController othercontroller = otherControllerHome.create(); InaccountJBean accounttomodify = new InaccountJBean(); InaccountJBean aa = new InaccountJBean(); aa = (InaccountJBean)session.getAttribute("inaccounttomodi"); accounttomodify.device_id = request.getParameter("deviceid"); accounttomodify.price = new Double(request.getParameter("price")); accounttomodify.price_in = new Double(request.getParameter("price_in")); accounttomodify.unitid = user.unitid; accounttomodify.person = request.getParameter("person"); accounttomodify.time = aa.time; accounttomodify.account_id = request.getParameter("accountid"); boolean chenggong = false; chenggong = othercontroller.editInaccount(aa.device_id,accounttomodify); if(chenggong){ response.sendRedirect("accountlist.jsp"); }else{ response.sendRedirect("../../error/operror.html"); } } catch(Exception e){ e.printStackTrace(); response.sendRedirect("../../error/operror.html"); } }else{ response.sendRedirect("../../error/access.html"); }%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -