예제 #1
0
 public ChangePackageReasonMaintMethod(
     ChangePackageReasonMaint Cdo,
     ChangePackageReasonMaintMethods Method,
     ChangePackageReasonMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
예제 #2
0
        public ResultStatus Freeze(
            ChangePackageReasonMaint changePackageReasonMaint,
            ChangePackageReasonMaint_Parameters parameters,
            ChangePackageReasonMaint_Request request,
            out ChangePackageReasonMaint_Result result)
        {
            result = (ChangePackageReasonMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)changePackageReasonMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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