Ejemplo n.º 1
0
        public IEnumerable <Povendorcredit> POVendorCreditFieldLeave(AspoheaderPOVendorCreditFieldLeaveRequestAPI AspoheaderPOVendorCreditFieldLeaveRequestAPI)
        {
            var results = new List <Povendorcredit>();

            var pdspovendorcredit = new pdspovendorcreditDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AspoheaderPOVendorCreditFieldLeaveRequestAPI.povendorcredit)
            {
                DataRow ttblpovendorcreditRow = pdspovendorcredit.ttblpovendorcredit.NewttblpovendorcreditRow();
                Povendorcredit.UpdateRowFromPovendorcredit(ref ttblpovendorcreditRow, obj);
                pdspovendorcredit.ttblpovendorcredit.AddttblpovendorcreditRow((pdspovendorcreditDataSet.ttblpovendorcreditRow)ttblpovendorcreditRow);
            }

            var pvFieldname = AspoheaderPOVendorCreditFieldLeaveRequestAPI.pvFieldname;


            NLogLoggerP.Trace("POVendorCreditFieldLeave - Aspoheader - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAspoheaderproxy = this.proxyAppObject.CreatePO_aspoheaderproxy())
                {
                    this.SetRequiredContextParameters();
                    poAspoheaderproxy.POVendorCreditFieldLeave(ref pdsContext, pvFieldname, ref pdspovendorcredit, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("POVendorCreditFieldLeave - Aspoheader - After Call");


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

            foreach (DataRow row in pdspovendorcredit.ttblpovendorcredit)
            {
                results.Add(Povendorcredit.BuildPovendorcreditFromRow(row));
            }
            return(results);
        }
Ejemplo n.º 2
0
 public IEnumerable <Povendorcredit> POVendorCreditFieldLeave(AspoheaderPOVendorCreditFieldLeaveRequestAPI AspoheaderPOVendorCreditFieldLeaveRequestAPI)
 {
     return(this.repository.POVendorCreditFieldLeave(AspoheaderPOVendorCreditFieldLeaveRequestAPI));
 }