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

企业管理

开发平台:

Java

  1. package com.webtier.clientBankAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.domain.CbankForm;
  5. import com.service.CbankFacade;
  6. import com.service.CbankFacadeImpl;
  7. import com.tool.Chinese;
  8. //插入操作
  9. public class CbankInsert
  10.     extends Action {
  11.   private CbankFacade facade = null;
  12.   public CbankInsert() {
  13.     this.facade = new CbankFacadeImpl();
  14.   }
  15.   public ActionForward perform(ActionMapping actionMapping,
  16.                                ActionForm actionForm,
  17.                                HttpServletRequest httpServletRequest,
  18.                                HttpServletResponse httpServletResponse) {
  19.     Chinese chinese = new Chinese();
  20.     CbankForm cbankForm = (CbankForm) actionForm;
  21.     cbankForm.setBank_id(httpServletRequest.getParameter("id"));
  22.     cbankForm.setBank_name(chinese.str(httpServletRequest.getParameter("name")));
  23.     cbankForm.setBank_bz(chinese.str(httpServletRequest.getParameter("bz")));
  24.     this.facade.bankInsert(cbankForm);
  25.     return actionMapping.findForward("cbankInsert");
  26.   }
  27. }