2026-01-26 14:51:28 +09:00

108 lines
5.0 KiB
C#

using Aurora.Api;
using Aurora.View;
using AuroraLaserScanner;
using CoreUnit.Control.UserControl.Canvas;
using Matrox.MatroxImagingLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WeldingCommon.Data
{
public class WeldingData : NotifyPropertyChangedBase
{
protected readonly Logger Log = new Logger("WeldingData");
private object _LockObj = new object();
// For View
// Main AutoRun Sequence 에서 한번에 Update 하여 view 에 보여 주기 위함.
// 아래 EDC 와 중복인 것도 있지만, 한번에 Update 되어야 혼란이 없을 것 같음.
private DateTime _AutoRunStartTime;
public DateTime AutoRunStartTime { get => _AutoRunStartTime; set => SetProperty(ref _AutoRunStartTime, value); }
private DateTime _WeldingStartTime; // 마지막 제품 Weld 시작 시각
public DateTime WeldingStartTime { get => _WeldingStartTime; set => SetProperty(ref _WeldingStartTime, value); }
private DateTime _WeldingEndTime; // 마지막 제품 생산 시각, LastProductTime
public DateTime WeldingEndTime { get => _WeldingEndTime; set => SetProperty(ref _WeldingEndTime, value); }
//private TimeSpan _WeldingSpanTime;
//public TimeSpan WeldingSpanTime { get => _WeldingSpanTime; set => SetProperty(ref _WeldingSpanTime, value); }
private string _WeldingSpanTimeMilliseconds;
public string WeldingSpanTimeMilliseconds { get => _WeldingSpanTimeMilliseconds; set => SetProperty(ref _WeldingSpanTimeMilliseconds, value); }
private uint _TodayProduct;
public uint TodayProduct { get => _TodayProduct; set => SetProperty(ref _TodayProduct, value); }
private uint _TotalProduct;
public uint TotalProduct { get => _TotalProduct; set => SetProperty(ref _TotalProduct, value); }
private string _CellId;
public string CellId { get => _CellId; set => SetProperty(ref _CellId, value); }
private string _LotId;
public string LotId { get => _LotId; set => SetProperty(ref _LotId, value); }
// =================================================================================================================
// For EDC <-> Sequence 사이의 정보를 주고 받기 위한 용도
private string _WeldStartTime;
public string WeldStartTime { get => _WeldStartTime; set => SetProperty(ref _WeldStartTime, value); }
private string _WeldTime;
public string WeldTime { get => _WeldTime; set => SetProperty(ref _WeldTime, value); }
// <EDC, SeqAutoRunSMW, SeqAutoRunLHS_Normal, SeqReceiveCellInfo>
private string _WorkCellId;
public string WorkCellId { get => _WorkCellId; set => SetProperty(ref _WorkCellId, value); }
private string _WorkLotId;
public string WorkLotId { get => _WorkLotId; set => SetProperty(ref _WorkLotId, value); }
private string _LBAD_Judge;
public string LBAD_Judge { get => _LBAD_Judge; set => SetProperty(ref _LBAD_Judge, value); }
private string _LDD_Judge;
public string LDD_Judge { get => _LDD_Judge; set => SetProperty(ref _LDD_Judge, value); }
// AutoRun <-> (FlyingVisionScout, SeqScout)
private MIL_ID _ScannerFiledImage;
public MIL_ID ScannerFiledImage { get => _ScannerFiledImage; set => SetProperty(ref _ScannerFiledImage, value); }
// =================================================================================================================
// 개별 장비
// EDC <-> (AutoRunLHS)
private string _LHS_SubPowerCore;
public string LHS_SubPowerCore { get => _LHS_SubPowerCore; set => SetProperty(ref _LHS_SubPowerCore, value); }
private string _LHS_SubPowerRing;
public string LHS_SubPowerRing { get => _LHS_SubPowerRing; set => SetProperty(ref _LHS_SubPowerRing, value); }
private string _LHS_MainPowerCore;
public string LHS_MainPowerCore { get => _LHS_MainPowerCore; set => SetProperty(ref _LHS_MainPowerCore, value); }
private string _LHS_MainPowerRing;
public string LHS_MainPowerRing { get => _LHS_MainPowerRing; set => SetProperty(ref _LHS_MainPowerRing, value); }
// =================================================================================================================
// AutoRunKS
private string _PageNO;
public string PageNO { get => _PageNO; set => SetProperty(ref _PageNO, value); }
private string _ActRecipe;
public string ActRecipe { get => _ActRecipe; set => SetProperty(ref _ActRecipe, value); }
private string _ChangeRequest;
public string ChangeRequest { get => _ChangeRequest; set => SetProperty(ref _ChangeRequest, value); }
private string _BcrID;
public string BcrID { get => _BcrID; set => SetProperty(ref _BcrID, value); }
public WeldingData()
{
}
public void Clear()
{
}
}
}