📄 addnewsotrageinfoaction.java
字号:
/**
*
*/
package com.strong.ims.struts.action;
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 org.apache.struts.validator.DynaValidatorActionForm;
import com.strong.ims.comutil.IConstants;
import com.strong.ims.comutil.exception.BaseException;
import com.strong.ims.domain.sysmanage.StorageInfo;
import com.strong.ims.service.ServiceFactory;
import com.strong.ims.struts.BaseAction;
import com.strong.ims.struts.form.AddStorageInfoForm;
/**
* @author jqg
* 添加仓库信息Action
*/
public class AddNewSotrageInfoAction extends BaseAction {
/* (non-Javadoc)
* @see com.strong.ims.struts.BaseAction#doexecute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
*/
public ActionForward doexecute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws BaseException,Exception {
// TODO Auto-generated method stub
AddStorageInfoForm Info = (AddStorageInfoForm)form;
/**
* 动态form
*/
// StorageInfo info = new StorageInfo();
// info.setF_isdelete( (String)AddStorageInfoForm2.get("f_isdelete") );
// info.setF_memo((String)AddStorageInfoForm2.get("f_memo"));
// info.setF_storagename((String)AddStorageInfoForm2.get("f_storagename"));
//
ServiceFactory.getSysAdminManager().addNewStorageInfo( Info.getStorageInfo() );
request.setAttribute("message", "添加成功!");
return mapping.findForward(IConstants.SUCCESS_PAGE);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -