异步加载是有讲究的,注意代码顺序:
Tables("财务管理-fa piao管理_等待开piao").Fill("Select * from {xx_order} where [id] Is Null","magou",False)
Functions.Execute("TablesAfterFill","财务管理-fa piao管理_等待开piao","xx_order")
Tables("财务管理-fa piao管理_已开fa piao").Fill("Select * from {xx_order} where [id] Is Null","magou",False)
Functions.Execute("TablesAfterFill","财务管理-fa piao管理_已开fa piao","xx_order")
DataTables("财务管理-fa piao管理_已开fa piao").LoadFilter = "[order_status] = 1 And [shipping_status] = 0 And [invoice_status] = 1 And [is_invoice] =1 And " & Filter
DataTables("财务管理-fa piao管理_等待开piao").LoadFilter = "[order_status] = 1 and [shipping_status] = 0 and [invoice_status] = 0 and [is_invoice] =1 and " & Filter
DataTables("财务管理-fa piao管理_已开fa piao").LoadAsync()
DataTables("财务管理-fa piao管理_等待开piao").LoadAsync()