lzh
2025-06-24 13c4a636539584ab977fddacfae884b3ec250aee
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
ÿþ--[[
   x: WMS-01-11
    Tðy: 
   \O€ÿ
   åegÿ2025-04-23
 
   ýQpeÿ test
   ŸRý€:
 
   ôf9e°‹U_:
 
--]]
 
wms_base = require( "wms_base" )
function UnLock( strLuaDEID )
    
    local nRet, strRetInfo
 
    -- step1  ·ƒÖSS_MR    -N„v“^:S
    local data_json
    nRet, data_json = m3.GetSysDataJson( strLuaDEID )
    if (nRet ~= 0) then lua.Error( strLuaDEID, debug.getinfo(1), data_json ) end
    lua.Debug(strLuaDEID, debug.getinfo(1), 'data_json', data_json)
 
    local obj_attrs = {}
    for n = 1, #data_json do
        obj_attrs = m3.KeyValueAttrsToObjAttr( data_json[n].attrs )
        lua.Debug( strLuaDEID, debug.getinfo(1), "code", obj_attrs.S_CODE )
        -- ¹[hV㉕
        local container
        nRet, container = wms_cntr.GetInfo(strLuaDEID,obj_attrs.S_CODE)
        if (nRet ~= 0) then lua.Error(strLuaDEID, debug.getinfo(1), '·ƒÖS¹[hVù[aŒ1Y%!' .. container) end
        nRet, strRetInfo = wms_cntr.SetLock(strLuaDEID, container, "•{|‹W-àe", "àe")
        if (nRet ~= 0) then lua.Error(strLuaDEID, debug.getinfo(1), 'XbØv¹[hV㉕1Y%!' .. strRetInfo) end
    end
    mobox.setInfo( strLuaDEID, "OK!" )
end