Beispiel #1
0
 public ElectronicProcedureMaintMethod(
     ElectronicProcedureMaint Cdo,
     ElectronicProcedureMaintMethods Method,
     ElectronicProcedureMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus DeleteAllRevisions(
            ElectronicProcedureMaint electronicProcedureMaint,
            ElectronicProcedureMaint_Parameters parameters,
            ElectronicProcedureMaint_Request request,
            out ElectronicProcedureMaint_Result result)
        {
            result = (ElectronicProcedureMaint_Result)null;
            this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)electronicProcedureMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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