From 728e78a53919f506f52bcf4108fa91a12934255f Mon Sep 17 00:00:00 2001 From: wenjy Date: Sat, 23 Mar 2024 22:58:25 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E6=B7=BB=E5=8A=A0=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/InStoreBusiness.cs | 12 + SlnMesnac.Model/domain/BaseSpaceinfo.cs | 2 +- SlnMesnac.WPF/MainWindow.xaml | 4 +- SlnMesnac.WPF/Page/IndexControl.xaml | 264 ++++++++++++++++++ SlnMesnac.WPF/Page/IndexControl.xaml.cs | 31 ++ SlnMesnac.WPF/SlnMesnac.WPF.csproj | 1 - .../ViewModel/IndexControlViewModel.cs | 113 ++++++++ .../ViewModel/MainWindowViewModel.cs | 11 + SlnMesnac.WPF/appsettings.json | 5 +- 9 files changed, 437 insertions(+), 6 deletions(-) create mode 100644 SlnMesnac.WPF/Page/IndexControl.xaml create mode 100644 SlnMesnac.WPF/Page/IndexControl.xaml.cs create mode 100644 SlnMesnac.WPF/ViewModel/IndexControlViewModel.cs diff --git a/SlnMesnac.Business/business/InStoreBusiness.cs b/SlnMesnac.Business/business/InStoreBusiness.cs index fd3e643..70b5614 100644 --- a/SlnMesnac.Business/business/InStoreBusiness.cs +++ b/SlnMesnac.Business/business/InStoreBusiness.cs @@ -328,5 +328,17 @@ namespace SlnMesnac.Business.business { _logger.LogError($"客户端:{client};读取失败!!!!!!"); } + + /// + /// 获取成品库指定区域的货道信息 + /// + /// + /// + public List GetBaseSpaceinfos(string spaceArea) + { + _spaceinfoService.GetSpaceInfosByExpression(out List spaceinfos,x=>x.StoreCode == _appConfig.storeCode && x.SpaceArea == spaceArea); + + return spaceinfos; + } } } \ No newline at end of file diff --git a/SlnMesnac.Model/domain/BaseSpaceinfo.cs b/SlnMesnac.Model/domain/BaseSpaceinfo.cs index 5631990..72bfc6a 100644 --- a/SlnMesnac.Model/domain/BaseSpaceinfo.cs +++ b/SlnMesnac.Model/domain/BaseSpaceinfo.cs @@ -13,7 +13,7 @@ namespace SlnMesnac.Model.domain /// 主键标识 /// [SugarColumn(ColumnName="OBJ_ID" ,IsPrimaryKey = true )] - public decimal ObjId { get; set; } + public int ObjId { get; set; } /// /// 货道编号 /// diff --git a/SlnMesnac.WPF/MainWindow.xaml b/SlnMesnac.WPF/MainWindow.xaml index 6c6a0a4..d1836f0 100644 --- a/SlnMesnac.WPF/MainWindow.xaml +++ b/SlnMesnac.WPF/MainWindow.xaml @@ -188,7 +188,7 @@ - + @@ -219,7 +219,7 @@ - + diff --git a/SlnMesnac.WPF/Page/IndexControl.xaml b/SlnMesnac.WPF/Page/IndexControl.xaml new file mode 100644 index 0000000..979cff4 --- /dev/null +++ b/SlnMesnac.WPF/Page/IndexControl.xaml @@ -0,0 +1,264 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +