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
41
--[[
    编码: JX-24-10
    名称: 出库单领用-初始化
    作者:HAN  
    日期:2025-1-29
 
    级别:项目
    
    函数: InitialDlg
 
    功能:
        -- 设置登录人员姓名
 
    更改记录:
 
--]]
 
wms_base = require( "wms_base" )
 
function InitialDlg ( strLuaDEID ) 
    local nRet, strRetInfo
   
    -- 获取当前登录人员账号名称及PC绑定的站台
    local login_info
    nRet, login_info = wms_base.Get_CurLoginUserInfo( strLuaDEID )
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), login_info ) end
    local station_enable = true
    if ( login_info.station ~= '' ) then station_enable = false end
 
    local action = {
        {
            action_type = "set_dlg_attr",
            value = {
                { attr = "S_STATION_NO", value = login_info.station, enable = station_enable },
                { attr = "Login", value = login_info.user_name, enable = false }
            }
        }
    }
    nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action)  )
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end 
end