--[[
|
编码: JX-108-24
|
名称: 巨星空料箱出库-站台变化
|
作者:HAN
|
日期:2025-1-29
|
|
级别:项目
|
|
函数: AfterStationChange
|
|
功能:
|
-- 根据站台号设置查询条件
|
|
更改记录:
|
|
--]]
|
jx_base= require( "jx_base" )
|
|
function AfterStationChange ( strLuaDEID )
|
local nRet, strRetInfo
|
|
-- 获取站台编码
|
nRet, strRetInfo = mobox.getCurEditDataObjAttr( strLuaDEID, "S_STATION_NO" )
|
if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "获取当前编辑属性失败! "..strRetInfo ) end
|
local obj_attrs = json.decode( strRetInfo )
|
local station = lua.Get_StrAttrValue( obj_attrs[1].value )
|
if ( station == '' ) then return end
|
|
local strCondition = "S_STATION_NO = '"..station.."' AND N_B_STATE <> 2 AND S_TASK_TYPE = '巨星空料箱出库'"
|
local action = {
|
{
|
action_type = "set_query_condition",
|
value = {
|
condition = strCondition,
|
order = "S_SOURNO",
|
page_name = "本站台出库空料箱"
|
}
|
}
|
}
|
|
nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) )
|
if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo ) end
|
|
end
|