package nc.impl.hr;

import nc.bs.framework.common.NCLocator;
import nc.itf.hr.IReceivableService;
import nc.itf.uap.IUAPQueryBS;
import nc.itf.uap.pf.IPFBusiAction;
import nc.pubitf.arap.receivable.IArapReceivableBillPubService;
import nc.vo.arap.receivable.AggReceivableBillVO;
import nc.vo.pub.BusinessException;
import nc.vo.pub.workflownote.WorkflownoteVO;

public class ReceivableServiceImpl implements IReceivableService {

	IUAPQueryBS iuap = (IUAPQueryBS) NCLocator.getInstance().lookup(IUAPQueryBS.class.getName());

	@Override
	public AggReceivableBillVO receivable_RequiresNew(AggReceivableBillVO aggreceivablebillvo) throws BusinessException {
		// 调用应收单新增方法
		IArapReceivableBillPubService arapReceivableBillPubService = NCLocator.getInstance().lookup(IArapReceivableBillPubService.class);
		AggReceivableBillVO aggvo = arapReceivableBillPubService.save(aggreceivablebillvo);
//		WorkflownoteVO Workflownote = new WorkflownoteVO();
//		IPFBusiAction ipf = NCLocator.getInstance().lookup(IPFBusiAction.class);
//		ipf.processAction("SAVE", "F0", Workflownote, aggreceivablebillvo, null, null);
		return aggvo;
	}

}
