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
ÿþ--[[
    x: WMS-02-01
     Tðy: ÓN“^-°ežX\—zãSRËYS
    \O€ÿHAN  
    åegÿ2023-7-26
 
    §~+RÿBASIS
    
    ýQpeÿ InitialNewAddDlg
 
    ŸRý€:
        1    ÿ9hncS_MRÍd\O€·ƒÖSÍd\O€„v@b^\USMOx ÿŠbُ*Nx¾‹n0R S_FACTORY
    ôf9e°‹U_:
    V6.0 HAN 2023/9/6  -- lua.Error/lua.Debug ýQpeØSS
    V6.1 HAN 2023/9/16 -- m3.GetMyFactory( strLuaDEID )
--]]
 
json  = require ("json")
mobox = require ("OILua_JavelinExt")
m3 = require( "oi_base_mobox" )
 
function InitialNewAddDlg ( strLuaDEID ) 
    local nRet, strRetInfo, factory
 
    nRet, factory = m3.GetMyFactory( strLuaDEID )
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "GetMyFactory1Y%! "..factory ) end
 
    local setAttr = '[{"attr":"S_FACTORY","value":"'..factory..'"}]'
    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