Beispiel #1
0
 public BonusReasonGroupMaintMethod(
     BonusReasonGroupMaint Cdo,
     BonusReasonGroupMaintMethods Method,
     BonusReasonGroupMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus Freeze(
            BonusReasonGroupMaint bonusReasonGroupMaint,
            BonusReasonGroupMaint_Parameters parameters,
            BonusReasonGroupMaint_Request request,
            out BonusReasonGroupMaint_Result result)
        {
            result = (BonusReasonGroupMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)bonusReasonGroupMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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