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
ÿþ--[[
    x: WMS-61-01
     Tðy: :gðSsQT€:S-°ežX\—zãS¹pûQnxš[MR
    \O€ÿHAN
    åegÿ2023-12-28
 
    §~+RÿúVš[ (ô‹f,gµkãNx(Wy˜îv-N N*YOØSS)
    
    ýQpeÿ BeforeDataObjCreate
 
    ŸRý€:
 
    ôf9e°‹U_:
       
--]]
 
json  = require ("json")
mobox = require ("OILua_JavelinExt")
m3 = require( "oi_base_mobox" )
 
function BeforeClickOK ( strLuaDEID ) 
    local nRet, strRetInfo
    local run_paramter
    
    -- step1  ·ƒÖSЏLˆ¯sƒXÂSpe
    nRet, run_paramter = m3.GetRuntimeParam(strLuaDEID) 
 
    lua.Debug( strLuaDEID, debug.getinfo(1), "run_paramter", run_paramter )
 
    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 == nil) then lua.Error( strLuaDEID, debug.getinfo(1), ";Npencù[aŒ0:gðS0-N‰(WGrid-NžX R S_CODE R!" ) end
 
    -- ¾‹náOo`
    local   attr_value = {}
    attr_value[1] = lua.KeyValueObj( "S_MS_CODE", master.objAttr.S_CODE )
    nRet, strRetInfo = mobox.setCurEditDataObjAttr( strLuaDEID, lua.table2str(attr_value) ) 
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "¾‹n[:gðSsQT€:S]áOo`1Y%!  "..strRetInfo ) end       
end