|
@@ -154,7 +154,7 @@ public class ArapExpPfxxPlugin<T extends BaseAggVO> extends AbstractPfxxPlugin {
|
|
|
ArapExpPfxxValidater.getInstance().validate(bill);
|
|
|
ArapVOUtils.validateVoCopyRed(bill);
|
|
|
|
|
|
- if (!head.getPk_billtype().equals("F3")||!head.getPk_billtype().equals("F2")) {
|
|
|
+ if (!head.getPk_billtype().equals("F3")&&!head.getPk_billtype().equals("F2")) {
|
|
|
head.setBillno((String) null);
|
|
|
}
|
|
|
|
|
@@ -180,6 +180,7 @@ public class ArapExpPfxxPlugin<T extends BaseAggVO> extends AbstractPfxxPlugin {
|
|
|
|
|
|
private BaseAggVO insertBill(BaseAggVO bill) throws BusinessException {
|
|
|
BaseAggVO res = null;
|
|
|
+ IPFBusiAction service = NCLocator.getInstance().lookup(IPFBusiAction.class);
|
|
|
if (bill.getHeadVO().getPk_billtype().equals("F0")) {
|
|
|
res = (AggReceivableBillVO) ArrayUtil.getFirstInArrays((Object[]) ((Object[]) NCPfServiceUtils.processBatch(
|
|
|
ArapFlowUtil.getCommitActionCode(bill.getHeadVO().getPk_org(), "F0"),
|
|
@@ -190,7 +191,6 @@ public class ArapExpPfxxPlugin<T extends BaseAggVO> extends AbstractPfxxPlugin {
|
|
|
ArapFlowUtil.getCommitActionCode(bill.getHeadVO().getPk_org(), "F1"),
|
|
|
bill.getHeadVO().getPk_billtype(), new AggPayableBillVO[]{(AggPayableBillVO) bill},
|
|
|
this.getUserObj(), new WorkflownoteVO())));
|
|
|
- IPFBusiAction service = NCLocator.getInstance().lookup(IPFBusiAction.class);
|
|
|
service.processAction(IPFActionName.APPROVE,
|
|
|
"F1", null, res, null, null);
|
|
|
} else if (bill.getHeadVO().getPk_billtype().equals("F2")) {
|
|
@@ -198,12 +198,13 @@ public class ArapExpPfxxPlugin<T extends BaseAggVO> extends AbstractPfxxPlugin {
|
|
|
ArapFlowUtil.getCommitActionCode(bill.getHeadVO().getPk_org(), "F2"),
|
|
|
bill.getHeadVO().getPk_billtype(), new AggGatheringBillVO[]{(AggGatheringBillVO) bill},
|
|
|
this.getUserObj(), new WorkflownoteVO())));
|
|
|
+ service.processAction(IPFActionName.APPROVE,
|
|
|
+ "F2", null, res, null, null);
|
|
|
} else if (bill.getHeadVO().getPk_billtype().equals("F3")) {
|
|
|
res = (AggPayBillVO) ArrayUtil.getFirstInArrays((Object[]) ((Object[]) NCPfServiceUtils.processBatch(
|
|
|
ArapFlowUtil.getCommitActionCode(bill.getHeadVO().getPk_org(), "F3"),
|
|
|
bill.getHeadVO().getPk_billtype(), new AggPayBillVO[]{(AggPayBillVO) bill}, this.getUserObj(),
|
|
|
new WorkflownoteVO())));
|
|
|
- IPFBusiAction service = NCLocator.getInstance().lookup(IPFBusiAction.class);
|
|
|
service.processAction(IPFActionName.APPROVE,
|
|
|
"F3", null, res, null, null);
|
|
|
}
|
|
@@ -214,22 +215,24 @@ public class ArapExpPfxxPlugin<T extends BaseAggVO> extends AbstractPfxxPlugin {
|
|
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
|
|
private BaseAggVO insertInitBill(BaseAggVO bill) throws BusinessException {
|
|
|
BaseAggVO res = null;
|
|
|
+ IPFBusiAction service = NCLocator.getInstance().lookup(IPFBusiAction.class);
|
|
|
if (bill.getHeadVO().getPk_billtype().equals("F0")) {
|
|
|
res = ((IArapInitRecService) NCLocator.getInstance().lookup(IArapInitRecService.class))
|
|
|
.save((AggReceivableBillVO) bill);
|
|
|
} else if (bill.getHeadVO().getPk_billtype().equals("F1")) {
|
|
|
res = ((IArapInitPayableService) NCLocator.getInstance().lookup(IArapInitPayableService.class))
|
|
|
.save((AggPayableBillVO) bill);
|
|
|
- IPFBusiAction service = NCLocator.getInstance().lookup(IPFBusiAction.class);
|
|
|
service.processAction(IPFActionName.APPROVE,
|
|
|
"F1", null, res, null, null);
|
|
|
} else if (bill.getHeadVO().getPk_billtype().equals("F2")) {
|
|
|
res = ((IArapInitGatheringService) NCLocator.getInstance().lookup(IArapInitGatheringService.class))
|
|
|
.save((AggGatheringBillVO) bill);
|
|
|
+ service.processAction(IPFActionName.APPROVE,
|
|
|
+ "F2", null, res, null, null);
|
|
|
} else if (bill.getHeadVO().getPk_billtype().equals("F3")) {
|
|
|
res = ((IArapInitPaybillService) NCLocator.getInstance().lookup(IArapInitPaybillService.class))
|
|
|
.save((AggPayBillVO) bill);
|
|
|
- IPFBusiAction service = NCLocator.getInstance().lookup(IPFBusiAction.class);
|
|
|
+
|
|
|
service.processAction(IPFActionName.APPROVE,
|
|
|
"F3", null, res, null, null);
|
|
|
}
|