Exemplo n.º 1
0
        public AsglentryGLETASetAmountToProofResponseAPI GLETASetAmountToProof(AsglentryGLETASetAmountToProofRequestAPI AsglentryGLETASetAmountToProofRequestAPI)
        {
            var result = new AsglentryGLETASetAmountToProofResponseAPI();

            var pdsgleta = new pdsgletaDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblgletaRow = pdsgleta.ttblgleta.NewttblgletaRow();

            Gleta.UpdateRowFromGleta(ref ttblgletaRow, AsglentryGLETASetAmountToProofRequestAPI.gleta);
            pdsgleta.ttblgleta.AddttblgletaRow((pdsgletaDataSet.ttblgletaRow)ttblgletaRow);

            DataRow ttblgletaheaderRow = pdsgleta.ttblgletaheader.NewttblgletaheaderRow();

            Gletaheader.UpdateRowFromGletaheader(ref ttblgletaheaderRow, AsglentryGLETASetAmountToProofRequestAPI.gletaheader);
            pdsgleta.ttblgletaheader.AddttblgletaheaderRow((pdsgletaDataSet.ttblgletaheaderRow)ttblgletaheaderRow);

            var cFieldName = AsglentryGLETASetAmountToProofRequestAPI.cFieldName;


            NLogLoggerP.Trace("GLETASetAmountToProof - Asglentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsglentryproxy = this.proxyAppObject.CreatePO_asglentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsglentryproxy.GLETASetAmountToProof(ref pdsContext, cFieldName, ref pdsgleta, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("GLETASetAmountToProof - 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);
        }
Exemplo n.º 2
0
 public AsglentryGLETASetAmountToProofResponseAPI GLETASetAmountToProof(AsglentryGLETASetAmountToProofRequestAPI AsglentryGLETASetAmountToProofRequestAPI)
 {
     return(this.repository.GLETASetAmountToProof(AsglentryGLETASetAmountToProofRequestAPI));
 }
Exemplo n.º 3
0
 public AsglentryGLETASetAmountToProofResponseAPI GLETASetAmountToProof(AsglentryGLETASetAmountToProofRequestAPI AsglentryGLETASetAmountToProofRequestAPI)
 {
     return(this.adapter.GLETASetAmountToProof(AsglentryGLETASetAmountToProofRequestAPI));
 }