Merge branch 'master' of http://www.scserverddns.top:13000/sc/SunlightAggregationTerminal
This commit is contained in:
commit
dbb91fe0ee
5 files changed
+19
-17
No files matched your search
+11
-9
@@ -3,6 +3,7 @@ using SunlightAggregationTerminal.Class;
|
||||
using SunlightAggregationTerminal.Models;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Text.Json;
|
||||
using TouchSocket.Core;
|
||||
|
||||
namespace SunlightAggregationTerminal;
|
||||
|
||||
@@ -19,14 +20,14 @@ public partial class QueryPage : ContentPage
|
||||
ResultEntry.Text = scannedValue;
|
||||
});
|
||||
|
||||
DyelotItems.Add(new DyelotItem
|
||||
{
|
||||
Dyelot = "2134566",
|
||||
Machine = "g01",
|
||||
CreationTime = "",
|
||||
ReDye = "0",
|
||||
Information = "yyjjy\nfxfxdsdg\n",
|
||||
});
|
||||
Dictionary<string, object> QueryDictionary = new Dictionary<string, object>();
|
||||
QueryDictionary.Add("Command", "Query");
|
||||
QueryDictionary.Add("StartTime", StartTime.Date.ToString()!);
|
||||
DateTime EndTime_ = (DateTime)EndTime.Date!;
|
||||
QueryDictionary.Add("EndTime", EndTime_.AddDays(1).ToString());
|
||||
TcpServer.TcpTransmit(QueryDictionary.ToJsonString());
|
||||
|
||||
|
||||
CardCollectionView.ItemsSource = DyelotItems;
|
||||
}
|
||||
private async void OnScanButtonClicked(object sender, EventArgs e)
|
||||
@@ -63,7 +64,8 @@ public partial class QueryPage : ContentPage
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
catch (Exception ex) {
|
||||
}
|
||||
}
|
||||
|
||||
public async void Query_Command(string dat)
|
||||
|
||||
Reference in new issue
Block a user