public AsglentryGLETAConvertPercentToAmountResponseAPI GLETAConvertPercentToAmount(AsglentryGLETAConvertPercentToAmountRequestAPI AsglentryGLETAConvertPercentToAmountRequestAPI) { var result = new AsglentryGLETAConvertPercentToAmountResponseAPI(); var pdsgleta = new pdsgletaDataSet(); var pdsmessaging = new pdsmessagingDataSet(); string cErrorMessage = string.Empty; DataRow ttblgletaRow = pdsgleta.ttblgleta.NewttblgletaRow(); Gleta.UpdateRowFromGleta(ref ttblgletaRow, AsglentryGLETAConvertPercentToAmountRequestAPI.gleta); pdsgleta.ttblgleta.AddttblgletaRow((pdsgletaDataSet.ttblgletaRow)ttblgletaRow); DataRow ttblgletaheaderRow = pdsgleta.ttblgletaheader.NewttblgletaheaderRow(); Gletaheader.UpdateRowFromGletaheader(ref ttblgletaheaderRow, AsglentryGLETAConvertPercentToAmountRequestAPI.gletaheader); pdsgleta.ttblgletaheader.AddttblgletaheaderRow((pdsgletaDataSet.ttblgletaheaderRow)ttblgletaheaderRow); var cFieldName = AsglentryGLETAConvertPercentToAmountRequestAPI.cFieldName; NLogLoggerP.Trace("GLETAConvertPercentToAmount - Asglentry - Before Call"); StopwatchUtil.Time( () => { using (var poAsglentryproxy = this.proxyAppObject.CreatePO_asglentryproxy()) { this.SetRequiredContextParameters(); poAsglentryproxy.GLETAConvertPercentToAmount(ref pdsContext, cFieldName, ref pdsgleta, out pdsmessaging, out cErrorMessage); } }); NLogLoggerP.Info("GLETAConvertPercentToAmount - Asglentry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsgleta); if (pdsgleta.ttblgleta.Count > 0) { result.gleta = Gleta.BuildGletaFromRow(pdsgleta.ttblgleta[0]); } 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); }
public AsglentryGLETAInitiatePDResponseAPI GLETAInitiatePD(Gletainitiatepd gletainitiatepd) { var result = new AsglentryGLETAInitiatePDResponseAPI(); var pdsgletainitiatepd = new pdsgletainitiatepdDataSet(); var pdsgleta = new pdsgletaDataSet(); DataRow ttblgletainitiatepdCriteria = pdsgletainitiatepd.ttblgletainitiatepd.NewttblgletainitiatepdRow(); Gletainitiatepd.UpdateRowFromGletainitiatepd(ref ttblgletainitiatepdCriteria, gletainitiatepd); pdsgletainitiatepd.ttblgletainitiatepd.AddttblgletainitiatepdRow((pdsgletainitiatepdDataSet.ttblgletainitiatepdRow)ttblgletainitiatepdCriteria); string cErrorMessage = string.Empty; NLogLoggerP.Trace("GLETAInitiatePD - Asglentry - Before Call"); StopwatchUtil.Time( () => { using (var poAsglentryproxy = this.proxyAppObject.CreatePO_asglentryproxy()) { this.SetRequiredContextParameters(); poAsglentryproxy.GLETAInitiatePD(ref pdsContext, pdsgletainitiatepd, out pdsgleta, out cErrorMessage); } }); NLogLoggerP.Info("GLETAInitiatePD - Asglentry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsgletainitiatepd); foreach (DataRow row in pdsgleta.ttblgleta) { result.gleta.Add(Gleta.BuildGletaFromRow(row)); } if (pdsgleta.ttblgletacriteria.Count > 0) { result.gletacriteria = Gletacriteria.BuildGletacriteriaFromRow(pdsgleta.ttblgletacriteria[0]); } if (pdsgleta.ttblgletaheader.Count > 0) { result.gletaheader = Gletaheader.BuildGletaheaderFromRow(pdsgleta.ttblgletaheader[0]); } return(result); }