Esempio n. 1
0
 public ProcessModelMaintMethod(
     ProcessModelMaint Cdo,
     ProcessModelMaintMethods Method,
     ProcessModelMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Esempio n. 2
0
        public ResultStatus ValidateStageOnDelete(
            ProcessModelMaint processModelMaint,
            ProcessModelMaint_Parameters parameters,
            ProcessModelMaint_Request request,
            out ProcessModelMaint_Result result)
        {
            result = (ProcessModelMaint_Result)null;
            this.OnBeforeCall(nameof(ValidateStageOnDelete), (DCObject)processModelMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IProcessModelMaintService)this._Channel).ValidateStageOnDelete(this._UserProfile, processModelMaint, parameters, request, out result) : this.AddMethod((Method) new ProcessModelMaintMethod(processModelMaint, ProcessModelMaintMethods.ValidateStageOnDelete, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(ValidateStageOnDelete), res, (DCObject)processModelMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }