diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index 34e7321..9d25a4c 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index 34e7321..9d25a4c 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/Model/GoodsModel.cs b/SubCabinetSolution/Model/GoodsModel.cs new file mode 100644 index 0000000..894e30f --- /dev/null +++ b/SubCabinetSolution/Model/GoodsModel.cs @@ -0,0 +1,14 @@ +namespace SubCabinetSolution.Model +{ + public class GoodsModel + { + public GoodsModel(string goodsName, string attr) + { + GoodsName = goodsName; + Attr = attr; + } + + public string GoodsName { get; } + public string Attr { get; } + } +} \ No newline at end of file diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index 34e7321..9d25a4c 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/Model/GoodsModel.cs b/SubCabinetSolution/Model/GoodsModel.cs new file mode 100644 index 0000000..894e30f --- /dev/null +++ b/SubCabinetSolution/Model/GoodsModel.cs @@ -0,0 +1,14 @@ +namespace SubCabinetSolution.Model +{ + public class GoodsModel + { + public GoodsModel(string goodsName, string attr) + { + GoodsName = goodsName; + Attr = attr; + } + + public string GoodsName { get; } + public string Attr { get; } + } +} \ No newline at end of file diff --git a/SubCabinetSolution/SubCabinetSolution.csproj b/SubCabinetSolution/SubCabinetSolution.csproj index f27f34e..87556d5 100644 --- a/SubCabinetSolution/SubCabinetSolution.csproj +++ b/SubCabinetSolution/SubCabinetSolution.csproj @@ -151,6 +151,7 @@ MSBuild:Compile Designer + diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index 34e7321..9d25a4c 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/Model/GoodsModel.cs b/SubCabinetSolution/Model/GoodsModel.cs new file mode 100644 index 0000000..894e30f --- /dev/null +++ b/SubCabinetSolution/Model/GoodsModel.cs @@ -0,0 +1,14 @@ +namespace SubCabinetSolution.Model +{ + public class GoodsModel + { + public GoodsModel(string goodsName, string attr) + { + GoodsName = goodsName; + Attr = attr; + } + + public string GoodsName { get; } + public string Attr { get; } + } +} \ No newline at end of file diff --git a/SubCabinetSolution/SubCabinetSolution.csproj b/SubCabinetSolution/SubCabinetSolution.csproj index f27f34e..87556d5 100644 --- a/SubCabinetSolution/SubCabinetSolution.csproj +++ b/SubCabinetSolution/SubCabinetSolution.csproj @@ -151,6 +151,7 @@ MSBuild:Compile Designer + diff --git a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs index efb60db..fdf6b75 100644 --- a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs @@ -1,7 +1,45 @@ -namespace SubCabinetSolution.ViewModel +using System.Collections.ObjectModel; +using GalaSoft.MvvmLight; +using SubCabinetSolution.Model; + +namespace SubCabinetSolution.ViewModel { - public class EmergencyPageViewModel + public class EmergencyPageViewModel : ViewModelBase { - + public ObservableCollection FirstDoorGoods { get; set; } + public ObservableCollection SecondDoorGoods { get; set; } + public ObservableCollection ThirdDoorGoods { get; set; } + public ObservableCollection FourthDoorGoods { get; set; } + public ObservableCollection FifthDoorGoods { get; set; } + public ObservableCollection SixthDoorGoods { get; set; } + + public EmergencyPageViewModel() + { + this.FirstDoorGoods = new ObservableCollection + { + new GoodsModel("止血纱布", "[19]"), + new GoodsModel("可吸收医用膜", "[89]"), + new GoodsModel("消融电极", "[59]"), + new GoodsModel("疝环充填补片", "[19]"), + new GoodsModel("微创扩展引流套", "[29]"), + new GoodsModel("创口贴", "[69]"), + new GoodsModel("一次性医用口罩", "[2]") + }; + this.SecondDoorGoods = new ObservableCollection + { + }; + this.ThirdDoorGoods = new ObservableCollection + { + }; + this.FourthDoorGoods = new ObservableCollection + { + }; + this.FifthDoorGoods = new ObservableCollection + { + }; + this.SixthDoorGoods = new ObservableCollection + { + }; + } } } \ No newline at end of file diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index 34e7321..9d25a4c 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/Model/GoodsModel.cs b/SubCabinetSolution/Model/GoodsModel.cs new file mode 100644 index 0000000..894e30f --- /dev/null +++ b/SubCabinetSolution/Model/GoodsModel.cs @@ -0,0 +1,14 @@ +namespace SubCabinetSolution.Model +{ + public class GoodsModel + { + public GoodsModel(string goodsName, string attr) + { + GoodsName = goodsName; + Attr = attr; + } + + public string GoodsName { get; } + public string Attr { get; } + } +} \ No newline at end of file diff --git a/SubCabinetSolution/SubCabinetSolution.csproj b/SubCabinetSolution/SubCabinetSolution.csproj index f27f34e..87556d5 100644 --- a/SubCabinetSolution/SubCabinetSolution.csproj +++ b/SubCabinetSolution/SubCabinetSolution.csproj @@ -151,6 +151,7 @@ MSBuild:Compile Designer + diff --git a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs index efb60db..fdf6b75 100644 --- a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs @@ -1,7 +1,45 @@ -namespace SubCabinetSolution.ViewModel +using System.Collections.ObjectModel; +using GalaSoft.MvvmLight; +using SubCabinetSolution.Model; + +namespace SubCabinetSolution.ViewModel { - public class EmergencyPageViewModel + public class EmergencyPageViewModel : ViewModelBase { - + public ObservableCollection FirstDoorGoods { get; set; } + public ObservableCollection SecondDoorGoods { get; set; } + public ObservableCollection ThirdDoorGoods { get; set; } + public ObservableCollection FourthDoorGoods { get; set; } + public ObservableCollection FifthDoorGoods { get; set; } + public ObservableCollection SixthDoorGoods { get; set; } + + public EmergencyPageViewModel() + { + this.FirstDoorGoods = new ObservableCollection + { + new GoodsModel("止血纱布", "[19]"), + new GoodsModel("可吸收医用膜", "[89]"), + new GoodsModel("消融电极", "[59]"), + new GoodsModel("疝环充填补片", "[19]"), + new GoodsModel("微创扩展引流套", "[29]"), + new GoodsModel("创口贴", "[69]"), + new GoodsModel("一次性医用口罩", "[2]") + }; + this.SecondDoorGoods = new ObservableCollection + { + }; + this.ThirdDoorGoods = new ObservableCollection + { + }; + this.FourthDoorGoods = new ObservableCollection + { + }; + this.FifthDoorGoods = new ObservableCollection + { + }; + this.SixthDoorGoods = new ObservableCollection + { + }; + } } } \ No newline at end of file diff --git a/SubCabinetSolution/Views/AdoptionPage.xaml b/SubCabinetSolution/Views/AdoptionPage.xaml index 9369ce2..e4feaa2 100644 --- a/SubCabinetSolution/Views/AdoptionPage.xaml +++ b/SubCabinetSolution/Views/AdoptionPage.xaml @@ -36,6 +36,7 @@ + - - + - @@ -144,27 +143,27 @@ diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index 34e7321..9d25a4c 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/Model/GoodsModel.cs b/SubCabinetSolution/Model/GoodsModel.cs new file mode 100644 index 0000000..894e30f --- /dev/null +++ b/SubCabinetSolution/Model/GoodsModel.cs @@ -0,0 +1,14 @@ +namespace SubCabinetSolution.Model +{ + public class GoodsModel + { + public GoodsModel(string goodsName, string attr) + { + GoodsName = goodsName; + Attr = attr; + } + + public string GoodsName { get; } + public string Attr { get; } + } +} \ No newline at end of file diff --git a/SubCabinetSolution/SubCabinetSolution.csproj b/SubCabinetSolution/SubCabinetSolution.csproj index f27f34e..87556d5 100644 --- a/SubCabinetSolution/SubCabinetSolution.csproj +++ b/SubCabinetSolution/SubCabinetSolution.csproj @@ -151,6 +151,7 @@ MSBuild:Compile Designer + diff --git a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs index efb60db..fdf6b75 100644 --- a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs @@ -1,7 +1,45 @@ -namespace SubCabinetSolution.ViewModel +using System.Collections.ObjectModel; +using GalaSoft.MvvmLight; +using SubCabinetSolution.Model; + +namespace SubCabinetSolution.ViewModel { - public class EmergencyPageViewModel + public class EmergencyPageViewModel : ViewModelBase { - + public ObservableCollection FirstDoorGoods { get; set; } + public ObservableCollection SecondDoorGoods { get; set; } + public ObservableCollection ThirdDoorGoods { get; set; } + public ObservableCollection FourthDoorGoods { get; set; } + public ObservableCollection FifthDoorGoods { get; set; } + public ObservableCollection SixthDoorGoods { get; set; } + + public EmergencyPageViewModel() + { + this.FirstDoorGoods = new ObservableCollection + { + new GoodsModel("止血纱布", "[19]"), + new GoodsModel("可吸收医用膜", "[89]"), + new GoodsModel("消融电极", "[59]"), + new GoodsModel("疝环充填补片", "[19]"), + new GoodsModel("微创扩展引流套", "[29]"), + new GoodsModel("创口贴", "[69]"), + new GoodsModel("一次性医用口罩", "[2]") + }; + this.SecondDoorGoods = new ObservableCollection + { + }; + this.ThirdDoorGoods = new ObservableCollection + { + }; + this.FourthDoorGoods = new ObservableCollection + { + }; + this.FifthDoorGoods = new ObservableCollection + { + }; + this.SixthDoorGoods = new ObservableCollection + { + }; + } } } \ No newline at end of file diff --git a/SubCabinetSolution/Views/AdoptionPage.xaml b/SubCabinetSolution/Views/AdoptionPage.xaml index 9369ce2..e4feaa2 100644 --- a/SubCabinetSolution/Views/AdoptionPage.xaml +++ b/SubCabinetSolution/Views/AdoptionPage.xaml @@ -36,6 +36,7 @@ + - - + - @@ -144,27 +143,27 @@ diff --git a/SubCabinetSolution/Views/EmergencyPage.xaml b/SubCabinetSolution/Views/EmergencyPage.xaml index 4a581f9..9dc78c8 100644 --- a/SubCabinetSolution/Views/EmergencyPage.xaml +++ b/SubCabinetSolution/Views/EmergencyPage.xaml @@ -8,6 +8,427 @@ Title="EmergencyPage" d:DesignHeight="450" d:DesignWidth="800" + Background="White" mc:Ignorable="d"> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +