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
ÿþ--[[
    x: GT-06-24
     Tðy: RËYS
    \O€ÿLZH
    åegÿ2024-6-24
 
    §~+RÿúVš[ (ô‹f,gµkãNx(Wy˜îv-N N*YOØSS)
 
    ýQpeÿ Initail
 
    ŸRý€:
        ¾‹n NÉbFhRËYS
    ôf9e°‹U_:
 
--]]
json  = require("json")
mobox = require("OILua_JavelinExt")
m3 = require( "oi_base_mobox" )
function Initail(strLuaDEID)
    local nRet, strRetInfo = m3.GetSysCurEditDataAttrs( strLuaDEID )
    if (nRet ~= 0 or strRetInfo == '') then lua.Error( strLuaDEID, debug.getinfo(1), "àeÕl·ƒÖSpenc!") end
    local station
    for i = 1 ,#strRetInfo do
        if(strRetInfo[i].attr == 'S_STATION')then
            station = strRetInfo[i].value
        end
    end
 
    local setAttr = '[{"attr":"S_STATION","value":"'..station..'","choice_list":["A","B","C","D","E","F","G","H","I","J","K","L"]}]'
    local strAction = '[{"action_type":"set_dlg_attr","value":'..setAttr..'}]'
    nRet, strRetInfo = mobox.setAction( strLuaDEID, strAction  )
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction1Y%! "..strRetInfo..' action = '..strAction ) end 
end