|
|
|
@ -32,7 +32,6 @@ public partial class QueryDetail : ContentPage |
|
|
|
QueryDictionary.Add("Dyelot", item.Dyelot?.ToString() ?? ""); |
|
|
|
QueryDictionary.Add("ReDye", item.ReDye?.ToString()??""); |
|
|
|
Query_Command(QueryDictionary.ToJsonString()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private void Data_() |
|
|
|
@ -54,7 +53,6 @@ public partial class QueryDetail : ContentPage |
|
|
|
$"目标/实际: {list[i].GramsDisplay}g / {list[i].DispenseGramsDisplay}g") |
|
|
|
); |
|
|
|
// 赋值给最终展示的 ProductName
|
|
|
|
if (list[0].Process !=null) combinedInfo = combinedInfo + "\n溶解流程:"+ list[0].Process; |
|
|
|
firstItem.ProductName = combinedInfo; |
|
|
|
return firstItem; |
|
|
|
}) |
|
|
|
@ -106,7 +104,20 @@ public partial class QueryDetail : ContentPage |
|
|
|
//添加入显示信息
|
|
|
|
foreach (var item in data) |
|
|
|
{ |
|
|
|
if (item.DispenseEndTime != null) item.DispenseEndTime = item.DispenseEndTime.Replace("T", " "); |
|
|
|
//时间处理
|
|
|
|
if (DateTime.TryParse(item.DispenseEndTime, out DateTime dte)) |
|
|
|
{ |
|
|
|
item.DispenseEndTime = dte.ToString("yyyy-MM-dd HH:mm:ss"); |
|
|
|
|
|
|
|
if (DateTime.TryParse(item.DispenseStartTime, out DateTime dtr)) |
|
|
|
{ |
|
|
|
item.UsageTime = (dte - dtr).ToString("mm:ss"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (item.ProductType == 1 && item.Process == null) item.Process = "未知"; |
|
|
|
if (item.Tank != null) item.Tank ="@" + item.Tank; |
|
|
|
|
|
|
|
//行信息
|
|
|
|
QueryDetailDyelotDetailsItems.Add(item); |
|
|
|
} |
|
|
|
|
|
|
|
|