예제 #1
0
        public void VendorSaveUpateShipFroms(Apsv apsv)
        {
            var pdsapsv = new pdsapsvDataSet();

            DataRow ttblapsvCriteria = pdsapsv.ttblapsv.NewttblapsvRow();

            Apsv.UpdateRowFromApsv(ref ttblapsvCriteria, apsv);
            pdsapsv.ttblapsv.AddttblapsvRow((pdsapsvDataSet.ttblapsvRow)ttblapsvCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("VendorSaveUpateShipFroms - Asapsetup - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsapsetupproxy = this.proxyAppObject.CreatePO_asapsetupproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsapsetupproxy.VendorSaveUpateShipFroms(ref pdsContext, ref pdsapsv, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VendorSaveUpateShipFroms - Asapsetup - After Call");


            this.ReportErrors(cErrorMessage);
            this.ReportErrors(this.pdsContext);
            this.ReportErrors(pdsapsv);
        }
예제 #2
0
        public IEnumerable <Messaging> VendorSaveUpdateWarnings(Apsv apsv)
        {
            var results = new List <Messaging>();

            var pdsapsv = new pdsapsvDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblapsvCriteria = pdsapsv.ttblapsv.NewttblapsvRow();

            Apsv.UpdateRowFromApsv(ref ttblapsvCriteria, apsv);
            pdsapsv.ttblapsv.AddttblapsvRow((pdsapsvDataSet.ttblapsvRow)ttblapsvCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("VendorSaveUpdateWarnings - Asapsetup - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsapsetupproxy = this.proxyAppObject.CreatePO_asapsetupproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsapsetupproxy.VendorSaveUpdateWarnings(ref pdsContext, pdsapsv, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VendorSaveUpdateWarnings - Asapsetup - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                results.Add(Messaging.BuildMessagingFromRow(row));
            }
            return(results);
        }
예제 #3
0
 public void UpdateToRow(ref DataRow row, Apsv record)
 {
     Apsv.UpdateRowFromApsv(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }