Esempio n. 1
0
        public AswlinquiryWLAIFieldChangeWhseResponseAPI WLAIFieldChangeWhse(Wlaicriteria wlaicriteria)
        {
            var result = new AswlinquiryWLAIFieldChangeWhseResponseAPI();

            var pdswlaicriteria = new pdswlaicriteriaDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblwlaicriteriaCriteria = pdswlaicriteria.ttblwlaicriteria.NewttblwlaicriteriaRow();

            Wlaicriteria.UpdateRowFromWlaicriteria(ref ttblwlaicriteriaCriteria, wlaicriteria);
            pdswlaicriteria.ttblwlaicriteria.AddttblwlaicriteriaRow((pdswlaicriteriaDataSet.ttblwlaicriteriaRow)ttblwlaicriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("WLAIFieldChangeWhse - Aswlinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswlinquiryproxy.WLAIFieldChangeWhse(ref pdsContext, ref pdswlaicriteria, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WLAIFieldChangeWhse - Aswlinquiry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdswlaicriteria.ttblwlaicriteria.Count > 0)
            {
                result.wlaicriteria = Wlaicriteria.BuildWlaicriteriaFromRow(pdswlaicriteria.ttblwlaicriteria[0]);
            }


            return(result);
        }
Esempio n. 2
0
        public IEnumerable <Messaging> WLAIUpdate(Wlaicriteria wlaicriteria)
        {
            var results = new List <Messaging>();

            var pdswlaicriteria = new pdswlaicriteriaDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblwlaicriteriaCriteria = pdswlaicriteria.ttblwlaicriteria.NewttblwlaicriteriaRow();

            Wlaicriteria.UpdateRowFromWlaicriteria(ref ttblwlaicriteriaCriteria, wlaicriteria);
            pdswlaicriteria.ttblwlaicriteria.AddttblwlaicriteriaRow((pdswlaicriteriaDataSet.ttblwlaicriteriaRow)ttblwlaicriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("WLAIUpdate - Aswlinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswlinquiryproxy.WLAIUpdate(ref pdsContext, pdswlaicriteria, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WLAIUpdate - Aswlinquiry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                results.Add(Messaging.BuildMessagingFromRow(row));
            }
            return(results);
        }