From 5bdfdb8d00f0bcd9428cd09e9fee6d2470dd5882 Mon Sep 17 00:00:00 2001
From: Nah <15196688790@163.com>
Date: Wed, 1 Nov 2023 14:39:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=96=E5=BD=A2=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F=E5=AD=97=E4=BD=93=E5=8F=8A=E6=BB=9A=E5=8A=A8=E6=9D=A1?=
=?UTF-8?q?=E5=A4=A7=E5=B0=8F=E4=BF=AE=E6=94=B9=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
BPA.Model/Table/MaterialTB.cs | 48 +++
BPA.SingleDevice/App.xaml | 346 +++++++++++++++++-
.../View/AddRawMaterialDialogView.xaml | 36 +-
BPA.SingleDevice/View/DebugLogView.xaml | 13 +-
BPA.SingleDevice/View/DebugView.xaml | 34 +-
BPA.SingleDevice/View/MainView.xaml | 8 +-
BPA.SingleDevice/View/NewRecipeView.xaml | 35 +-
BPA.SingleDevice/View/OrderMainView.xaml | 62 ++--
.../View/RawMaterialManagementView.xaml | 24 +-
BPA.SingleDevice/View/RecipeCompletView.xaml | 13 +-
.../View/RecipeManagementView.xaml | 18 +-
BPA.SingleDevice/View/RecipeStatusView.xaml | 15 +-
BPA.SingleDevice/View/RunLogView.xaml | 13 +-
BPA.SingleDevice/View/UserLogView.xaml | 13 +-
.../RawMaterialManagementViewModel.cs | 2 +-
BPA.UIControl/Themes/MessageBoxCard.xaml | 11 +-
16 files changed, 554 insertions(+), 137 deletions(-)
create mode 100644 BPA.Model/Table/MaterialTB.cs
diff --git a/BPA.Model/Table/MaterialTB.cs b/BPA.Model/Table/MaterialTB.cs
new file mode 100644
index 0000000..10dc4ca
--- /dev/null
+++ b/BPA.Model/Table/MaterialTB.cs
@@ -0,0 +1,48 @@
+using SqlSugar;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BPA.Model.Table
+{
+ public class MaterialTB
+ {
+ ///
+ /// 数据ID
+ ///
+ [SugarColumn(IsPrimaryKey = true,IsIdentity =true)]
+ public int ID { get; set; }
+ ///
+ /// 物料名称
+ ///
+ public string Name { get; set; }
+ ///
+ /// 物料编码
+ ///
+ public string MaterialCode { get; set; }
+ ///
+ /// 是否删除
+ ///
+ public bool IsDeleted { get; set; }
+ ///
+ /// 是否激活
+ ///
+ public bool IsActive { get; set; }
+ ///
+ /// 创建时间
+ ///
+ public string CreateTime { get; set; }
+
+ ///
+ /// 最后修改时间
+ ///
+ public string LastModified { get; set; }
+ ///
+ /// 物料描述
+ ///
+ public string Description { get; set; }
+ }
+
+}
diff --git a/BPA.SingleDevice/App.xaml b/BPA.SingleDevice/App.xaml
index 8d64f71..5bf8c8e 100644
--- a/BPA.SingleDevice/App.xaml
+++ b/BPA.SingleDevice/App.xaml
@@ -1,7 +1,8 @@
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:bpa="http://BPAUIControl.io/winfx/xaml/toolkit">
@@ -11,6 +12,349 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/BPA.SingleDevice/View/AddRawMaterialDialogView.xaml b/BPA.SingleDevice/View/AddRawMaterialDialogView.xaml
index 3aa8a69..a52dbe3 100644
--- a/BPA.SingleDevice/View/AddRawMaterialDialogView.xaml
+++ b/BPA.SingleDevice/View/AddRawMaterialDialogView.xaml
@@ -17,7 +17,7 @@
-
+
@@ -32,13 +32,15 @@
Grid.Row="0"
Grid.Column="0"
HorizontalAlignment="Right"
- FontSize="22"
+ FontSize="40"
Foreground="#ddd"
Text="原料名称:" />
@@ -46,47 +48,55 @@
Grid.Row="1"
Grid.Column="0"
HorizontalAlignment="Right"
- FontSize="22"
+ FontSize="40"
Foreground="#ddd"
Text="设备对应工位:" />
+ Content="确认"
+ FontSize="40" />
+ Content="取消"
+ FontSize="40" />
\ No newline at end of file
diff --git a/BPA.SingleDevice/View/DebugLogView.xaml b/BPA.SingleDevice/View/DebugLogView.xaml
index f92b2cc..137aa63 100644
--- a/BPA.SingleDevice/View/DebugLogView.xaml
+++ b/BPA.SingleDevice/View/DebugLogView.xaml
@@ -12,7 +12,7 @@
-
+
@@ -27,19 +27,19 @@
@@ -54,7 +54,7 @@
bpa:ToggleButtonHelper.CheckedContent="历史日志"
Command="{Binding SwitchLogModeCommand}"
Content="实时日志"
- FontSize="25"
+ FontSize="40"
Style="{DynamicResource SwitchToggleButton}" />
@@ -63,6 +63,7 @@
@@ -46,36 +46,31 @@
IsEnabled="{Binding ElementName=ModeButton, Path=IsChecked}"
Orientation="Horizontal">
+ FontSize="40" />
+ FontSize="40" />
@@ -89,12 +84,11 @@
-
+
diff --git a/BPA.SingleDevice/View/MainView.xaml b/BPA.SingleDevice/View/MainView.xaml
index 398abd9..750dfe3 100644
--- a/BPA.SingleDevice/View/MainView.xaml
+++ b/BPA.SingleDevice/View/MainView.xaml
@@ -89,9 +89,9 @@
bpa:ItemsControlHelper.ItemMargin="0"
bpa:ItemsControlHelper.ItemPadding="5 3"
Background="#2d2d2d"
- ExpandedWidth="230" CollapsedWidth="70"
+ ExpandedWidth="400" CollapsedWidth="100"
Foreground="{DynamicResource WhiteForeground}"
- Header="菜单" FontSize="22"
+ Header="菜单" FontSize="40"
ItemsSource="{Binding ViewItems}"
PaneBackground="{Binding TitleBackground, RelativeSource={RelativeSource AncestorType=bpa:BPAWindow}}"
SelectedItem="{Binding CurrentViewItem}"
@@ -100,9 +100,9 @@
-
+
diff --git a/BPA.SingleDevice/View/NewRecipeView.xaml b/BPA.SingleDevice/View/NewRecipeView.xaml
index da3babd..8c5322a 100644
--- a/BPA.SingleDevice/View/NewRecipeView.xaml
+++ b/BPA.SingleDevice/View/NewRecipeView.xaml
@@ -17,21 +17,26 @@
-
+
-
+
-
+
-
+
@@ -41,19 +46,21 @@
@@ -68,13 +75,15 @@
bpa:GridHelper.ColumnDefinitions="*,*"
bpa:PanelHelper.Spacing="10">
+ Content="确认"
+ FontSize="40" />
+ Content="取消"
+ FontSize="40" />
\ No newline at end of file
diff --git a/BPA.SingleDevice/View/OrderMainView.xaml b/BPA.SingleDevice/View/OrderMainView.xaml
index 4816aea..96c32c9 100644
--- a/BPA.SingleDevice/View/OrderMainView.xaml
+++ b/BPA.SingleDevice/View/OrderMainView.xaml
@@ -14,22 +14,22 @@
-
+ Style="{StaticResource LargeScrollListView}"
+ VerticalAlignment="Top"
+ bpa:ItemsControlHelper.ItemPadding="8 5 8 8"
+ ItemsSource="{Binding Goods}">
-
+
-
+
@@ -37,35 +37,36 @@
-
+
+ Grid.Row="1"
+ HorizontalAlignment="Center"
+ FontSize="40"
+ Foreground="#ddd"
+ Text="{Binding Name}" />
+ Grid.Row="1"
+ BorderBrush="#505050"
+ BorderThickness="0,0,0,1" />
+ Grid.Row="2"
+ Margin="0,5,0,0"
+ bpa:GridHelper.ColumnDefinitions="*,*">
+ Width="200"
+ bpa:ControlHelper.FocusBorderBrush="{DynamicResource Secondary}"
+ BorderThickness="0"
+ FontSize="40"
+ Style="{StaticResource FrontBackNumericBox}"
+ Value="{Binding Count}" />
+ Grid.Column="1"
+ Margin="10,0,0,0"
+ Command="{Binding DataContext.DownRecipeCommand, RelativeSource={RelativeSource AncestorType=local:OrderMainView}}"
+ CommandParameter="{Binding Id}"
+ Content="开始下单"
+ Foreground="#ddd"
+ Style="{DynamicResource SecondaryButton}" />
@@ -73,4 +74,5 @@
+
\ No newline at end of file
diff --git a/BPA.SingleDevice/View/RawMaterialManagementView.xaml b/BPA.SingleDevice/View/RawMaterialManagementView.xaml
index 6341c34..f8b4b39 100644
--- a/BPA.SingleDevice/View/RawMaterialManagementView.xaml
+++ b/BPA.SingleDevice/View/RawMaterialManagementView.xaml
@@ -18,7 +18,7 @@
-
+
@@ -30,13 +30,13 @@
bpa:PanelHelper.Spacing="15"
Orientation="Horizontal">