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
38
39
40
ÿþ--[[
    x: WMS-05-05
     Tðy: ;‘“^:S-X[¨Pϑ͑n
    \O€ÿHAN  
    åegÿ2023-06-27
 
    §~+RÿúVš[ (ô‹f,gµkãNx(Wy˜îv-N N*YOØSS)
    
    ýQpeÿ ResetZoneStorage
 
    ôf9e°‹U_:
        V4.1 HAN 2023-8-9  wmsøvsQ¥cãSŒte 
        V6.0 HAN 2023/9/6  -- lua.Error/lua.Debug ýQpeØSS    
--]]
 
require ("WMS-BASE")
 
function ResetZoneStorage ( strLuaDEID ) 
    local nRet, strRetInfo
    local zoneCode
 
    -- ·ƒÖSS_MRÍd\O    -N„vZoneù[aŒ
    -- step1ÿ ·ƒÖSæ‰ÑS,ggbLˆöe„vD– Rpenc --> DataJson
    nRet, zoneCode = m3.GetSysDataJson( strLuaDEID ) 
    if ( nRet ~= 0 )  then lua.Error( strLuaDEID, debug.getinfo(1), "·ƒÖS WMS-05-04 :WofÂSpe1Y%! "..zoneCode ) end
 
    local n, nCount
    local strZoneCode = ''
 
    nCount = #zoneCode
    for n = 1, nCount do
        strZoneCode = strZoneCode..zoneCode[n]..';'
    end
 
    -- step2: 
    -- Œ(u WMS  g¡RTðSýQpe Í‘n;‘“^:S X[¨Pϑ
    nRet, strRetInfo = wms.wms_ResetZoneStoreNum( strLuaDEID, strZoneCode )
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), strRetInfo ) end
 
end