|
|
|
|
using GalaSoft.MvvmLight;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Aucma.Scada.UI.viewModel.AssemblyPlan
|
|
|
|
|
{
|
|
|
|
|
public class AssemblyPlanViewModel : ViewModelBase
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public AssemblyPlanViewModel()
|
|
|
|
|
{
|
|
|
|
|
stationName = "箱壳内胆组装";
|
|
|
|
|
orderCode = System.Guid.NewGuid().ToString();
|
|
|
|
|
planCode = System.Guid.NewGuid().ToString();
|
|
|
|
|
productModel = "SC232";
|
|
|
|
|
beginTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 参数定义
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 工位名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string stationName = string.Empty;
|
|
|
|
|
public string StationName
|
|
|
|
|
{
|
|
|
|
|
get { return stationName; }
|
|
|
|
|
set { stationName = value; RaisePropertyChanged(nameof(StationName)); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string orderCode = string.Empty;
|
|
|
|
|
public string OrderCode
|
|
|
|
|
{
|
|
|
|
|
get { return orderCode; }
|
|
|
|
|
set { orderCode = value; RaisePropertyChanged(nameof(OrderCode)); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 计划编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string planCode = string.Empty;
|
|
|
|
|
public string PlanCode
|
|
|
|
|
{
|
|
|
|
|
get { return planCode; }
|
|
|
|
|
set { planCode = value; RaisePropertyChanged(nameof(PlanCode)); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品型号
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string productModel = string.Empty;
|
|
|
|
|
public string ProductModel
|
|
|
|
|
{
|
|
|
|
|
get { return productModel; }
|
|
|
|
|
set { productModel = value; RaisePropertyChanged(nameof(ProductModel)); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 开始时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string beginTime = string.Empty;
|
|
|
|
|
public string BeginTime
|
|
|
|
|
{
|
|
|
|
|
get { return beginTime; }
|
|
|
|
|
set { beginTime = value; RaisePropertyChanged(nameof(BeginTime)); }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|