资源预览内容
第1页 / 共11页
第2页 / 共11页
第3页 / 共11页
第4页 / 共11页
第5页 / 共11页
第6页 / 共11页
第7页 / 共11页
第8页 / 共11页
第9页 / 共11页
第10页 / 共11页
亲,该文档总共11页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
先看对应标准单据上的xml文件。- -接下来看对应定义新加按钮的处理import java.awt.event.ActionEvent;import nc.bs.framework.common.NCLocator;import nc.desktop.ui.WorkbenchEnvironment;import nc.itf.so.IBuyLargess;import nc.ui.pub.beans.MessageDialog;import nc.ui.pub.beans.UIDialog;import nc.ui.pubapp.uif2app.AppUiState;import nc.ui.pubapp.uif2app.model.BillManageModel;import nc.ui.pubapp.uif2app.view.BillForm;import nc.ui.uif2.NCAction;import nc.vo.pub.lang.UFDateTime;import nc.vo.pubapp.pattern.exception.ExceptionUtils;import nc.vo.so.applybuylargess.AggApplyBuylargessVO;import nc.vo.so.applybuylargess.ApplyBuylargessVO;public class CloseAction extends NCAction private static final long serialVersionUID = -L;public CloseAction() super();this.setBtnName(关闭);this.setCode(Close);Overridepublic void doAction(ActionEvent e) throws Exception Object objects = model.getSelectedOperaDatas();if (objects = null | objects.length = 0) ExceptionUtils.wrappBusinessException(未选中买赠设置申请单据,不能进行关闭操作!);if (MessageDialog.showYesNoDlg(WorkbenchEnvironment.getInstance().getWorkbench().getParent(), 关闭, 当前是否进行关闭操作?此操作不可逆!) = UIDialog.ID_YES) / 当前对应的买赠设置申请单AggApplyBuylargessVO aggApplyBuylargessVO = (AggApplyBuylargessVO) this.getModel().getSelectedData();/ 定义买赠设置申请单的接口IBuyLargess BuyLargessService = NCLocator.getInstance().lookup(IBuyLargess.class);/ 买赠设置申请点击关闭删除之前对应的买赠设置单据aggApplyBuylargessVO = BuyLargessService.delBuyLargess(aggApplyBuylargessVO);this.model.directlyUpdate(aggApplyBuylargessVO); / 刷新当前对应的AggVoOverrideprotected boolean isActionEnable() boolean isEnable = this.getModel().getAppUiState() = AppUiState.NOT_EDIT& null != this.getModel().getSelectedData();if (isEnable) AggApplyBuylargessVO selectedData = (AggApplyBuylargessVO) this.getModel().getSelectedData(); / 选中的当前买赠设置申请单ApplyBuylargessVO applyBuylargessVo = selectedData.getParentVO(); / 买赠设置申请单表头VOInteger billstatus = applyBuylargessVo.getFstatusflag(); / 对应买赠设置申请单据的单据状态UFDateTime dclosetime = applyBuylargessVo.getDclosedtime(); / 买赠设置申请单的关闭时间(有对应的关闭时间,表示当前已经执行关闭)isEnable = billstatus.equals(1) & null = dclosetime; / 返利促销申请单关闭时间要为空,表示还未生成对应的汇总单据return isEnable;private BillForm editor;private BillManageModel model;public BillForm geteditor() return editor;public void seteditor(BillForm billForm) this.editor = billForm;public BillManageModel getModel() return this.model;public void setModel(BillManageModel model) this.model = model;this.model.addAppEventListener(this); / 监听一定要添加进去在能力与知识结构方面,要求学生应具有扎实的专业和日语语言基础,熟练掌握日语听、说、读、写、译的基本技能;了解日本社会及日本文化等方面的基本知识,熟悉日本国情,具有一定的日本人文知识及运用这些知识与日本人进行交流的能力。
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号