修改HLC BC

master
jianghaiqing 4 hours ago
parent 8750cb804d
commit 347cfe16a2

@ -627,9 +627,18 @@ namespace DAJYun.Application.TaskManagePlatDomain
{ {
model.PlaceDelivery = readSchDict[endSideList[endSideList.Count - 2] + 1][1].Item2; model.PlaceDelivery = readSchDict[endSideList[endSideList.Count - 2] + 1][1].Item2;
} }
string etd1 = $"{readSchDict[1][3].Item2} {readSchDict[2][3].Item2}";
string etd1 = string.Empty;
if (endFlag)
{
etd1 = $"{readSchDict[1][3].Item2} {readSchDict[2][3].Item2}";
}
else
{
etd1 = $"{readSchDict[1][3].Item2} {readSchDict[2][2].Item2}";
}
DateTime dataEtd = DateTime.MinValue; DateTime dataEtd = DateTime.MinValue;
@ -710,8 +719,13 @@ namespace DAJYun.Application.TaskManagePlatDomain
} }
else else
{ {
string etd2 = $"{readSchDict[endSideList.LastOrDefault() - 1][3].Item2} {readSchDict[endSideList.LastOrDefault()][3].Item2}"; string etd2 = $"{readSchDict[endSideList.LastOrDefault() - 1][3].Item2}";
if (readSchDict[endSideList.LastOrDefault()].Count == 4)
{
etd2 += $" {readSchDict[endSideList.LastOrDefault()][2].Item2}";
}
DateTime dataEtd2 = DateTime.MinValue; DateTime dataEtd2 = DateTime.MinValue;
if (DateTime.TryParse(etd2, out dataEtd2)) if (DateTime.TryParse(etd2, out dataEtd2))
@ -719,7 +733,23 @@ namespace DAJYun.Application.TaskManagePlatDomain
model.SecondETD = dataEtd2; model.SecondETD = dataEtd2;
} }
string eta2 = $"{readSchDict[endSideList.LastOrDefault() - 1][4].Item2} {readSchDict[endSideList.LastOrDefault()][3].Item2}"; string eta2 = $"{readSchDict[endSideList.LastOrDefault() - 1][4].Item2}";
if (readSchDict[endSideList.LastOrDefault()].Count == 5)
{
eta2 += $" {readSchDict[endSideList.LastOrDefault()][4].Item2}";
}
else
{
if (readSchDict[endSideList.LastOrDefault()].Count == 4)
{
etd2 += $" {readSchDict[endSideList.LastOrDefault()][3].Item2}";
}
else if (readSchDict[endSideList.LastOrDefault()].Count == 3)
{
eta2 += $" {readSchDict[endSideList.LastOrDefault()][2].Item2}";
}
}
DateTime dataEta2 = DateTime.MinValue; DateTime dataEta2 = DateTime.MinValue;

Loading…
Cancel
Save