EditStationDlg2.xaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <Window x:Class="MeterVision.Dlg.EditStationDlg2"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:MeterVision.Dlg"
  7. xmlns:mark="clr-namespace:MeterVision.Mark"
  8. mc:Ignorable="d"
  9. Background="WhiteSmoke"
  10. ResizeMode="CanResizeWithGrip"
  11. WindowStartupLocation="CenterOwner"
  12. ShowInTaskbar="False"
  13. Title="站点参数" Height="600" Width="900">
  14. <Grid Margin="10 10 10 0">
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="*" />
  17. <RowDefinition Height="40" />
  18. </Grid.RowDefinitions>
  19. <Border Grid.Row="0" BorderBrush="#D3D3D3" BorderThickness="1" Background="White">
  20. <Grid>
  21. <Grid.ColumnDefinitions>
  22. <ColumnDefinition Width="280" />
  23. <ColumnDefinition Width="10" />
  24. <ColumnDefinition Width="*" />
  25. </Grid.ColumnDefinitions>
  26. <Border Grid.Column="0" BorderBrush="#D3D3D3" BorderThickness="0 0 1 0" Background="White" Padding="0 0 5 0">
  27. <Grid>
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="*" />
  30. <RowDefinition Height="*" />
  31. <RowDefinition Height="*" />
  32. <RowDefinition Height="*" />
  33. <RowDefinition Height="*" />
  34. <RowDefinition Height="*" />
  35. <RowDefinition Height="*" />
  36. <RowDefinition Height="*" />
  37. <RowDefinition Height="*" />
  38. </Grid.RowDefinitions>
  39. <StackPanel Grid.Row="0" >
  40. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  41. <TextBlock Text="站点ID:" FontSize="14px" />
  42. <!--<TextBlock Text="*" FontSize="14px" Foreground="Red" />-->
  43. </StackPanel>
  44. <TextBox x:Name="txtStationId" FontSize="14px" Margin="5" Padding="2"
  45. PreviewTextInput="TextBox_PreviewTextInput" />
  46. </StackPanel>
  47. <StackPanel Grid.Row="1">
  48. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  49. <TextBlock Text="表类型:" FontSize="14px" />
  50. <!--<TextBlock Text="*" FontSize="14px" Foreground="Red" />-->
  51. </StackPanel>
  52. <ComboBox x:Name="cmbMeterType" Margin="5" FontSize="14px"
  53. SelectionChanged="CmbMeterType_SelectionChanged"
  54. SelectedValuePath="Key" DisplayMemberPath="Value" />
  55. </StackPanel>
  56. <Grid Grid.Row="2">
  57. <Grid.ColumnDefinitions>
  58. <ColumnDefinition Width="*" />
  59. <ColumnDefinition Width="*" />
  60. </Grid.ColumnDefinitions>
  61. <StackPanel Grid.Column="0" >
  62. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  63. <TextBlock Text="每小时流量:" FontSize="14px" />
  64. <!--<TextBlock Text="*" FontSize="14px" Foreground="Red" />-->
  65. </StackPanel>
  66. <ComboBox x:Name="cmbFlowRate" Margin="5" FontSize="14px"
  67. IsEditable="True" PreviewTextInput="CmbFlowRate_PreviewTextInput"
  68. SelectionChanged="CmbFlowRate_SelectionChanged"
  69. SelectedValuePath="Key" DisplayMemberPath="Value" />
  70. </StackPanel>
  71. <StackPanel Grid.Column="1" >
  72. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  73. <TextBlock Text="图片亮度:" FontSize="14px" />
  74. <!--<TextBlock Text="*" FontSize="14px" Foreground="Red" />-->
  75. </StackPanel>
  76. <TextBox x:Name="txtBrightVal" Margin="5" Padding="2" FontSize="14px"/>
  77. </StackPanel>
  78. </Grid>
  79. <Grid Grid.Row="3">
  80. <Grid.ColumnDefinitions>
  81. <ColumnDefinition Width="*" x:Name="grdNumCount" />
  82. <ColumnDefinition Width="*" x:Name="grdIndCount" />
  83. </Grid.ColumnDefinitions>
  84. <StackPanel x:Name="pnlNumCount" Grid.Column="0" >
  85. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  86. <TextBlock Text="数字个数:" FontSize="14px" />
  87. <!--<TextBlock Text="*" FontSize="14px" Foreground="Red" />-->
  88. </StackPanel>
  89. <TextBox x:Name="txtNumCount" MaxLength="2" Margin="5" Padding="2" FontSize="14px" PreviewTextInput="TextBox_PreviewTextInput" />
  90. </StackPanel>
  91. <StackPanel x:Name="pnlIndCount" Grid.Column="1">
  92. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  93. <TextBlock Text="指针个数:" FontSize="14px" />
  94. <!--<TextBlock Text="*" FontSize="14px" Foreground="Red" />-->
  95. </StackPanel>
  96. <TextBox x:Name="txtIndCount" MaxLength="2" Margin="5" Padding="2" FontSize="14px" PreviewTextInput="TextBox_PreviewTextInput"/>
  97. </StackPanel>
  98. </Grid>
  99. <StackPanel x:Name="pnlLastNumUnit" Grid.Row="4">
  100. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  101. <TextBlock x:Name="txtLastUnitTitle" Text="尾数单位:" FontSize="14px" />
  102. <!--<TextBlock Text="*" FontSize="14px" Foreground="Red" />-->
  103. <TextBlock Text="" FontSize="13px" />
  104. </StackPanel>
  105. <ComboBox x:Name="cmbLastUnit" Margin="5" FontSize="14px"/>
  106. </StackPanel>
  107. <StackPanel Grid.Row="5">
  108. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  109. <TextBlock Text="表盘坐标:" FontSize="14px" />
  110. <!--<TextBlock Text="*" FontSize="14px" Foreground="Red" />-->
  111. <TextBlock Text=" (左上、右下)" FontSize="13px" />
  112. </StackPanel>
  113. <TextBox x:Name="txtDialRegion" Margin="5" Padding="2" FontSize="14px" />
  114. </StackPanel>
  115. <StackPanel x:Name="pnlFeatureRegion" Grid.Row="6">
  116. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  117. <TextBlock x:Name="txtFeatureRegionTitle" Text="数字区域\首尾指针坐标:" FontSize="14px" />
  118. <!--<TextBlock Text="*" FontSize="14px" Foreground="Red" />-->
  119. <TextBlock Text="" FontSize="13px" />
  120. </StackPanel>
  121. <TextBox x:Name="txtFeatureRegion" Margin="5" Padding="2" FontSize="14px" />
  122. </StackPanel>
  123. <StackPanel Grid.Row="7">
  124. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  125. <TextBlock Text="表底读数:" FontSize="14px" />
  126. <TextBlock Text="" FontSize="14px" Foreground="Red" />
  127. <TextBlock Text="" FontSize="13px" />
  128. </StackPanel>
  129. <TextBox x:Name="txtLastValue" Margin="5" Padding="2" FontSize="14px" />
  130. </StackPanel>
  131. <StackPanel Grid.Row="8" >
  132. <StackPanel Orientation="Horizontal" Margin="5 5 5 0">
  133. <TextBlock Text="读数对应的时间:" FontSize="14px" />
  134. <TextBlock Text="" FontSize="14px" Foreground="Red" />
  135. <TextBlock Text="" FontSize="13px" />
  136. </StackPanel>
  137. <TextBox x:Name="txtLastTime" Margin="5" Padding="2" FontSize="14px" />
  138. </StackPanel>
  139. </Grid>
  140. </Border>
  141. <Border Grid.Column="2" Margin="0" BorderBrush="#D3D3D3" BorderThickness="1 0 0 0" Background="White">
  142. <mark:UCMark x:Name="ucMark" />
  143. </Border>
  144. </Grid>
  145. </Border>
  146. <!--按钮区域-->
  147. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
  148. <Button x:Name="btnOK" Content="确定" Width="80" Height="26" FontSize="14px"
  149. HorizontalAlignment="Center" Margin="0 0 20 0" Click="BtnOK_Click"/>
  150. <Button x:Name="btnClose" Content="取消" Width="80" Height="26" FontSize="14px"
  151. VerticalAlignment="Center" HorizontalAlignment="Center" Click="BtnClose_Click"/>
  152. </StackPanel>
  153. </Grid>
  154. </Window>