添加分垛、发泡前端显示界面

dev
liulb@mesnac.com 1 year ago
parent d9b15fbeee
commit 8b0f8aa729

@ -76,6 +76,15 @@
<ProjectReference Include="..\Admin.Core.Extensions\Admin.Core.Extensions.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="LiveCharts">
<HintPath>..\dll\LiveCharts.dll</HintPath>
</Reference>
<Reference Include="LiveCharts.Wpf">
<HintPath>..\dll\LiveCharts.Wpf.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Page Update="Assets\Styles\DefaultStyles.xaml">
<SubType>Designer</SubType>

@ -0,0 +1,162 @@
using CommunityToolkit.Mvvm.ComponentModel;
using LiveCharts.Defaults;
using LiveCharts.Wpf;
using LiveCharts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace Aucma.Core.BoxFoam.ViewModels
{
public partial class FoamMonitorPageViewModel : ObservableObject
{
public FoamMonitorPageViewModel()
{
Task.WaitAll(InitEveryDayMethod());
}
#region 日产量
/// <summary>
/// 每日生产
/// </summary>
/// <returns></returns>
private Task InitEveryDayMethod()
{
#region 按时间统计
ChartValues<ObservablePoint> achievement = new ChartValues<ObservablePoint>
{
new ObservablePoint(0, 12),
new ObservablePoint(1, 14),
new ObservablePoint(2, 28),
new ObservablePoint(3, 62),
new ObservablePoint(4, 29),
new ObservablePoint(5, 29),
new ObservablePoint(6, 7),
new ObservablePoint(7, 31),
new ObservablePoint(8, 13),
new ObservablePoint(9, 11),
new ObservablePoint(10, 8),
new ObservablePoint(11, 5),
new ObservablePoint(12, 3),
new ObservablePoint(13, 11),
new ObservablePoint(14, 15),
new ObservablePoint(15, 6),
new ObservablePoint(16, 11),
new ObservablePoint(17, 9),
new ObservablePoint(18, 11),
new ObservablePoint(19, 1),
new ObservablePoint(20, 10),
new ObservablePoint(21, 22),
new ObservablePoint(22, 16),
new ObservablePoint(23, 12)
};
var column = new ColumnSeries();
column.DataLabels = true;
column.Title = "当日小时产量统计";
column.Values = achievement;
column.Foreground = Brushes.White;
//柱子宽度
//column.Width = 30;
//column.MaxColumnWidth = 30;
//column.LabelsPosition = BarLabelPosition.Perpendicular;
//column.Fill = new SolidColorBrush(Color.FromRgb(34, 139, 34)); //柱状图颜色填充
//column.LabelPoint = p => p.Y.ToString(); //柱状图数据显示位置
ProductionHourList = new List<string>()
{
"1:00", "2:00", "3:00", "4:00", "5:00", "6:00", "7:00", "8:00", "9:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00", "24:00"
};
//Formatter = value => value.ToString("N");
Achievement.Add(column);
#endregion
#region 按类型统计
ChartValues<double> achievement2 = new ChartValues<double>();
Random random2 = new Random();
for (int i = 0; i < 2; i++)
{
achievement2.Add(random2.Next(0, 30));
}
var column2 = new ColumnSeries();
column2.DataLabels = true;
column2.Title = "当日型号产量统计";
column2.Values = achievement2;
column2.Foreground = Brushes.White;
ModelStatistics.Add(column2);
MaterialNameList = new List<string>()
{
"玻璃门,SC-439", "玻璃门,SC-439,AC"
};
#endregion
//await InitExecMethod();
return Task.CompletedTask;
}
#endregion
#region 日产量柱状图X轴日期
/// <summary>
/// 日产量柱状图X轴日期
/// </summary>
private List<string> productionHourList;
public List<string> ProductionHourList
{
get { return productionHourList; }
set { productionHourList = value; }
}
#endregion
#region 型号统计
#region 型号统计柱状图x轴物料类型
/// <summary>
/// 型号统计柱状图x轴物料类型
/// </summary>
private List<string> materialNameList;
public List<string> MaterialNameList
{
get { return materialNameList; }
set { materialNameList = value; }
}
#endregion
#region 型号统计柱状图
/// <summary>
/// 型号统计柱状图
/// </summary>
private SeriesCollection modelStatistics = new SeriesCollection();
public SeriesCollection ModelStatistics
{
get { return modelStatistics; }
set { modelStatistics = value; }
}
#endregion
#endregion
#region 日产量柱状图
/// <summary>
/// 日产量柱状图
/// </summary>
private SeriesCollection achievement = new SeriesCollection();
public SeriesCollection Achievement
{
get { return achievement; }
set { achievement = value; }
}
#endregion
}
}

@ -17,6 +17,7 @@ namespace Aucma.Core.BoxFoam.ViewModels
private MonitorPageView monitorPage= new MonitorPageView();//任务监控
private RealTimeInventoryPageView realTimeInventoryPage = new RealTimeInventoryPageView();
FoamPlanPageView foamPlanPageView = new FoamPlanPageView();
FoamMonitorPageView foamMonitorPageView = new FoamMonitorPageView();
public MainWindowViewModel()
{
UserContent = firstPage;
@ -128,6 +129,9 @@ namespace Aucma.Core.BoxFoam.ViewModels
case "FoamPlanPage":
UserContent = foamPlanPageView;
break;
case "FoamMonitorPage":
UserContent = foamMonitorPageView;
break;
default:
break;
}

@ -4,8 +4,11 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views"
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
d:DesignHeight="1080"
d:DesignWidth="1920">
<Border x:Name="HeightHelperPanel" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="5">
<Grid>
<Grid.Resources>
@ -90,22 +93,22 @@
<TextBlock Text="状态" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="3" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="4" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="5" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="6" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="7" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1" Grid.Column="2" Background="#1157b9">
@ -143,7 +146,7 @@
</Border>
<Border Grid.Row="0" Grid.Column="4" Grid.ColumnSpan="3" >
<TextBlock Text="450" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="1" Grid.Column="4" Background="#1157b9">
<TextBlock Text="发泡量" Foreground="White" FontSize="20"/>
@ -193,22 +196,22 @@
<TextBlock Text="状态" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="3" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="4" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="5" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="6" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="7" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 10,10 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="Green" StrokeThickness="1" Fill="Green" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1" Grid.Column="7" Background="#1157b9">
@ -269,11 +272,55 @@
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<UniformGrid Grid.Row="0">
<UniformGrid Grid.Column="0">
<Grid Margin="10,10">
<lvc:CartesianChart Series="{Binding Achievement, UpdateSourceTrigger=PropertyChanged}" LegendLocation="Top" Foreground="White">
<lvc:CartesianChart.DataTooltip >
<lvc:DefaultTooltip SelectionMode="OnlySender" BulletSize="10" Foreground="Black"></lvc:DefaultTooltip>
</lvc:CartesianChart.DataTooltip>
<lvc:CartesianChart.AxisX>
<lvc:Axis Labels="{Binding ProductionHourList}" FontSize="12" LabelsRotation="0" DisableAnimations="True" Position="LeftBottom" Foreground="White">
<lvc:Axis.Separator>
<lvc:Separator Visibility="Hidden" Step="1" StrokeThickness="1.5" StrokeDashArray="0" Stroke="#404F56" >
</lvc:Separator>
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisX>
<lvc:CartesianChart.AxisY>
<lvc:Axis FontSize="18" Foreground="White" >
<lvc:Axis.Separator>
<lvc:Separator Visibility="Hidden" StrokeThickness="1" StrokeDashArray="3" Stroke="#404F56" >
</lvc:Separator>
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisY>
</lvc:CartesianChart>
</Grid>
</UniformGrid>
<UniformGrid Grid.Row="1">
<UniformGrid Grid.Column="1">
<Grid Margin="10,10">
<lvc:CartesianChart LegendLocation="Top" Series="{Binding ModelStatistics, UpdateSourceTrigger=PropertyChanged}" Foreground="White">
<lvc:CartesianChart.DataTooltip>
<lvc:DefaultTooltip BulletSize="10" Foreground="Black"></lvc:DefaultTooltip>
</lvc:CartesianChart.DataTooltip>
<lvc:CartesianChart.AxisX>
<lvc:Axis Labels="{Binding MaterialNameList}" FontSize="12" Foreground="White">
<lvc:Axis.Separator>
<lvc:Separator Step="1" Visibility="Hidden" StrokeThickness="1.5" StrokeDashArray="0" Stroke="#404F56" >
</lvc:Separator>
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisX>
<lvc:CartesianChart.AxisY>
<lvc:Axis FontSize="18" Foreground="White">
<lvc:Axis.Separator>
<lvc:Separator Visibility="Hidden" StrokeThickness="1" StrokeDashArray="3" Stroke="#404F56" >
</lvc:Separator>
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisY>
</lvc:CartesianChart>
</Grid>
</UniformGrid>
</Grid>
</UniformGrid>

@ -1,4 +1,5 @@
using System;
using Aucma.Core.BoxFoam.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -23,6 +24,7 @@ namespace Aucma.Core.BoxFoam.Views
public FoamMonitorPageView()
{
InitializeComponent();
this.DataContext = new FoamMonitorPageViewModel();
}
}
}

@ -8,8 +8,8 @@
Title="澳柯玛箱体发泡控制系统"
d:DesignHeight="800"
d:DesignWidth="1000" FontFamily="Microsoft YaHei"
MinHeight="1080" MinWidth="1920" WindowState="Normal"
WindowStartupLocation="CenterScreen"
WindowStyle="ToolWindow" WindowState="Maximized"
WindowStartupLocation="CenterScreen"
>
<Window.Background>
<ImageBrush ImageSource="/Assets/images/background.jpg" />
@ -69,7 +69,7 @@
<Button Content="任务监控" x:Name="MonitorPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=MonitorPage}" />
<Button Content="入库统计" x:Name="StatisticsPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=StatisticsPage}" />
<Button Content="发泡计划" x:Name="FoamPlanPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FoamPlanPage}" />
<Button Content="发泡监控" x:Name="FpMonitorPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=StatisticsPage}" />
<Button Content="发泡监控" x:Name="FoamMonitorPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FoamMonitorPage}" />
<Button Content="库存设置" x:Name="SetLibPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=StatisticsPage}" />
<Button Content="键 盘" x:Name="TabTip" Margin="5 0" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=TabTip}" />
<Button Content="最小化" x:Name="Minimized" Margin="5 0" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Minimized}" Background="#FF9900" BorderBrush="#FF9900" />

@ -109,7 +109,7 @@
"TriggerType": 1,
"IntervalSecond": 1,
"CycleRunTimes": 1,
"IsStart": true,
"IsStart": false,
"JobParams": null,
"DelFlag": false,
"CreateBy": "admin",
@ -131,7 +131,7 @@
"TriggerType": 1,
"IntervalSecond": 1,
"CycleRunTimes": 1,
"IsStart": true,
"IsStart": false,
"JobParams": null,
"DelFlag": false,
"CreateBy": "admin",

@ -78,6 +78,9 @@
</ItemGroup>
<ItemGroup>
<Compile Update="Views\PalletizPageView.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Views\StatisticsPageView.xaml.cs">
<SubType>Code</SubType>
</Compile>

@ -7,6 +7,9 @@
</ApplicationDefinition>
</ItemGroup>
<ItemGroup>
<Page Update="Views\PalletizPageView.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Views\IndexPageView.xaml">
<SubType>Designer</SubType>
</Page>

@ -15,7 +15,7 @@ namespace Aucma.Core.Palletiz.ViewModels
private static readonly log4net.ILog log = LogManager.GetLogger(typeof(MainWindowViewModel));
private IndexPageView firstPage = new IndexPageView();//首页
private StatisticsPageView recordPage = new StatisticsPageView();
private PalletizPageView palletizPage = new PalletizPageView();
public MainWindowViewModel()
{
UserContent = firstPage;
@ -118,6 +118,9 @@ namespace Aucma.Core.Palletiz.ViewModels
case "RecordPage":
UserContent = recordPage;
break;
case "PalletizPage":
UserContent = palletizPage;
break;
default:
break;
}

@ -0,0 +1,15 @@
using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aucma.Core.Palletiz.ViewModels
{
public partial class PalletizPageViewModel : ObservableObject
{
public PalletizPageViewModel() { }
}
}

@ -8,7 +8,7 @@
d:DesignHeight="800"
d:DesignWidth="1000" FontFamily="Microsoft YaHei"
MinHeight="1080" MinWidth="1920" WindowState="Maximized"
WindowStartupLocation="CenterScreen" WindowStyle="None"
WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow"
>
<Window.Background>
<ImageBrush ImageSource="/Assets/images/background.jpg" />
@ -65,6 +65,7 @@
<StackPanel Grid.Row="1" Height="50" Orientation="Horizontal" Margin="5 0" HorizontalAlignment="Left">
<Button Content="实时监控" x:Name="FirstPage" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=FirstPage}" Margin="5 0" />
<Button Content="扫描记录" x:Name="RecordPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=RecordPage}" />
<Button Content="分垛库设置" x:Name="PalletizPage" Margin="5 0" Command="{Binding SwitchPagesCommand}" CommandParameter="{Binding Name,ElementName=PalletizPage}" />
<Button Content="键 盘" x:Name="TabTip" Margin="5 0" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=TabTip}" />
<Button Content="最小化" x:Name="Minimized" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Minimized}" Width="100" Background="#FF9900" BorderBrush="#FF9900" Margin="0,0,10,0"/>
<Button Content="退 出" x:Name="Exit" Command="{Binding FormControlCommand}" CommandParameter="{Binding Name,ElementName=Exit}" Width="100" Background="#FF0033" BorderBrush="#FF0033" Margin="0,0,10,0"/>

@ -0,0 +1,371 @@
<UserControl x:Class="Aucma.Core.Palletiz.Views.PalletizPageView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Aucma.Core.Palletiz.Views"
mc:Ignorable="d" Background="#1152AC"
d:DesignHeight="1080" d:DesignWidth="1920">
<Border x:Name="HeightHelperPanel" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="5">
<Grid>
<Grid.Resources>
<Style TargetType="TextBlock">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
</Style>
<Style TargetType="Border">
<Setter Property="BorderBrush" Value="#0288d1"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.1*"/>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="0.3*"/>
<ColumnDefinition Width="0.3*"/>
</Grid.ColumnDefinitions>
<Border Grid.Row="0" Grid.Column="0"></Border>
<Border Grid.Row="1" Grid.Column="0" >
<TextBlock Text="1" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="0">
<TextBlock Text="2" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="3" Grid.Column="0" >
<TextBlock Text="3" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="4" Grid.Column="0" >
<TextBlock Text="4" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="5" Grid.Column="0" >
<TextBlock Text="5" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="6" Grid.Column="0" >
<TextBlock Text="6" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="7" Grid.Column="0" >
<TextBlock Text="7" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="8" Grid.Column="0" >
<TextBlock Text="8" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="9" Grid.Column="0" >
<TextBlock Text="9" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="10" Grid.Column="0" >
<TextBlock Text="10" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="11" Grid.Column="0" >
<TextBlock Text="11" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="12" Grid.Column="0" >
<TextBlock Text="12" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="0" Grid.Column="1" >
<TextBlock Text="物料编号" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="0" Grid.Column="2" >
<TextBlock Text="物料名称" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="0" Grid.Column="3" >
<TextBlock Text="转向角度" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="0" Grid.Column="4" >
<TextBlock Text="是否占用多货道" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="0" Grid.Column="5" >
<TextBlock Text="操作" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="1" Grid.Column="1" >
<TextBlock Text="9002006859" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="1" Grid.Column="2" >
<TextBlock Text="SC-439,YZXGWBC元气森林,C" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="1" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="180" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="1" Grid.Column="4" >
<TextBlock Text="是" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="1" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="2" Grid.Column="1" >
<TextBlock Text="9002006890" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="2" >
<TextBlock Text="SC-439,YZXGWBC元气森林" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="90" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="2" Grid.Column="4" >
<TextBlock Text="是" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="3" Grid.Column="1" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="3" Grid.Column="2" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="3" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="3" Grid.Column="4" >
<TextBlock Text="否" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="3" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="4" Grid.Column="1" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="4" Grid.Column="2" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="4" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="4" Grid.Column="4" >
<TextBlock Text="否" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="4" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="5" Grid.Column="1" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="5" Grid.Column="2" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="5" Grid.Column="3" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="5" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="5" Grid.Column="4" >
<TextBlock Text="否" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="5" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="6" Grid.Column="1" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="6" Grid.Column="2" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="6" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="6" Grid.Column="4" >
<TextBlock Text="否" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="6" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="7" Grid.Column="1" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="7" Grid.Column="2" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="7" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="7" Grid.Column="4" >
<TextBlock Text="否" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="7" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="8" Grid.Column="1" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="8" Grid.Column="2" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="8" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="8" Grid.Column="4" >
<TextBlock Text="否" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="8" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="9" Grid.Column="1" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="9" Grid.Column="2" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="9" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="9" Grid.Column="4" >
<TextBlock Text="否" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="9" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="10" Grid.Column="1" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="10" Grid.Column="2" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="10" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="10" Grid.Column="4" >
<TextBlock Text="否" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="10" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="11" Grid.Column="1" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="11" Grid.Column="2" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="11" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="11" Grid.Column="4" >
<TextBlock Text="否" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="11" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
<Border Grid.Row="12" Grid.Column="1" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="12" Grid.Column="2" >
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="12" Grid.Column="3" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="0" Foreground="White" FontSize="20"/>
<TextBlock Text="°" Foreground="White" FontSize="20"/>
</WrapPanel>
</Border>
<Border Grid.Row="12" Grid.Column="4" >
<TextBlock Text="否" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="12" Grid.Column="5" >
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Button Content="添加" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding AddPlanCommand}" />
<Button Content="清除" FontSize="20" Width="100" Height="40" Margin="3" Command="{Binding ClearPlanCommand}"/>
</WrapPanel>
</Border>
</Grid>
</Border>
</UserControl>

@ -0,0 +1,17 @@
using Aucma.Core.Palletiz.ViewModels;
using System.Windows.Controls;
namespace Aucma.Core.Palletiz.Views
{
/// <summary>
/// FoamPlanPageView.xaml 的交互逻辑
/// </summary>
public partial class PalletizPageView : UserControl
{
public PalletizPageView()
{
InitializeComponent();
this.DataContext = new PalletizPageViewModel();
}
}
}

@ -8,7 +8,7 @@
Title="澳柯玛生产控制系统" Icon="/Assets/images/Icon.png"
d:DesignHeight="1080"
d:DesignWidth="1920" FontFamily="Microsoft YaHei"
MinHeight="1080" MinWidth="1800" WindowStyle="ToolWindow" WindowState="Maximized"
MinHeight="1080" MinWidth="1920" WindowStyle="ToolWindow" WindowState="Maximized"
WindowStartupLocation="CenterScreen" >
<Window.Background>
<ImageBrush ImageSource="/Assets/images/background.jpg" />

Loading…
Cancel
Save