示例#1
0
 public MaterialContainerStartMethod(
     MaterialContainerStart Cdo,
     MaterialContainerStartMethods Method,
     MaterialContainerStart_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
示例#2
0
        public ResultStatus GetActions(
            MaterialContainerStart materialContainerStart,
            MaterialContainerStart_Parameters parameters,
            MaterialContainerStart_Request request,
            out MaterialContainerStart_Result result)
        {
            result = (MaterialContainerStart_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)materialContainerStart, (Parameters)parameters, (Request)request);
            ResultStatus res;

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