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
| --[[
| 编码: WMS-38-23
| 名称: 任务-PDA-我的任务查询条件
| 作者:HAN
| 日期:2025-1-29
|
|
| 级别:固定 (说明本段代码在项目中不太会变化)
|
| 函数: GetMyTaskSQL
|
| 功能:
| 获取我正在执行的人工叉车搬运任务
|
| 更改记录:
|
| --]]
| wms_task = require( "wms_task" )
|
| function GetMyTaskSQL ( strLuaDEID )
| local nRet, strRetInfo
| local strUserLogin, strUserName
|
| nRet, strUserLogin, strUserName = mobox.getCurUserInfo( strLuaDEID )
| if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "获取当前操作人员信息失败! "..strUserLogin ) end
|
| local action = {}
| local value = {}
|
| action.action_type = "set_query_condition"
| -- N_TYPE = 5 人工叉车搬运 任务 N_B_STATE = 2/执行
| value.condition = "N_B_STATE = 2 and N_TYPE = 5 and S_EXECUTOR_ID = '"..strUserLogin.."'"
| value.order = "S_CODE"
| action.value = value
|
| nRet, strRetInfo = mobox.setAction( strLuaDEID, '['..lua.table2str(action)..']' )
| if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end
|
| end
|
|