Пример #1
0
        public AssainquirySAEILoadEventExtendResponseAPI SAEILoadEventExtend(Saeiextend saeiextend)
        {
            var result = new AssainquirySAEILoadEventExtendResponseAPI();

            var pdssaeiextend = new pdssaeiextendDataSet();

            DataRow ttblsaeiextendCriteria = pdssaeiextend.ttblsaeiextend.NewttblsaeiextendRow();

            Saeiextend.UpdateRowFromSaeiextend(ref ttblsaeiextendCriteria, saeiextend);
            pdssaeiextend.ttblsaeiextend.AddttblsaeiextendRow((pdssaeiextendDataSet.ttblsaeiextendRow)ttblsaeiextendCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("SAEILoadEventExtend - Assainquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAssainquiryproxy = this.proxyAppObject.CreatePO_assainquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAssainquiryproxy.SAEILoadEventExtend(ref pdsContext, ref pdssaeiextend, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("SAEILoadEventExtend - Assainquiry - After Call");


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

            if (pdssaeiextend.ttblsaeiextend.Count > 0)
            {
                result.saeiextend = Saeiextend.BuildSaeiextendFromRow(pdssaeiextend.ttblsaeiextend[0]);
            }

            foreach (DataRow row in pdssaeiextend.ttblsaeiextendaction)
            {
                result.saeiextendaction.Add(Saeiextendaction.BuildSaeiextendactionFromRow(row));
            }
            foreach (DataRow row in pdssaeiextend.ttblsaeiextendfields)
            {
                result.saeiextendfields.Add(Saeiextendfields.BuildSaeiextendfieldsFromRow(row));
            }

            return(result);
        }
Пример #2
0
 public AssainquirySAEILoadEventExtendResponseAPI SAEILoadEventExtend(Saeiextend saeiextend)
 {
     return(this.adapter.SAEILoadEventExtend(saeiextend));
 }
Пример #3
0
 public AssainquirySAEILoadEventExtendResponseAPI SAEILoadEventExtend(Saeiextend saeiextend)
 {
     return(this.repository.SAEILoadEventExtend(saeiextend));
 }