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:
@@ -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
|
||||
Reference in New Issue
Block a user