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

企业管理

开发平台:

Java

  1. package com.webtier.clientQylxAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.service.CqylxFacade;
  5. import com.service.CqylxFacadeImpl;
  6. import com.tool.Chinese;
  7. import com.domain.CqylxForm;
  8. //插入操作
  9. public class CqylxInsert
  10.     extends Action {
  11.   private CqylxFacade qylx = null;
  12.   public CqylxInsert() {
  13.     this.qylx = new CqylxFacadeImpl();
  14.   }
  15.   public ActionForward perform(ActionMapping actionMapping,
  16.                                ActionForm actionForm,
  17.                                HttpServletRequest httpServletRequest,
  18.                                HttpServletResponse httpServletResponse) {
  19.     Chinese chinese = new Chinese();
  20.     CqylxForm cqylxForm = (CqylxForm) actionForm;
  21.     cqylxForm.setQylx_id(chinese.str(httpServletRequest.getParameter("id")));
  22.     cqylxForm.setQylx_lxmc(Chinese.str(httpServletRequest.getParameter("lxmc")));
  23.     cqylxForm.setQylx_bz(chinese.str(httpServletRequest.getParameter("bz")));
  24.     this.qylx.qylxInsert(cqylxForm);
  25.     return actionMapping.findForward("cqylxInsert");
  26.   }
  27. }