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
43
44
45
46
47
48
49
50
51
52
| --[[
| 编码: WMS-85-23
| 名称: 小窗口-点确定按钮
| 作者:HAN
| 日期:2025-4-29
|
| 级别:固定 (说明本段代码在项目中不太会变化)
|
| 函数: ClickOK
|
| 功能:
| -- 点击确定按钮 新增 码盘明细
|
| 更改记录:
|
| --]]
|
| wms_pallet = require ("wms_palletizing")
|
| function ClickOK ( strLuaDEID )
| local nRet, strRetInfo
| local input_attrs
|
| m3.PrintLuaDEInfo( strLuaDEID )
|
| nRet, input_attrs = m3.GetSysCurEditDataAttrs( strLuaDEID )
| lua.DebugEx( strLuaDEID, "input_attrs-->", input_attrs )
| if ( nRet ~= 0 ) then
| lua.Stop( strLuaDEID, "getCurEditDataObjAttr 失败! --> "..input_attrs )
| return
| end
| local cntr_code = input_attrs.S_CNTR_CODE
| nRet, strRetInfo = wms_pallet.Add_INB_Pallet_Detail( strLuaDEID, cntr_code, {input_attrs} )
| if ( nRet ~= 0 ) then
| lua.Stop( strLuaDEID, "Add_INB_Pallet_Detail失败!"..strRetInfo )
| return
| end
| local action =
| {
| {
| action_type = "refresh",
| value = ""
| }
| }
|
| nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) )
| if ( nRet ~= 0 ) then
| lua.Stop( strLuaDEID, "setAction失败! "..strRetInfo )
| return
| end
|
| end
|
|