refactor: replace row index with production order number in error reports
All checks were successful
NTFY Notification / notify (push) Successful in 12s
All checks were successful
NTFY Notification / notify (push) Successful in 12s
Replace "原表行号" (original row number) field with "生产订单号" (production order number) in BOM Extraction System error reporting to improve traceability. Changes: - clsErrorLogger: Update Record/RecordWarning signatures to accept OrderNo (String) instead of RowIndex (Long) - M09_BOMExtractor: Propagate productionOrderNo through validation chain for context-aware error reporting - M06/M07/M08: Use empty string for system-level errors without production order context - Error report header: Change column B from "原表行号" to "生产订单号" Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -141,7 +141,7 @@ Public Function MatchBOMRecord(ByVal ws As Worksheet, ByVal params As Object) As
|
||||
|
||||
ErrorHandler:
|
||||
If Not g_Logger Is Nothing Then
|
||||
g_Logger.Record 0, "M07.MatchBOMRecord", "SystemError", _
|
||||
g_Logger.Record "", "M07.MatchBOMRecord", "SystemError", _
|
||||
"匹配过程发生错误: " & Err.Description, ws.Name
|
||||
End If
|
||||
|
||||
@@ -430,7 +430,7 @@ Public Function ExtractMaterialInfo( _
|
||||
|
||||
ErrorHandler:
|
||||
If Not g_Logger Is Nothing Then
|
||||
g_Logger.Record rowNum, "M07.ExtractMaterialInfo", "SystemError", _
|
||||
g_Logger.Record "", "M07.ExtractMaterialInfo", "SystemError", _
|
||||
"提取物料信息失败: " & Err.Description, ws.Name
|
||||
End If
|
||||
Set ExtractMaterialInfo = CreateObject("Scripting.Dictionary")
|
||||
|
||||
Reference in New Issue
Block a user