From 9084aa9323a300f1e26717ddd98021fff30d3227 Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期二, 01 九月 2026 16:48:16 +0800
Subject: [PATCH] update
---
jrj/project/business/Customer3.maint.cpp | 39 +++++++++++++++++++++++++++++++++++----
1 files changed, 35 insertions(+), 4 deletions(-)
diff --git a/jrj/project/business/Customer3.maint.cpp b/jrj/project/business/Customer3.maint.cpp
index 4808e87..a36d388 100644
--- a/jrj/project/business/Customer3.maint.cpp
+++ b/jrj/project/business/Customer3.maint.cpp
@@ -483,6 +483,13 @@
alert(L"客户简称不能为空!");
return 0;
}
+ xstring Status = dw_detail.GetItemString(1, L"Status");
+ if (sShortName == L"")
+ {
+ alert(L"客户状况不能为空!");
+ return 0;
+ }
+
xstring Level = dw_detail.GetItemString(1,L"Level");
/*if (Level == L"")
{
@@ -761,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;
}
@@ -885,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));
@@ -894,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();
@@ -1202,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");
@@ -1241,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