Пример #1
0
 public AssignedMaintReqMaintMethod(
     AssignedMaintReqMaint Cdo,
     AssignedMaintReqMaintMethods Method,
     AssignedMaintReqMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Пример #2
0
        public ResultStatus Freeze(
            AssignedMaintReqMaint assignedMaintReqMaint,
            AssignedMaintReqMaint_Parameters parameters,
            AssignedMaintReqMaint_Request request,
            out AssignedMaintReqMaint_Result result)
        {
            result = (AssignedMaintReqMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)assignedMaintReqMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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