--[[
|
编码: AMS-106-10
|
名称:
|
作者:
|
日期:2025-05-23
|
|
函数: InitialDlg
|
功能:
|
|
更改记录:
|
|
--]]
|
|
json = require ("json")
|
mobox = require ("OILua_JavelinExt")
|
m3 = require("oi_base_mobox")
|
|
function InitialDlg ( strLuaDEID )
|
local nRet, strRetInfo
|
local run_paramter
|
|
-- step1 获取运行环境参数
|
nRet, run_paramter = m3.GetRuntimeParam(strLuaDEID)
|
if (nRet ~= 0) then lua.Error( strLuaDEID, debug.getinfo(1), run_paramter ) end
|
local master = run_paramter.master
|
if (master == nil) then lua.Error( strLuaDEID, debug.getinfo(1), "系统没有在环境参数中定义master对象信息!" ) end
|
|
if (master.objAttr.S_NO == '' or master.objAttr.S_NO == nil) then return end
|
|
local attr_value = {}
|
attr_value[1] = lua.KeyValueObj( "S_IO_NO", master.objAttr.S_NO )
|
|
nRet, strRetInfo = mobox.setCurEditDataObjAttr( strLuaDEID, lua.table2str(attr_value) )
|
if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1),"设置【逻辑库区】信息失败! "..strRetInfo ) end
|
end
|