Example #1
0
        public AsnotescomGetNoteListResponseAPI GetNoteList(Getnotelistcriteria getnotelistcriteria)
        {
            var result = new AsnotescomGetNoteListResponseAPI();

            var pdsgetnotelist = new pdsgetnotelistDataSet();

            DataRow ttblgetnotelistcriteriaCriteria = pdsgetnotelist.ttblgetnotelistcriteria.NewttblgetnotelistcriteriaRow();

            Getnotelistcriteria.UpdateRowFromGetnotelistcriteria(ref ttblgetnotelistcriteriaCriteria, getnotelistcriteria);
            pdsgetnotelist.ttblgetnotelistcriteria.AddttblgetnotelistcriteriaRow((pdsgetnotelistDataSet.ttblgetnotelistcriteriaRow)ttblgetnotelistcriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("GetNoteList - Asnotescom - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsnotescomproxy = this.proxyAppObject.CreatePO_asnotescomproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsnotescomproxy.GetNoteList(ref pdsContext, ref pdsgetnotelist, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("GetNoteList - Asnotescom - After Call");


            this.ReportErrors(cErrorMessage);
            this.ReportErrors(this.pdsContext);
            this.ReportErrors(pdsgetnotelist);

            if (pdsgetnotelist.ttblgetnotelistcriteria.Count > 0)
            {
                result.getnotelistcriteria = Getnotelistcriteria.BuildGetnotelistcriteriaFromRow(pdsgetnotelist.ttblgetnotelistcriteria[0]);
            }

            foreach (DataRow row in pdsgetnotelist.ttblgetnotelistresults)
            {
                result.getnotelistresults.Add(Getnotelistresults.BuildGetnotelistresultsFromRow(row));
            }

            return(result);
        }
Example #2
0
 public AsnotescomGetNoteListResponseAPI GetNoteList(Getnotelistcriteria getnotelistcriteria)
 {
     return(this.adapter.GetNoteList(getnotelistcriteria));
 }
Example #3
0
 public AsnotescomGetNoteListResponseAPI GetNoteList(Getnotelistcriteria getnotelistcriteria)
 {
     return(this.repository.GetNoteList(getnotelistcriteria));
 }