示例#1
0
        public Crtsasoofromifs CreateSASOOFromIFS(Crtsasoofromifs crtsasoofromifs)
        {
            var result = new Crtsasoofromifs();

            var pdcrtsasoofromifs = new pdcrtsasoofromifsDataSet();

            DataRow ttblcrtsasoofromifsCriteria = pdcrtsasoofromifs.ttblcrtsasoofromifs.NewttblcrtsasoofromifsRow();

            Crtsasoofromifs.UpdateRowFromCrtsasoofromifs(ref ttblcrtsasoofromifsCriteria, crtsasoofromifs);
            pdcrtsasoofromifs.ttblcrtsasoofromifs.AddttblcrtsasoofromifsRow((pdcrtsasoofromifsDataSet.ttblcrtsasoofromifsRow)ttblcrtsasoofromifsCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("CreateSASOOFromIFS - Login - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poLoginproxy = this.proxyAppObject.CreatePO_loginproxy())
                {
                    this.SetRequiredContextParameters();
                    poLoginproxy.CreateSASOOFromIFS(ref pdsContext, ref pdcrtsasoofromifs, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("CreateSASOOFromIFS - Login - After Call");


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

            if (pdcrtsasoofromifs.ttblcrtsasoofromifs.Count > 0)
            {
                result = Crtsasoofromifs.BuildCrtsasoofromifsFromRow(pdcrtsasoofromifs.ttblcrtsasoofromifs[0]);
            }


            return(result);
        }
示例#2
0
        public Crtsasoofromifs CreateSasooFromIfs(Crtsasoofromifs crtsasoofromifs)
        {
            var result            = new Crtsasoofromifs();
            var pdcrtsasoofromifs = new pdcrtsasoofromifsDataSet();

            DataRow ttblcrtsasoofromifsCriteria = pdcrtsasoofromifs.ttblcrtsasoofromifs.NewttblcrtsasoofromifsRow();

            Crtsasoofromifs.UpdateRowFromCrtsasoofromifs(ref ttblcrtsasoofromifsCriteria, crtsasoofromifs);
            pdcrtsasoofromifs.ttblcrtsasoofromifs.AddttblcrtsasoofromifsRow((pdcrtsasoofromifsDataSet.ttblcrtsasoofromifsRow)ttblcrtsasoofromifsCriteria);
            StopwatchUtil.Time(
                () =>
            {
                _poLoginproxy.CreateSASOOFromIFS(ref this._pdsContext, ref pdcrtsasoofromifs, out var cErrorMessage);
                if (pdcrtsasoofromifs.ttblcrtsasoofromifs.Count > 0)
                {
                    result = Crtsasoofromifs.BuildCrtsasoofromifsFromRow(pdcrtsasoofromifs.ttblcrtsasoofromifs[0]);
                }
                result.cErrorMessage = cErrorMessage;
            });
            _nLogLoggerP.Trace("CreateSASOOFromIFS");
            return(result);
        }