Files
wcs/货架标准上位机/Views/OutInventoryImportDucumentView.xaml.cs
hehaibing-1996 549a45dcf0 1.智能货架退出出库后解锁
2.数据库支持多线程
3.调整出库单据导入模板
2025-03-14 08:34:03 +08:00

69 lines
1.8 KiB
C#

using HandyControl.Controls;
using HandyControl.Data;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Media;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using WCS管理系统.ViewModels;
namespace WCS管理系统
{
public partial class OutInventoryImportDucumentView : HandyControl.Controls.Window
{
public OutInventoryImportDucumentViewModel viewModel = new OutInventoryImportDucumentViewModel();
public OutInventoryImportDucumentView()
{
InitializeComponent();
this.DataContext = viewModel;
viewModel.TrueClose += OnTrueClose;
viewModel.FalseClose += OnFalseClose;
}
private void closeClick(object sender, RoutedEventArgs e)
{
this.DialogResult = false;
this.Close();
}
private void DataGrid_SelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e)
{
}
private void txtMatQty1_PreviewTextInput(object sender, TextCompositionEventArgs e)
{
if (!Regex.IsMatch(e.Text, "^[0-9]"))
{
e.Handled = true;
}
}
private void OnTrueClose()
{
this.DialogResult = true;
this.Close();
}
private void OnFalseClose()
{
this.DialogResult = false;
this.Close();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
viewModel.InitShelfTypeItems();
}
}
}