123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 |
- <UserControl x:Class="LampInspectionMachine.Views.SettingView"
- 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:LampInspectionMachine.Views"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DesignHeight="700"
- d:DesignWidth="1000"
- d:Background="White">
- <UserControl.Resources>
- <Style x:Key="textborder"
- TargetType="Border">
- <Setter Property="BorderThickness"
- Value="2" />
- <Setter Property="Background"
- Value="#548CC5" />
- <Setter Property="VerticalAlignment"
- Value="Center" />
- <Setter Property="BorderBrush"
- Value="#7DB1EC" />
- <Setter Property="CornerRadius"
- Value="5" />
- <Setter Property="Effect">
- <Setter.Value>
- <DropShadowEffect BlurRadius="10"
- Direction="0"
- ShadowDepth="0"
- Color="White" />
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="buttonborder"
- TargetType="Border">
- <Setter Property="BorderThickness"
- Value="2" />
- <Setter Property="Background"
- Value="Transparent" />
- <Setter Property="VerticalAlignment"
- Value="Center" />
- <Setter Property="BorderBrush"
- Value="White" />
- <Setter Property="CornerRadius"
- Value="5" />
- <Setter Property="Effect">
- <Setter.Value>
- <DropShadowEffect BlurRadius="10"
- Direction="0"
- ShadowDepth="0"
- Color="#D4D8DD" />
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <Grid Margin="20">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Row="0"
- Grid.Column="0">
- <Border Style="{StaticResource textborder}"
- Grid.Row="0">
- <TextBlock Text="通讯设置"
- Margin="15,5,5,5"
- FontSize="25" />
- </Border>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Margin="10"
- Grid.Row="0"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="扫码枪:"
- Margin="5,5,5,5"
- FontSize="20"
- FontWeight="Bold"/>
- <TextBox Text="{Binding SettingModel.CodePortName}"
- Width="280"
- FontSize="20"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- <TextBox Text="{Binding SettingModel.BaudRateToCode}"
- Margin="10,0,0,0"
- Width="100"
- FontSize="20"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Margin="10"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="读卡器:"
- Margin="5,5,5,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding SettingModel.CardPortName}"
- FontSize="20"
- Width="280"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- <TextBox Text="{Binding SettingModel.BaudRateToCard}"
- Margin="10,0,0,0"
- Width="100"
- FontSize="20"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- <StackPanel Grid.Row="2"
- Margin="10"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="IO模块:"
- Margin="5,5,5,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding SettingModel.ModbusIp}"
- FontSize="20"
- Width="280"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- <TextBox Text="{Binding SettingModel.ModbuePost}"
- Margin="10,0,0,0"
- Width="100"
- FontSize="20"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- </Grid>
- </StackPanel>
- <StackPanel Grid.Row="0"
- Margin="10,0,0,0"
- Grid.Column="1">
- <Border Style="{StaticResource textborder}"
- Grid.Row="0">
- <TextBlock Text="其它设置"
- Margin="15,5,5,5"
- FontSize="25" />
- </Border>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Margin="10"
- Grid.Row="0"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="双色灯闪烁时长:"
- Margin="5,5,5,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding SettingModel.ArmLedTime}"
- Width="300"
- FontSize="20"
- ToolTip="s"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Margin="10"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="滚筒空转时间:"
- Margin="5,5,25,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding SettingModel.IdleTime}"
- FontSize="20"
- Width="300"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- <StackPanel Grid.Row="2"
- Margin="10"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="单次出料数量:"
- Margin="5,5,25,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding SettingModel.SingleOutPut}"
- FontSize="20"
- Width="300"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- <StackPanel Grid.Row="3"
- Margin="10"
- Orientation="Horizontal"
- HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <TextBlock Text="设备编号:"
- Margin="5,5,25,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding SettingModel.DeviceId}"
- FontSize="20"
- Width="300"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" />
- </StackPanel>
- </Grid>
- </StackPanel>
- <StackPanel Grid.Row="1"
- Grid.Column="0">
- <Border Style="{StaticResource textborder}"
- Grid.Row="0">
- <TextBlock Text="MES通讯地址"
- Margin="15,5,5,5"
- FontSize="25" />
- </Border>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0"
- Margin="10">
- <TextBlock Text="刷卡登录:"
- Margin="5,5,5,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding SettingModel.LoginIP}"
- FontSize="20" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Margin="10">
- <TextBlock Text="获取物料:"
- Margin="5,5,5,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding SettingModel.MaterialIP}"
- FontSize="20" />
- </StackPanel>
- <StackPanel Grid.Row="2"
- Margin="10">
- <TextBlock Text="扫码获取订单:"
- Margin="5,5,5,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding SettingModel.CaseIP}"
- FontSize="20" />
- </StackPanel>
- <StackPanel Grid.Row="3"
- Margin="10">
- <TextBlock Text="后台上传:"
- Margin="5,5,5,5"
- FontSize="20"
- FontWeight="Bold" />
- <TextBox Text="{Binding SettingModel.UpLoad}"
- FontSize="20" />
- </StackPanel>
- </Grid>
- </StackPanel>
- <StackPanel Grid.Row="2"
- Margin="30"
- VerticalAlignment="Bottom" HorizontalAlignment="Center"
- Grid.Column="0" Grid.ColumnSpan="2">
- <Border Style="{StaticResource buttonborder}">
- <Button Content="保存"
- VerticalAlignment="Top"
- Command="{Binding SaveSettingsCommand}"
- Padding="20,5,20,5"
- BorderBrush="Transparent"
- FontSize="15"
- WindowChrome.IsHitTestVisibleInChrome="True"
- Background="Transparent" />
- </Border>
- </StackPanel>
- </Grid>
- </Grid>
- </UserControl>
|