示例#1
0
        public AsglentryGLETAInitiateARResponseAPI GLETAInitiateAR(AsglentryGLETAInitiateARRequestAPI AsglentryGLETAInitiateARRequestAPI)
        {
            var result = new AsglentryGLETAInitiateARResponseAPI();

            var pdsgleta = new pdsgletaDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblgletacriteriaRow = pdsgleta.ttblgletacriteria.NewttblgletacriteriaRow();

            Gletacriteria.UpdateRowFromGletacriteria(ref ttblgletacriteriaRow, AsglentryGLETAInitiateARRequestAPI.gletacriteria);
            pdsgleta.ttblgletacriteria.AddttblgletacriteriaRow((pdsgletaDataSet.ttblgletacriteriaRow)ttblgletacriteriaRow);

            var iJrnlno = AsglentryGLETAInitiateARRequestAPI.iJrnlno;


            NLogLoggerP.Trace("GLETAInitiateAR - Asglentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsglentryproxy = this.proxyAppObject.CreatePO_asglentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsglentryproxy.GLETAInitiateAR(ref pdsContext, iJrnlno, ref pdsgleta, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("GLETAInitiateAR - Asglentry - After Call");


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

            foreach (DataRow row in pdsgleta.ttblgleta)
            {
                result.gleta.Add(Gleta.BuildGletaFromRow(row));
            }
            if (pdsgleta.ttblgletaheader.Count > 0)
            {
                result.gletaheader = Gletaheader.BuildGletaheaderFromRow(pdsgleta.ttblgletaheader[0]);
            }

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }

            return(result);
        }
示例#2
0
 public AsglentryGLETAInitiateARResponseAPI GLETAInitiateAR(AsglentryGLETAInitiateARRequestAPI AsglentryGLETAInitiateARRequestAPI)
 {
     return(this.repository.GLETAInitiateAR(AsglentryGLETAInitiateARRequestAPI));
 }
示例#3
0
 public AsglentryGLETAInitiateARResponseAPI GLETAInitiateAR(AsglentryGLETAInitiateARRequestAPI AsglentryGLETAInitiateARRequestAPI)
 {
     return(this.adapter.GLETAInitiateAR(AsglentryGLETAInitiateARRequestAPI));
 }