From feccef8c2b99af30b6937c42568f2fb7c82dbae2 Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期三, 13 十一月 2024 17:51:49 +0800
Subject: [PATCH] update

---
 jrj/project/vindexform.cpp |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/jrj/project/vindexform.cpp b/jrj/project/vindexform.cpp
index f6b9c8b..58821fc 100644
--- a/jrj/project/vindexform.cpp
+++ b/jrj/project/vindexform.cpp
@@ -48,7 +48,7 @@
 		xml x ;
 		x.load(L"cache\\config.xml");
 		//alert(x.GetXml());
-		if (x.xml() == L"") return L"";
+		if ((xstring)x.xml() == L"") return L"";
 		KXMLDOMElement e = x.documentElement();
 		if (e.selectSingleNode(L"home"))
 		{
@@ -63,9 +63,9 @@
 	{
 		xml x ;
 		x.load(L"cache\\config.xml");
-		if (x.xml() == L"")
+		if ((xstring)x.xml() == L"")
 		{
-			//alert(L"<config><home "+att+L"=L"+value+L"/></config>");
+			//alert(L"<config><home "+att+L"="+value+L"/></config>");
 			x.loadXML(L"<config><home " + att + L"='" + value + L"'/></config>");
 		}
 		else
@@ -312,7 +312,7 @@
 			//trace(x.GetXml());
 			return -1;
 		}
-		if (x.xml() == L"") return -1;
+		if ((xstring)x.xml() == L"") return -1;
 		KXMLDOMElement e = x.documentElement();
 		if (/*m_Assignment == L"" &&*/ e.selectSingleNode(L"AssignmentID"))
 		{
@@ -354,7 +354,7 @@
 			trace(x.xml());
 			return -1;
 		}
-		if (x.xml() == L"") return -1;
+		if ((xstring)x.xml() == L"") return -1;
 		KXMLDOMElement e = x.documentElement();
 		KXMLDOMNodeList li = e.selectNodes(L"item");
 		int i;
@@ -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()
@@ -666,8 +676,8 @@
 	{
 		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]");
+		//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();

--
Gitblit v1.9.3