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
| --[[
| 编码: WMS-09-13
| 名称:
| 作者:
| 日期:2025-03-06
|
| 函数:InitialDlg
| 功能:
|
| 更改记录:
|
| --]]
| wms_wh = require ("wms_wh")
|
| function InitialDlg( strLuaDEID )
| local nRet, strRetInfo
| local wh_list
|
| nRet, wh_list = wms_wh.GetMyFactoryWarehouse( strLuaDEID )
| if ( nRet ~= 0 ) then
| mobox.stopProgram( strLuaDEID, wh_list )
| return
| end
|
| local action = {
| {
| action_type = "set_dlg_attr",
| value = {
| {
| attr = "S_WH_CODE", value = "", choice_list = wh_list
| }
| }
| }
| }
|
| nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) )
| if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end
| end
|
|