internal LotInfo(int id, string name) : base(id, name) { c_IsAutomotive = true; c_IsSpecialFlow = false; c_Device = null; c_Package = null; c_Job = null; c_LotState = null; c_Quantity = null; c_PcsParWork = 0; }
internal LotInfo() { c_IsAutomotive = true; c_IsSpecialFlow = false; c_Device = null; c_Package = null; c_Job = null; c_LotState = null; c_Quantity = null; c_PcsParWork = 0; }
internal LotInfo(int id, string name, int IsAutomotive, int JobId) : base(id, name) { if (IsAutomotive == 1) { c_IsAutomotive = true; } else { c_IsAutomotive = false; } c_IsSpecialFlow = false; c_Device = null; c_Package = null; c_Job = new JobInfo(JobId, null); c_LotState = null; c_Quantity = null; c_PcsParWork = 0; }
/// <summary> /// Class LotInfo's constructor with datarow parameter /// </summary> /// <param name="lotInfo">Data row with specific column name [<int>Id,<string>Name,<bool>IsAutomotive,<bool>IsSpecialFlow,<int>DeviceId,<string>DeviceName,<int>PackageId,<string>PackageName,<int>QuantityIn,<int>QuantityPass,<int>QuantityFail]</param> /// <param name="jobInfo">Data row with specific column name [<int>Id,<string>Name]</param> /// <param name="RecipeInfo">Data row with specific column name [<int>Id,<string>Name]</param> /// <param name="LotStateInfo">Data row with specific column name [<int>ProcessState,<int>QualityState]</param> internal LotInfo(DataRow lotInfo, DataRow jobInfo, DataRow recipeInfo, DataRow lotStateInfo, Boolean Is_Abnormal) : base(lotInfo) { c_IsAutomotive = Convert.ToBoolean(DBCONVERT.GetByte(lotInfo, "IsAutomotive")); c_IsSpecialFlow = Convert.ToBoolean(DBCONVERT.GetByte(lotInfo, "IsSpecialFlow")); c_Device = new DeviceInfo(DBCONVERT.GetInt32(lotInfo, "DeviceId"), DBCONVERT.GetString(lotInfo, "DeviceName")); c_Package = new PackageInfo(DBCONVERT.GetInt32(lotInfo, "PackageId"), DBCONVERT.GetString(lotInfo, "PackageName")); if (jobInfo != null) { c_Job = new JobInfo(DBCONVERT.GetInt32(jobInfo, "Id"), DBCONVERT.GetString(jobInfo, "Name")); } if (recipeInfo != null) { c_DeviceFlows_Recipe = new RecipeInfo(DBCONVERT.GetInt32(jobInfo, "Id"), DBCONVERT.GetString(jobInfo, "Name")); } if (lotStateInfo != null) { c_LotState = new LotState(DBCONVERT.GetByte(lotStateInfo, "ProcessState"), DBCONVERT.GetByte(lotStateInfo, "QualityState")); } c_Quantity = new Quantity(lotInfo, Is_Abnormal); c_PcsParWork = DBCONVERT.GetInt16(lotInfo, "PcsPerWork"); }