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 WorkStation04 : StationBase
|
|
{
|
|
|
|
public List<string> VerifyBarcodes { get; set; }
|
|
|
|
public override void StationInit()
|
|
{
|
|
int tuopanId = Convert.ToInt32(Read(2180));
|
|
//查询订单(根据质量数据查询)
|
|
var datas = Deploy_Data.Query().Where(p => p.process_state < 4 && p.tuopan_id == tuopanId).OrderBy(p => p.Id, OrderByType.Desc);
|
|
|
|
if (datas.Count() > 0)
|
|
{
|
|
PresentOrder = ProductOrder.Query().Where(p => p.plan_id == datas.First().plan_id).OrderBy(p => p.id, OrderByType.Desc).First();
|
|
}
|
|
else
|
|
{
|
|
PresentOrder = ProductOrder.Query().OrderBy(p => p.id, OrderByType.Desc).First();
|
|
}
|
|
|
|
View_OP40 = new CommonView();
|
|
View_OP40.StationCode = StationInfo.StationCode;
|
|
View_OP40.StepList = new List<WorkStepClass>();
|
|
View_OP40.Barcodes = new List<BarCodeClass>();
|
|
View_OP40.Qualities = new List<QualityClass>();
|
|
View_OP40.Barcodes_OP30 = Barcodes_OP30;
|
|
qualityDatas = new List<QualityClass>();
|
|
|
|
|
|
ClearView = new CommonView();
|
|
|
|
|
|
}
|
|
}
|
|
}
|