wsz
2025-06-10 70eedd3bf9810bc022967da6446dd8a0ff6f43b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
wms = require ("OILua_WMS")
mobox = require("OILua_JavelinExt")
 
-- 设置脚本目录
package.path  = package.path  .. ";./prj_base/?.lua;./mobox_base/?.lua;./wms_base/?.lua;"..
                ";./Lua/01-Container/?.lua;./Lua/04-Location/?.lua"..
                ";./Lua/20-Inbound_Order/?.lua"..
                ";./Lua/56-Pre_Alloc_CNTR_Detail/?.lua"..
                ";./Lua/68-Container_Type_Def/?.lua"..
                ";./Lua/90-SKU/?.lua"..
                ";./Lua/300-WMS-API/?.lua"
  
-- 需要调试的脚本
require("Inbound_Sync")
 
local strLuaDEID = "{92651F21-7477-4AFB-B597-C7C22E92D54B}"
local nRet
 
-- 启动事务
mobox.startTransaction( strLuaDEID )
 
-- 调试脚本的入口函数
nRet = Inbound_Sync( strLuaDEID )
 
if ( nRet == 0 ) then
  mobox.commit(strLuaDEID)
else
  mobox.abort(strLuaDEID)
end
 
print( "OK" )