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: 
     Tðy: eQ“^US- Rd–T
    \O€ÿLZH  
    åegÿ2024-8-13
 
    §~+RÿúVš[ (ô‹f,gµkãNx(Wy˜îv-N N*YOØSS)
    
    ýQpeÿ AfterDataObjDelete
 
    ŸRý€:
        1    ÿ Rd–0eQ“^USncLˆ0
 
    ôf9e°‹U_:
--]]
json  = require ("json")
mobox = require ("OILua_JavelinExt")
function AfterDataObjDelete ( strLuaDEID ) 
    local   nRet, strRetInfo
 
    -- ·ƒÖS S_DO_NO
    nRet, strRetInfo = mobox.getCurEditDataObjAttr( strLuaDEID, "S_ORDER_NO" ) 
    if ( nRet ~= 0 )  then lua.Error( strLuaDEID, debug.getinfo(1), "·ƒÖSS_MR‘^\'`1Y%! "..strRetInfo ) end 
 
    local obj_attrs = json.decode( strRetInfo ) 
    local order_no = obj_attrs[1].value                -- eQ“^US÷S
 
    if ( order_no ~= nil and order_no ~= "" ) then
        local strCondition = "S_ORDER_NO = '"..order_no.."'"
        nRet, strRetInfo = mobox.deleteDataObject( strLuaDEID, "GT_Label_Crad", strCondition )
        if ( nRet ~= 0) then lua.Error( strLuaDEID, debug.getinfo(1), " Rd–eQ“^USøvsQ„v0eQ“^USncLˆ01Y%!  "..strRetInfo ) end  
 
        -- nd–g'YLˆ÷S°‹U_
        nRet, strRetInfo = mobox.removeSerialNumber( "Lˆ÷S", order_no )
        if ( nRet ~= 0 )  then lua.Error( strLuaDEID, debug.getinfo(1), "removeSerialNumber() 1Y%! "..strRetInfo ) end
    end
end