Esempio n. 1
0
 public ApprovalTxnMethod(
     ApprovalTxn Cdo,
     ApprovalTxnMethods Method,
     ApprovalTxn_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Esempio n. 2
0
        public ResultStatus GetActions(
            ApprovalTxn approvalTxn,
            ApprovalTxn_Parameters parameters,
            ApprovalTxn_Request request,
            out ApprovalTxn_Result result)
        {
            result = (ApprovalTxn_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)approvalTxn, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IApprovalTxnService)this._Channel).GetActions(this._UserProfile, approvalTxn, parameters, request, out result) : this.AddMethod((Method) new ApprovalTxnMethod(approvalTxn, ApprovalTxnMethods.GetActions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetActions), res, (DCObject)approvalTxn, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }