我需要在插件中实现自动调用反执行至计划确认的操作。调用代码:
List
pkIds.Add(new KeyValuePair
然后报错:
错误编号: 5bfa3e88f7cc4d6a83eace8ce954cb3a
错误信息: 从额外选项OperateOption中获取变量失败,变量[_BillOperationSelectedRows_]不存在!
调用堆栈:
Server stack trace:
在 Kingdee.BOS.Orm.OperateOption.GetVariableValue[T](String name)
在 Kingdee.K3.FIN.App.Core.AppBusinessService.DeleteTargetBySourceBusinessService.GetPkIdsByEntryPkIds(AppBusinessServiceArgs e, List`1 entryPkIds)
在 Kingdee.K3.FIN.App.Core.AppBusinessService.DeleteTargetBySourceBusinessService.DeleteData(AppBusinessServiceArgs e, List`1 entryIds)
在 Kingdee.K3.FIN.App.Core.AppBusinessService.DeleteTargetBySourceBusinessService.DoActionBatch(AppBusinessServiceArgs e)
在 Kingdee.K3.MFG.App.AppBizService.AppServiceUtil.InvokeAppBusinessService(Context ctx, FormBusinessService service, BusinessInfo businessInfo, ExtendedDataEntity[] dataEntities, OperateOption option, IOperationResult result, Dictionary`2 dctCustParams)
在 Kingdee.K3.MFG.SUB.App.Core.SUBBizState.ServicePlugIn.CBForSubReqStateServicePlugIn.AfterExecuteState(AfterExecuteArg e)
在 Kingdee.K3.MFG.App.ServicePlugIn.StateTransferPlugInProxy.FireOnAfterSateRun(AfterExecuteArg e)
在 Kingdee.K3.MFG.App.BizEngine.BizStateEngine.ExecuteBusinessStateLogic(Boolean bExecuteForward)
在 Kingdee.K3.MFG.App.BizEngine.BizStateEngine.InternalRunReverse()
在 Kingdee.K3.MFG.SUB.App.Core.SubReqOrderService.SUBStateTransfer(Context ctx, IEnumerable`1 subEntryDataEntities, String operation, OperateOption option)
在 Kingdee.K3.MFG.SUB.App.ServicePlugIn.ReqOrder.SetStatus.EndOperationTransaction(EndOperationTransactionArgs e)
在 Kingdee.BOS.App.Core.PlugInProxy.OperationServicePlugInProxy.FireEndOperationTransaction(EndOperationTransactionArgs e)
在 Kingdee.BOS.App.Core.AbstractOprerationService.CallOperation(DynamicObject[]& objs)
在 Kingdee.BOS.App.Core.AbstractOprerationService.CallOperatinTransaction(DynamicObject[] objs)
在 Kingdee.BOS.App.Core.AbstractOprerationService.DoExcete()
在 Kingdee.BOS.App.Core.AbstractOprerationService.Excute(Object[] ids)
在 Kingdee.BOS.App.Core.AbstractSetStatus.Excute(Object[] ids)
推荐阅读