CkhjbInsert.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.clientKhjbAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.CkhjbFacade;
- import com.service.CkhjbFacadeImpl;
- import com.domain.CkhjbForm;
- import com.tool.Chinese;
- //插入操作
- public class CkhjbInsert
- extends Action {
- private CkhjbFacade khjbFacade = null;
- public CkhjbInsert() {
- this.khjbFacade = new CkhjbFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) {
- Chinese chinese = new Chinese();
- CkhjbForm ckhjbForm = (CkhjbForm) actionForm;
- ckhjbForm.setKhjb_id(httpServletRequest.getParameter("id"));
- ckhjbForm.setKhjb_jbmc(chinese.str(httpServletRequest.getParameter("jbmc")));
- ckhjbForm.setKhjb_zdyml(Float.valueOf(httpServletRequest.getParameter(
- "zdywl")));
- ckhjbForm.setKhjb_bz(chinese.str(httpServletRequest.getParameter("bz")));
- this.khjbFacade.khjbInsert(ckhjbForm);
- return actionMapping.findForward("ckhjbInsert");
- }
- }