| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <UserControl x:Class="LocalhostMES.Views.Tabs.SystemSettingsView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DesignHeight="1000"
- d:DesignWidth="1000">
- <Grid Margin="10">
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:InvokeCommandAction Command="{Binding ViewLoadedCommand}" />
- </b:EventTrigger>
- </b:Interaction.Triggers>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <GroupBox Grid.Row="0"
- Header="Web API服务设置">
- <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}" />
- <Button Content="仅启动本地服务"
- Style="{StaticResource SuccessButtonStyle}"
- Width="90"
- IsEnabled="{Binding StartServiceEnable}"
- Command="{Binding StartLocalhostServiceCommand}" />
- </StackPanel>
- <TextBlock Foreground="{Binding Servicebrushes}"
- Text="{Binding ServiceStatus}"
- Margin="0,5" />
- </StackPanel>
- </GroupBox>
- <GroupBox Grid.Row="1"
- Header="API客户端设置"
- Margin="0,12,0,0">
- <StackPanel>
- <StackPanel Orientation="Horizontal"
- Margin="0,5">
- <TextBlock Text="API地址:"
- Width="80"
- VerticalAlignment="Center" />
- <TextBox Width="320"
- Text="{Binding ApiUrl}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- Margin="0,5">
- <TextBlock Text="App Key:"
- Width="80"
- VerticalAlignment="Center" />
- <TextBox Width="220"
- Text="{Binding AppKey}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- Margin="0,5">
- <TextBlock Text="Token:"
- Width="80"
- VerticalAlignment="Center" />
- <TextBox Width="220"
- Text="{Binding Token}" />
- </StackPanel>
- <Button Content="保存设置"
- Style="{StaticResource SecondaryButtonStyle}"
- Width="90"
- Margin="0,10,0,0"
- Command="{Binding SaveSettingsCommand}" />
- </StackPanel>
- </GroupBox>
- <GroupBox Grid.Row="2"
- Header="外观主题"
- Margin="0,12,0,0">
- <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" />
- </StackPanel>
- </GroupBox>
- <GroupBox Grid.Row="3"
- Header="接口地址"
- Margin="0,12,0,0">
- <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" />
- </StackPanel>
- </GroupBox>
- <GroupBox Grid.Row="4"
- Header="工单状态说明"
- Margin="0,12,0,0">
- <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" />
- </StackPanel>
- </GroupBox>
- </Grid>
- </UserControl>
|