|
|
|
@ -6,8 +6,8 @@ using Aucma.Core.Palletiz.Models;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using GalaSoft.MvvmLight;
|
|
|
|
|
using Aucma.Core.Palletiz.Views;
|
|
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 成品分垛入库首页信息
|
|
|
|
@ -15,7 +15,7 @@ using Aucma.Core.Palletiz.Views;
|
|
|
|
|
*/
|
|
|
|
|
namespace Aucma.Core.Palletiz.ViewModels
|
|
|
|
|
{
|
|
|
|
|
internal class IndexControlViewModel : ViewModelBase
|
|
|
|
|
internal class IndexControlViewModel : ObservableObject
|
|
|
|
|
{
|
|
|
|
|
private InStoreBusiness inStoreBusiness;
|
|
|
|
|
|
|
|
|
@ -42,6 +42,7 @@ namespace Aucma.Core.Palletiz.ViewModels
|
|
|
|
|
|
|
|
|
|
this.Init();
|
|
|
|
|
InStoreAmount = inStoreAmount + "19";
|
|
|
|
|
InStoreTaskContent = new StatisticsPageView();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 参数定义
|
|
|
|
@ -50,65 +51,60 @@ namespace Aucma.Core.Palletiz.ViewModels
|
|
|
|
|
public string ProductSNCode
|
|
|
|
|
{
|
|
|
|
|
get { return this.productSNCode; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
productSNCode = value;
|
|
|
|
|
RaisePropertyChanged(nameof(ProductSNCode));
|
|
|
|
|
}
|
|
|
|
|
set => SetProperty(ref productSNCode, value);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string productModel = string.Empty;
|
|
|
|
|
public string ProductModel
|
|
|
|
|
{
|
|
|
|
|
get { return this.productModel; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
productModel = value;
|
|
|
|
|
RaisePropertyChanged(nameof(ProductModel));
|
|
|
|
|
}
|
|
|
|
|
set => SetProperty(ref productModel, value);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string orderCode = string.Empty;
|
|
|
|
|
public string OrderCode
|
|
|
|
|
{
|
|
|
|
|
get { return this.orderCode; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
orderCode = value;
|
|
|
|
|
RaisePropertyChanged(nameof(OrderCode));
|
|
|
|
|
}
|
|
|
|
|
set => SetProperty(ref orderCode, value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string productScanTime = string.Empty;
|
|
|
|
|
public string ProductScanTime
|
|
|
|
|
{
|
|
|
|
|
get { return this.productScanTime; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
productScanTime = value;
|
|
|
|
|
RaisePropertyChanged(nameof(ProductScanTime));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
set => SetProperty(ref productScanTime, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string msg = string.Empty;
|
|
|
|
|
public string Msg
|
|
|
|
|
{
|
|
|
|
|
get { return this.msg; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
msg = value;
|
|
|
|
|
RaisePropertyChanged(nameof(Msg));
|
|
|
|
|
}
|
|
|
|
|
set => SetProperty(ref msg, value);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public string inStoreAmount = "入库数量:";
|
|
|
|
|
public string InStoreAmount
|
|
|
|
|
{
|
|
|
|
|
get { return this.inStoreAmount; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
inStoreAmount = value;
|
|
|
|
|
RaisePropertyChanged(nameof(InStoreAmount));
|
|
|
|
|
set => SetProperty(ref inStoreAmount, value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public System.Windows.Controls.UserControl _content;
|
|
|
|
|
|
|
|
|
|
public System.Windows.Controls.UserControl InStoreTaskContent
|
|
|
|
|
{
|
|
|
|
|
get { return this._content; }
|
|
|
|
|
set => SetProperty(ref _content, value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -119,7 +115,8 @@ namespace Aucma.Core.Palletiz.ViewModels
|
|
|
|
|
public ObservableCollection<BaseSpaceInfo> AreaA_SpaceInfo
|
|
|
|
|
{
|
|
|
|
|
get { return _areaA_SpaceInfo; }
|
|
|
|
|
set { _areaA_SpaceInfo = value; RaisePropertyChanged(nameof(AreaA_SpaceInfo)); }
|
|
|
|
|
set => SetProperty(ref _areaA_SpaceInfo, value);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -130,7 +127,8 @@ namespace Aucma.Core.Palletiz.ViewModels
|
|
|
|
|
public ObservableCollection<BaseSpaceInfo> AreaB_SpaceInfo
|
|
|
|
|
{
|
|
|
|
|
get { return _areaB_SpaceInfo; }
|
|
|
|
|
set { _areaB_SpaceInfo = value; RaisePropertyChanged(nameof(AreaB_SpaceInfo)); }
|
|
|
|
|
set => SetProperty(ref _areaB_SpaceInfo, value);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
@ -184,23 +182,23 @@ namespace Aucma.Core.Palletiz.ViewModels
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var info2 = inStoreBusiness.GetBaseSpaceinfos("A");
|
|
|
|
|
info2 = info2.OrderBy(x => x.ObjId).ToList();
|
|
|
|
|
if (info2 != null)
|
|
|
|
|
{
|
|
|
|
|
App.Current.Dispatcher.BeginInvoke((Action)(() =>
|
|
|
|
|
{
|
|
|
|
|
if (spaceItemsB.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
spaceItemsB.Clear();
|
|
|
|
|
}
|
|
|
|
|
foreach (var item in info2)
|
|
|
|
|
{
|
|
|
|
|
spaceItemsB.Add(item);
|
|
|
|
|
}
|
|
|
|
|
AreaB_SpaceInfo = spaceItemsB;
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
//var info2 = inStoreBusiness.GetBaseSpaceinfos("A");
|
|
|
|
|
//info2 = info2.OrderBy(x => x.ObjId).ToList();
|
|
|
|
|
//if (info2 != null)
|
|
|
|
|
//{
|
|
|
|
|
// App.Current.Dispatcher.BeginInvoke((Action)(() =>
|
|
|
|
|
// {
|
|
|
|
|
// if (spaceItemsB.Count > 0)
|
|
|
|
|
// {
|
|
|
|
|
// spaceItemsB.Clear();
|
|
|
|
|
// }
|
|
|
|
|
// foreach (var item in info2)
|
|
|
|
|
// {
|
|
|
|
|
// spaceItemsB.Add(item);
|
|
|
|
|
// }
|
|
|
|
|
// AreaB_SpaceInfo = spaceItemsB;
|
|
|
|
|
// }));
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|