Пример #1
0
        public AsibentryIBRSInitializeResponseAPI IBRSInitialize(AsibentryIBRSInitializeRequestAPI AsibentryIBRSInitializeRequestAPI)
        {
            var result = new AsibentryIBRSInitializeResponseAPI();

            var pdsibprint = new pdsibprintDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AsibentryIBRSInitializeRequestAPI.ibordersresults)
            {
                DataRow ttblibordersresultsRow = pdsibprint.ttblibordersresults.NewttblibordersresultsRow();
                Ibordersresults.UpdateRowFromIbordersresults(ref ttblibordersresultsRow, obj);
                pdsibprint.ttblibordersresults.AddttblibordersresultsRow((pdsibprintDataSet.ttblibordersresultsRow)ttblibordersresultsRow);
            }

            DataRow ttblibprintsingleRow = pdsibprint.ttblibprintsingle.NewttblibprintsingleRow();

            Ibprintsingle.UpdateRowFromIbprintsingle(ref ttblibprintsingleRow, AsibentryIBRSInitializeRequestAPI.ibprintsingle);
            pdsibprint.ttblibprintsingle.AddttblibprintsingleRow((pdsibprintDataSet.ttblibprintsingleRow)ttblibprintsingleRow);


            NLogLoggerP.Trace("IBRSInitialize - Asibentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsibentryproxy = this.proxyAppObject.CreatePO_asibentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsibentryproxy.IBRSInitialize(ref pdsContext, ref pdsibprint, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("IBRSInitialize - Asibentry - After Call");


            this.ReportErrors(cErrorMessage);
            this.ReportErrors(this.pdsContext);
            this.ReportErrors(pdsibprint);

            foreach (DataRow row in pdsibprint.ttblibordersresults)
            {
                result.ibordersresults.Add(Ibordersresults.BuildIbordersresultsFromRow(row));
            }
            if (pdsibprint.ttblibprintsingle.Count > 0)
            {
                result.ibprintsingle = Ibprintsingle.BuildIbprintsingleFromRow(pdsibprint.ttblibprintsingle[0]);
            }


            return(result);
        }
Пример #2
0
 public AsibentryIBRSInitializeResponseAPI IBRSInitialize(AsibentryIBRSInitializeRequestAPI AsibentryIBRSInitializeRequestAPI)
 {
     return(this.repository.IBRSInitialize(AsibentryIBRSInitializeRequestAPI));
 }
Пример #3
0
 public AsibentryIBRSInitializeResponseAPI IBRSInitialize(AsibentryIBRSInitializeRequestAPI AsibentryIBRSInitializeRequestAPI)
 {
     return(this.adapter.IBRSInitialize(AsibentryIBRSInitializeRequestAPI));
 }