From 3f84c5ed59fbdd5f2c2b94420c0ab01b24aa5478 Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期四, 12 十一月 2026 14:59:24 +0800
Subject: [PATCH] update

---
 jrj/project/business/GDN/maint.Document.GDN.v3.cpp |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/jrj/project/business/GDN/maint.Document.GDN.v3.cpp b/jrj/project/business/GDN/maint.Document.GDN.v3.cpp
index 9ef738f..bfddddc 100644
--- a/jrj/project/business/GDN/maint.Document.GDN.v3.cpp
+++ b/jrj/project/business/GDN/maint.Document.GDN.v3.cpp
@@ -188,16 +188,16 @@
 				args.AddArg(L"entityid", entityid);
 				
 
-				/*xml x1 = ViewObject::RetrieveData(L"/sale/data/TDocument3/attachment/GetFileFormat",L"Name",ret);
-				KXMLDOMNodeList items = x1.GetXmlDoc().selectNodes(L"data/Item");
+				xml x1 = ViewObject::RetrieveData(L"/sale/data/TDocument3/attachment/GetFileFormat",L"Name",ret);
+				KXMLDOMNodeList items = x1.selectNodes(L"data/Item");
 				KXMLDOMNode t = items.item(0);
 				xstring FileFormat=L"";
-				if(t.selectSingleNode(L"FileFormat"))FileFormat=t.selectSingleNode(L"FileFormat").text;
-				if(FileFormat !=L"pdf" && FileFormat !=L"PDF")
+				if(t.selectSingleNode(L"FileFormat"))FileFormat=t.selectSingleNode(L"FileFormat").text();
+				if(FileFormat !=L"pdf" && FileFormat !=L"PDF" && FileFormat != L"xlsx" && FileFormat != L"xls" && FileFormat != L"docx" && FileFormat != L"doc" )
 				{
-					alert(L"请上传PDF格式的文件");
+					alert(L"请上传正确格式的文件");
 					return 0;
-				}*/
+				}
 				//alert(L"myurl:"+myurl+L"--name:"+ret+L"--filepath:"+sname+L"--filesource:"+ret+L"--entityid:"+entityid);
 				if (xurl::get(L"/sale/data/TDocument3/attachment/addex", args.GetString(), x) != 1)
 				{

--
Gitblit v1.9.3