Пример #1
0
 public NCRResolutionCodeMaintMethod(
     NCRResolutionCodeMaint Cdo,
     NCRResolutionCodeMaintMethods Method,
     NCRResolutionCodeMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Пример #2
0
        public ResultStatus Freeze(
            NCRResolutionCodeMaint nCRResolutionCodeMaint,
            NCRResolutionCodeMaint_Parameters parameters,
            NCRResolutionCodeMaint_Request request,
            out NCRResolutionCodeMaint_Result result)
        {
            result = (NCRResolutionCodeMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)nCRResolutionCodeMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((INCRResolutionCodeMaintService)this._Channel).Freeze(this._UserProfile, nCRResolutionCodeMaint, parameters, request, out result) : this.AddMethod((Method) new NCRResolutionCodeMaintMethod(nCRResolutionCodeMaint, NCRResolutionCodeMaintMethods.Freeze, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Freeze), res, (DCObject)nCRResolutionCodeMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }