You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

67 lines
1.6 KiB

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; }
}
}