Ejemplo n.º 1
0
 public ProductFamilyMaintMethod(
     ProductFamilyMaint Cdo,
     ProductFamilyMaintMethods Method,
     ProductFamilyMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus Freeze(
            ProductFamilyMaint productFamilyMaint,
            ProductFamilyMaint_Parameters parameters,
            ProductFamilyMaint_Request request,
            out ProductFamilyMaint_Result result)
        {
            result = (ProductFamilyMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)productFamilyMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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