--[[
|
编码: WMS-02-01
|
名称: 仓库-新增小窗口初始化
|
作者:HAN
|
日期:2025-1-29
|
|
级别:BASIS
|
|
函数: InitialNewAddDlg
|
|
功能:
|
1)根据当前操作者获取操作者的所属单位编码,把这个编码设置到 S_FACTORY
|
更改记录:
|
|
--]]
|
|
json = require ("json")
|
mobox = require ("OILua_JavelinExt")
|
m3 = require("oi_base_mobox")
|
|
function InitialNewAddDlg ( strLuaDEID )
|
local nRet, strRetInfo, factory
|
|
nRet, factory = m3.GetMyFactory( strLuaDEID )
|
if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "GetMyFactory失败! "..factory ) end
|
|
local setAttr = '[{"attr":"S_FACTORY","value":"'..factory..'"}]'
|
local strAction = '[{"action_type":"set_dlg_attr","value":'..setAttr..'}]'
|
nRet, strRetInfo = mobox.setAction( strLuaDEID, strAction )
|
if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end
|
end
|