예제 #1
0
 public ScrapReasonMaintMethod(
     ScrapReasonMaint Cdo,
     ScrapReasonMaintMethods Method,
     ScrapReasonMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
예제 #2
0
        public ResultStatus Freeze(
            ScrapReasonMaint scrapReasonMaint,
            ScrapReasonMaint_Parameters parameters,
            ScrapReasonMaint_Request request,
            out ScrapReasonMaint_Result result)
        {
            result = (ScrapReasonMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)scrapReasonMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IScrapReasonMaintService)this._Channel).Freeze(this._UserProfile, scrapReasonMaint, parameters, request, out result) : this.AddMethod((Method) new ScrapReasonMaintMethod(scrapReasonMaint, ScrapReasonMaintMethods.Freeze, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Freeze), res, (DCObject)scrapReasonMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }