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
42
43
ÿþ--[[
    x: WMS-19-09
     Tðy: 3036°ežX—zãSRËYS
    \O€ÿHAN
    åegÿ2024-1-19
 
    §~+Rÿy˜îv
    
    ýQpeÿ InitialDlg
 
    ŸRý€:
        -- ·ƒÖS0¹[hV0-N„vx^\'`
 
    ôf9e°‹U_:
       
--]]
 
json  = require ("json")
mobox = require ("OILua_JavelinExt")
m3 = require( "oi_base_mobox" )
 
function InitialDlg ( strLuaDEID ) 
    local nRet, strRetInfo
    local run_paramter
    
    -- step1  ·ƒÖSЏLˆ¯sƒXÂSpe
    nRet, run_paramter = m3.GetRuntimeParam(strLuaDEID) 
    if (nRet ~= 0) then lua.Error( strLuaDEID, debug.getinfo(1), run_paramter ) end
    local master = run_paramter.master
    if (master == nil) then lua.Error( strLuaDEID, debug.getinfo(1), "û|ß~¡l    g(W¯sƒXÂSpe-Nš[INmasterù[aŒáOo`!" ) end
 
    if (master.objAttr.S_CODE == '' or master.objAttr.S_CODE == nil) then return end
 
    local str_cntr_code = master.objAttr.S_CODE
    local setAttr = '[{"attr":"S_CNTR_CODE","value":"'..master.objAttr.S_CODE..'"}]'
    local action = {}
 
    action.action_type = "set_dlg_attr"
    action.value = json.decode(setAttr)
 
    nRet, strRetInfo = mobox.setAction( strLuaDEID, '['..lua.table2str(action)..']'  )
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction1Y%! "..strRetInfo..' action = '..strAction ) end 
end