public IEnumerable <Auditinqprimarykey> AuditInquiryPrimaryKey(string cTableName) { var results = new List <Auditinqprimarykey>(); var pdsauditinqprimarykey = new pdsauditinqprimarykeyDataSet(); string cErrorMessage = string.Empty; NLogLoggerP.Trace("AuditInquiryPrimaryKey - Assainquiry - Before Call"); StopwatchUtil.Time( () => { using (var poAssainquiryproxy = this.proxyAppObject.CreatePO_assainquiryproxy()) { this.SetRequiredContextParameters(); poAssainquiryproxy.AuditInquiryPrimaryKey(ref pdsContext, cTableName, out pdsauditinqprimarykey, out cErrorMessage); } }); NLogLoggerP.Info("AuditInquiryPrimaryKey - Assainquiry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsauditinqprimarykey); foreach (DataRow row in pdsauditinqprimarykey.ttblauditinqprimarykey) { results.Add(Auditinqprimarykey.BuildAuditinqprimarykeyFromRow(row)); } return(results); }
public IEnumerable <Auditinqauditresults> AuditInquiryAuditRetrieve(AssainquiryAuditInquiryAuditRetrieveRequestAPI AssainquiryAuditInquiryAuditRetrieveRequestAPI) { var results = new List <Auditinqauditresults>(); var pdsauditinqauditcriteria = new pdsauditinqauditcriteriaDataSet(); var pdsauditinqprimarykey = new pdsauditinqprimarykeyDataSet(); var pdsauditinqauditresults = new pdsauditinqauditresultsDataSet(); string cErrorMessage = string.Empty; DataRow ttblauditinqauditcriteriaRow = pdsauditinqauditcriteria.ttblauditinqauditcriteria.NewttblauditinqauditcriteriaRow(); Auditinqauditcriteria.UpdateRowFromAuditinqauditcriteria(ref ttblauditinqauditcriteriaRow, AssainquiryAuditInquiryAuditRetrieveRequestAPI.auditinqauditcriteria); pdsauditinqauditcriteria.ttblauditinqauditcriteria.AddttblauditinqauditcriteriaRow((pdsauditinqauditcriteriaDataSet.ttblauditinqauditcriteriaRow)ttblauditinqauditcriteriaRow); foreach (var obj in AssainquiryAuditInquiryAuditRetrieveRequestAPI.auditinqprimarykey) { DataRow ttblauditinqprimarykeyRow = pdsauditinqprimarykey.ttblauditinqprimarykey.NewttblauditinqprimarykeyRow(); Auditinqprimarykey.UpdateRowFromAuditinqprimarykey(ref ttblauditinqprimarykeyRow, obj); pdsauditinqprimarykey.ttblauditinqprimarykey.AddttblauditinqprimarykeyRow((pdsauditinqprimarykeyDataSet.ttblauditinqprimarykeyRow)ttblauditinqprimarykeyRow); } NLogLoggerP.Trace("AuditInquiryAuditRetrieve - Assainquiry - Before Call"); StopwatchUtil.Time( () => { using (var poAssainquiryproxy = this.proxyAppObject.CreatePO_assainquiryproxy()) { this.SetRequiredContextParameters(); poAssainquiryproxy.AuditInquiryAuditRetrieve(ref pdsContext, pdsauditinqauditcriteria, pdsauditinqprimarykey, out pdsauditinqauditresults, out cErrorMessage); } }); NLogLoggerP.Info("AuditInquiryAuditRetrieve - Assainquiry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsauditinqauditcriteria); foreach (DataRow row in pdsauditinqauditresults.ttblauditinqauditresults) { results.Add(Auditinqauditresults.BuildAuditinqauditresultsFromRow(row)); } return(results); }
public IEnumerable <Messaging> AuditInquiryValidatePriKey(IEnumerable <Auditinqprimarykey> auditinqprimarykey) { var results = new List <Messaging>(); var pdsauditinqprimarykey = new pdsauditinqprimarykeyDataSet(); var pdsmessaging = new pdsmessagingDataSet(); foreach (var obj in auditinqprimarykey) { DataRow row = pdsauditinqprimarykey.ttblauditinqprimarykey.NewttblauditinqprimarykeyRow(); Auditinqprimarykey.UpdateRowFromAuditinqprimarykey(ref row, obj); pdsauditinqprimarykey.ttblauditinqprimarykey.AddttblauditinqprimarykeyRow((pdsauditinqprimarykeyDataSet.ttblauditinqprimarykeyRow)row); } string cErrorMessage = string.Empty; NLogLoggerP.Trace("AuditInquiryValidatePriKey - Assainquiry - Before Call"); StopwatchUtil.Time( () => { using (var poAssainquiryproxy = this.proxyAppObject.CreatePO_assainquiryproxy()) { this.SetRequiredContextParameters(); poAssainquiryproxy.AuditInquiryValidatePriKey(ref pdsContext, pdsauditinqprimarykey, out pdsmessaging, out cErrorMessage); } }); NLogLoggerP.Info("AuditInquiryValidatePriKey - Assainquiry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsauditinqprimarykey); foreach (DataRow row in pdsmessaging.ttblmessaging) { results.Add(Messaging.BuildMessagingFromRow(row)); } return(results); }