--[[
|
编码: WMS-84-10
|
名称: 选中容器前
|
作者:HAN
|
日期:2025-5-17
|
|
级别:固定 (说明本段代码在项目中不太会变化)
|
|
函数: BeforeQueryCntr
|
|
功能:
|
-- 在新增码盘单操作中,弹出界面里需要选择 容器编号,该脚本用来组织弹出容器查询界面前的 action
|
|
|
更改记录:
|
|
--]]
|
wms_base = require( "wms_base" )
|
|
function BeforeQueryCntr ( strLuaDEID )
|
local nRet, strRetInfo
|
|
-- 查询没正在做码盘的容器,并且容器没有和货位进行绑定
|
local strCondition = "S_POSITION = '' AND S_CODE NOT IN ( select S_CNTR_CODE from TN_Inbound_Palletization where N_B_STATE < "..PALLET_STATE.Stock_In..")"
|
-- 设置 action 的参数
|
local action = {
|
{
|
action_type = "open_data_query_dlg",
|
value = {
|
multi_choice = false, -- 不多选
|
cls_name = "Container", -- 选择的数据类标识
|
grid_style = "basis-选择面板用", -- 选择面板中 GridStyle
|
condition = strCondition,
|
order = "S_CODE"
|
}
|
}
|
}
|
|
nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) )
|
if (nRet ~= 0) then
|
lua.Stop( strLuaDEID, strRetInfo )
|
return
|
end
|
end
|