Пример #1
0
 public ResultStatus GetWIPMsgs(
     Import import,
     Import_Request request,
     out Import_Result result)
 {
     return(this.GetWIPMsgs(import, (Import_Parameters)null, request, out result));
 }
Пример #2
0
 public ResultStatus Load(
     Import import,
     Import_Request request,
     out Import_Result result)
 {
     return(this.Load(import, (Import_Parameters)null, request, out result));
 }
Пример #3
0
 public ResultStatus GetEnvironment(
     Import cdo,
     Import_Request request,
     out Import_Result result)
 {
     result = (Import_Result)null;
     try
     {
         return(((IImportService)this._Channel).GetEnvironment(this._UserProfile, cdo, request, out result));
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
Пример #4
0
 public ResultStatus CommitTransaction(
     Import_Request request,
     out Import_Result result)
 {
     result = (Import_Result)null;
     try
     {
         ImportMethod[] methods = new ImportMethod[this.GetMethodCount()];
         this.CopyMethods((Method[])methods);
         return(((IImportService)this._Channel).CommitTransaction(this._UserProfile, methods, request, out result));
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
Пример #5
0
        public ResultStatus ExecuteTransaction(
            Import cdo,
            Import_Request request,
            out Import_Result result)
        {
            result = (Import_Result)null;
            this.OnBeforeCall(nameof(ExecuteTransaction), (DCObject)cdo, (Parameters)null, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IImportService)this._Channel).ExecuteTransaction(this._UserProfile, cdo, request, out result) : this.AddMethod((Method) new ImportMethod(cdo, ImportMethods.ExecuteTransaction, (Import_Parameters)null));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(ExecuteTransaction), res, (DCObject)cdo, (Parameters)null, (Request)request, (Result)result);
            }
            return(res);
        }
Пример #6
0
        public ResultStatus GetWIPMsgs(
            Import import,
            Import_Parameters parameters,
            Import_Request request,
            out Import_Result result)
        {
            result = (Import_Result)null;
            this.OnBeforeCall(nameof(GetWIPMsgs), (DCObject)import, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IImportService)this._Channel).GetWIPMsgs(this._UserProfile, import, parameters, request, out result) : this.AddMethod((Method) new ImportMethod(import, ImportMethods.GetWIPMsgs, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetWIPMsgs), res, (DCObject)import, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }
Пример #7
0
 public ResultStatus ExecuteTransaction(
     Import_Request request,
     out Import_Result result)
 {
     return(this.ExecuteTransaction((Import)null, request, out result));
 }
Пример #8
0
 public ResultStatus GetEnvironment(Import_Request request, out Import_Result result)
 {
     return(this.GetEnvironment((Import)null, request, out result));
 }