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
| --[[
| 编码: WMS-21-test
| 名称:
| 作者:
| 日期:2025-05-08
|
| 函数: WMSTest1
| 功能:
|
| 更改记录:
|
| --]]
|
| json = require ("json")
| mobox = require ("OILua_JavelinExt")
| m3 = require ("oi_base_mobox")
|
| function WMSTest1( strLuaDEID )
| local nRet, strRetInfo
|
| local action = {
| {
| action_type = "set_row_attr",
| value = {
| {
| attr = "F_QTY",
| value = "111"
| },
| {
| attr = "S_ITEM_CODE",
| value = "test-code"
| },
| {
| attr = "S_ITEM_NAME",
| value = "test-name-1",
| choice_list = {
| "test-name-1",
| "test-name-2",
| "test-name-3",
| "test-name-4"
| }
| }
| }
| }
| }
| nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) )
| if (nRet ~= 0) then lua.Error( strLuaDEID, debug.getinfo(1), strRetInfo ) end
| end
|
|