Пример #1
0
 public UpdateSamplingLotMethod(
     UpdateSamplingLot Cdo,
     UpdateSamplingLotMethods Method,
     UpdateSamplingLot_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Пример #2
0
        public ResultStatus GetActions(
            UpdateSamplingLot updateSamplingLot,
            UpdateSamplingLot_Parameters parameters,
            UpdateSamplingLot_Request request,
            out UpdateSamplingLot_Result result)
        {
            result = (UpdateSamplingLot_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)updateSamplingLot, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IUpdateSamplingLotService)this._Channel).GetActions(this._UserProfile, updateSamplingLot, parameters, request, out result) : this.AddMethod((Method) new UpdateSamplingLotMethod(updateSamplingLot, UpdateSamplingLotMethods.GetActions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetActions), res, (DCObject)updateSamplingLot, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }