Beispiel #1
0
 public PrinterLabelDefinitionMaintMethod(
     PrinterLabelDefinitionMaint Cdo,
     PrinterLabelDefinitionMaintMethods Method,
     PrinterLabelDefinitionMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus DeleteAllRevisions(
            PrinterLabelDefinitionMaint printerLabelDefinitionMaint,
            PrinterLabelDefinitionMaint_Parameters parameters,
            PrinterLabelDefinitionMaint_Request request,
            out PrinterLabelDefinitionMaint_Result result)
        {
            result = (PrinterLabelDefinitionMaint_Result)null;
            this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)printerLabelDefinitionMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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