Exemple #1
0
 public ReturnedEquipmentActionMaintMethod(
     ReturnedEquipmentActionMaint Cdo,
     ReturnedEquipmentActionMaintMethods Method,
     ReturnedEquipmentActionMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemple #2
0
        public ResultStatus Freeze(
            ReturnedEquipmentActionMaint returnedEquipmentActionMaint,
            ReturnedEquipmentActionMaint_Parameters parameters,
            ReturnedEquipmentActionMaint_Request request,
            out ReturnedEquipmentActionMaint_Result result)
        {
            result = (ReturnedEquipmentActionMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)returnedEquipmentActionMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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