51 lines
1.7 KiB
C#
51 lines
1.7 KiB
C#
using Prism.Events;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using Prism.Ioc;
|
|
using static JSMachine.WMS.Common.EventBus.GlobalEventBus;
|
|
|
|
namespace JSMachine.WMS.Storage.BusinessModules.Views
|
|
{
|
|
/// <summary>
|
|
/// PaperStorageView.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class PaperStorageView : UserControl
|
|
{
|
|
IEventAggregator eventAggregator = ContainerLocator.Container.Resolve<IEventAggregator>();
|
|
public PaperStorageView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void DateTimePickerStart_SelectedDateTimeChanged(object sender, HandyControl.Data.FunctionEventArgs<DateTime?> e)
|
|
{
|
|
eventAggregator.GetEvent<SearchStorageEvent>().Publish();
|
|
}
|
|
|
|
private void DateTimePickerEnd_SelectedDateTimeChanged(object sender, HandyControl.Data.FunctionEventArgs<DateTime?> e)
|
|
{
|
|
eventAggregator.GetEvent<SearchStorageEvent>().Publish();
|
|
}
|
|
|
|
private void TxtPaperLabel_SelectionChanged(object sender, RoutedEventArgs e)
|
|
{
|
|
eventAggregator.GetEvent<SearchStorageEvent>().Publish();
|
|
}
|
|
|
|
private void TxtSupplier_SelectionChanged(object sender, RoutedEventArgs e)
|
|
{
|
|
eventAggregator.GetEvent<SearchStorageEvent>().Publish();
|
|
}
|
|
|
|
private void TxtPaperCode_SelectionChanged(object sender, RoutedEventArgs e)
|
|
{
|
|
eventAggregator.GetEvent<SearchStorageEvent>().Publish();
|
|
}
|
|
|
|
private void TxtPaperWidth_SelectionChanged(object sender, RoutedEventArgs e)
|
|
{
|
|
eventAggregator.GetEvent<SearchStorageEvent>().Publish();
|
|
}
|
|
}
|
|
}
|