From b0e4638bc1780bbc007e9055895db0c511b68fd6 Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期二, 01 九月 2026 16:48:26 +0800
Subject: [PATCH] update

---
 jrj/project/business/Customer3.maint.cpp |   32 ++++++++++++++++++++++++++++----
 1 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/jrj/project/business/Customer3.maint.cpp b/jrj/project/business/Customer3.maint.cpp
index 2c79063..a36d388 100644
--- a/jrj/project/business/Customer3.maint.cpp
+++ b/jrj/project/business/Customer3.maint.cpp
@@ -768,6 +768,21 @@
 				OnShareMessage();
 				return 0;
 		}
+		if (comdid == L"action:bill.check.ask")
+		{
+			int row = dw_detail.GetRow();
+			if (row < 1) return 0;
+			xstring PartyID = dw_detail.GetItemString(row, L"PartyID");
+			KXMLDOMDocument xx3 = ViewObject::RetrieveData(L"/sale/data/CustomerV3/entity/GetCustomerResults", L"CustomerID", PartyID);
+
+			xstring Results3 = xx3.text();
+
+			if (Results3 != L"")
+			{
+				alert(Results3);
+				return 0;
+			}
+		}
 	//	else if (comdid.find(L"action:",0) >= 0) return OnAction(comdid);
 		return -1;	
 	}
@@ -892,7 +907,7 @@
 		if(value == L"客户资料附件")
 		{	
 			
-			if(userno == L"admin" || userno == L"00601" || userno == L"00618" || userno == L"00701")
+			if(userno == L"admin" || userno == L"00601" || userno == L"00618" || userno == L"00701" || userno == L"00620")
 			 {
 				//alert(dw_detail.GetGuid(1));
 				arg.AddArg(L"entityid",dw_detail.GetGuid(1));
@@ -901,6 +916,15 @@
 				return 1;
 			}
 		}
+		if (value == L"信保回复附件")
+		{
+				arg.AddArg(L"entityid", dw_detail.GetGuid(1));
+				arg.AddArg(L"ApproveStatus", L"新建");
+				OpenWindow(L"dev:xpage[maint.Document.SampleRequestForm.vx]", (LPARAM)&arg);
+				return 1;
+			
+		}
+
 		if(value == L"客户基本信息")
 		{	
 			xaserverarg arg1 = GetArg();	
@@ -1209,7 +1233,7 @@
 		{
 			//xstring userno = publiccode::getUserNo();
 			userno = xaserver::GetUserNo();
-			if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701" && userno != L"00618")
+			if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701" && userno != L"00618" || userno == L"00620")
 			{
 				dw_detail.SetColumnProp(L"SalesPersonID",L"cellprotect",L"1");
 				
@@ -1248,9 +1272,9 @@
 			
 			ApplyStatus=dw_detail.GetItemString(1,L"ApplyStatus");
 			
-			if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701" && userno != L"00618")
+			if(userno !=L"00601" && userno !=L"admin" && userno !=L"00701" && userno != L"00618" || userno == L"00620")
 			{
-				if(ApplyStatus ==L"财务已审核")
+				if(ApplyStatus ==L"已审核")
 				{
 					dw_detail.SetReadOnly(true);	
 				}

--
Gitblit v1.9.3