📄 vendorformevent.java.svn-base
字号:
package com.casin.erp.event;
import com.waveline.webbuilder.struts.ContentFormForm;
import com.waveline.webbuilder.exception.ProgramException;
import javax.servlet.http.HttpServletRequest;
import com.waveline.webbuilder.exception.DataBaseException;
import com.casin.erp.util.StockUtil;
import com.waveline.webbuilder.event.DefaultContentFormEventImpl;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class VendorFormEvent
extends DefaultContentFormEventImpl
{
public boolean afterInsertForm(HttpServletRequest request,
ContentFormForm contentFormForm,
Object session)
throws DataBaseException, ProgramException
{
//当供应商信息发生更新时,设置可用供应商列表更新标志
StockUtil stockUtil = new StockUtil();
stockUtil.setVendorRefreshable();
return true;
}
public boolean afterUpdateForm(HttpServletRequest request,
ContentFormForm contentFormForm,
Object session)
throws DataBaseException, ProgramException
{
//当供应商信息发生更新时,设置可用供应商列表更新标志
StockUtil stockUtil = new StockUtil();
stockUtil.setVendorRefreshable();
return true;
}
public boolean afterDeleteForm(HttpServletRequest request,
ContentFormForm contentFormForm,
Object session)
throws DataBaseException, ProgramException
{
//当供应商信息发生更新时,设置可用供应商列表更新标志
StockUtil stockUtil = new StockUtil();
stockUtil.setVendorRefreshable();
return true;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -