Files
wcs/货架标准上位机/Views/Controls/ScannerDisplayControl.xaml.cs
2024-10-31 13:57:24 +08:00

42 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WCS管理系统.Views.Controls
{
/// <summary>
/// ShelfStatusControl.xaml 的交互逻辑
/// </summary>
public partial class ScannerDisplayControl : UserControl
{
public ScannerDisplayControl(string COM)
{
InitializeComponent();
txtCom.Text = COM;
}
public void RefreshValues(string shelfCode, string matSn,string instoreUser = "")
{
Dispatcher.BeginInvoke(new Action(() =>
{
txtCurrentShelf.Text = shelfCode;
txtCurrentMat.Text = matSn;
txtInstoreUser.Text = instoreUser;
}));
}
}
}