public AswtheaderWTETHeaderRetrieveResponseAPI WTETHeaderRetrieve(Wtheaderretrievecriteria wtheaderretrievecriteria) { var result = new AswtheaderWTETHeaderRetrieveResponseAPI(); var pdswtheaderretrieve = new pdswtheaderretrieveDataSet(); var pdswthdr = new pdswthdrDataSet(); var pdswlstatus = new pdswlstatusDataSet(); var pdsmessaging = new pdsmessagingDataSet(); DataRow ttblwtheaderretrievecriteriaCriteria = pdswtheaderretrieve.ttblwtheaderretrievecriteria.NewttblwtheaderretrievecriteriaRow(); Wtheaderretrievecriteria.UpdateRowFromWtheaderretrievecriteria(ref ttblwtheaderretrievecriteriaCriteria, wtheaderretrievecriteria); pdswtheaderretrieve.ttblwtheaderretrievecriteria.AddttblwtheaderretrievecriteriaRow((pdswtheaderretrieveDataSet.ttblwtheaderretrievecriteriaRow)ttblwtheaderretrievecriteriaCriteria); string cErrorMessage = string.Empty; NLogLoggerP.Trace("WTETHeaderRetrieve - Aswtheader - Before Call"); StopwatchUtil.Time( () => { using (var poAswtheaderproxy = this.proxyAppObject.CreatePO_aswtheaderproxy()) { this.SetRequiredContextParameters(); poAswtheaderproxy.WTETHeaderRetrieve(ref pdsContext, pdswtheaderretrieve, out pdswthdr, out pdswlstatus, out pdsmessaging, out cErrorMessage); } }); NLogLoggerP.Info("WTETHeaderRetrieve - Aswtheader - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdswtheaderretrieve); foreach (DataRow row in pdsmessaging.ttblmessaging) { result.messaging.Add(Messaging.BuildMessagingFromRow(row)); } if (pdswlstatus.ttblwlstatus.Count > 0) { result.wlstatus = Wlstatus.BuildWlstatusFromRow(pdswlstatus.ttblwlstatus[0]); } if (pdswthdr.ttblwthdr.Count > 0) { result.wthdr = Wthdr.BuildWthdrFromRow(pdswthdr.ttblwthdr[0]); } return(result); }
public AswtheaderWTETHeaderCreateResponseAPI WTETHeaderCreate(Wthdr wthdr) { var result = new AswtheaderWTETHeaderCreateResponseAPI(); var pdswthdr = new pdswthdrDataSet(); var pdsmessaging = new pdsmessagingDataSet(); DataRow ttblwthdrCriteria = pdswthdr.ttblwthdr.NewttblwthdrRow(); Wthdr.UpdateRowFromWthdr(ref ttblwthdrCriteria, wthdr); pdswthdr.ttblwthdr.AddttblwthdrRow((pdswthdrDataSet.ttblwthdrRow)ttblwthdrCriteria); int iNewWTNo = 0; string cErrorMessage = string.Empty; NLogLoggerP.Trace("WTETHeaderCreate - Aswtheader - Before Call"); StopwatchUtil.Time( () => { using (var poAswtheaderproxy = this.proxyAppObject.CreatePO_aswtheaderproxy()) { this.SetRequiredContextParameters(); poAswtheaderproxy.WTETHeaderCreate(ref pdsContext, pdswthdr, out pdsmessaging, out iNewWTNo, out cErrorMessage); } }); NLogLoggerP.Info("WTETHeaderCreate - Aswtheader - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdswthdr); foreach (DataRow row in pdsmessaging.ttblmessaging) { result.messaging.Add(Messaging.BuildMessagingFromRow(row)); } result.iNewWTNo = iNewWTNo; return(result); }
public IEnumerable <Messaging> WTETHeaderUpdate(Wthdr wthdr) { return(this.repository.WTETHeaderUpdate(wthdr)); }
public AswtheaderWTETHeaderCreateResponseAPI WTETHeaderCreate(Wthdr wthdr) { return(this.repository.WTETHeaderCreate(wthdr)); }
public IEnumerable <Messaging> WTETHeaderUpdate(Wthdr wthdr) { return(this.adapter.WTETHeaderUpdate(wthdr)); }
public AswtheaderWTETHeaderCreateResponseAPI WTETHeaderCreate(Wthdr wthdr) { return(this.adapter.WTETHeaderCreate(wthdr)); }