コード例 #1
0
 public PrintLabelsTxnMethod(
     PrintLabelsTxn Cdo,
     PrintLabelsTxnMethods Method,
     PrintLabelsTxn_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
コード例 #2
0
        public ResultStatus GetActions(
            PrintLabelsTxn printLabelsTxn,
            PrintLabelsTxn_Parameters parameters,
            PrintLabelsTxn_Request request,
            out PrintLabelsTxn_Result result)
        {
            result = (PrintLabelsTxn_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)printLabelsTxn, (Parameters)parameters, (Request)request);
            ResultStatus res;

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