This commit is contained in:
jl
2024-01-12 16:53:44 +08:00
parent 95aaa6d25c
commit 9d5221ba0d
8 changed files with 742 additions and 693 deletions

View File

@ -3,6 +3,7 @@ using Epost.Common;
using Epost.DAL;
using Epost.DAL.Cache;
using Epost.Model;
using PTLSystems.Service.PublicF;
using System;
using System.Collections.Generic;
using System.Data;
@ -59,7 +60,7 @@ namespace Epost.DPS.WebService
{
var ReturnDt = set.Tables["pick"];
DataTable dtResult = ReturnDt.Clone();
string str = string.Empty;
foreach (DataRow item in ReturnDt.Rows)
{
@ -69,6 +70,7 @@ namespace Epost.DPS.WebService
DataTable locdt = bll.GetlocationInfo(item["areaId"].ToString());
if (locdt != null && locdt.Rows.Count > 0)
{
locdt.Columns.Add("strinfo", typeof(string));
DataRow dataRow = dtResult.NewRow();
dataRow["transderMid"] = item["transderMid"].ToString();
dataRow["transderDid"] = item["transderDid"].ToString();
@ -88,12 +90,15 @@ namespace Epost.DPS.WebService
dataRow["lookListen"] = item["lookListen"].ToString();
dataRow["labelIP"] = item["labelIP"].ToString();
dataRow["labelNo"] = item["labelNo"].ToString();
dataRow["strinfo"] = dataRow["strinfo"] + str;
dtResult.Rows.Add(dataRow);
}
else
{
LogHelper.WriteLogInfo("" + item["areaId"].ToString() + ",该货位不存在");
str = str + item["areaId"].ToString() + "|";
}
}
else
@ -137,6 +142,8 @@ namespace Epost.DPS.WebService
diclist.Add("lookListen", "looklisten");
diclist.Add("labelIP", "labelIP");
diclist.Add("labelNo", "labelno");
diclist.Add("strinfo", "clientcode");
bool b = bll.ImportOrderinfo(dtResult, diclist);
if (b)