二开了一个单据,发布一个自定义的webservice 空操作,写了一个操作服务插件public class Sl_payamounOpearationService : AbstractOperationServicePlugIn{
public override void AfterExecuteOperationTransaction(AfterExecuteOperationTransaction e)
{
base.AfterExecuteOperationTransaction(e);
if (this.FormOperation.Operation.EqualsIgnoreCase("DoQuearyAmount"))
{
string result;
if (this.Option.TryGetVariableValue
{
JObject a = JObject.Parse(result);
if (a["Fmendian"] != null && !a["Fmendian"].Value
{
//处理一些逻辑
OperateResult Result = new OperateResult();
Result.Message = "余额" + dy.GetDynamicValue
+ "授信额度" + dy.GetDynamicValue
this.OperationResult.OperateResult.Add(Result); ;
this.OperationResult.IsSuccess = true;
}
else
{
OperateResult Result = new OperateResult();
Result.Message = "XXXXXXXXXX";
this.OperationResult.IsSuccess = false;
this.OperationResult.OperateResult.Add(Result);
}
}
}
}
}
调用时:
var viewResult = clint.Sl_payamount_DoQuearyAmount(Model, Parameters);
发现viewResult 没有获取到操作结果,请问该如何处理?
推荐阅读