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-16-05
| 名称: 盘点单-查询面板-点查询按钮
| 作者:HAN
| 日期:2025-1-29
|
| 级别:固定 (说明本段代码在项目中不太会变化)
|
| 函数: Query
|
| 功能:
| 1)查询面板里点“查询”按钮
|
| 更改记录:
| V2.0 HAN 20250212
| -- 改进了获取查询条件的方法,从 wms_count 中的标准函数获取
| --]]
|
| wms_count = require( "wms_count" )
|
| function Query( strLuaDEID )
| local nRet, strRetInfo
|
| nRet, strCondition = wms_count.Get_CountPlan_QueryPanel_Condition( strLuaDEID, true )
| if ( nRet == 1 ) then
| mobox.setInfo( strLuaDEID, strCondition )
| return
| end
| if ( nRet > 1 ) then
| mobox.stopProgram( strLuaDEID, strCondition )
| return
| end
|
| local action =
| {
| {
| action_type = "set_query_condition",
| value = {
| condition = strCondition,
| oredr = ""
| }
| }
| }
|
| nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) )
| if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end
|
| end
|
|