Ejemplo n.º 1
0
 public ERPBOMMaintMethod(
     ERPBOMMaint Cdo,
     ERPBOMMaintMethods Method,
     ERPBOMMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Ejemplo n.º 2
0
        public ResultStatus DeleteAllRevisions(
            ERPBOMMaint eRPBOMMaint,
            ERPBOMMaint_Parameters parameters,
            ERPBOMMaint_Request request,
            out ERPBOMMaint_Result result)
        {
            result = (ERPBOMMaint_Result)null;
            this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)eRPBOMMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IERPBOMMaintService)this._Channel).DeleteAllRevisions(this._UserProfile, eRPBOMMaint, parameters, request, out result) : this.AddMethod((Method) new ERPBOMMaintMethod(eRPBOMMaint, ERPBOMMaintMethods.DeleteAllRevisions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(DeleteAllRevisions), res, (DCObject)eRPBOMMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }