From 61f1fc38bb7c290ccace616b7df4609a8b82a73b Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期五, 06 九月 2024 13:52:36 +0800 Subject: [PATCH] update viewupdate --- jrj/project/vindexform.cpp | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/jrj/project/vindexform.cpp b/jrj/project/vindexform.cpp index 199aa6b..b8bf763 100644 --- a/jrj/project/vindexform.cpp +++ b/jrj/project/vindexform.cpp @@ -642,6 +642,16 @@ int Initial() { SetUserID(); + xstring userno = xaserver::GetUserNo(); + if (userno == L"admin") + { + xnode anode = GetAgentNode(L"dev"); + int LayerFlow_WE_ = 0x00000002; + int LayerFlow_Control_ = 0x00000010; + anode.SetLayerFlow(LayerFlow_WE_ | LayerFlow_Control_); + } + m_Assignment = L""; + return 1; } int onload() @@ -658,11 +668,22 @@ Initial(); OnAttachListon(); - OpenWindow(L"dev:xpage[start.vframe.vbusiness.vx]"); return 1; } + int onloaded() + { + ReSetInfo(); + //OpenWindow("dev:xpage[start.vframe.vbusiness.vx]"); + xwin* lw_face = OpenWindow(L"dev:xpage[start.vframe.vbusiness.vx]"); + //xwin* lw_face = OpenWindow(L"dev:xpage[Business5.vx]"); + if(lw_face)m_startwin = lw_face->GetHWND(); + cbx_panelName.SetCurSel( -1); + ResetMenu(); + + return 1; + } }; -- Gitblit v1.9.3