using Aborlen.Model;
|
|
using Monitor.FrameWork;
|
|
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WorkStationBase;
|
|
|
|
namespace Aborlen.WorkStation
|
|
{
|
|
public partial class WorkStation02 : StationBase
|
|
{
|
|
|
|
public override void StationInit()
|
|
{
|
|
VerifyBarcodes = new List<string>();
|
|
|
|
PieceTypeCode = Convert.ToInt32(Read(1180));
|
|
|
|
PresentOrder = ProductOrder.Query().Where(p => p.product_id == Convert.ToInt32(PieceTypeCode)).OrderBy(p => p.id, OrderByType.Desc).First();
|
|
|
|
View = new CommonView();
|
|
View.StationCode = "OP20";
|
|
View.StepList = new List<WorkStepClass>();
|
|
View.Barcodes = new List<BarCodeClass>();
|
|
|
|
qualityDatas = new List<QualityClass>();
|
|
ArrivedTime = DateTime.Now;
|
|
}
|
|
|
|
ProductOrder presentOrder;
|
|
public new ProductOrder PresentOrder
|
|
{
|
|
get
|
|
{
|
|
return presentOrder;
|
|
}
|
|
|
|
set
|
|
{
|
|
presentOrder = value;
|
|
|
|
VerifyBarcodes.Clear();
|
|
VerifyBarcodes.Add(presentOrder.motor_rule);
|
|
VerifyBarcodes.Add(presentOrder.left_rule);
|
|
VerifyBarcodes.Add(presentOrder.right_rule);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 产品型号代码
|
|
/// </summary>
|
|
public int PieceTypeCode { get; set; }
|
|
|
|
public string ProductCode { get; set; }
|
|
|
|
public List<string> VerifyBarcodes { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|