1
Jianw
9 天以前 70f29da38121b9a467841253e3268feb5df02902
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
--[[
    编码: WMS-33-14
    名称: 指定出库-新增窗口-选货品后
    作者:HAN  
    日期:2025-1-29
 
    级别:固定 (说明本段代码在项目中不太会变化)
    
    函数: AfterSelectGood
 
    功能:
        把选中的货品编码,名称赋值到指定出库新增界面
 
    更改记录:
 
--]]
 
wms_base = require ("wms_base")
 
function AfterSelectGood ( strLuaDEID )
    local nRet, strRetInfo, select_dataobj
 
    nRet, select_dataobj = m3.GetSysDataJson( strLuaDEID )
    if ( nRet ~=0 ) then lua.Error( strLuaDEID, debug.getinfo(1), obj ) end  
    local obj_attrs = m3.KeyValueAttrsToObjAttr( select_dataobj.attrs )
 
    local action = {
        {
            action_type = "set_dlg_attr",
            value = {
                    { attr = "S_ITEM_CODE", value = obj_attrs.S_ITEM_CODE },
                    { attr = "S_ITEM_NAME", value = obj_attrs.S_ITEM_NAME }
            }
        }
    }
 
    nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action)  )
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end     
 
end