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

企业管理

开发平台:

Java

  1. package com.webtier.clientKhtsAction;
  2. import org.apache.struts.action.ActionMapping;
  3. import org.apache.struts.action.ActionForm;
  4. import javax.servlet.http.HttpServletRequest;
  5. import javax.servlet.http.HttpServletResponse;
  6. import org.apache.struts.action.ActionForward;
  7. import com.domain.KhtsForm;
  8. import org.apache.struts.action.Action;
  9. import com.service.KhtsFacade;
  10. import com.service.KhtsFacadeImpl;
  11. import com.tool.Chinese;
  12. //添加操作
  13. public class KhtsInsertContent
  14.     extends Action {
  15.   private KhtsFacade facade = null;
  16.   public KhtsInsertContent() {
  17.     this.facade = new KhtsFacadeImpl();
  18.   }
  19.   public ActionForward perform(ActionMapping actionMapping,
  20.                                ActionForm actionForm,
  21.                                HttpServletRequest servletRequest,
  22.                                HttpServletResponse servletResponse) {
  23.     KhtsForm khtsForm = (KhtsForm) actionForm;
  24.     khtsForm.setKhts_id(Chinese.str(servletRequest.getParameter("khts_id")));
  25.     khtsForm.setKhts_qymc(Chinese.str(servletRequest.getParameter("khts_qymc")));
  26.     khtsForm.setKhts_tsr(Chinese.str(servletRequest.getParameter("khts_tsr")));
  27.     khtsForm.setKhts_tszt(Chinese.str(servletRequest.getParameter("khts_tszt")));
  28.     khtsForm.setKhts_tsnr(Chinese.str(servletRequest.getParameter("khts_tsnr")));
  29.     khtsForm.setKhts_tsrq(Chinese.str(servletRequest.getParameter("khts_tsrq")));
  30.     khtsForm.setKhts_clbf(Chinese.str(servletRequest.getParameter("khts_clbf")));
  31.     khtsForm.setKhts_khmyd(Chinese.str(servletRequest.getParameter("Khts_khmyd")));
  32.     khtsForm.setKhts_tsslr(Chinese.str(servletRequest.getParameter("khts_tsslr")));
  33.     khtsForm.setKhts_bz(Chinese.str(servletRequest.getParameter("khts_bz")));
  34.     this.facade.Insert(khtsForm);
  35.     return actionMapping.findForward("khtsInsertContent");
  36.   }
  37. }