Exemple #1
0
 public VendorMaintMethod(
     VendorMaint Cdo,
     VendorMaintMethods Method,
     VendorMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemple #2
0
        public ResultStatus Freeze(
            VendorMaint vendorMaint,
            VendorMaint_Parameters parameters,
            VendorMaint_Request request,
            out VendorMaint_Result result)
        {
            result = (VendorMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)vendorMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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