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
ÿþ--[[
   x: 
    Tðy: 
   \O€ÿ
   åegÿ2024-11-19
 
   ýQpeÿ Initial
   ŸRý€:
 
   ôf9e°‹U_:
 
--]]
 
json  = require ("json")
mobox = require ("OILua_JavelinExt")
require ("oi_basestrfunc")
 
function Initial( strLuaDEID )
    local strHeader = 'TA'..os.date("%y%m%d")..'-'
    nRet,strCode = mobox.getSerialNumber( "ûN¡R", strHeader, 5 )  
    if ( nRet ~= 0 ) then Error( strLuaDEID, debug.getinfo(1), '3u÷‹0ûN¡R0x1Y%!'..strCode ) end
    task_no = strCode
    
    -- ¾‹nMRïzU\:yaction
    -- ¾‹n—zãS-N„váOo`
    local setAttr = '[{"attr":"task_no","value":"' .. task_no .. '"}]'
    local action1 = {}
    action1.action_type = "set_dlg_attr"
    action1.value = json.decode(setAttr)
    
    setAttr = '[{"attr":"new_qty","show": false}]'
    local action2 = {}
    action2.action_type = "set_dlg_attr_show"
    action2.value = json.decode(setAttr)
 
    nRet, strRetInfo = mobox.setAction(strLuaDEID, '[' .. table2str(action1) .. ','.. table2str(action2) ..']')
    if (nRet ~= 0) then Error(strLuaDEID, debug.getinfo(1), "setAction1Y%! " .. strRetInfo) end
 
end