コード例 #1
0
 public DelegationReasonCodeMaintMethod(
     DelegationReasonCodeMaint Cdo,
     DelegationReasonCodeMaintMethods Method,
     DelegationReasonCodeMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
コード例 #2
0
        public ResultStatus Freeze(
            DelegationReasonCodeMaint delegationReasonCodeMaint,
            DelegationReasonCodeMaint_Parameters parameters,
            DelegationReasonCodeMaint_Request request,
            out DelegationReasonCodeMaint_Result result)
        {
            result = (DelegationReasonCodeMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)delegationReasonCodeMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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