From 4d56fe8b4a7def09a2a635ecbf2187e4d50a4b07 Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期三, 08 七月 2026 17:13:45 +0800
Subject: [PATCH] update

---
 jrj/project/viewobject/view.base.hpp |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/jrj/project/viewobject/view.base.hpp b/jrj/project/viewobject/view.base.hpp
index 25834d7..dfcefab 100644
--- a/jrj/project/viewobject/view.base.hpp
+++ b/jrj/project/viewobject/view.base.hpp
@@ -41,7 +41,7 @@
 		return arg;
 	}
 
-	static string GetGuid()
+	static xstring GetGuid()
 	{
 		return publiccode::GetGuid();
 	}
@@ -292,7 +292,7 @@
 	{
 		KXMLDOMDocument x;
 		xaserverarg arg;
-		arg.setNativePointer(arg.CreateInstance());
+		
 		arg.AddArg(L"EntityNo", EntityNo);
 		arg.AddArg(L"EntityID", EntityID);
 		arg.AddArg(L"Subject", Subject);
@@ -307,4 +307,26 @@
 		}
 		return 1;
 	}
+
+	static int AddTask(xstring serverUrl, xstring FlowID, xstring EntityID, xstring EntityNo, xstring Subject, xstring Content, xstring Status, xstring Category, xstring Reciever)
+	{
+		
+		KXMLDOMDocument x;
+		xaserverarg arg;
+		arg.AddArg(L"FlowID", FlowID);
+		arg.AddArg(L"EntityID", EntityID);
+		arg.AddArg(L"EntityNo", EntityNo);
+		arg.AddArg(L"Subject", Subject);
+		arg.AddArg(L"Content", Content);
+		arg.AddArg(L"Status", Status);
+		arg.AddArg(L"Category", Category);
+		arg.AddArg(L"Reciever", Reciever);
+		if (xurl::get(L"/sale/data/business/task/add", arg.GetString(), x) != 1)
+		{
+			string error = x.text();
+			trace(error);
+			return 0;
+		}
+		return 1;
+	}
 };
\ No newline at end of file

--
Gitblit v1.9.3