付款申请单发票名校验
This commit is contained in:
parent
ab9c9890d0
commit
f30da254db
|
@ -0,0 +1,47 @@
|
||||||
|
package zcgj.zcdev.zcdev.pr.plugin.form;
|
||||||
|
|
||||||
|
import kd.bos.context.RequestContext;
|
||||||
|
import kd.bos.dataentity.entity.DynamicObject;
|
||||||
|
import kd.bos.form.events.ClosedCallBackEvent;
|
||||||
|
import kd.ec.basedata.common.invoicecloud.InvoiceDataHandleHelper;
|
||||||
|
import kd.ec.basedata.common.invoicecloud.bean.InvoiceVO;
|
||||||
|
import kd.ec.contract.formplugin.PaymentApplyEditUI;
|
||||||
|
import kd.ec.contract.utils.ImportInvoiceUtils;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
public class customPaymentApplyEditUI extends PaymentApplyEditUI {
|
||||||
|
public void closedCallBack(ClosedCallBackEvent event) {
|
||||||
|
super.closedCallBack(event);
|
||||||
|
String actionId = event.getActionId();
|
||||||
|
Object returnData = event.getReturnData();
|
||||||
|
if (actionId.equals("ec_out_contract") && returnData != null) {
|
||||||
|
this.contractCloseCallBack(event);
|
||||||
|
} else if (actionId.equals("subentryentity") && returnData != null) {
|
||||||
|
this.invoiceCloseCallBack(event);
|
||||||
|
} else if (actionId.equals("itementry") && returnData != null) {
|
||||||
|
this.itemInvoiceCloseCallBack(event);
|
||||||
|
} else if (actionId.equals("importinvoice") && returnData != null) {
|
||||||
|
this.importInvoiceCallBack(returnData);
|
||||||
|
} else if (actionId.equals("advancedetail") && returnData != null) {
|
||||||
|
this.advanceDetailCallBack(returnData);
|
||||||
|
} else if (actionId.equals("payNodeF7") && returnData != null) {
|
||||||
|
this.payNodeCallBack(returnData);
|
||||||
|
} else if (actionId.equals("selectinvoice") && returnData != null) {
|
||||||
|
this.selectInvoiceCallBack(returnData);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void selectInvoiceCallBack(Object returnData) {
|
||||||
|
DynamicObject org = (DynamicObject)this.getModel().getValue("fiaccountorg");
|
||||||
|
List<InvoiceVO> invoiceVOList = InvoiceDataHandleHelper.parseXhInvoiceCloudReturnData(returnData);
|
||||||
|
Map<Boolean, Set<DynamicObject>> invoiceMap = CustomInvoiceDataHandleHelper.processInvoiceVO(invoiceVOList, RequestContext.get().getCurrUserId(), org.getLong("id"), new Date(), "ec_in_invoice", (DynamicObject)this.getModel().getValue("currency"), true);
|
||||||
|
ImportInvoiceUtils invoiceUtils = new ImportInvoiceUtils(this.getView(), this.getPageCache());
|
||||||
|
this.addInvoiceToEntry(invoiceUtils, invoiceMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue