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
41
ÿþ--[[
   x: GT-101-23
    Tðy: 
   \O€ÿ
   åegÿ2025-06-18
 
   ýQpeÿ AfterInput
   ŸRý€:
 
   ôf9e°‹U_:
 
--]]
 
json  = require ("json")
mobox = require ("OILua_JavelinExt")
m3 = require ("oi_base_mobox")
 
function AfterInput( strLuaDEID )
    local nRet, strRetInfo
    -- ·ƒÖSÂSpe
    nRet, strRetInfo = mobox.getCurEditDataObjAttr(strLuaDEID,"BHJB")
    if (nRet ~= 0) then lua.Error(strLuaDEID, debug.getinfo(1), "·ƒÖSS_MR‘^\'`1Y%! " .. strRetInfo) end
    lua.Debug(strLuaDEID, debug.getinfo(1), 'strRetInfo', strRetInfo)
    local obj_attrs = json.decode(strRetInfo)
    local bhjb = obj_attrs[1].value
    
    -- eˆ'§~+R:N'}%`R–Ï…öeô•ŒT‰[hQ NP–
    local action = {}
    local setAttr = ''
    if(bhjb == ''}%`')then
        setAttr = '[{"attr":"T_START","show":false},{"attr":"T_END","show":false},{"attr":"N_FLOOR_QTY","show":false}]'
        action.action_type = "set_dlg_attr_show"
        action.value = json.decode(setAttr)
    else
        setAttr = '[{"attr":"T_START","show":true},{"attr":"T_END","show":true},{"attr":"N_FLOOR_QTY","show":true}]'
        action.action_type = "set_dlg_attr_show"
        action.value = json.decode(setAttr)
    end
    local nRet, strRetInfo = mobox.setAction(strLuaDEID, '[' .. lua.table2str(action) .. ']')
    if (nRet ~= 0) then lua.Error(strLuaDEID, debug.getinfo(1), "setAction1Y%! " .. strRetInfo .. ' action = ' .. strAction) end
end