WinPrintTest.xaml
4.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<win:HideCloseWindow
x:Class="HHECS.WinClient.View.SystemInfo.WinPrintTest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:local="clr-namespace:HHECS.WinClient.View.SystemInfo"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:win="clr-namespace:HHECS.WinCommon.Win;assembly=HHECS.WinCommon"
Title="喷码测试管理"
Width="800"
Height="450"
d:DataContext="{d:DesignInstance Type=local:ConfigVM}"
mc:Ignorable="d">
<Window.Resources>
<Style
x:Key="btn"
BasedOn="{StaticResource BaseButtonStyle}"
TargetType="Button">
<Setter Property="Width" Value="90" />
<Setter Property="Margin" Value="5" />
</Style>
<Style x:Key="sp" TargetType="StackPanel">
<Setter Property="Orientation" Value="Horizontal" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Right" />
<Setter Property="Margin" Value="0,10,20,10" />
</Style>
</Window.Resources>
<Grid Margin="20">
<!-- 定义行和列 -->
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- 模版输入行 -->
<TextBlock Text="模版输入:" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,10,5" Grid.Row="0" Grid.Column="0"/>
<TextBox x:Name="TemplateInput" Width="200" Margin="5" Text="{Binding TemplateInput}" Grid.Row="0" Grid.Column="1"/>
<!-- 二维码内容输入行 -->
<TextBlock Text="二维码内容:" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,10,5" Grid.Row="1" Grid.Column="0"/>
<TextBox x:Name="QRCodeContent" Width="200" Margin="5" Text="{Binding QRCodeContent}" Grid.Row="1" Grid.Column="1"/>
<!-- 明文第一行输入 -->
<TextBlock Text="明文第一行:" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,10,5" Grid.Row="2" Grid.Column="0"/>
<TextBox x:Name="PlainText1" Width="200" Margin="5" Text="{Binding PlainText1}" Grid.Row="2" Grid.Column="1"/>
<!-- 二维码内容输入行 --><!--
<TextBlock Text="切割长度:" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,10,5" Grid.Row="3" Grid.Column="0"/>
<TextBox x:Name="CuttingLength" Width="200" Margin="5" Text="{Binding CuttingLength}" Grid.Row="3" Grid.Column="1"/>
--><!-- 明文第一行输入 --><!--
<TextBlock Text="管径:" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,10,5" Grid.Row="4" Grid.Column="0"/>
<TextBox x:Name="OuterDiameter" Width="200" Margin="5" Text="{Binding OuterDiameter}" Grid.Row="4" Grid.Column="1"/>-->
<TextBlock Text="明文第二行:" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,10,5" Grid.Row="3" Grid.Column="0"/>
<TextBox x:Name="PlainText2" Width="200" Margin="5" Text="{Binding PlainText2}" Grid.Row="3" Grid.Column="1"/>
<TextBlock Text="明文第三行:" FontWeight="Bold" VerticalAlignment="Center" Margin="0,0,10,5" Grid.Row="4" Grid.Column="0"/>
<TextBox x:Name="PlainText3" Width="200" Margin="5" Text="{Binding PlainText3}" Grid.Row="4" Grid.Column="1"/>
<!-- 下发按钮 -->
<Button Content="下发" Width="150" Height="40" VerticalAlignment="Center" Margin="0,20" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Click="OnSendButtonClick"/>
<!-- 手动空闲按钮 -->
<Button Content="手动空闲" Width="150" Height="40" VerticalAlignment="Center" Margin="0,20" Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Click="OnManualFreeButtonClick"/>
</Grid>
</win:HideCloseWindow>