Exemplo n.º 1
0
        public AsibentryIBRCInitializeResponseAPI IBRCInitialize(AsibentryIBRCInitializeRequestAPI AsibentryIBRCInitializeRequestAPI)
        {
            var result = new AsibentryIBRCInitializeResponseAPI();

            var pdsibprint = new pdsibprintDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AsibentryIBRCInitializeRequestAPI.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, AsibentryIBRCInitializeRequestAPI.ibprintsingle);
            pdsibprint.ttblibprintsingle.AddttblibprintsingleRow((pdsibprintDataSet.ttblibprintsingleRow)ttblibprintsingleRow);


            NLogLoggerP.Trace("IBRCInitialize - Asibentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsibentryproxy = this.proxyAppObject.CreatePO_asibentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsibentryproxy.IBRCInitialize(ref pdsContext, ref pdsibprint, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("IBRCInitialize - 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);
        }
Exemplo n.º 2
0
 public AsibentryIBRCInitializeResponseAPI IBRCInitialize(AsibentryIBRCInitializeRequestAPI AsibentryIBRCInitializeRequestAPI)
 {
     return(this.repository.IBRCInitialize(AsibentryIBRCInitializeRequestAPI));
 }
Exemplo n.º 3
0
 public AsibentryIBRCInitializeResponseAPI IBRCInitialize(AsibentryIBRCInitializeRequestAPI AsibentryIBRCInitializeRequestAPI)
 {
     return(this.adapter.IBRCInitialize(AsibentryIBRCInitializeRequestAPI));
 }