CkhjbUpdate.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
源码类别:

企业管理

开发平台:

Java

  1. package com.webtier.clientKhjbAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.tool.Chinese;
  5. import com.domain.CkhjbForm;
  6. import com.service.CkhjbFacade;
  7. import com.service.CkhjbFacadeImpl;
  8. //修改的操作
  9. public class CkhjbUpdate
  10.     extends Action {
  11.   private CkhjbFacade khjbFacade = null;
  12.   public CkhjbUpdate() {
  13.     this.khjbFacade = new CkhjbFacadeImpl();
  14.   }
  15.   public ActionForward perform(ActionMapping actionMapping,
  16.                                ActionForm actionForm,
  17.                                HttpServletRequest httpServletRequest,
  18.                                HttpServletResponse httpServletResponse) {
  19.     Chinese chinese = new Chinese();
  20.     CkhjbForm ckhjbForm = (CkhjbForm) actionForm;
  21.     ckhjbForm.setKhjb_id(httpServletRequest.getParameter("id"));
  22.     ckhjbForm.setKhjb_jbmc(chinese.str(httpServletRequest.getParameter("jbmc")));
  23.     ckhjbForm.setKhjb_zdyml(Float.valueOf(httpServletRequest.getParameter("zdywl")));
  24.     ckhjbForm.setKhjb_bz(chinese.str(httpServletRequest.getParameter("bz")));
  25.     this.khjbFacade.khjbUpdate(ckhjbForm);
  26.     return actionMapping.findForward("ckhjbUpdate");
  27.   }
  28. }