|
@@ -7,6 +7,7 @@
|
|
|
xmlns:local2="clr-namespace:MeterVision"
|
|
|
xmlns:zdfflatui="clr-namespace:ZdfFlatUI;assembly=WPF.UI"
|
|
|
xmlns:img="clr-namespace:MeterVision.UC"
|
|
|
+ xmlns:station="clr-namespace:MeterVision.Station"
|
|
|
mc:Ignorable="d"
|
|
|
Padding="5 2 5 5"
|
|
|
Background="WhiteSmoke"
|
|
@@ -30,6 +31,7 @@
|
|
|
<Grid>
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="220" x:Name="colLeft" />
|
|
|
+ <ColumnDefinition Width="300" x:Name="colStation" />
|
|
|
<ColumnDefinition Width="*" />
|
|
|
<ColumnDefinition Width="400" x:Name="colRight" />
|
|
|
</Grid.ColumnDefinitions>
|
|
@@ -391,7 +393,124 @@
|
|
|
</Grid>
|
|
|
</Border>
|
|
|
|
|
|
- <Border Grid.Column="1" BorderBrush="#D3D3D3" BorderThickness="0 0 1 0" Padding="0 0 5 0">
|
|
|
+
|
|
|
+ <Grid Grid.Column="1" Background="WhiteSmoke">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="0"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <!--右侧上左站点明细-->
|
|
|
+ <Border Grid.Column="0" BorderBrush="#D3D3D3" BorderThickness="0 0 1 0" Padding="0 0 5 0">
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="*" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <!--右上空间的上方状态栏-->
|
|
|
+ <Border Grid.Row="0" BorderBrush="#D3D3D3" BorderThickness="0 0 0 0" Padding="0 2 0 2" Margin="2 0 2 0">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <!--<TextBlock Grid.Column="0" Text="站点列表-管理水表识别时所需的参数"
|
|
|
+ TextWrapping="Wrap" FontWeight="Bold" FontSize="14px" VerticalAlignment="Center" />-->
|
|
|
+ <StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="5 0 2 0">
|
|
|
+ <Button Content="◀️" x:Name="btnLeftCtl" FontSize="20px" Width="28" Height="28" Visibility="Visible"
|
|
|
+ Click="BtnLeftCtl_Click" Foreground="White" Background="#333333" Margin="0 0 5 0" />
|
|
|
+ <TextBlock x:Name="txtStandName" Text="1." Visibility="Visible"
|
|
|
+ FontSize="14px" FontWeight="Bold" VerticalAlignment="Center" />
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal">
|
|
|
+ <!--<Button Content="◀️" x:Name="btnLeftCtl" FontSize="20px" Width="28" Height="28" Visibility="Visible"
|
|
|
+ Click="BtnLeftCtl_Click" Foreground="White" Background="#333333" Margin="5 0 5 0" />-->
|
|
|
+
|
|
|
+ <TextBlock Text="站点:" VerticalAlignment="Center" Margin="5 0 5 0"
|
|
|
+ Foreground="Black" FontSize="14px" />
|
|
|
+ <TextBox x:Name="txtFindStationId" FontSize="14px" Width="110" Text="12345678901" VerticalAlignment="Center"
|
|
|
+ Padding="2" Margin="0 0 10 0" PreviewTextInput="TextBox_PreviewTextInput" />
|
|
|
+ <zdfflatui:FlatButton Grid.Column="1" x:Name="btnQuery" HorizontalAlignment="Center"
|
|
|
+ Background="#2196F3" Content="查询"
|
|
|
+ Click="BtnQuery_Click" Foreground="White"
|
|
|
+ Width="60" Height="28" FontSize="14" Margin="0 0 5 0" />
|
|
|
+
|
|
|
+ <zdfflatui:FlatButton Grid.Column="2" x:Name="btnRefreshStation" HorizontalAlignment="Center"
|
|
|
+ Background="#2196F3" Foreground="White" Content="🔄"
|
|
|
+ ToolTip="刷新数据列表" Visibility="Collapsed"
|
|
|
+ Click="BtnRefreshStation_Click" Margin="10 0 10 0"
|
|
|
+ Width="30" Height="28" FontSize="20px" />
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <Border Grid.Row="1">
|
|
|
+ <station:UCVpsGrid x:Name="ucStationGrid" Padding="5 5 5 5" />
|
|
|
+ </Border>
|
|
|
+ <!-- 底部分页控件 -->
|
|
|
+ <StackPanel Grid.Row="2" Height="35" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0">
|
|
|
+ <TextBlock Text="{Binding ElementName=ucStationGrid,Path=TotalRecords,StringFormat='共 {0} 条数据'}" Margin="5" VerticalAlignment="Center" FontSize="13px"/>
|
|
|
+ <ComboBox Width="55" Margin="5" FontSize="13px"
|
|
|
+ ItemsSource="{x:Static local2:ThisApp.PageSizeOptions}"
|
|
|
+ SelectedValue="{Binding ElementName=ucStationGrid,Path=mConfigItem.PatchPageSize}"/>
|
|
|
+ <!--<Button x:Name="btnStationFirstPage" Content="首页" Width="55" Margin="5" FontSize="13px" Click="BtnStationFirstPage_Click"/>
|
|
|
+ <Button x:Name="btnStationPrePage" Content="上一页" Width="55" Margin="5" FontSize="13px" Click="BtnStationPrePage_Click"/>
|
|
|
+ <TextBlock Margin="5" FontSize="13px" VerticalAlignment="Center">
|
|
|
+ <TextBlock.Text>
|
|
|
+ -->
|
|
|
+ <!--<MultiBinding StringFormat="第 {0} 页 / 共 {1} 页">-->
|
|
|
+ <!--
|
|
|
+ <MultiBinding StringFormat="{}{0}/{1}">
|
|
|
+ <Binding ElementName="ucStationGrid" Path="StationPage.PageNumber"/>
|
|
|
+ <Binding ElementName="ucStationGrid" Path="StationPage.PageCount"/>
|
|
|
+ </MultiBinding>
|
|
|
+ </TextBlock.Text>
|
|
|
+ </TextBlock>
|
|
|
+
|
|
|
+ <Button x:Name="btnStationNextPage" Content="下一页" Width="55" Margin="5" FontSize="13px" Click="BtnStationNextPage_Click"/>
|
|
|
+ <Button x:Name="btnStationLastPage" Content="尾页" Width="55" Margin="5" FontSize="13px" Click="BtnStationLastPage_Click"/>-->
|
|
|
+ <TextBox x:Name="txtStationPageNumber" Width="40" Margin="5" TextAlignment="Center" FontSize="13px"
|
|
|
+ Text="{Binding ElementName=ucStationGrid,Path=StationPage.PageNumber,Mode=OneWay}" Visibility="Visible"
|
|
|
+ MaxLength="3" PreviewTextInput="TextBox_PreviewTextInput" VerticalContentAlignment="Center"/>
|
|
|
+ <Button x:Name="btnStationSpeciPage" Content="跳转" Width="50" Margin="5" FontSize="13px"
|
|
|
+ Visibility="Visible" Click="BtnStationSpeciPage_Click"/>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel Grid.Row="3" Height="35" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0">
|
|
|
+ <!--<TextBlock Text="{Binding ElementName=ucStationGrid,Path=TotalRecords,StringFormat='共 {0} 条数据'}" Margin="5" VerticalAlignment="Center" FontSize="13px"/>
|
|
|
+ <ComboBox Width="55" Margin="5" FontSize="13px"
|
|
|
+ ItemsSource="{x:Static local2:ThisApp.PageSizeOptions}"
|
|
|
+ SelectedValue="{Binding ElementName=ucStationGrid,Path=mConfigItem.PatchPageSize}"/>-->
|
|
|
+ <Button x:Name="btnStationFirstPage" Content="首页" Width="50" Margin="5" FontSize="13px" Click="BtnStationFirstPage_Click"/>
|
|
|
+ <Button x:Name="btnStationPrePage" Content="上一页" Width="50" Margin="5" FontSize="13px" Click="BtnStationPrePage_Click"/>
|
|
|
+ <TextBlock Margin="5" FontSize="13px" VerticalAlignment="Center">
|
|
|
+ <TextBlock.Text>
|
|
|
+ <!--<MultiBinding StringFormat="第 {0} 页 / 共 {1} 页">-->
|
|
|
+ <MultiBinding StringFormat="{}{0}/{1}">
|
|
|
+ <Binding ElementName="ucStationGrid" Path="StationPage.PageNumber"/>
|
|
|
+ <Binding ElementName="ucStationGrid" Path="StationPage.PageCount"/>
|
|
|
+ </MultiBinding>
|
|
|
+ </TextBlock.Text>
|
|
|
+ </TextBlock>
|
|
|
+
|
|
|
+ <Button x:Name="btnStationNextPage" Content="下一页" Width="50" Margin="5" FontSize="13px" Click="BtnStationNextPage_Click"/>
|
|
|
+ <Button x:Name="btnStationLastPage" Content="尾页" Width="50" Margin="5" FontSize="13px" Click="BtnStationLastPage_Click"/>
|
|
|
+ <!--<TextBox x:Name="txtStationPageNumber" Width="40" Margin="5" TextAlignment="Center" FontSize="13px"
|
|
|
+ Text="{Binding ElementName=ucStationGrid,Path=StationPage.PageNumber,Mode=OneWay}"
|
|
|
+ MaxLength="3" PreviewTextInput="TextBox_PreviewTextInput" VerticalContentAlignment="Center"/>
|
|
|
+ <Button x:Name="btnStationSpeciPage" Content="跳转" Width="55" Margin="5" FontSize="13px" Click="BtnStationSpeciPage_Click"/>-->
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ <!--右侧上左站点明细结束-->
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Border Grid.Column="2" BorderBrush="#D3D3D3" BorderThickness="0 0 1 0" Padding="0 0 5 0">
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="40" />
|
|
@@ -401,7 +520,7 @@
|
|
|
|
|
|
<Grid Grid.Row="0">
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="5 0 2 0">
|
|
|
- <Button Content="◀️" x:Name="btnLeftCtl" FontSize="20px" Width="28" Height="28" Visibility="Visible"
|
|
|
+ <Button Content="◀️" x:Name="btnLeftCtl1" FontSize="20px" Width="28" Height="28" Visibility="Visible"
|
|
|
Click="BtnLeftCtl_Click"
|
|
|
Foreground="White" Background="#333333" Margin="0 0 5 0" />
|
|
|
|
|
@@ -467,7 +586,7 @@
|
|
|
</Grid>
|
|
|
</Border>
|
|
|
|
|
|
- <Border Grid.Column="2" Background="White">
|
|
|
+ <Border Grid.Column="3" Background="White">
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="35" />
|