inputmidtableaction.java

来自「一个汽车售后服务站的典型的进销管理系统,B/S模式的」· Java 代码 · 共 61 行

JAVA
61
字号
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.xfaccp.struts.action.store;

 

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.xfaccp.base.BaseAction;
import com.xfaccp.form.AccessoryTable;
import com.xfaccp.form.InputAccessoryTable;
import com.xfaccp.form.InputTable;

/** 
 * MyEclipse Struts
 * Creation date: 11-03-2007
 * 
 * XDoclet definition:
 * @struts.action validate="true"
 */
public class InputMidTableAction extends BaseAction {
	/*
	 * Generated Methods
	 */

	/** 
	 * Method execute
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward createInputMid(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		InputAccessoryTable IA=(InputAccessoryTable)form;
		InputTable IT=new InputTable();
		AccessoryTable AT=new AccessoryTable();
		IT.setId(IA.getInputId());
		AT.setId(IA.getAccId());
		IA.setAccessoryTable(AT);
		IA.setInputTable(IT);
		try {
			command.create(IA);
			request.setAttribute("createInputMidInfo", "<script>alert('信息添加成功')</script>");
		} catch (Exception e) {
			 e.printStackTrace();
		}
		return mapping.findForward("createInputMidInfo");
	}
	

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?