コード例 #1
0
 public BillOfProcessMaintMethod(
     BillOfProcessMaint Cdo,
     BillOfProcessMaintMethods Method,
     BillOfProcessMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
コード例 #2
0
        public ResultStatus DeleteAllRevisions(
            BillOfProcessMaint billOfProcessMaint,
            BillOfProcessMaint_Parameters parameters,
            BillOfProcessMaint_Request request,
            out BillOfProcessMaint_Result result)
        {
            result = (BillOfProcessMaint_Result)null;
            this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)billOfProcessMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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