Browse Source

采购类型逻辑添加

master
季开朗 4 weeks ago
parent
commit
9396640cc5
  1. 9
      ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs
  2. 4
      ICSSoft.FromERP/ICSSoft.Test/Program.cs

9
ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs

@ -71,11 +71,7 @@ namespace ICSSoft.FromERP
s.op = "gt";
s.value1 = "2025-03-21";
ls.Add(s);
DYSs ss = new DYSs();
ss.field = "bustype_name";
ss.op = "eq";
ss.value1 = "普通采购(有到货)";
ls.Add(ss);
#endregion
#region 添加排序
@ -96,7 +92,9 @@ namespace ICSSoft.FromERP
{
foreach (JObject item in obj["data"]["recordList"])
{
if (item["bustype_name"].ToString() == "普通采购(有到货)")
lsid.Add(item["id"].ToString());
}
int end = Convert.ToInt32(obj["data"]["endPageIndex"].ToString());
if (end > 1)
@ -111,6 +109,7 @@ namespace ICSSoft.FromERP
{
foreach (JObject item in obj["data"]["recordList"])
{
if (item["bustype_name"].ToString() == "普通采购(有到货)")
lsid.Add(item["id"].ToString());
}
}

4
ICSSoft.FromERP/ICSSoft.Test/Program.cs

@ -11,9 +11,9 @@ namespace ICSSoft.Test
static void Main(string[] args)
{
// ICSPO a = new ICSPO();
ICSPO a = new ICSPO();
ICSDeliveryNotice a = new ICSDeliveryNotice();
//ICSDeliveryNotice a = new ICSDeliveryNotice();
a.Execute();

Loading…
Cancel
Save