Пример #1
0
 public DocAttachmentsTxnMethod(
     DocAttachmentsTxn Cdo,
     DocAttachmentsTxnMethods Method,
     DocAttachmentsTxn_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Пример #2
0
        public ResultStatus GetActions(
            DocAttachmentsTxn docAttachmentsTxn,
            DocAttachmentsTxn_Parameters parameters,
            DocAttachmentsTxn_Request request,
            out DocAttachmentsTxn_Result result)
        {
            result = (DocAttachmentsTxn_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)docAttachmentsTxn, (Parameters)parameters, (Request)request);
            ResultStatus res;

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