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
ÿþ--[[
    x: WMS-60-01
     Tðy: :gðS-Rú^MR
    \O€ÿHAN
    åegÿ2023-12-28
 
    §~+RÿúVš[ (ô‹f,gµkãNx(Wy˜îv-N N*YOØSS)
    
    ýQpeÿ BeforeDataObjCreate
 
    ŸRý€:
        -- ubcäN÷S
        -- ·ƒÖSå]‚ShƋ
    ôf9e°‹U_:
       
--]]
 
json  = require ("json")
mobox = require ("OILua_JavelinExt")
m3 = require( "oi_base_mobox" )
 
function BeforeDataObjCreate ( strLuaDEID ) 
    local nRet, strRetInfo
    local factory
    -- ·ƒÖSÍd\O€„vå]‚ShƋ
    nRet, factory = m3.GetMyFactory( strLuaDEID )
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "GetMyFactory1Y%! "..factory ) end
    if ( factory == '' ) then factory = '0000' end
 
    -- ¾‹náOo`
    local   attr_value = {}
    attr_value[1] = lua.KeyValueObj( "S_FACTORY", factory )
    nRet, strRetInfo = mobox.setCurEditDataObjAttr( strLuaDEID, lua.table2str(attr_value) ) 
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "¾‹n[:gðS]áOo`1Y%!  "..strRetInfo ) end   
end