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
ÿþ--[[
 x: GT-40-45
  Tðy: ûN¡RŒ[b
 \O€: LZH
 eQãSýQpeÿTaskFinish
 ŸRý€ô‹f:
 ØSôf†SòS:
 --]]
require("WMS-BASE")
wms_op = require( "wms_operation" )
require("GT_InAndOutboundPolicies")
function TaskFinish(strLuaDEID)
    local nRet, strRetInfo
 
    -- ·ƒÖSS_MR\ONù[aŒ
    local operation
    nRet, operation = m3.GetSysCurEditDataObj(strLuaDEID, "Operation")
    if (nRet ~= 0) then lua.Error(strLuaDEID, debug.getinfo(1), operation) end
 
    -- ¾‹n\ONŒ[b
    nRet, strRetInfo = wms_op.SetFinish(strLuaDEID, operation.code)
    if (nRet ~= 0) then
        lua.Error(strLuaDEID, debug.getinfo(1), "¾‹n\ON÷S='" .. operation.code .. "' „v\ONŒ[b1Y%!" .. strRetInfo)
    end
    
    -- ã‰•w¹p'MO
    nRet, strRetInfo = wms.wms_UnlockLocation(strLuaDEID,operation.start_loc_code,operation.cntr_code)
    if (nRet ~= 0) then lua.Error(strLuaDEID, debug.getinfo(1), "wms_UnlockLocation 1Y%! " .. strRetInfo) end
 
    
end