Beispiel #1
0
 public MfgCalendarMaintMethod(
     MfgCalendarMaint Cdo,
     MfgCalendarMaintMethods Method,
     MfgCalendarMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus Delete(
            MfgCalendarMaint mfgCalendarMaint,
            MfgCalendarMaint_Parameters parameters,
            MfgCalendarMaint_Request request,
            out MfgCalendarMaint_Result result)
        {
            result = (MfgCalendarMaint_Result)null;
            this.OnBeforeCall(nameof(Delete), (DCObject)mfgCalendarMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IMfgCalendarMaintService)this._Channel).Delete(this._UserProfile, mfgCalendarMaint, parameters, request, out result) : this.AddMethod((Method) new MfgCalendarMaintMethod(mfgCalendarMaint, MfgCalendarMaintMethods.Delete, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Delete), res, (DCObject)mfgCalendarMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }