Beispiel #1
0
 public NCRFailureCodeMaintMethod(
     NCRFailureCodeMaint Cdo,
     NCRFailureCodeMaintMethods Method,
     NCRFailureCodeMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus Freeze(
            NCRFailureCodeMaint nCRFailureCodeMaint,
            NCRFailureCodeMaint_Parameters parameters,
            NCRFailureCodeMaint_Request request,
            out NCRFailureCodeMaint_Result result)
        {
            result = (NCRFailureCodeMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)nCRFailureCodeMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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