Esempio n. 1
0
 public SellReasonMaintMethod(
     SellReasonMaint Cdo,
     SellReasonMaintMethods Method,
     SellReasonMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Esempio n. 2
0
        public ResultStatus Freeze(
            SellReasonMaint sellReasonMaint,
            SellReasonMaint_Parameters parameters,
            SellReasonMaint_Request request,
            out SellReasonMaint_Result result)
        {
            result = (SellReasonMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)sellReasonMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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