コード例 #1
0
        public Contactscrt ContactUpdate(Contactscrt contactscrt)
        {
            var result = new Contactscrt();

            var pdscontactscrt = new pdscontactscrtDataSet();

            DataRow ttblcontactscrtCriteria = pdscontactscrt.ttblcontactscrt.NewttblcontactscrtRow();

            Contactscrt.UpdateRowFromContactscrt(ref ttblcontactscrtCriteria, contactscrt);
            pdscontactscrt.ttblcontactscrt.AddttblcontactscrtRow((pdscontactscrtDataSet.ttblcontactscrtRow)ttblcontactscrtCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("ContactUpdate - Ascam - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAscamproxy = this.proxyAppObject.CreatePO_ascamproxy())
                {
                    this.SetRequiredContextParameters();
                    poAscamproxy.ContactUpdate(ref pdsContext, ref pdscontactscrt, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("ContactUpdate - Ascam - After Call");


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

            if (pdscontactscrt.ttblcontactscrt.Count > 0)
            {
                result = Contactscrt.BuildContactscrtFromRow(pdscontactscrt.ttblcontactscrt[0]);
            }


            return(result);
        }
コード例 #2
0
        public IEnumerable <Contactscrt> ContactCreate(IEnumerable <Contactscrt> contactscrt)
        {
            var results = new List <Contactscrt>();

            var pdscontactscrt = new pdscontactscrtDataSet();

            foreach (var obj in contactscrt)
            {
                DataRow row = pdscontactscrt.ttblcontactscrt.NewttblcontactscrtRow();
                Contactscrt.UpdateRowFromContactscrt(ref row, obj);
                pdscontactscrt.ttblcontactscrt.AddttblcontactscrtRow((pdscontactscrtDataSet.ttblcontactscrtRow)row);
            }

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("ContactCreate - Ascam - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAscamproxy = this.proxyAppObject.CreatePO_ascamproxy())
                {
                    this.SetRequiredContextParameters();
                    poAscamproxy.ContactCreate(ref pdsContext, ref pdscontactscrt, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("ContactCreate - Ascam - After Call");


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

            foreach (DataRow row in pdscontactscrt.ttblcontactscrt)
            {
                results.Add(Contactscrt.BuildContactscrtFromRow(row));
            }
            return(results);
        }
コード例 #3
0
 public Contactscrt ContactUpdate(Contactscrt contactscrt)
 {
     return(this.repository.ContactUpdate(contactscrt));
 }
コード例 #4
0
 public Contactscrt ContactUpdate(Contactscrt contactscrt)
 {
     return(this.adapter.ContactUpdate(contactscrt));
 }