1
Jianw
9 天以前 70f29da38121b9a467841253e3268feb5df02902
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
33
34
35
36
37
38
--[[ 
 编码: 
 名称: test_01 
 作者: 
 入口函数:main 
 功能说明: 
 变更历史: 
 --]] 
json = require("json")
mobox = require("OILua_JavelinExt")
m3 = require("oi_base_mobox")
wms_base = require( "wms_base" )
wms_wh = require( "wms_wh" )
wms_cntr = require("wms_container")
wms_op = require( "wms_operation" )
ams_base = require( "ams_base" )
 
 
 
 function main(strLuaDEID) 
    
    m3.PrintLuaDEInfo( strLuaDEID )
    
    -- nRet, task.type = wms_base.Get_nConst2("任务类型-立库出库搬运") 
    -- if nRet ~= 0 then
    --     lua.Stop( strLuaDEID, "系统没定义'任务类型-立库出库搬运'的常量" )
    --     return
    -- end
    
    local storage_arae 
    nRet, storage_arae = wms_base.Get_nConst2("作业类型-出库")
    
    if ( nRet ~= 0 ) then
        lua.Stop( strLuaDEID, "系统无法获取常量'料箱库存储区'")
        return
    end 
    lua.Debug(strLuaDEID, debug.getinfo(1), "结束", storage_arae)
 end