Exemplo n.º 1
0
 public ReworkReasonMaintMethod(
     ReworkReasonMaint Cdo,
     ReworkReasonMaintMethods Method,
     ReworkReasonMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemplo n.º 2
0
        public ResultStatus Freeze(
            ReworkReasonMaint reworkReasonMaint,
            ReworkReasonMaint_Parameters parameters,
            ReworkReasonMaint_Request request,
            out ReworkReasonMaint_Result result)
        {
            result = (ReworkReasonMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)reworkReasonMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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