|
@@ -7,7 +7,8 @@
|
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
mc:Ignorable="d"
|
|
mc:Ignorable="d"
|
|
|
- d:DesignHeight="480" d:DesignWidth="780">
|
|
|
|
|
|
|
+ d:DesignHeight="480"
|
|
|
|
|
+ d:DesignWidth="780">
|
|
|
<Grid Margin="10">
|
|
<Grid Margin="10">
|
|
|
<b:Interaction.Triggers>
|
|
<b:Interaction.Triggers>
|
|
|
<b:EventTrigger EventName="Loaded">
|
|
<b:EventTrigger EventName="Loaded">
|
|
@@ -22,55 +23,107 @@
|
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="*" />
|
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
|
- <GroupBox Grid.Row="0" Header="Web API服务设置">
|
|
|
|
|
|
|
+ <GroupBox Grid.Row="0"
|
|
|
|
|
+ Header="Web API服务设置">
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,5">
|
|
|
|
|
- <TextBlock Text="服务端口:" Width="80" VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Width="100" Text="{Binding ServerPort}" />
|
|
|
|
|
- <Button Content="启动服务" Style="{StaticResource SuccessButtonStyle}" Width="90" IsEnabled="{Binding StartServiceEnable}" Command="{Binding StartServiceCommand}" />
|
|
|
|
|
- <Button Content="停止服务" Style="{StaticResource DangerButtonStyle}" Width="90" IsEnabled="{Binding StopServiceEnable}" Command="{Binding StopServiceCommand}" />
|
|
|
|
|
- <CheckBox Content="屏蔽远程MES" Width="120" IsEnabled="{Binding StopServiceEnable}" Margin="24,0,0,0" IsChecked="{Binding Management.IsLocalhostMode}" />
|
|
|
|
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
|
|
+ Margin="0,5">
|
|
|
|
|
+ <TextBlock Text="服务端口:"
|
|
|
|
|
+ Width="80"
|
|
|
|
|
+ VerticalAlignment="Center" />
|
|
|
|
|
+ <TextBox Width="100"
|
|
|
|
|
+ Text="{Binding ServerPort}" />
|
|
|
|
|
+ <Button Content="启动服务"
|
|
|
|
|
+ Style="{StaticResource SuccessButtonStyle}"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ IsEnabled="{Binding StartServiceEnable}"
|
|
|
|
|
+ Command="{Binding StartServiceCommand}" />
|
|
|
|
|
+ <Button Content="停止服务"
|
|
|
|
|
+ Style="{StaticResource DangerButtonStyle}"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ IsEnabled="{Binding StopServiceEnable}"
|
|
|
|
|
+ Command="{Binding StopServiceCommand}" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
- <TextBlock Foreground="{Binding Servicebrushes}" Text="{Binding ServiceStatus}" Margin="0,5" />
|
|
|
|
|
|
|
+ <TextBlock Foreground="{Binding Servicebrushes}"
|
|
|
|
|
+ Text="{Binding ServiceStatus}"
|
|
|
|
|
+ Margin="0,5" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</GroupBox>
|
|
</GroupBox>
|
|
|
- <GroupBox Grid.Row="1" Header="API客户端设置" Margin="0,12,0,0">
|
|
|
|
|
|
|
+ <GroupBox Grid.Row="1"
|
|
|
|
|
+ Header="API客户端设置"
|
|
|
|
|
+ Margin="0,12,0,0">
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,5">
|
|
|
|
|
- <TextBlock Text="API地址:" Width="80" VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Width="320" Text="{Binding ApiUrl}" />
|
|
|
|
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
|
|
+ Margin="0,5">
|
|
|
|
|
+ <TextBlock Text="API地址:"
|
|
|
|
|
+ Width="80"
|
|
|
|
|
+ VerticalAlignment="Center" />
|
|
|
|
|
+ <TextBox Width="320"
|
|
|
|
|
+ Text="{Binding ApiUrl}" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,5">
|
|
|
|
|
- <TextBlock Text="App Key:" Width="80" VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Width="220" Text="{Binding AppKey}" />
|
|
|
|
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
|
|
+ Margin="0,5">
|
|
|
|
|
+ <TextBlock Text="App Key:"
|
|
|
|
|
+ Width="80"
|
|
|
|
|
+ VerticalAlignment="Center" />
|
|
|
|
|
+ <TextBox Width="220"
|
|
|
|
|
+ Text="{Binding AppKey}" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,5">
|
|
|
|
|
- <TextBlock Text="Token:" Width="80" VerticalAlignment="Center" />
|
|
|
|
|
- <TextBox Width="220" Text="{Binding Token}" />
|
|
|
|
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
|
|
+ Margin="0,5">
|
|
|
|
|
+ <TextBlock Text="Token:"
|
|
|
|
|
+ Width="80"
|
|
|
|
|
+ VerticalAlignment="Center" />
|
|
|
|
|
+ <TextBox Width="220"
|
|
|
|
|
+ Text="{Binding Token}" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
- <Button Content="保存设置" Style="{StaticResource SecondaryButtonStyle}" Width="90" Margin="0,10,0,0" Command="{Binding SaveSettingsCommand}" />
|
|
|
|
|
|
|
+ <Button Content="保存设置"
|
|
|
|
|
+ Style="{StaticResource SecondaryButtonStyle}"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ Margin="0,10,0,0"
|
|
|
|
|
+ Command="{Binding SaveSettingsCommand}" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</GroupBox>
|
|
</GroupBox>
|
|
|
- <GroupBox Grid.Row="2" Header="外观主题" Margin="0,12,0,0">
|
|
|
|
|
|
|
+ <GroupBox Grid.Row="2"
|
|
|
|
|
+ Header="外观主题"
|
|
|
|
|
+ Margin="0,12,0,0">
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="深色模式:" Width="80" VerticalAlignment="Center" />
|
|
|
|
|
- <CheckBox IsChecked="{Binding IsDarkTheme}" VerticalAlignment="Center" />
|
|
|
|
|
- <TextBlock Text="(切换后立即生效)" Margin="8,0,0,0" VerticalAlignment="Center" Opacity="0.8" />
|
|
|
|
|
|
|
+ <TextBlock Text="深色模式:"
|
|
|
|
|
+ Width="80"
|
|
|
|
|
+ VerticalAlignment="Center" />
|
|
|
|
|
+ <CheckBox IsChecked="{Binding IsDarkTheme}"
|
|
|
|
|
+ VerticalAlignment="Center" />
|
|
|
|
|
+ <TextBlock Text="(切换后立即生效)"
|
|
|
|
|
+ Margin="8,0,0,0"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ Opacity="0.8" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</GroupBox>
|
|
</GroupBox>
|
|
|
- <GroupBox Grid.Row="3" Header="接口地址" Margin="0,12,0,0">
|
|
|
|
|
|
|
+ <GroupBox Grid.Row="3"
|
|
|
|
|
+ Header="接口地址"
|
|
|
|
|
+ Margin="0,12,0,0">
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
- <TextBlock Text="1. 工单下发接口: /api/mes/receiveWorkOrder" Margin="0,2" />
|
|
|
|
|
- <TextBlock Text="2. SN打印请求接口: /api/mes/requestSnPrint" Margin="0,2" />
|
|
|
|
|
- <TextBlock Text="3. SN关键件绑定接口: /api/mes/receiveSnComponent" Margin="0,2" />
|
|
|
|
|
- <TextBlock Text="4. 加工参数上报接口: /api/mes/receiveProcessParameters" Margin="0,2" />
|
|
|
|
|
|
|
+ <TextBlock Text="1. 工单下发接口: /api/mes/receiveWorkOrder"
|
|
|
|
|
+ Margin="0,2" />
|
|
|
|
|
+ <TextBlock Text="2. SN打印请求接口: /api/mes/requestSnPrint"
|
|
|
|
|
+ Margin="0,2" />
|
|
|
|
|
+ <TextBlock Text="3. SN关键件绑定接口: /api/mes/receiveSnComponent"
|
|
|
|
|
+ Margin="0,2" />
|
|
|
|
|
+ <TextBlock Text="4. 加工参数上报接口: /api/mes/receiveProcessParameters"
|
|
|
|
|
+ Margin="0,2" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</GroupBox>
|
|
</GroupBox>
|
|
|
- <GroupBox Grid.Row="4" Header="工单状态说明" Margin="0,12,0,0">
|
|
|
|
|
|
|
+ <GroupBox Grid.Row="4"
|
|
|
|
|
+ Header="工单状态说明"
|
|
|
|
|
+ Margin="0,12,0,0">
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
|
- <TextBlock Text="0:已创建、1:已排产、2:已发布、3:关闭、4:已锁定、5:已开工、6:已完成、7:异常完工" Margin="0,2" TextWrapping="Wrap" />
|
|
|
|
|
- <TextBlock Text="冻结状态: 0:否、1:是" Margin="0,2" />
|
|
|
|
|
- <TextBlock Text="下发状态: 0:未下发、1:已下发" Margin="0,2" />
|
|
|
|
|
|
|
+ <TextBlock Text="0:已创建、1:已排产、2:已发布、3:关闭、4:已锁定、5:已开工、6:已完成、7:异常完工"
|
|
|
|
|
+ Margin="0,2"
|
|
|
|
|
+ TextWrapping="Wrap" />
|
|
|
|
|
+ <TextBlock Text="冻结状态: 0:否、1:是"
|
|
|
|
|
+ Margin="0,2" />
|
|
|
|
|
+ <TextBlock Text="下发状态: 0:未下发、1:已下发"
|
|
|
|
|
+ Margin="0,2" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</GroupBox>
|
|
</GroupBox>
|
|
|
</Grid>
|
|
</Grid>
|