示例#1
0
 public CreateCAPAMethod(
     CreateCAPA Cdo,
     CreateCAPAMethods Method,
     CreateCAPA_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
示例#2
0
        public ResultStatus CreateParametricData(
            CreateCAPA createCAPA,
            CreateCAPA_Parameters parameters,
            CreateCAPA_Request request,
            out CreateCAPA_Result result)
        {
            result = (CreateCAPA_Result)null;
            this.OnBeforeCall(nameof(CreateParametricData), (DCObject)createCAPA, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((ICreateCAPAService)this._Channel).CreateParametricData(this._UserProfile, createCAPA, parameters, request, out result) : this.AddMethod((Method) new CreateCAPAMethod(createCAPA, CreateCAPAMethods.CreateParametricData, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(CreateParametricData), res, (DCObject)createCAPA, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }