packServer/desktop/Views/AddChannelWindow.xaml
liufumingren f8aa4c4899 feat(工作台): 成员扫码登入、面单摄像头与虚拟通道
- 工作台成员扫码登入:workstation_login_records 记录谁在什么时候登入/下线了哪台工作台,
  超时(团购 1h / 散单 30min)由 schedule/workstation_idle_offline 自动下线;
  运单查询的 packers 取当时的登入成员
- 面单摄像头识别:workstation_cameras.is_label_camera + service/label_scan 下发本机该跑的识别配置,
  设备端(桌面端 LabelScan 工作线程)按配置做面单识别并上报
- 虚拟通道 CAM-<工作台id>:工作台没接扫码枪时,面单摄像头那一路顶替扫码枪上报,records 规则按 ws_type 区分
- 桌面端:新增 LabelScanMonitor/LabelScanWorker/ScanDeviceKind 与面单预览页,扫描通道支持改名,静默窗口 5s

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-29 17:19:24 +08:00

48 lines
3.1 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<Window x:Class="YuncangTrace.LocalService.AddChannelWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="添加通道"
Height="420" Width="460"
ResizeMode="NoResize"
WindowStartupLocation="CenterOwner"
Background="{StaticResource BgBrush}"
FontFamily="Microsoft YaHei UI, Segoe UI"
FontSize="13">
<Border Background="White" BorderBrush="{StaticResource LineBrush}" BorderThickness="1"
CornerRadius="10" Margin="18" Padding="18">
<DockPanel>
<TextBlock DockPanel.Dock="Top" Text="添加扫码通道" FontSize="15" FontWeight="SemiBold" />
<TextBlock x:Name="DeviceText" DockPanel.Dock="Top" FontSize="12"
Foreground="{StaticResource MutedBrush}" Margin="0,4,0,8" TextWrapping="Wrap" />
<Border x:Name="KindBadge" DockPanel.Dock="Top" Background="#EFF6FF" BorderBrush="#BFDBFE"
BorderThickness="1" CornerRadius="6" Padding="8,5" Margin="0,0,0,12">
<TextBlock x:Name="KindText" FontSize="12" Foreground="#1D4ED8" TextWrapping="Wrap"
Text="扫码枪通道" />
</Border>
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,14,0,0">
<Button Content="取消" Padding="14,5" IsCancel="True" Click="Cancel_Click" />
<Button Content="添加" Padding="14,5" Margin="8,0,0,0" IsDefault="True"
Background="{StaticResource BrandBrush}" Foreground="White" BorderThickness="0"
Cursor="Hand" Click="Ok_Click" />
</StackPanel>
<StackPanel>
<TextBlock Text="通道号" FontWeight="SemiBold" Margin="0,0,0,4" />
<ComboBox x:Name="NumberBox" DisplayMemberPath="Label" Height="28" Padding="6,3" />
<TextBlock Text="通道号是现场认工位的号,删掉的号不会被自动复用;已占用的号会标注占用者"
FontSize="12" Foreground="{StaticResource MutedBrush}" Margin="0,4,0,14" TextWrapping="Wrap" />
<TextBlock Text="设备名" FontWeight="SemiBold" Margin="0,0,0,4" />
<TextBox x:Name="NameBox" Height="28" Padding="6,3" VerticalContentAlignment="Center"
MaxLength="32" />
<TextBlock Text="会写入设备本身(HostName)并落盘,设备面板和其他上位机看到的都是这个名字;留空则用设备自报名"
FontSize="12" Foreground="{StaticResource MutedBrush}" Margin="0,4,0,14" TextWrapping="Wrap" />
<TextBlock x:Name="HintText" FontSize="12" Foreground="{StaticResource MutedBrush}"
TextWrapping="Wrap" Text="添加时会先检查并确保设备上有给中控用的 TCP 服务(桌面端自己的条目与端口,不占 Android 那个)" />
</StackPanel>
</DockPanel>
</Border>
</Window>