using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SystemX.Net.XAdaptor.PC.O2Sensor.NgCode
{
	public static class DBSchemaMap
	{
		public const string ProcessListTableName = "INFO_PROCESS";
		public const string TableName_NGCode = "INFO_NGCode";
		public const string TableName_DetailData = "HIST_TestResultDatail";

		public enum eHistAllTableList
		{
			HIST_ProdLoad = 0,
			HIST_CapDeassy,
			HIST_PreHeating,
			HIST_PreMeas,
			HIST_Leak,
			HIST_LaserTrim,
			HIST_LaserTrimVision,
			HIST_IsoRes,
			HIST_CapAssy,
			HIST_Function,
			HIST_OutSealPress,
			HIST_PinVision,
			HIST_PinLVDT,
			HIST_ProdUnload
		}
		public enum eHistProcTableList
		{
			HIST_ProdLoad = 0,
			HIST_CapDeassy,
			HIST_PreHeating,
			HIST_PreMeas,
			HIST_Leak,
			HIST_LaserTrim,
			HIST_LaserTrimVision,
			HIST_IsoRes,
			HIST_CapAssy,
			HIST_Function,
			HIST_OutSealPress,
			HIST_PinVision,		
			HIST_PinLVDT
		}
		public enum eHistTableCommonCols
		{
			No,
			LogAccessKey,
			ProcNo,
			PalletNumber,
			PalletID,
			PIndex,
			ProdNo,
			ProdID,
			TestID,
			Result,
			Status,
			UpdateDT
		}
		public enum eHistTableCols
		{
			No,
			ProcNo,
			PalletNumber,
			PalletID,
			PIndex,
			ProdNo,
			ProdID,
			TestID,
			LogDataPath,
			LogData,
			Status,
			UpdateDT
		}

		public enum eHistDetailTableCols
		{
			No,
			LogAccessKey,
			STEP,
			POSITION,
			MO,
			FNC_NAME,
			MIN_VALUE,
			MEASURE_VALUE,
			MAX_VALUE,
			DIM,
			CHECK_RETURN,
			SPENT_TIME,
			INFO,
			UpdateDT
		}

		public enum eStat_ProdLoad
		{
			No,
			PalletID,
			Index,
			ProdNo,
			ProdID,
			SensorType,
			Status
		}

		public enum eHist_ProdUnload
		{
			No,
			PalletID,
			Index,
			ProdNo,
			ProdID,
			Status,
			NGCode,
			Result,
			UpdateDT
		}

		public enum eHist_LeakTest
		{
			No,
			LogAccessKey,
			ProcNo,
			PalletNumber,
			PalletID,
			PIndex,
			ProdNo,
			ProdID,
			SensorType,
			Status,
			TestID,
			Result,
			UpdateDT,
			Val_Min,
			Val_Max,
			Val_Meas
		}

		public enum eNGCodeTable
		{			
			NGCode,
			Description,
			ProcNo,
			TestID,
			StepNo,
			Type,
			ReworkType,
			CustomCode,
			Status,
			UpdateDT
		}
			

		public enum eReworkType
		{
			Retest,
			M_Rework,
			Rework,
			Scrap,
			Unknown,
		}
	}
}
