Пример #1
0
        public Wtsainitialize WTSAInitialize()
        {
            var result = new Wtsainitialize();

            var pdswtsainitialize = new pdswtsainitializeDataSet();

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("WTSAInitialize - Aswtinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtinquiryproxy = this.proxyAppObject.CreatePO_aswtinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtinquiryproxy.WTSAInitialize(ref pdsContext, out pdswtsainitialize, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WTSAInitialize - Aswtinquiry - After Call");


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

            if (pdswtsainitialize.ttblwtsainitialize.Count > 0)
            {
                result = Wtsainitialize.BuildWtsainitializeFromRow(pdswtsainitialize.ttblwtsainitialize[0]);
            }


            return(result);
        }
Пример #2
0
        public Wtsainitialize WTSALeaveField(AswtinquiryWTSALeaveFieldRequestAPI AswtinquiryWTSALeaveFieldRequestAPI)
        {
            var result = new Wtsainitialize();

            var pdswtsainitialize = new pdswtsainitializeDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblwtsainitializeRow = pdswtsainitialize.ttblwtsainitialize.NewttblwtsainitializeRow();

            Wtsainitialize.UpdateRowFromWtsainitialize(ref ttblwtsainitializeRow, AswtinquiryWTSALeaveFieldRequestAPI.wtsainitialize);
            pdswtsainitialize.ttblwtsainitialize.AddttblwtsainitializeRow((pdswtsainitializeDataSet.ttblwtsainitializeRow)ttblwtsainitializeRow);

            var pvType = AswtinquiryWTSALeaveFieldRequestAPI.pvType;


            NLogLoggerP.Trace("WTSALeaveField - Aswtinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtinquiryproxy = this.proxyAppObject.CreatePO_aswtinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtinquiryproxy.WTSALeaveField(ref pdsContext, pvType, ref pdswtsainitialize, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WTSALeaveField - Aswtinquiry - After Call");


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

            if (pdswtsainitialize.ttblwtsainitialize.Count > 0)
            {
                result = Wtsainitialize.BuildWtsainitializeFromRow(pdswtsainitialize.ttblwtsainitialize[0]);
            }


            return(result);
        }