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