3、NC系统接口集(持续更新)

**

3、 NC系统接口集(持续更新)

**
1、自定义参照查询接口

IDefdocQryService defdocqry = NCLocator.getInstance().lookup(IDefdocQryService.class);
//查询方法

DefdocVO[] prodareaVOs = defdocqry.queryDefdocByPk(new String[]{materialVOs[0].getProdarea()});

2、 修改保存单据(包括审批流和非审批流)

IplatFormEntry iIplatFormEntry =(IplatFormEntry)NCLocator.getInstance().lookup(IplatFormEntry.class.getName());
用法1
//修改保存检验单
HashMap<String, String> map = new HashMap<String, String>();
map.put(“notechecked”, “notechecked”);
IplatFormEntry iIplatFormEntry = (IplatFormEntry)NCLocator.getInstance().lookup(IplatFormEntry.class.getName());
CheckBillVO[] checkBillVOs = (CheckBillVO[]) iIplatFormEntry.processAction(“SAVEBASE”, QCBillType.CheckBill.getCode(), null, billVO, null, map);
//修改保存后返回VO没有交易类型和制单人
if(PfServiceScmUtil.isExistWorkflowDefinition(billVOs[0].getParentVO().getVtrantypecode(), billVOs[0].getParentVO().getPk_org(), billVOs[0].getParentVO().getBillmaker(), WorkflowTypeEnum.Approveflow.getIntValue())){
//有审批流true,推提交态
WorkflownoteVO worknoteVO = ((IWorkflowMachine)NCLocator.getInstance().lookup(IWorkflowMachine.class)).checkWorkFlow(“SAVE”, QCBillType.CheckBill.getCode(), checkBillVOs[0], map);
iIplatFormEntry.processAction(“SAVE”, QCBillType.CheckBill.getCode(), worknoteVO, checkBillVOs[0], null, map);
}else{//无审批流false,推审批态
//审批检验单
MsgcenterUtil pushApproveUtil = new MsgcenterUtil();
pushApproveUtil.approveBill(QCBillType.CheckBill.getCode(), pk_checkbill, “Y”,"");
}
用法2 iPFBusiAction
IPFBusiAction iPFBusiAction = NCLocator.getInstance().lookup(IPFBusiAction.class);
iPFBusiAction.processAction(“SAVEBASE”, “FJDS”, null, reAggVo, null, null);

3、人员数据更新接口
IPsndocService ips = NCLocator.getInstance().lookup(IPsndocService.class);
用法
// 存储加密密文
人员VO
psndocvO.setAttributeValue(“glbdef45”,encodestr);
ips.updatePsndoc(psndocvO);
4、通用查询接口(查询单个字段)
IUifService service = NCLocator.getInstance().lookup(IUifService.class);
String mobile = (String) service.findColValue(“bd_psndoc”, “mobile”, " pk_psndoc=’" + psn + "’ ");

  • 0
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值