예제 #1
0
        public IEnumerable <Glupdate> GLETAGetUpdateData(AsglentryGLETAGetUpdateDataRequestAPI AsglentryGLETAGetUpdateDataRequestAPI)
        {
            var results = new List <Glupdate>();

            var pdsgleta = new pdsgletaDataSet();

            var pdsgletaparam = new pdsgletaparamDataSet();

            var pdsglupdate = new pdsglupdateDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AsglentryGLETAGetUpdateDataRequestAPI.gleta)
            {
                DataRow ttblgletaRow = pdsgleta.ttblgleta.NewttblgletaRow();
                Gleta.UpdateRowFromGleta(ref ttblgletaRow, obj);
                pdsgleta.ttblgleta.AddttblgletaRow((pdsgletaDataSet.ttblgletaRow)ttblgletaRow);
            }

            DataRow ttblgletaheaderRow = pdsgleta.ttblgletaheader.NewttblgletaheaderRow();

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

            DataRow ttblgletaparamRow = pdsgletaparam.ttblgletaparam.NewttblgletaparamRow();

            Gletaparam.UpdateRowFromGletaparam(ref ttblgletaparamRow, AsglentryGLETAGetUpdateDataRequestAPI.gletaparam);
            pdsgletaparam.ttblgletaparam.AddttblgletaparamRow((pdsgletaparamDataSet.ttblgletaparamRow)ttblgletaparamRow);

            var iJrnlno = AsglentryGLETAGetUpdateDataRequestAPI.iJrnlno;


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


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

            foreach (DataRow row in pdsglupdate.ttblglupdate)
            {
                results.Add(Glupdate.BuildGlupdateFromRow(row));
            }
            return(results);
        }
예제 #2
0
 public IEnumerable <Glupdate> GLETAGetUpdateData(AsglentryGLETAGetUpdateDataRequestAPI AsglentryGLETAGetUpdateDataRequestAPI)
 {
     return(this.repository.GLETAGetUpdateData(AsglentryGLETAGetUpdateDataRequestAPI));
 }
예제 #3
0
 public IEnumerable <Glupdate> GLETAGetUpdateData(AsglentryGLETAGetUpdateDataRequestAPI AsglentryGLETAGetUpdateDataRequestAPI)
 {
     return(this.adapter.GLETAGetUpdateData(AsglentryGLETAGetUpdateDataRequestAPI));
 }