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
ÿþ--[[
    x: WMS-07-02
     Tðy: 8^ϑ- Rd–MR
    \O€ÿHAN  
    åegÿ2023-06-15
 
    §~+RÿúVš[ (ô‹f,gµkãNx(Wy˜îv-N N*YOØSS)
    
    ýQpeÿ BeforeDataObjDelete
 
    ŸRý€:
         NAQ¸‹ Rd–û|ß~úV    g„v8^ϑ
    ôf9e°‹U_:
        V6.0 HAN 2023/9/6  -- lua.Error/lua.Debug ýQpeØSS           
--]]
 
json  = require ("json")
mobox = require ("OILua_JavelinExt")
m3 = require( "oi_base_mobox" )
 
function BeforeDataObjDelete ( strLuaDEID ) 
    local   nRet, strRetInfo
    nRet, strRetInfo = mobox.getCurEditDataObjAttr( strLuaDEID, "C_SYS" ) 
    if ( nRet ~= 0 )  then lua.Error( strLuaDEID, debug.getinfo(1), "[1] ·ƒÖSS_MR‘^\'`1Y%! "..strRetInfo ) end 
    local obj_attrs = json.decode( strRetInfo ) 
    local cIsSys = obj_attrs[1].value           -- /f&T/fû|ß~úV    g8^ϑ
 
    if ( cIsSys == 'Y' or cIsSys == 'y') then lua.Warning( strLuaDEID, debug.getinfo(1), "±bIk ÿ Ný€ Rd–û|ß~úV    g„v8^ϑ!" ) end   
end