KhcpxzUpdate.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:2k
- package com.webtier.KhcpxzAction;
- import org.apache.struts.action.ActionMapping;
- import org.apache.struts.action.ActionForm;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import org.apache.struts.action.ActionForward;
- import com.domain.KhcpxzForm;
- import org.apache.struts.action.Action;
- import com.service.KhcpxzFacade;
- import com.service.KhcpxzFacadeImpl;
- import com.tool.Chinese;
- //修改操作
- public class KhcpxzUpdate
- extends Action {
- private KhcpxzFacade facade = null;
- public KhcpxzUpdate() {
- this.facade = new KhcpxzFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- KhcpxzForm khcpxzForm = (KhcpxzForm) actionForm;
- khcpxzForm.setCpxx_bz(Chinese.str(servletRequest.getParameter("cpxx_bz")));
- khcpxzForm.setCpxx_cpdj(Chinese.str(servletRequest.getParameter("cpxx_cpdj")));
- khcpxzForm.setCpxx_id(Chinese.str(servletRequest.getParameter("cpxx_id")));
- khcpxzForm.setCpxx_khId(Chinese.str(servletRequest.getParameter("cpxx_khId")));
- khcpxzForm.setCpxx_mc(Chinese.str(servletRequest.getParameter("cpxx_mc")));
- khcpxzForm.setCpxx_xsrp(Chinese.str(servletRequest.getParameter("cpxx_xsrp")));
- khcpxzForm.setId(Integer.valueOf(servletRequest.getParameter("id")));
- this.facade.cpxzUpdate(khcpxzForm);
- return actionMapping.findForward("khcpxzUpdate");
- }
- }