查询页面相关的信息
This commit is contained in:
commit
7aad6f8d1a
8 files changed
+161
-141
No files matched your search
+30
-8
@@ -20,13 +20,8 @@ public partial class QueryPage : ContentPage
|
||||
ResultEntry.Text = scannedValue;
|
||||
});
|
||||
|
||||
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());
|
||||
Query_Command(QueryDictionary.ToJsonString());
|
||||
|
||||
Query_data();
|
||||
|
||||
CardCollectionView.ItemsSource = DyelotItems;
|
||||
}
|
||||
private async void OnScanButtonClicked(object sender, EventArgs e)
|
||||
@@ -61,7 +56,12 @@ public partial class QueryPage : ContentPage
|
||||
{
|
||||
DyelotItems.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
if (data.Count == 0)
|
||||
{//如果无信息添加空白行
|
||||
DyelotItems.Add(new DyelotItem { });
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex) {
|
||||
}
|
||||
@@ -92,14 +92,36 @@ public partial class QueryPage : ContentPage
|
||||
}
|
||||
|
||||
private void Button_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
if (ResultEntry.Text != null)
|
||||
{
|
||||
Dictionary<string, object> QueryDictionary = new Dictionary<string, object>();
|
||||
QueryDictionary.Add("Command", "QueryDyelot");
|
||||
QueryDictionary.Add("Field", "[Dyelot],[ReDye],[Program],[Color],[CreationTime]," +
|
||||
"[Batch],[OrderNo],[TotalWeight],[LiquidRatio],[TotalVolume],[Final],[UserAccount]," +
|
||||
"[FabricName],[ColorName],[CustomerName],[Notes]");
|
||||
QueryDictionary.Add("DyelotName", ResultEntry.Text);
|
||||
Query_Command(QueryDictionary.ToJsonString());
|
||||
}
|
||||
else
|
||||
{
|
||||
Query_data();
|
||||
}
|
||||
}
|
||||
|
||||
private void Query_data()
|
||||
{
|
||||
Dictionary<string, object> QueryDictionary = new Dictionary<string, object>();
|
||||
QueryDictionary.Add("Command", "Query");
|
||||
QueryDictionary.Add("Field", "[Dyelot],[ReDye],[Program],[Color],[CreationTime]," +
|
||||
"[Batch],[OrderNo],[TotalWeight],[LiquidRatio],[TotalVolume],[Final],[UserAccount]," +
|
||||
"[FabricName],[ColorName],[CustomerName],[Notes]");
|
||||
QueryDictionary.Add("StartTime", StartTime.Date.ToString()!);
|
||||
DateTime EndTime_ = (DateTime)EndTime.Date!;
|
||||
QueryDictionary.Add("EndTime", EndTime_.AddDays(1).ToString());
|
||||
Query_Command(QueryDictionary.ToJsonString());
|
||||
}
|
||||
|
||||
// 处理“回车/完成”按钮点击
|
||||
/* private void OnEntryCompleted()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user