KhtsInsertContent.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:2k
- package com.webtier.clientKhtsAction;
- 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.KhtsForm;
- import org.apache.struts.action.Action;
- import com.service.KhtsFacade;
- import com.service.KhtsFacadeImpl;
- import com.tool.Chinese;
- //添加操作
- public class KhtsInsertContent
- extends Action {
- private KhtsFacade facade = null;
- public KhtsInsertContent() {
- this.facade = new KhtsFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- KhtsForm khtsForm = (KhtsForm) actionForm;
- khtsForm.setKhts_id(Chinese.str(servletRequest.getParameter("khts_id")));
- khtsForm.setKhts_qymc(Chinese.str(servletRequest.getParameter("khts_qymc")));
- khtsForm.setKhts_tsr(Chinese.str(servletRequest.getParameter("khts_tsr")));
- khtsForm.setKhts_tszt(Chinese.str(servletRequest.getParameter("khts_tszt")));
- khtsForm.setKhts_tsnr(Chinese.str(servletRequest.getParameter("khts_tsnr")));
- khtsForm.setKhts_tsrq(Chinese.str(servletRequest.getParameter("khts_tsrq")));
- khtsForm.setKhts_clbf(Chinese.str(servletRequest.getParameter("khts_clbf")));
- khtsForm.setKhts_khmyd(Chinese.str(servletRequest.getParameter("Khts_khmyd")));
- khtsForm.setKhts_tsslr(Chinese.str(servletRequest.getParameter("khts_tsslr")));
- khtsForm.setKhts_bz(Chinese.str(servletRequest.getParameter("khts_bz")));
- this.facade.Insert(khtsForm);
- return actionMapping.findForward("khtsInsertContent");
- }
- }