refactor: split order validation and processing into separate functions

- Add OrderValidationModule for checking order material validity
- Modify Sheet9 to separate validation (CommandButton1) from processing (CommandButton5)
- Support filtered data validation with performance optimization

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-03-16 09:57:48 +08:00
parent 36c00befa5
commit 9b543ab466
2 changed files with 222 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
'=====================================================================
Private Sub CommandButton1_Click()
Call ProcessProductModels
Call ProcessOrdersToBIP
Call ValidateOrderMaterials
End Sub
'=====================================================================
@@ -25,4 +25,8 @@ End Sub
Private Sub CommandButton4_Click()
ThisWorkbook.Worksheets("产品订单").Range("A2:G10000").ClearContents
End Sub
Private Sub CommandButton5_Click()
Call ProcessOrdersToBIP
End Sub