public Sapjcriteria SAPJCriteriaFieldChange(AssainquirySAPJCriteriaFieldChangeRequestAPI AssainquirySAPJCriteriaFieldChangeRequestAPI) { var result = new Sapjcriteria(); var pdssapjcriteria = new pdssapjcriteriaDataSet(); string cErrorMessage = string.Empty; DataRow ttblsapjcriteriaRow = pdssapjcriteria.ttblsapjcriteria.NewttblsapjcriteriaRow(); Sapjcriteria.UpdateRowFromSapjcriteria(ref ttblsapjcriteriaRow, AssainquirySAPJCriteriaFieldChangeRequestAPI.sapjcriteria); pdssapjcriteria.ttblsapjcriteria.AddttblsapjcriteriaRow((pdssapjcriteriaDataSet.ttblsapjcriteriaRow)ttblsapjcriteriaRow); var pvFieldname = AssainquirySAPJCriteriaFieldChangeRequestAPI.pvFieldname; NLogLoggerP.Trace("SAPJCriteriaFieldChange - Assainquiry - Before Call"); StopwatchUtil.Time( () => { using (var poAssainquiryproxy = this.proxyAppObject.CreatePO_assainquiryproxy()) { this.SetRequiredContextParameters(); poAssainquiryproxy.SAPJCriteriaFieldChange(ref pdsContext, pvFieldname, ref pdssapjcriteria, out cErrorMessage); } }); NLogLoggerP.Info("SAPJCriteriaFieldChange - Assainquiry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdssapjcriteria); if (pdssapjcriteria.ttblsapjcriteria.Count > 0) { result = Sapjcriteria.BuildSapjcriteriaFromRow(pdssapjcriteria.ttblsapjcriteria[0]); } return(result); }
public IEnumerable <Sapjrptmgrs> SAPJLoadRptMgrs(Sapjcriteria sapjcriteria) { var results = new List <Sapjrptmgrs>(); var pdssapjcriteria = new pdssapjcriteriaDataSet(); var pdssapjrptmgrs = new pdssapjrptmgrsDataSet(); DataRow ttblsapjcriteriaCriteria = pdssapjcriteria.ttblsapjcriteria.NewttblsapjcriteriaRow(); Sapjcriteria.UpdateRowFromSapjcriteria(ref ttblsapjcriteriaCriteria, sapjcriteria); pdssapjcriteria.ttblsapjcriteria.AddttblsapjcriteriaRow((pdssapjcriteriaDataSet.ttblsapjcriteriaRow)ttblsapjcriteriaCriteria); string cErrorMessage = string.Empty; NLogLoggerP.Trace("SAPJLoadRptMgrs - Assainquiry - Before Call"); StopwatchUtil.Time( () => { using (var poAssainquiryproxy = this.proxyAppObject.CreatePO_assainquiryproxy()) { this.SetRequiredContextParameters(); poAssainquiryproxy.SAPJLoadRptMgrs(ref pdsContext, pdssapjcriteria, out pdssapjrptmgrs, out cErrorMessage); } }); NLogLoggerP.Info("SAPJLoadRptMgrs - Assainquiry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdssapjcriteria); foreach (DataRow row in pdssapjrptmgrs.ttblsapjrptmgrs) { results.Add(Sapjrptmgrs.BuildSapjrptmgrsFromRow(row)); } return(results); }