|
|
|
@ -25,17 +25,41 @@
|
|
|
|
<Style x:Key="SettingLabelStyle" TargetType="TextBlock">
|
|
|
|
<Style x:Key="SettingLabelStyle" TargetType="TextBlock">
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="Foreground" Value="#666"/>
|
|
|
|
<Setter Property="Foreground" Value="#666"/>
|
|
|
|
<Setter Property="Margin" Value="0,5"/>
|
|
|
|
<Setter Property="Margin" Value="24,5,0,5"/>
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="SettingTextBoxStyle" TargetType="TextBox" BasedOn="{StaticResource NormalTextBoxStyle}">
|
|
|
|
<Style x:Key="SettingTextBoxStyle" TargetType="TextBox" BasedOn="{StaticResource NormalTextBoxStyle}">
|
|
|
|
<Setter Property="Height" Value="32"/>
|
|
|
|
<Setter Property="Height" Value="32"/>
|
|
|
|
<Setter Property="Margin" Value="0,5"/>
|
|
|
|
<Setter Property="Margin" Value="0,5"/>
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
|
|
|
<Trigger Property="IsReadOnly" Value="True">
|
|
|
|
|
|
|
|
<Setter Property="Background" Value="#FFF2F4F7"/>
|
|
|
|
|
|
|
|
<Setter Property="BorderBrush" Value="#FFD0D5DD"/>
|
|
|
|
|
|
|
|
<Setter Property="Foreground" Value="#FF7A8491"/>
|
|
|
|
|
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
<Style x:Key="SettingCheckBoxStyle" TargetType="CheckBox">
|
|
|
|
<Style x:Key="SettingCheckBoxStyle" TargetType="CheckBox">
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
|
<Setter Property="Margin" Value="0,5"/>
|
|
|
|
<Setter Property="Margin" Value="0,5"/>
|
|
|
|
</Style>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style x:Key="BrowseButtonStyle" TargetType="Button" BasedOn="{StaticResource NormalButtonStyle}">
|
|
|
|
|
|
|
|
<Setter Property="Width" Value="58"/>
|
|
|
|
|
|
|
|
<Setter Property="Height" Value="32"/>
|
|
|
|
|
|
|
|
<Setter Property="Margin" Value="6,5,0,5"/>
|
|
|
|
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
|
|
|
|
<Setter Property="FontSize" Value="13"/>
|
|
|
|
|
|
|
|
<Setter Property="Background" Value="#FFE9F7FD"/>
|
|
|
|
|
|
|
|
<Setter Property="Foreground" Value="#FF0886B8"/>
|
|
|
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
|
|
|
|
|
<Setter Property="Background" Value="#FFF2F4F7"/>
|
|
|
|
|
|
|
|
<Setter Property="Foreground" Value="#FF98A2B3"/>
|
|
|
|
|
|
|
|
<Setter Property="BorderBrush" Value="#FFD0D5DD"/>
|
|
|
|
|
|
|
|
<Setter Property="Opacity" Value="1"/>
|
|
|
|
|
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|
|
|
|
</ResourceDictionary>
|
|
|
|
</UserControl.Resources>
|
|
|
|
</UserControl.Resources>
|
|
|
|
<Grid Margin="24">
|
|
|
|
<Grid Margin="24">
|
|
|
|
@ -47,7 +71,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<DockPanel Margin="0,0,0,16">
|
|
|
|
<DockPanel Margin="0,0,0,16">
|
|
|
|
<StackPanel DockPanel.Dock="Left">
|
|
|
|
<StackPanel DockPanel.Dock="Left">
|
|
|
|
<TextBlock Text="系统设置" FontSize="24" FontWeight="Bold" Foreground="#333"/>
|
|
|
|
<TextBlock Text="参数设置" FontSize="24" FontWeight="Bold" Foreground="#333"/>
|
|
|
|
<TextBlock Text="{Binding ConfigPath}" Margin="0,6,0,0" Foreground="#888"/>
|
|
|
|
<TextBlock Text="{Binding ConfigPath}" Margin="0,6,0,0" Foreground="#888"/>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
<TextBlock DockPanel.Dock="Right"
|
|
|
|
<TextBlock DockPanel.Dock="Right"
|
|
|
|
@ -60,7 +84,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
|
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
|
|
|
<StackPanel>
|
|
|
|
<StackPanel>
|
|
|
|
<GroupBox Header="常用参数" Style="{StaticResource SettingGroupStyle}">
|
|
|
|
<GroupBox Header="工区参数" Style="{StaticResource SettingGroupStyle}">
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
@ -71,18 +95,56 @@
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="刷新间隔(秒)" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Text="工区名称" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Column="1" Text="{Binding RefreshInterval, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBox Grid.Column="1" Text="{Binding WorkAreaName, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="数据时长(小时)" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="工区配置" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Column="3" Text="{Binding DataLookbackHours, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<DockPanel Grid.Column="3">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseResourceFileCommand}" CommandParameter="WorkAreaFilePath" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Text="{Binding WorkAreaFilePath, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Text="台站CSV" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<DockPanel Grid.Row="1" Grid.Column="1">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseResourceFileCommand}" CommandParameter="StationsCsvFilePath" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Text="{Binding StationsCsvFilePath, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="CAD DWG" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<DockPanel Grid.Row="1" Grid.Column="3">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseResourceFileCommand}" CommandParameter="CadDwgFilePath" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Text="{Binding CadDwgFilePath, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Text="DWG图层设置" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<DockPanel Grid.Row="2" Grid.Column="1">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseResourceFileCommand}" CommandParameter="DwgJsonSetting" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Text="{Binding DwgJsonSetting, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="2" Text="BaseX" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="2" Grid.Column="3" Text="{Binding BaseX, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="数据缓存时长(分钟)" Style="{StaticResource SettingLabelStyle}" Visibility="Collapsed"/>
|
|
|
|
<TextBlock Grid.Row="3" Text="BaseY" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding DataCacheTimeLenMins, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}" Visibility="Collapsed"/>
|
|
|
|
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding BaseY, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="2" Text="BaseZ" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="3" Grid.Column="3" Text="{Binding BaseZ, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="4" Text="平面图横向偏移" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding DailyReportPlanOffsetX, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="4" Grid.Column="2" Text="平面图纵向偏移" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="4" Grid.Column="3" Text="{Binding DailyReportPlanOffsetY, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="5" Text="刷新间隔(秒)" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding RefreshInterval, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="5" Grid.Column="2" Text="数据时长(小时)" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="5" Grid.Column="3" Text="{Binding DataLookbackHours, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
|
|
<GroupBox Header="路径" Style="{StaticResource SettingGroupStyle}">
|
|
|
|
<GroupBox Header="预警配置" Style="{StaticResource SettingGroupStyle}">
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
@ -90,41 +152,34 @@
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
<ColumnDefinition/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<TextBlock Text="报警配置" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Text="报警配置" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Column="1" Text="{Binding AlarmSetting, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<DockPanel Grid.Column="1">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseResourceFileCommand}" CommandParameter="AlarmSetting" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Text="{Binding AlarmSetting, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
<TextBlock Grid.Column="2" Text="报警等级配置" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="报警等级配置" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Column="3" Text="{Binding AlarmLevelConfig, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<DockPanel Grid.Column="3">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseResourceFileCommand}" CommandParameter="AlarmLevelConfig" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
<TextBlock Grid.Row="1" Text="报表事件分级" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Text="{Binding AlarmLevelConfig, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding ReportEventLevelSetting, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
</DockPanel>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="工区配置" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
</Grid>
|
|
|
|
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding WorkAreaFilePath, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Text="台站 CSV" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding StationsCsvFilePath, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="2" Text="CAD DWG" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="2" Grid.Column="3" Text="{Binding CadDwgFilePath, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="3" Text="DWG 图层配置" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding DwgJsonSetting, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="2" Text="Mseed 缓存目录" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="3" Grid.Column="3" Text="{Binding WavesMseedFilePath, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="4" Text="Txt 缓存目录" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding WavesTxtFilePath, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="5" Text="DWG 显示设置" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<GroupBox Header="报表" Style="{StaticResource SettingGroupStyle}">
|
|
|
|
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding DwgSettings, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<Grid>
|
|
|
|
<TextBlock Grid.Row="5" Grid.Column="2" Text="CAD 设置文件" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<TextBox Grid.Row="5" Grid.Column="3" Text="{Binding CadSettingsFileName, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
|
|
|
|
<ColumnDefinition/>
|
|
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<TextBlock Text="日报起始时间" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Column="1" Text="{Binding DailyReportStartTime, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Column="2" Text="报表事件分级" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<DockPanel Grid.Column="3">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseResourceFileCommand}" CommandParameter="ReportEventLevelSetting" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Text="{Binding ReportEventLevelSetting, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
|
|
@ -139,16 +194,31 @@
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="API 域名" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Text="API 域名" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Column="1" Text="{Binding ApiDomain, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBox Grid.Column="1" Text="{Binding ApiDomain, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="本地 SQLite" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="本地 SQLite" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Column="3" Text="{Binding LocalSqLiteDb, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<DockPanel Grid.Column="3">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseLocalFileCommand}" CommandParameter="LocalSqLiteDb" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Text="{Binding LocalSqLiteDb, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Text="设计模式" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Grid.Row="1" Text="设计模式" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<CheckBox Grid.Row="1" Grid.Column="1" IsChecked="{Binding IsDesign}" Style="{StaticResource SettingCheckBoxStyle}"/>
|
|
|
|
<CheckBox Grid.Row="1" Grid.Column="1" IsChecked="{Binding IsDesign}" Style="{StaticResource SettingCheckBoxStyle}"/>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="实时模式" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="实时模式" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<CheckBox Grid.Row="1" Grid.Column="3" IsChecked="{Binding IsRealtime}" Style="{StaticResource SettingCheckBoxStyle}"/>
|
|
|
|
<CheckBox Grid.Row="1" Grid.Column="3" IsChecked="{Binding IsRealtime}" Style="{StaticResource SettingCheckBoxStyle}"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Text="DWG显示设置" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<DockPanel Grid.Row="2" Grid.Column="1">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseResourceFileCommand}" CommandParameter="DwgSettings" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Text="{Binding DwgSettings, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="2" Text="CAD设置文件" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<DockPanel Grid.Row="2" Grid.Column="3">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseResourceFileCommand}" CommandParameter="CadSettingsFileName" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Text="{Binding CadSettingsFileName, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
|
|
@ -184,7 +254,7 @@
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
|
|
<GroupBox Header="品牌与报表" Style="{StaticResource SettingGroupStyle}">
|
|
|
|
<GroupBox Header="系统参数" Style="{StaticResource SettingGroupStyle}">
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
@ -197,47 +267,46 @@
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="公司名称" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Text="公司名称" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Column="1" Text="{Binding CommpanyName, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBox Grid.Column="1" Text="{Binding CommpanyName, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding SystemSettingsReadOnly}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="工区名称" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Grid.Column="2" Text="系统中文名" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Column="3" Text="{Binding WorkAreaName, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBox Grid.Column="3" Text="{Binding SystemNameCn, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding SystemSettingsReadOnly}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="1" Text="系统中文名" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Grid.Row="1" Text="系统简称" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SystemNameCn, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SystemShortName, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding SystemSettingsReadOnly}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="系统英文名" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="系统英文名" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SystemNameEn, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SystemNameEn, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding SystemSettingsReadOnly}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Text="系统简称" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Grid.Row="2" Text="Mseed缓存目录" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SystemShortName, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<DockPanel Grid.Row="2" Grid.Column="1">
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="2" Text="日报起始时间" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseFolderCommand}" CommandParameter="WavesMseedFilePath" IsEnabled="{Binding CanEditSystemSettings}" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
<TextBox Grid.Row="2" Grid.Column="3" Text="{Binding DailyReportStartTime, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBox Text="{Binding WavesMseedFilePath, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding SystemSettingsReadOnly}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.Column="2" Text="Txt缓存目录" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<DockPanel Grid.Row="2" Grid.Column="3">
|
|
|
|
|
|
|
|
<Button Content="浏览" DockPanel.Dock="Right" Command="{Binding BrowseFolderCommand}" CommandParameter="WavesTxtFilePath" IsEnabled="{Binding CanEditSystemSettings}" Style="{StaticResource BrowseButtonStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Text="{Binding WavesTxtFilePath, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding SystemSettingsReadOnly}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="3" Text="平面图横向偏移" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="2" Text="数据缓存时长(分钟)" Style="{StaticResource SettingLabelStyle}" Visibility="Collapsed"/>
|
|
|
|
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding DailyReportPlanOffsetX, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
<TextBox Grid.Row="3" Grid.Column="3" Text="{Binding DataCacheTimeLenMins, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding SystemSettingsReadOnly}" Style="{StaticResource SettingTextBoxStyle}" Visibility="Collapsed"/>
|
|
|
|
<TextBlock Grid.Row="3" Grid.Column="2" Text="平面图纵向偏移" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Row="3" Grid.Column="3" Text="{Binding DailyReportPlanOffsetY, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<GroupBox Header="坐标" Style="{StaticResource SettingGroupStyle}">
|
|
|
|
<Button Grid.Row="4"
|
|
|
|
<Grid>
|
|
|
|
Grid.Column="0"
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
Content="{Binding SystemSettingsEditButtonText}"
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
Width="86"
|
|
|
|
<ColumnDefinition/>
|
|
|
|
Height="30"
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
Margin="24,10,0,0"
|
|
|
|
<ColumnDefinition/>
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
<ColumnDefinition Width="170"/>
|
|
|
|
Style="{StaticResource NormalButtonStyle}"
|
|
|
|
<ColumnDefinition/>
|
|
|
|
Background="#FFE9F7FD"
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
Foreground="#FF0886B8"
|
|
|
|
<TextBlock Text="BaseX" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
Command="{Binding ToggleSystemSettingsEditCommand}"/>
|
|
|
|
<TextBox Grid.Column="1" Text="{Binding BaseX, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Column="2" Text="BaseY" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Column="3" Text="{Binding BaseY, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
<TextBlock Grid.Column="4" Text="BaseZ" Style="{StaticResource SettingLabelStyle}"/>
|
|
|
|
|
|
|
|
<TextBox Grid.Column="5" Text="{Binding BaseZ, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource SettingTextBoxStyle}"/>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</ScrollViewer>
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
|
|
|
|
|
|
|