diff --git a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
index 56cd6ed..c476474 100644
--- a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
+++ b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
index 56cd6ed..c476474 100644
--- a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
+++ b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 33a1957..c9b3509 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
index 56cd6ed..c476474 100644
--- a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
+++ b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 33a1957..c9b3509 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/Utils/NavigationService.cs b/SubCabinetSolution/Utils/NavigationService.cs
index 935a7fa..1e00f07 100644
--- a/SubCabinetSolution/Utils/NavigationService.cs
+++ b/SubCabinetSolution/Utils/NavigationService.cs
@@ -56,11 +56,11 @@
{
if (!_pagesByKey.ContainsKey(pageKey))
{
- throw new ArgumentException($"No such page: {pageKey} ", nameof(pageKey));
+ throw new ArgumentException($@"No such page: {pageKey} ", nameof(pageKey));
}
// 设置应用主窗口,name要注意和xaml保持一致
- CabinetWindow cabinetWindow = Application.Current.Windows
+ var cabinetWindow = Application.Current.Windows
.Cast()
.FirstOrDefault(window => window is CabinetWindow) as CabinetWindow;
if (GetDescendantFromName(cabinetWindow, "CabinetFunctionFrame") is Frame frame)
diff --git a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
index 56cd6ed..c476474 100644
--- a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
+++ b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 33a1957..c9b3509 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/Utils/NavigationService.cs b/SubCabinetSolution/Utils/NavigationService.cs
index 935a7fa..1e00f07 100644
--- a/SubCabinetSolution/Utils/NavigationService.cs
+++ b/SubCabinetSolution/Utils/NavigationService.cs
@@ -56,11 +56,11 @@
{
if (!_pagesByKey.ContainsKey(pageKey))
{
- throw new ArgumentException($"No such page: {pageKey} ", nameof(pageKey));
+ throw new ArgumentException($@"No such page: {pageKey} ", nameof(pageKey));
}
// 设置应用主窗口,name要注意和xaml保持一致
- CabinetWindow cabinetWindow = Application.Current.Windows
+ var cabinetWindow = Application.Current.Windows
.Cast()
.FirstOrDefault(window => window is CabinetWindow) as CabinetWindow;
if (GetDescendantFromName(cabinetWindow, "CabinetFunctionFrame") is Frame frame)
diff --git a/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs b/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
index a64c933..84cddf8 100644
--- a/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
+++ b/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
@@ -1,7 +1,45 @@
-namespace SubCabinetSolution.ViewModel
+using System.Collections.ObjectModel;
+using GalaSoft.MvvmLight;
+using SubCabinetSolution.Model;
+
+namespace SubCabinetSolution.ViewModel
{
- public class CabinetMainPageViewModel
+ public class CabinetMainPageViewModel : 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 CabinetMainPageViewModel()
+ {
+ 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/.idea/.idea.SubCabinetSolution/.idea/encodings.xml b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
index 56cd6ed..c476474 100644
--- a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
+++ b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 33a1957..c9b3509 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/Utils/NavigationService.cs b/SubCabinetSolution/Utils/NavigationService.cs
index 935a7fa..1e00f07 100644
--- a/SubCabinetSolution/Utils/NavigationService.cs
+++ b/SubCabinetSolution/Utils/NavigationService.cs
@@ -56,11 +56,11 @@
{
if (!_pagesByKey.ContainsKey(pageKey))
{
- throw new ArgumentException($"No such page: {pageKey} ", nameof(pageKey));
+ throw new ArgumentException($@"No such page: {pageKey} ", nameof(pageKey));
}
// 设置应用主窗口,name要注意和xaml保持一致
- CabinetWindow cabinetWindow = Application.Current.Windows
+ var cabinetWindow = Application.Current.Windows
.Cast()
.FirstOrDefault(window => window is CabinetWindow) as CabinetWindow;
if (GetDescendantFromName(cabinetWindow, "CabinetFunctionFrame") is Frame frame)
diff --git a/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs b/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
index a64c933..84cddf8 100644
--- a/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
+++ b/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
@@ -1,7 +1,45 @@
-namespace SubCabinetSolution.ViewModel
+using System.Collections.ObjectModel;
+using GalaSoft.MvvmLight;
+using SubCabinetSolution.Model;
+
+namespace SubCabinetSolution.ViewModel
{
- public class CabinetMainPageViewModel
+ public class CabinetMainPageViewModel : 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 CabinetMainPageViewModel()
+ {
+ 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/ViewModel/ConsumeQueryPageViewModel.cs b/SubCabinetSolution/ViewModel/ConsumeQueryPageViewModel.cs
index 1a9353b..c619e0c 100644
--- a/SubCabinetSolution/ViewModel/ConsumeQueryPageViewModel.cs
+++ b/SubCabinetSolution/ViewModel/ConsumeQueryPageViewModel.cs
@@ -1,7 +1,22 @@
-namespace SubCabinetSolution.ViewModel
+using CommonServiceLocator;
+using GalaSoft.MvvmLight;
+using GalaSoft.MvvmLight.Command;
+using GalaSoft.MvvmLight.Views;
+
+namespace SubCabinetSolution.ViewModel
{
- public class ConsumeQueryPageViewModel
+ public class ConsumeQueryPageViewModel : ViewModelBase
{
-
+ public RelayCommand GoBackCommand { get; set; }
+
+ public ConsumeQueryPageViewModel()
+ {
+ this.GoBackCommand = new RelayCommand(GoBack);
+ }
+
+ private void GoBack()
+ {
+ ServiceLocator.Current.GetInstance().GoBack();
+ }
}
}
\ No newline at end of file
diff --git a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
index 56cd6ed..c476474 100644
--- a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
+++ b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 33a1957..c9b3509 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/Utils/NavigationService.cs b/SubCabinetSolution/Utils/NavigationService.cs
index 935a7fa..1e00f07 100644
--- a/SubCabinetSolution/Utils/NavigationService.cs
+++ b/SubCabinetSolution/Utils/NavigationService.cs
@@ -56,11 +56,11 @@
{
if (!_pagesByKey.ContainsKey(pageKey))
{
- throw new ArgumentException($"No such page: {pageKey} ", nameof(pageKey));
+ throw new ArgumentException($@"No such page: {pageKey} ", nameof(pageKey));
}
// 设置应用主窗口,name要注意和xaml保持一致
- CabinetWindow cabinetWindow = Application.Current.Windows
+ var cabinetWindow = Application.Current.Windows
.Cast()
.FirstOrDefault(window => window is CabinetWindow) as CabinetWindow;
if (GetDescendantFromName(cabinetWindow, "CabinetFunctionFrame") is Frame frame)
diff --git a/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs b/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
index a64c933..84cddf8 100644
--- a/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
+++ b/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
@@ -1,7 +1,45 @@
-namespace SubCabinetSolution.ViewModel
+using System.Collections.ObjectModel;
+using GalaSoft.MvvmLight;
+using SubCabinetSolution.Model;
+
+namespace SubCabinetSolution.ViewModel
{
- public class CabinetMainPageViewModel
+ public class CabinetMainPageViewModel : 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 CabinetMainPageViewModel()
+ {
+ 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/ViewModel/ConsumeQueryPageViewModel.cs b/SubCabinetSolution/ViewModel/ConsumeQueryPageViewModel.cs
index 1a9353b..c619e0c 100644
--- a/SubCabinetSolution/ViewModel/ConsumeQueryPageViewModel.cs
+++ b/SubCabinetSolution/ViewModel/ConsumeQueryPageViewModel.cs
@@ -1,7 +1,22 @@
-namespace SubCabinetSolution.ViewModel
+using CommonServiceLocator;
+using GalaSoft.MvvmLight;
+using GalaSoft.MvvmLight.Command;
+using GalaSoft.MvvmLight.Views;
+
+namespace SubCabinetSolution.ViewModel
{
- public class ConsumeQueryPageViewModel
+ public class ConsumeQueryPageViewModel : ViewModelBase
{
-
+ public RelayCommand GoBackCommand { get; set; }
+
+ public ConsumeQueryPageViewModel()
+ {
+ this.GoBackCommand = new RelayCommand(GoBack);
+ }
+
+ private void GoBack()
+ {
+ ServiceLocator.Current.GetInstance().GoBack();
+ }
}
}
\ No newline at end of file
diff --git a/SubCabinetSolution/ViewModel/GoodsQueryPageViewModel.cs b/SubCabinetSolution/ViewModel/GoodsQueryPageViewModel.cs
index 9b6fb3d..02a28a8 100644
--- a/SubCabinetSolution/ViewModel/GoodsQueryPageViewModel.cs
+++ b/SubCabinetSolution/ViewModel/GoodsQueryPageViewModel.cs
@@ -1,7 +1,22 @@
-namespace SubCabinetSolution.ViewModel
+using CommonServiceLocator;
+using GalaSoft.MvvmLight;
+using GalaSoft.MvvmLight.Command;
+using GalaSoft.MvvmLight.Views;
+
+namespace SubCabinetSolution.ViewModel
{
- public class GoodsQueryPageViewModel
+ public class GoodsQueryPageViewModel : ViewModelBase
{
-
+ public RelayCommand GoBackCommand { get; set; }
+
+ public GoodsQueryPageViewModel()
+ {
+ this.GoBackCommand = new RelayCommand(GoBack);
+ }
+
+ private void GoBack()
+ {
+ ServiceLocator.Current.GetInstance().GoBack();
+ }
}
}
\ No newline at end of file
diff --git a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
index 56cd6ed..c476474 100644
--- a/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
+++ b/.idea/.idea.SubCabinetSolution/.idea/encodings.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 33a1957..c9b3509 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/Utils/NavigationService.cs b/SubCabinetSolution/Utils/NavigationService.cs
index 935a7fa..1e00f07 100644
--- a/SubCabinetSolution/Utils/NavigationService.cs
+++ b/SubCabinetSolution/Utils/NavigationService.cs
@@ -56,11 +56,11 @@
{
if (!_pagesByKey.ContainsKey(pageKey))
{
- throw new ArgumentException($"No such page: {pageKey} ", nameof(pageKey));
+ throw new ArgumentException($@"No such page: {pageKey} ", nameof(pageKey));
}
// 设置应用主窗口,name要注意和xaml保持一致
- CabinetWindow cabinetWindow = Application.Current.Windows
+ var cabinetWindow = Application.Current.Windows
.Cast()
.FirstOrDefault(window => window is CabinetWindow) as CabinetWindow;
if (GetDescendantFromName(cabinetWindow, "CabinetFunctionFrame") is Frame frame)
diff --git a/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs b/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
index a64c933..84cddf8 100644
--- a/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
+++ b/SubCabinetSolution/ViewModel/CabinetMainPageViewModel.cs
@@ -1,7 +1,45 @@
-namespace SubCabinetSolution.ViewModel
+using System.Collections.ObjectModel;
+using GalaSoft.MvvmLight;
+using SubCabinetSolution.Model;
+
+namespace SubCabinetSolution.ViewModel
{
- public class CabinetMainPageViewModel
+ public class CabinetMainPageViewModel : 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 CabinetMainPageViewModel()
+ {
+ 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/ViewModel/ConsumeQueryPageViewModel.cs b/SubCabinetSolution/ViewModel/ConsumeQueryPageViewModel.cs
index 1a9353b..c619e0c 100644
--- a/SubCabinetSolution/ViewModel/ConsumeQueryPageViewModel.cs
+++ b/SubCabinetSolution/ViewModel/ConsumeQueryPageViewModel.cs
@@ -1,7 +1,22 @@
-namespace SubCabinetSolution.ViewModel
+using CommonServiceLocator;
+using GalaSoft.MvvmLight;
+using GalaSoft.MvvmLight.Command;
+using GalaSoft.MvvmLight.Views;
+
+namespace SubCabinetSolution.ViewModel
{
- public class ConsumeQueryPageViewModel
+ public class ConsumeQueryPageViewModel : ViewModelBase
{
-
+ public RelayCommand GoBackCommand { get; set; }
+
+ public ConsumeQueryPageViewModel()
+ {
+ this.GoBackCommand = new RelayCommand(GoBack);
+ }
+
+ private void GoBack()
+ {
+ ServiceLocator.Current.GetInstance().GoBack();
+ }
}
}
\ No newline at end of file
diff --git a/SubCabinetSolution/ViewModel/GoodsQueryPageViewModel.cs b/SubCabinetSolution/ViewModel/GoodsQueryPageViewModel.cs
index 9b6fb3d..02a28a8 100644
--- a/SubCabinetSolution/ViewModel/GoodsQueryPageViewModel.cs
+++ b/SubCabinetSolution/ViewModel/GoodsQueryPageViewModel.cs
@@ -1,7 +1,22 @@
-namespace SubCabinetSolution.ViewModel
+using CommonServiceLocator;
+using GalaSoft.MvvmLight;
+using GalaSoft.MvvmLight.Command;
+using GalaSoft.MvvmLight.Views;
+
+namespace SubCabinetSolution.ViewModel
{
- public class GoodsQueryPageViewModel
+ public class GoodsQueryPageViewModel : ViewModelBase
{
-
+ public RelayCommand GoBackCommand { get; set; }
+
+ public GoodsQueryPageViewModel()
+ {
+ this.GoBackCommand = new RelayCommand(GoBack);
+ }
+
+ private void GoBack()
+ {
+ ServiceLocator.Current.GetInstance().GoBack();
+ }
}
}
\ No newline at end of file
diff --git a/SubCabinetSolution/ViewModel/InquirePageViewModel.cs b/SubCabinetSolution/ViewModel/InquirePageViewModel.cs
index 85d3e15..b62cb3c 100644
--- a/SubCabinetSolution/ViewModel/InquirePageViewModel.cs
+++ b/SubCabinetSolution/ViewModel/InquirePageViewModel.cs
@@ -24,7 +24,7 @@
new FunctionModel("/Images/指定耗材查询.png", "指定耗材查询"),
new FunctionModel("/Images/消耗查询.png", "消耗查询"),
new FunctionModel("/Images/监控查询.png", "监控查询"),
- new FunctionModel("/Images/综合查询.png", "综合查询")
+ new FunctionModel("/Images/综合查询.png", "在途统计")
};
this.InquireSelectedCommand = new RelayCommand