|
楼主 |
发表于 2021-4-3 20:39:02
|
显示全部楼层
string SubId = "DP";
//创建审批服务的客户端代理
AuditServiceProxy auditSvc = new AuditServiceProxy();
//构造Login的 CalledContext对象
CalledContext calledCtx = new CalledContext();
calledCtx.subId = SubId;
calledCtx.TaskID = u8Login.get_TaskId();
calledCtx.token = u8Login.userToken;
//业务对象标识
string bizObjectId = "88";
//业务事件标识
string bizEventId = "88.Submit";
//单据号
string voucherId = "1000000020";
string errMsg = "";
bool bControlled = true;
//bool ret = auditSvc.SubmitApplicationMessage(bizObjectId,bizEventId,voucherId ,calledCtx,ref bControlled, ref errMsg);
bool ret = auditSvc.SubmitApplicationMessage2(bizObjectId, bizEventId, voucherId, calledCtx.token, ref bControlled, ref errMsg);
if (ret == true && bControlled)
{
}
else
{
} |
|