pf-view-rule

Shell:~ >: pf-view-rule
scrub in all fragment reassemble
block drop log all
pass quick on lo0 all flags S/SA keep state
pass in on re0 inet from 192.168.1.0/24 to any flags S/SA keep state
pass out on re0 inet from any to 192.168.1.0/24 flags S/SA keep state
block drop in quick on tun0 inet from 127.0.0.0/8 to any
block drop in quick on tun0 inet from 10.0.0.0/8 to any
block drop in quick on tun0 inet from 172.16.0.0/12 to any
block drop in quick on tun0 inet from 192.168.0.0/16 to any
block drop out quick on tun0 inet from any to 127.0.0.0/8
block drop out quick on tun0 inet from any to 10.0.0.0/8
block drop out quick on tun0 inet from any to 172.16.0.0/12
block drop out quick on tun0 inet from any to 192.168.0.0/16
block drop in log quick on ! re0 inet from 192.168.1.0/24 to any
block drop in log quick inet from 192.168.1.23 to any
pass out on tun0 proto tcp all flags S/SA modulate state
pass out on tun0 proto udp all keep state
pass out on tun0 proto icmp all keep state
pass out on tun0 proto esp all keep state
pass out on tun1 proto tcp all flags S/SA modulate state
pass out on tun1 proto udp all keep state
pass out on tun1 proto icmp all keep state
pass out on tun1 proto esp all keep state
pass in on tun0 proto tcp from any to any port = 44123 flags S/SA keep state
pass in on tun0 proto udp from any to any port = 44123 keep state

package nc.ui.fdcprcm.bd.bill.action; import java.awt.event.ActionEvent; import nc.vo.so.m4331.entity.DeliveryHVO; import nc.vo.so.m4331.entity.DeliveryVO; import nc.ui.uif2.NCAction; import nc.ui.uif2.model.AbstractAppModel; import nc.ui.arap.view.InvoiceDialog; import nc.ui.pub.beans.MessageDialog; import nc.ui.pubapp.uif2app.view.BillForm; import nc.vo.arap.receivable.AggReceivableBillVO; import nc.vo.arap.receivable.ReceivableBillVO; import nc.ui.pubapp.uif2app.actions.RefreshSingleAction; public class RefundSaveAction extends NCAction{ private BillForm editor; private AbstractAppModel model; public RefundSaveAction(){ //初始按钮名称和code super.setBtnName("退费保存"); //传入值和xml中的code对应 super.setCode("RefundSaveAction"); } public BillForm getEditor() { return editor; } public void setEditor(BillForm editor) { this.editor = editor; } public AbstractAppModel getModel() { return model; } public void setModel(AbstractAppModel model) { this.model = model; //自定义按钮点击条件,必须添加该代码 model.addAppEventListener(this); } //设置按钮满足什么条件时,可以点击-返回true可以点击。 @Override protected boolean isActionEnable() { return true; } @Override public void doAction(ActionEvent paramActionEvent) throws Exception { MessageDialog.showHintDlg(editor, "提示", "测试自己新按钮按下"); } } 上面这段代码是NC65的A单据的 自定义扩展的一个 退费保存 按钮 package nc.bs.pub.action; import nc.bs.framework.common.NCLocator; import nc.bs.pubapp.pf.action.AbstractPfAction; import nc.impl.fdcprcm.bd.bill.bpplugin.BillPluginPoint; import nc.impl.pubapp.pattern.rule.processer.CompareAroundProcesser; import nc.itf.fdcprcm.bd.bill.IFDCPRCMBillMaintain; import nc.vo.fdcprcm.bd.bill.AggBillVO; import nc.vo.fdcprcm.bd.bill.BillVO; import nc.vo.jcom.lang.StringUtil; import nc.vo.pub.BusinessException; import nc.vo.pubapp.pattern.exception.ExceptionUtils; public class N_H33J_SAVEBASE extends AbstractPfAction<AggBillVO> { protected CompareAroundProcesser<AggBillVO> getCompareAroundProcesserWithRules(Object userObj) { CompareAroundProcesser<AggBillVO> processor = null; AggBillVO[] clientFullVOs = (AggBillVO[])getVos(); if (!StringUtil.isEmptyWithTrim(clientFullVOs[0].getParentVO().getPrimaryKey())) { processor = new CompareAroundProcesser(BillPluginPoint.UPDATE); } else { processor = new CompareAroundProcesser(BillPluginPoint.INSERT); } return processor; } protected AggBillVO[] processBP(Object userObj, AggBillVO[] clientFullVOs, AggBillVO[] originBills) { AggBillVO[] bills = null; IFDCPRCMBillMaintain operator = (IFDCPRCMBillMaintain)NCLocator.getInstance().lookup(IFDCPRCMBillMaintain.class); if (!StringUtil.isEmptyWithTrim(clientFullVOs[0].getParentVO().getPrimaryKey())) { try { bills = operator.update(clientFullVOs, originBills); } catch (BusinessException e) { ExceptionUtils.wrappBusinessException(e.getMessage()); } } else { try { bills = operator.insert(clientFullVOs, originBills); } catch (BusinessException e) { ExceptionUtils.wrappBusinessException(e.getMessage()); } } return bills; } } 上面这段代码是 A单据 原有 保存按钮的保存动作代码 package nc.ui.fdcprcm.bd.bill.action; import java.awt.event.ActionEvent; import nc.ui.fdcpr.uipub.action.JZFDCSaveScriptAction; import nc.ui.fdcprcm.bd.bill.view.BillShowUpableBillForm; import nc.ui.fdcpub.pub.tool.PMTableTreeTool; import nc.ui.pub.bill.BillCardPanel; public class PRCmBillSaveScriptAction extends JZFDCSaveScriptAction { private static final long serialVersionUID = -2714896722865300221L; public void doAction(ActionEvent e) throws Exception { try { getBillForm().getBillCardPanel().stopEditing(); getBillForm().getTreetableTool().changeToNormalTable(); super.doAction(e); } catch (Exception e1) { throw e1; } finally { getBillForm().getTreetableTool().changeToTreeTable(getBillForm().getTreeCreateStrategy()); getBillForm().getTreetableTool().setEnable(); } } private BillShowUpableBillForm getBillForm() { return (BillShowUpableBillForm)editor; } } 上面这段代码是 A单据 原有 保存按钮 下一步的保存操作 分析上面3段代码,将退费保存按钮 实现 原 保存按钮的 保存功能,只考虑保存功能,不要减少退费保存的按钮的方法
10-06
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值