添加细节信息
This commit is contained in:
commit
d8c28f25e2
5 files changed
+220
-137
No files matched your search
+74
-1
@@ -1,17 +1,90 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using SunlightAggregationTerminal.Models;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Reflection.PortableExecutable;
|
||||
|
||||
namespace SunlightAggregationTerminal;
|
||||
|
||||
public partial class InfoDetail : ContentPage
|
||||
{
|
||||
public InfoDetail(InfoItem item)
|
||||
public static ObservableCollection<ProbuctItem> InfoProbuctItems { get; set; } = new();
|
||||
public static ObservableCollection<DyelotItem> InfoDyelotItems { get; set; } = new();
|
||||
public InfoDetail(InfoItem item)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.BindingContext = item;
|
||||
|
||||
InfoProbuctItems.Add(new ProbuctItem { ProductName="cs", ProductCode="cs", ProductState="", ProductInf="" });
|
||||
InfoProbuctItems.Add(new ProbuctItem { ProductName = "c23s", ProductCode = "cweds", ProductState = "", ProductInf = "" });
|
||||
InfoProbuctItems.Add(new ProbuctItem { ProductName = "arf", ProductCode = "af", ProductState = "", ProductInf = "" });
|
||||
InfoProbuctItems.Add(new ProbuctItem { ProductName = "afars", ProductCode = "cs", ProductState = "", ProductInf = "" });
|
||||
|
||||
|
||||
InfoDyelotItems.Add(new DyelotItem { Dyelot = "2134566", Machine = "g01", CreationTime = "", CallTime = "" ,
|
||||
FabricName = "21345122343566",
|
||||
ColorName = "g01",
|
||||
CustomerName = "",
|
||||
EndTime = "",
|
||||
StartTime = "",
|
||||
Information = "yyjjy\nfxfxdsdg\n",
|
||||
});
|
||||
InfoDyelotItems.Add(new DyelotItem
|
||||
{
|
||||
Dyelot = "231423134566",
|
||||
Machine = "g01",
|
||||
CreationTime = "",
|
||||
CallTime = "",
|
||||
FabricName = "2134566",
|
||||
ColorName = "g01",
|
||||
CustomerName = "",
|
||||
EndTime = "",
|
||||
StartTime = "",
|
||||
Information = "yyjjy\nfxfxdsdg\n",
|
||||
});
|
||||
|
||||
InfoDyelotItems.Add(new DyelotItem
|
||||
{
|
||||
Dyelot = "2131324354566",
|
||||
Machine = "g01",
|
||||
CreationTime = "",
|
||||
CallTime = "",
|
||||
FabricName = "2134566",
|
||||
ColorName = "g01",
|
||||
CustomerName = "",
|
||||
EndTime = "",
|
||||
StartTime = "",
|
||||
Information = "yyjjy\nfxfxdsdg\n",
|
||||
});
|
||||
InfoDyelotItems.Add(new DyelotItem
|
||||
{
|
||||
Dyelot = "2134123243566",
|
||||
Machine = "g01",
|
||||
CreationTime = "",
|
||||
CallTime = "",
|
||||
FabricName = "2134566",
|
||||
ColorName = "g01",
|
||||
CustomerName = "",
|
||||
EndTime = "",
|
||||
StartTime = "",
|
||||
Information = "yyjjy\nfxfxdsdg\n",
|
||||
});
|
||||
InfoDyelotItems.Add(new DyelotItem
|
||||
{
|
||||
Dyelot = "2134566",
|
||||
Machine = "g01",
|
||||
CreationTime = "",
|
||||
CallTime = "",
|
||||
FabricName = "2134566",
|
||||
ColorName = "g01",
|
||||
CustomerName = "",
|
||||
EndTime = "",
|
||||
StartTime = "",
|
||||
Information = "yyjjy\nfxfxdsdg\n",
|
||||
});
|
||||
|
||||
|
||||
CardCollectionView_machine.ItemsSource = InfoProbuctItems;
|
||||
CardCollectionView_history.ItemsSource = InfoDyelotItems;
|
||||
}
|
||||
|
||||
private void Button_real(object sender, EventArgs e)
|
||||
|
||||
Reference in new issue
Block a user