Ejemplo n.º 1
0
 public CustomerMaintMethod(
     CustomerMaint Cdo,
     CustomerMaintMethods Method,
     CustomerMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus Freeze(
            CustomerMaint customerMaint,
            CustomerMaint_Parameters parameters,
            CustomerMaint_Request request,
            out CustomerMaint_Result result)
        {
            result = (CustomerMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)customerMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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