Esempio n. 1
0
 public CreateProductionEventMethod(
     CreateProductionEvent Cdo,
     CreateProductionEventMethods Method,
     CreateProductionEvent_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Esempio n. 2
0
        public ResultStatus GetActions(
            CreateProductionEvent createProductionEvent,
            CreateProductionEvent_Parameters parameters,
            CreateProductionEvent_Request request,
            out CreateProductionEvent_Result result)
        {
            result = (CreateProductionEvent_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)createProductionEvent, (Parameters)parameters, (Request)request);
            ResultStatus res;

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