lzh
2025-06-24 13c4a636539584ab977fddacfae884b3ec250aee
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
ÿþ--[[
    x: WMS-05-07
     Tðy: ;‘“^:S-{|‹WØSST
    \O€ÿHAN  
    åegÿ2023-09-20
 
    §~+RÿúVš[ (ô‹f,gµkãNx(Wy˜îv-N N*YOØSS)
    
    ýQpeÿ ZoneTypeChange
 
    ŸRý€:
        1    ÿ(W5505 ŸRý€¹pÿ;‘“^:Sô~¤b    ÿ-N°ežX;‘“^:S ÿ‚Yœg9e†N;‘“^:S{|‹W ÿ—‰ÀhågN N{|‹W/f&T=¥csš
           ‚Yœg/f¥csš‰>f:y ¥csš{|‹W ÿ&TR–Ï…
    ôf9e°‹U_:
--]]
wms_base = require( "wms_base" )
 
function ZoneTypeChange ( strLuaDEID ) 
    local nRet, strRetInfo, strValue
 
    -- ·ƒÖSS_MR„v;‘“^:S{|‹W
    nRet, strValue = m3.GetSysCurEditDataOneAttr( strLuaDEID, "N_TYPE" )
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "GetSysCurEditDataOneAttr1Y%! "..strValue ) end
    if (strValue == nil or strValue == '') then return end
    
    -- ‚Yœg N/f¥csš{|‹W„v;‘“^:S ÿ N>f:y N_CONNECT_TYPE
    local nType = lua.StrToNumber(strValue)    
    local strAction                
    if ( nType ~= wms_base.Get_nConst(strLuaDEID, ";‘“^:S{|‹W-¥csš") )  then -- ¥csš{|‹W
        strAction = '[{"action_type":"set_dlg_attr_show","value":[{"attr":"N_CONNECT_TYPE","show":false}]}]'
    else
        strAction = '[{"action_type":"set_dlg_attr_show","value":[{"attr":"N_CONNECT_TYPE","show":true}]}]'
    end
    nRet, strRetInfo = mobox.setAction( strLuaDEID, strAction  )
    if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction1Y%! "..strRetInfo..' action = '..strAction ) end 
end