public AsibentryIBRIRInitializeResponseAPI IBRIRInitialize(AsibentryIBRIRInitializeRequestAPI AsibentryIBRIRInitializeRequestAPI) { var result = new AsibentryIBRIRInitializeResponseAPI(); var pdsibprint = new pdsibprintDataSet(); string cErrorMessage = string.Empty; foreach (var obj in AsibentryIBRIRInitializeRequestAPI.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, AsibentryIBRIRInitializeRequestAPI.ibprintsingle); pdsibprint.ttblibprintsingle.AddttblibprintsingleRow((pdsibprintDataSet.ttblibprintsingleRow)ttblibprintsingleRow); NLogLoggerP.Trace("IBRIRInitialize - Asibentry - Before Call"); StopwatchUtil.Time( () => { using (var poAsibentryproxy = this.proxyAppObject.CreatePO_asibentryproxy()) { this.SetRequiredContextParameters(); poAsibentryproxy.IBRIRInitialize(ref pdsContext, ref pdsibprint, out cErrorMessage); } }); NLogLoggerP.Info("IBRIRInitialize - 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); }
public void IBRSDemandPrint(AsibentryIBRSDemandPrintRequestAPI AsibentryIBRSDemandPrintRequestAPI) { var pdsibprint = new pdsibprintDataSet(); var pdsprintersettings = new pdsprintersettingsDataSet(); string cErrorMessage = string.Empty; foreach (var obj in AsibentryIBRSDemandPrintRequestAPI.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, AsibentryIBRSDemandPrintRequestAPI.ibprintsingle); pdsibprint.ttblibprintsingle.AddttblibprintsingleRow((pdsibprintDataSet.ttblibprintsingleRow)ttblibprintsingleRow); DataRow ttblprintersettingsRow = pdsprintersettings.ttblprintersettings.NewttblprintersettingsRow(); Printersettings.UpdateRowFromPrintersettings(ref ttblprintersettingsRow, AsibentryIBRSDemandPrintRequestAPI.printersettings); pdsprintersettings.ttblprintersettings.AddttblprintersettingsRow((pdsprintersettingsDataSet.ttblprintersettingsRow)ttblprintersettingsRow); NLogLoggerP.Trace("IBRSDemandPrint - Asibentry - Before Call"); StopwatchUtil.Time( () => { using (var poAsibentryproxy = this.proxyAppObject.CreatePO_asibentryproxy()) { this.SetRequiredContextParameters(); poAsibentryproxy.IBRSDemandPrint(ref pdsContext, pdsibprint, pdsprintersettings, out cErrorMessage); } }); NLogLoggerP.Info("IBRSDemandPrint - Asibentry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsibprint); }