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
ÿþ--[[
    x: WMS-06-01
     Tðy: ;‘“^:S{|‹W-Rú^MR
    \O€ÿHAN  
    åegÿ2023-04-11
 
    §~+RÿúVš[ (ô‹f,gµkãNx(Wy˜îv-N N*YOØSS)
    
    ýQpeÿ BeforeDataObjCreate
 
    ŸRý€:
        1    ÿub;‘“^:S{|‹Wx
    ôf9e°‹U_:
        V6.0 HAN 2023/9/6  -- lua.Error/lua.Debug ýQpeØSS   
--]]
json  = require ("json")
mobox = require ("OILua_JavelinExt")
m3 = require( "oi_base_mobox" )
 
function BeforeDataObjCreate ( strLuaDEID ) 
    local   nRet, strRetInfo
  
    -- ub0;‘“^:S0x
    local strCode = ''
    local strHeader = 'ZCLS-'
    nRet,strCode = mobox.getSerialNumber( ";‘“^:S{|‹W", strHeader, 5 )  
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), '[1] 3u÷‹0;‘“^:S{|‹W0x1Y%!'..strCode ) end
   
    -- ¾‹náOo`
    local   attr_value = {}
    attr_value[1] = lua.KeyValueObj( "S_CODE", strCode )
    nRet, strRetInfo = mobox.setCurEditDataObjAttr( strLuaDEID, lua.table2str(attr_value) ) 
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "[2] ¾‹n0;‘“^:S{|‹W0áOo`1Y%!  "..strRetInfo ) end   
end