示例#1
0
 public ResultStatus Load(
     Export export,
     Export_Request request,
     out Export_Result result)
 {
     return(this.Load(export, (Export_Parameters)null, request, out result));
 }
示例#2
0
 public ResultStatus GetWIPMsgs(
     Export export,
     Export_Request request,
     out Export_Result result)
 {
     return(this.GetWIPMsgs(export, (Export_Parameters)null, request, out result));
 }
示例#3
0
 public ResultStatus GetEnvironment(
     Export cdo,
     Export_Request request,
     out Export_Result result)
 {
     result = (Export_Result)null;
     try
     {
         return(((IExportService)this._Channel).GetEnvironment(this._UserProfile, cdo, request, out result));
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
示例#4
0
 public ResultStatus CommitTransaction(
     Export_Request request,
     out Export_Result result)
 {
     result = (Export_Result)null;
     try
     {
         ExportMethod[] methods = new ExportMethod[this.GetMethodCount()];
         this.CopyMethods((Method[])methods);
         return(((IExportService)this._Channel).CommitTransaction(this._UserProfile, methods, request, out result));
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
示例#5
0
        public ResultStatus ExecuteTransaction(
            Export cdo,
            Export_Request request,
            out Export_Result result)
        {
            result = (Export_Result)null;
            this.OnBeforeCall(nameof(ExecuteTransaction), (DCObject)cdo, (Parameters)null, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IExportService)this._Channel).ExecuteTransaction(this._UserProfile, cdo, request, out result) : this.AddMethod((Method) new ExportMethod(cdo, ExportMethods.ExecuteTransaction, (Export_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 Load(
            Export export,
            Export_Parameters parameters,
            Export_Request request,
            out Export_Result result)
        {
            result = (Export_Result)null;
            this.OnBeforeCall(nameof(Load), (DCObject)export, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((IExportService)this._Channel).Load(this._UserProfile, export, parameters, request, out result) : this.AddMethod((Method) new ExportMethod(export, ExportMethods.Load, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Load), res, (DCObject)export, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }
示例#7
0
 public ResultStatus ExecuteTransaction(
     Export_Request request,
     out Export_Result result)
 {
     return(this.ExecuteTransaction((Export)null, request, out result));
 }
示例#8
0
 public ResultStatus GetEnvironment(Export_Request request, out Export_Result result)
 {
     return(this.GetEnvironment((Export)null, request, out result));
 }