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.
32 lines
1.0 KiB
32 lines
1.0 KiB
using System;
|
|
|
|
namespace marking_gui.Models
|
|
{
|
|
public class Product
|
|
{
|
|
public string SerialNumber { get; set; }
|
|
public string HousingResult { get; set; }
|
|
public string CalResult { get; set; }
|
|
public string EolResult { get; set; }
|
|
public string PcbBarcode { get; set; }
|
|
|
|
public bool IsPreviousStepsPassed
|
|
{
|
|
get
|
|
{
|
|
bool housingOk = (HousingResult == "PASS" || HousingResult == "OK") && !string.IsNullOrWhiteSpace(PcbBarcode);
|
|
bool calOk = CalResult == "PASS" || CalResult == "OK";
|
|
bool eolOk = EolResult == "PASS" || EolResult == "OK";
|
|
return housingOk && calOk && eolOk;
|
|
}
|
|
}
|
|
|
|
public Product(string serialNumber, string housingResult = "대기", string calResult = "대기", string eolResult = "대기")
|
|
{
|
|
SerialNumber = serialNumber;
|
|
HousingResult = housingResult;
|
|
CalResult = calResult;
|
|
EolResult = eolResult;
|
|
}
|
|
}
|
|
}
|
|
|