Beispiel #1
0
 public OccupationMaintMethod(
     OccupationMaint Cdo,
     OccupationMaintMethods Method,
     OccupationMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus Freeze(
            OccupationMaint occupationMaint,
            OccupationMaint_Parameters parameters,
            OccupationMaint_Request request,
            out OccupationMaint_Result result)
        {
            result = (OccupationMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)occupationMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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