Пример #1
0
        public ResultStatus CreateParametricData(
            NCRCreate nCRCreate,
            NCRCreate_Parameters parameters,
            NCRCreate_Request request,
            out NCRCreate_Result result)
        {
            result = (NCRCreate_Result)null;
            this.OnBeforeCall(nameof(CreateParametricData), (DCObject)nCRCreate, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((INCRCreateService)this._Channel).CreateParametricData(this._UserProfile, nCRCreate, parameters, request, out result) : this.AddMethod((Method) new NCRCreateMethod(nCRCreate, NCRCreateMethods.CreateParametricData, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(CreateParametricData), res, (DCObject)nCRCreate, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }
Пример #2
0
 public NCRCreateMethod(NCRCreate Cdo, NCRCreateMethods Method, NCRCreate_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }