|
|
|
|
using Aucma.Core.DoorFoaming.Models;
|
|
|
|
|
using Aucma.Core.DoorFoaming.Views;
|
|
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
using CommunityToolkit.Mvvm.Input;
|
|
|
|
|
using MaterialDesignThemes.Wpf;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Diagnostics.Metrics;
|
|
|
|
|
using System.Drawing.Imaging;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using System.Windows.Documents;
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
using LiveChartsCore.Defaults;
|
|
|
|
|
using LiveChartsCore.SkiaSharpView;
|
|
|
|
|
using LiveChartsCore;
|
|
|
|
|
using LiveChartsCore.SkiaSharpView.Extensions;
|
|
|
|
|
using LiveChartsCore.Measure;
|
|
|
|
|
using LiveChartsCore.SkiaSharpView.Painting;
|
|
|
|
|
using SkiaSharp;
|
|
|
|
|
using LiveChartsCore.ConditionalDraw;
|
|
|
|
|
using LiveChartsCore.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using LiveChartsCore.Themes;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using log4net;
|
|
|
|
|
using Admin.Core.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 首页信息
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
namespace Aucma.Core.DoorFoaming.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public partial class IndexPageViewModel : ObservableObject
|
|
|
|
|
{
|
|
|
|
|
private ObservableCollection<dynamic> listItems = new ObservableCollection<dynamic>();
|
|
|
|
|
private static readonly log4net.ILog log = LogManager.GetLogger(typeof(IndexPageViewModel));
|
|
|
|
|
public IndexPageViewModel()
|
|
|
|
|
{
|
|
|
|
|
MaterialBarCode = "8512365486";
|
|
|
|
|
MaterialName = "SC-AUCMA-农夫山泉,SC";
|
|
|
|
|
Destination = "2层3号货道";
|
|
|
|
|
Prompt = "2层3号货道,8512365486 出库成功";
|
|
|
|
|
BeginTime = DateTime.Now.ToString("yyyy-mm-dd HH:mm:ss");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public async Task ExecMethod()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 扫描信息
|
|
|
|
|
|
|
|
|
|
#region 物料条码
|
|
|
|
|
private string _materialBarCode;
|
|
|
|
|
public string MaterialBarCode
|
|
|
|
|
{
|
|
|
|
|
get { return _materialBarCode; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_materialBarCode = value;
|
|
|
|
|
SetProperty(ref _materialBarCode, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 物料名称
|
|
|
|
|
private string _materialName;
|
|
|
|
|
public string MaterialName
|
|
|
|
|
{
|
|
|
|
|
get { return _materialName; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_materialName = value;
|
|
|
|
|
SetProperty(ref _materialName, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 目的信息
|
|
|
|
|
private string _destination;
|
|
|
|
|
public string Destination
|
|
|
|
|
{
|
|
|
|
|
get { return _destination; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_destination = value;
|
|
|
|
|
SetProperty(ref _destination, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 提示信息
|
|
|
|
|
private string _prompt;
|
|
|
|
|
public string Prompt
|
|
|
|
|
{
|
|
|
|
|
get { return _prompt; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_prompt = value;
|
|
|
|
|
SetProperty(ref _prompt, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 开始时间
|
|
|
|
|
private string _beginTime;
|
|
|
|
|
public string BeginTime
|
|
|
|
|
{
|
|
|
|
|
get { return _beginTime; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_beginTime = value;
|
|
|
|
|
SetProperty(ref _beginTime, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|