public static void WriteIf(string key, ErrCategory category, ErrLevel level, string factoryID, string shopID, string lotID, string productID, string productVer, string processID, string eqpID, string stepID, string reason, string detail ) { if (CheckList.ContainsKey(key)) { return; } CheckList.Add(key, key); AddRow(category, level, factoryID, shopID, lotID, productID, productVer, processID, eqpID, stepID, reason, detail); }
private static void AddRow(ErrCategory category, ErrLevel level, string factoryID, string shopID, string lotID, string productID, string productVer, string processID, string eqpID, string stepID, string reason, string detail ) { Outputs.ErrorHistory item = new ErrorHistory(); item.VERSION_NO = ModelContext.Current.VersionNo; item.ERR_CATEGORY = category.ToString(); item.ERR_LEVEL = level.ToString(); item.FACTORY_ID = factoryID; item.SHOP_ID = shopID; item.LOT_ID = lotID; item.PRODUCT_ID = productID; item.PRODUCT_VERSION = productVer; item.PROCESS_ID = processID; item.EQP_ID = eqpID; item.STEP_ID = stepID; item.ERR_REASON = reason; item.REASON_DETAIL = detail; OutputMart.Instance.ErrorHistory.Add(item); }