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
42
| --[[
| 编码: WMS-20-28
| 名称: 入库单领用-初始化
| 作者: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 = "Station", 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
|
|