예제 #1
0
 public UserCodeGroupMaintMethod(
     UserCodeGroupMaint Cdo,
     UserCodeGroupMaintMethods Method,
     UserCodeGroupMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
예제 #2
0
        public ResultStatus Freeze(
            UserCodeGroupMaint userCodeGroupMaint,
            UserCodeGroupMaint_Parameters parameters,
            UserCodeGroupMaint_Request request,
            out UserCodeGroupMaint_Result result)
        {
            result = (UserCodeGroupMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)userCodeGroupMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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