示例#1
0
 public RouteApprovalSheetMethod(
     RouteApprovalSheet Cdo,
     RouteApprovalSheetMethods Method,
     RouteApprovalSheet_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
示例#2
0
        public ResultStatus GetActions(
            RouteApprovalSheet routeApprovalSheet,
            RouteApprovalSheet_Parameters parameters,
            RouteApprovalSheet_Request request,
            out RouteApprovalSheet_Result result)
        {
            result = (RouteApprovalSheet_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)routeApprovalSheet, (Parameters)parameters, (Request)request);
            ResultStatus res;

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