From c849da535ff9efbc12229cb44e545659418dc366 Mon Sep 17 00:00:00 2001 From: Jjie <1005539536@qq.com> Date: Fri, 11 Apr 2025 14:29:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ICSSoft.FromERP/ICSSoft.FromERP/ICSDeliveryNotice.cs | 11 +++++------ ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs | 3 ++- ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs | 4 +++- ICSSoft.FromERP/ICSSoft.FromERP/ICSVendor.cs | 2 ++ 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ICSSoft.FromERP/ICSSoft.FromERP/ICSDeliveryNotice.cs b/ICSSoft.FromERP/ICSSoft.FromERP/ICSDeliveryNotice.cs index 61b3cb6..db28a40 100644 --- a/ICSSoft.FromERP/ICSSoft.FromERP/ICSDeliveryNotice.cs +++ b/ICSSoft.FromERP/ICSSoft.FromERP/ICSDeliveryNotice.cs @@ -82,13 +82,12 @@ namespace ICSSoft.FromERP //} #endregion - string Time = ""; + DataTable LastTime =ICSHelper.GetlastTime(conStr, Namespace, Class, WorkPoint, "", "#ICSDelive"); - foreach (DataRow dz in LastTime.Rows) - { - Time = dz["DateTime"].ToString(); - } - DYS dys = new DYS(); + + string Time = LastTime.Rows[0]["DateTime"].ToString(); + + DYS dys = new DYS(); List ls = new List(); List lq = new List(); diff --git a/ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs b/ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs index 5a6e005..e5a4a16 100644 --- a/ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs +++ b/ICSSoft.FromERP/ICSSoft.FromERP/ICSInventory.cs @@ -62,7 +62,8 @@ namespace ICSSoft.FromERP // 将日期格式化为 yyyy-MM-dd 格式 string formattedDate = currentTime.ToString("yyyy-MM-dd"); //List lq = new List(); - + DataTable LastTime = ICSHelper.GetlastTime(conStr, Namespace, Class, WorkPoint, "", "#TempINV"); + string Time = LastTime.Rows[0]["DateTime"].ToString(); dys.pageSize = 500; dys.pageIndex = 1; dys.beginTime = "2025-04-06"; diff --git a/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs b/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs index d7f053d..539424d 100644 --- a/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs +++ b/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs @@ -58,7 +58,9 @@ namespace ICSSoft.FromERP DYS dys = new DYS(); List ls = new List(); List lq = new List(); - + + DataTable LastTime = ICSHelper.GetlastTime(conStr, Namespace, Class, WorkPoint, "", "#TempPO"); + string Time = LastTime.Rows[0]["DateTime"].ToString(); dys.pageSize = 500; dys.pageIndex = 1; dys.isSum = true; diff --git a/ICSSoft.FromERP/ICSSoft.FromERP/ICSVendor.cs b/ICSSoft.FromERP/ICSSoft.FromERP/ICSVendor.cs index 0b26ff5..d5c2f37 100644 --- a/ICSSoft.FromERP/ICSSoft.FromERP/ICSVendor.cs +++ b/ICSSoft.FromERP/ICSSoft.FromERP/ICSVendor.cs @@ -61,6 +61,8 @@ namespace ICSSoft.FromERP List ls = new List(); //List lq = new List(); + DataTable LastTime = ICSHelper.GetlastTime(conStr, Namespace, Class, WorkPoint, "", "#TempVendor"); + string Time = LastTime.Rows[0]["DateTime"].ToString(); dys.pageSize = 500; dys.pageIndex = 1; //dys.isSum = true;