You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

289 lines
19 KiB
XML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<UserControl x:Class="StartServerWPF.Modules.Main.Views.SetParamView"
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:prism="http://prismlibrary.com/"
xmlns:hc="https://handyorg.github.io/handycontrol"
prism:ViewModelLocator.AutoWireViewModel="True"
mc:Ignorable="d" Background="#FFEEF1F3"
d:DesignHeight="600" d:DesignWidth="900">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="4*"/>
</Grid.RowDefinitions>
<Border Background="White">
<TextBlock Text="{Binding Title}" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" Margin="10,0,10,0"/>
</Border>
<Border Background="White" Grid.Row="1" CornerRadius="5" Margin="10">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="1*" />
<RowDefinition Height="auto" />
<RowDefinition Height="200" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Row="0">
<UniformGrid Columns="1">
<TextBlock Text="实时处理配置" Background="Black" Foreground="White" VerticalAlignment="Center" Height="30" FontSize="18"/>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="JsonName:" Width="65" VerticalAlignment="Center"/>
<Button Content="..." DockPanel.Dock="Right" Visibility="Hidden"/>
<TextBox DockPanel.Dock="Left" Text="{Binding ApmsJsonName}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="station:" Width="65" VerticalAlignment="Center"/>
<Button Content="..." DockPanel.Dock="Right" Command="{Binding SelectFileCommand}" CommandParameter="apmsStation" Background="#FF0ABEFF"/>
<TextBox DockPanel.Dock="Left" Text="{Binding AModel.station}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="ttime2d:" Width="65" VerticalAlignment="Center"/>
<Button Content="..." DockPanel.Dock="Right" Command="{Binding SelectFileCommand}" CommandParameter="apmsttime2d" Background="#FF0ABEFF"/>
<TextBox DockPanel.Dock="Left" Text="{Binding AModel.ttime[0].ttime2d}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="savepath:" Width="65" VerticalAlignment="Center"/>
<Button Content="..." DockPanel.Dock="Right" Command="{Binding FilePathSaveCommand}" CommandParameter="apmssavepath" Background="#FF0ABEFF"/>
<TextBox DockPanel.Dock="Left" Text="{Binding AModel.savepath}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center" >
<TextBlock Text="微信通知:" Width="65" VerticalAlignment="Center"/>
<CheckBox IsChecked="{Binding IsApmswxNotity}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="network:" VerticalAlignment="Center"/>
<TextBox Text="{Binding AModel.channels[0].network}" IsReadOnly="True"/>
<TextBlock Text="location:" VerticalAlignment="Center"/>
<TextBox Text="{Binding AModel.channels[0].location}" IsReadOnly="True"/>
<TextBlock Text="channels:" VerticalAlignment="Center"/>
<TextBox Text="{Binding AModel.channels[0].channels}" IsReadOnly="True"/>
</DockPanel>
</UniformGrid>
</Border>
<GroupBox Grid.Row="1" Grid.Column="0" Header="台站配置" Style="{StaticResource BaseStyle}">
<ListBox ItemsSource="{Binding ApmsStationSource}">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel>
</WrapPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<Border CornerRadius="5"
BorderThickness="1">
<Grid>
<CheckBox IsChecked="{Binding Enable}" Content="{Binding Num}"/>
</Grid>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</GroupBox>
<GroupBox Grid.Row="2" Grid.Column="0" Header="工区配置" Style="{StaticResource BaseStyle}">
<UniformGrid Columns="2">
<DockPanel VerticalAlignment="Center">
<TextBlock Text="xmin: " VerticalAlignment="Center"/>
<TextBox Text="{Binding AModel.xmin}"/>
</DockPanel>
<DockPanel Margin="10,0,0,0" VerticalAlignment="Center">
<TextBlock Text="xmax: " VerticalAlignment="Center"/>
<TextBox Text="{Binding AModel.xmax}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="ymin: " VerticalAlignment="Center"/>
<TextBox Text="{Binding AModel.ymin}"/>
</DockPanel>
<DockPanel Margin="10,0,0,0" VerticalAlignment="Center">
<TextBlock Text="ymax: " VerticalAlignment="Center"/>
<TextBox Text="{Binding AModel.ymax}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="zmin: " VerticalAlignment="Center"/>
<TextBox Text="{Binding AModel.zmin}"/>
</DockPanel>
<DockPanel Margin="10,0,0,0" VerticalAlignment="Center">
<TextBlock Text="zmax: " VerticalAlignment="Center"/>
<TextBox Text="{Binding AModel.zmax}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text=" zref: " VerticalAlignment="Center" />
<TextBox Text="{Binding AModel.zref}"/>
</DockPanel>
<DockPanel Margin="10,0,0,0" VerticalAlignment="Center">
<TextBlock Text=" step: " VerticalAlignment="Center"/>
<TextBox Text="{Binding AModel.minstep}"/>
</DockPanel>
</UniformGrid>
</GroupBox>
<Border Grid.Row="0" Grid.Column="1" Margin="10,0,10,0">
<UniformGrid Columns="1">
<TextBlock Text="后处理配置" Background="Black" Foreground="White" VerticalAlignment="Center" Height="30" FontSize="18"/>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="JsonName:" Width="65" VerticalAlignment="Center"/>
<Button Content="..." DockPanel.Dock="Right" Visibility="Hidden"/>
<TextBox DockPanel.Dock="Left" Text="{Binding ToolsJsonName}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="station:" Width="65" VerticalAlignment="Center"/>
<Button Content="..." DockPanel.Dock="Right" Command="{Binding SelectFileCommand}" CommandParameter="toolsStation" Background="#FF0ABEFF"/>
<TextBox DockPanel.Dock="Left" Text="{Binding ToolsModel.station}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="ttime2d:" Width="65" VerticalAlignment="Center"/>
<Button Content="..." DockPanel.Dock="Right" Command="{Binding SelectFileCommand}" CommandParameter="toolsttime2d" Background="#FF0ABEFF"/>
<TextBox DockPanel.Dock="Left" Text="{Binding ToolsModel.ttime[0].ttime2d}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="savepath:" Width="65" VerticalAlignment="Center"/>
<Button Content="..." DockPanel.Dock="Right" Command="{Binding FilePathSaveCommand}" CommandParameter="toolssavepath" Background="#FF0ABEFF"/>
<TextBox DockPanel.Dock="Left" Text="{Binding ToolsModel.savepath}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center" >
<TextBlock Text="微信通知:" Width="65" VerticalAlignment="Center"/>
<CheckBox IsChecked="{Binding IsToolswxNotity}"/>
<TextBlock Text="延迟时间(min):" VerticalAlignment="Center" Margin="20,0,0,0"/>
<hc:NumericUpDown Value="{Binding DelayTime}" Maximum="60" Minimum="0"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="network:" VerticalAlignment="Center"/>
<TextBox Text="{Binding ToolsModel.channels[0].network}" IsReadOnly="True"/>
<TextBlock Text="location:" VerticalAlignment="Center"/>
<TextBox Text="{Binding ToolsModel.channels[0].location}" IsReadOnly="True"/>
<TextBlock Text="channels:" VerticalAlignment="Center"/>
<TextBox Text="{Binding ToolsModel.channels[0].channels}" IsReadOnly="True"/>
</DockPanel>
</UniformGrid>
</Border>
<GroupBox Grid.Row="1" Grid.Column="1" Header="台站配置" Style="{StaticResource BaseStyle}" Margin="10,0,10,0">
<ListBox ItemsSource="{Binding ToolsStationSource}">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel>
</WrapPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<Border CornerRadius="5"
BorderThickness="1">
<Grid>
<CheckBox IsChecked="{Binding Enable}" Content="{Binding Num}"/>
</Grid>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</GroupBox>
<GroupBox Grid.Row="2" Grid.Column="1" Header="工区配置" Style="{StaticResource BaseStyle}" Margin="10,0,10,0">
<UniformGrid Columns="2">
<DockPanel VerticalAlignment="Center">
<TextBlock Text="xmin: " VerticalAlignment="Center"/>
<TextBox Text="{Binding ToolsModel.xmin}"/>
</DockPanel>
<DockPanel Margin="10,0,0,0" VerticalAlignment="Center">
<TextBlock Text="xmax: " VerticalAlignment="Center"/>
<TextBox Text="{Binding ToolsModel.xmax}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="ymin: " VerticalAlignment="Center"/>
<TextBox Text="{Binding ToolsModel.ymin}"/>
</DockPanel>
<DockPanel Margin="10,0,0,0" VerticalAlignment="Center">
<TextBlock Text="ymax: " VerticalAlignment="Center"/>
<TextBox Text="{Binding ToolsModel.ymax}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text="zmin: " VerticalAlignment="Center"/>
<TextBox Text="{Binding ToolsModel.zmin}"/>
</DockPanel>
<DockPanel Margin="10,0,0,0" VerticalAlignment="Center">
<TextBlock Text="zmax: " VerticalAlignment="Center"/>
<TextBox Text="{Binding ToolsModel.zmax}"/>
</DockPanel>
<DockPanel VerticalAlignment="Center">
<TextBlock Text=" zref: " VerticalAlignment="Center" />
<TextBox Text="{Binding ToolsModel.zref}"/>
</DockPanel>
<DockPanel Margin="10,0,0,0" VerticalAlignment="Center">
<TextBlock Text=" step: " VerticalAlignment="Center"/>
<TextBox Text="{Binding ToolsModel.minstep}"/>
</DockPanel>
</UniformGrid>
</GroupBox>
<Border Grid.Row="0" Grid.Column="2" Margin="0,0,10,0">
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="70"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="30"/>
</Grid.ColumnDefinitions>
<TextBlock Text="系统配置" Background="Black" Foreground="White" VerticalAlignment="Center" Height="30" FontSize="18" Grid.ColumnSpan="3" />
<TextBlock Text="IP地址" Grid.Row="1" Grid.Column="0" VerticalAlignment="Top" Margin="0,14,0,0" />
<TextBox Text="{Binding MainModel.VpnIP}" Grid.Row="1" Grid.Column="1" VerticalAlignment="Top" Margin="0,7,0,0" />
<TextBlock Text="VPN名称" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" />
<TextBox Text="{Binding MainModel.VpnName}" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" />
<TextBlock Text="用户名:" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" />
<TextBox Text="{Binding MainModel.VpnPsw}" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" />
<TextBlock Text="密码:" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" />
<TextBox Text="{Binding MainModel.VpnPsw}" Grid.Row="4" Grid.Column="1" VerticalAlignment="Center" />
<TextBlock Text="存储路径:" Grid.Row="5" Grid.Column="0" VerticalAlignment="Center"/>
<TextBox Text="{Binding MainModel.DataSavePath}" IsReadOnly="True" Grid.Row="5" Grid.Column="1" VerticalAlignment="Center"/>
<Button Content="..." Command="{Binding FilePathSaveCommand}" CommandParameter="systemSavepath" Grid.Row="5" Grid.Column="2" Background="#FF0ABEFF"/>
<TextBlock Text="日志路径:" Grid.Row="6" Grid.Column="0" VerticalAlignment="Center" />
<TextBox Text="{Binding MainModel.SystemLogPath}" IsReadOnly="True" Grid.Row="6" Grid.Column="1" VerticalAlignment="Center" />
<Button Content="..." Command="{Binding LogPathSaveCommand}" Grid.Row="6" Grid.Column="2" Background="#FF0ABEFF"/>
</Grid>
</Border>
<StackPanel Grid.Row="3" Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center" Visibility="Collapsed">
<StackPanel Orientation="Horizontal" VerticalAlignment="Top">
<TextBlock>
<Run Text="监控日期:"/>
<Run Text="{Binding MoniTime,StringFormat=yyyy-MM-dd HH:mm:ss}"/>
</TextBlock>
<Image Name="tb_calendar_img" Source="/Images/calendar.png" Grid.Column="1" Width="18" Height="18" Margin="0,0,0,0" PreviewMouseLeftButtonUp="tb_calendar_img_MouseLeftButtonUp"/>
</StackPanel>
<Popup x:Name="Pop" PopupAnimation="None" Width="200" Height="210" PlacementTarget="{Binding ElementName=tb_calendar}" Placement="Bottom" AllowsTransparency="True" StaysOpen="False" VerticalAlignment="Top" Margin="-200,0,0,0">
<Calendar Name="calendar" SelectedDate="{Binding MoniTime}" HorizontalAlignment="Left" Margin="0,44,0,0" VerticalAlignment="Top" />
</Popup>
</StackPanel>
<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Center" Grid.Row="3" Grid.Column="2" Margin="0,0,0,30">
<Button Content="应用" Width="100" Height="30"
Background="#FF0ABEFF"
Command="{Binding ConfirmCommand}"/>
<!--<Button Content="取消" Width="100" Height="30"
Background="#DDD" Foreground="#666"
Command="{Binding CancelCommand}"/>-->
</StackPanel>
</Grid>
</Border>
</Grid>
</UserControl>