From 2c16cde4404c99117adf1e16d2e589053faa13a3 Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期二, 03 十一月 2026 16:17:32 +0800
Subject: [PATCH] update
---
jrj/project/business/AP/maint.ap.cpp | 24 ++++++++++++++++++++++--
1 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/jrj/project/business/AP/maint.ap.cpp b/jrj/project/business/AP/maint.ap.cpp
index 60dda76..6593535 100644
--- a/jrj/project/business/AP/maint.ap.cpp
+++ b/jrj/project/business/AP/maint.ap.cpp
@@ -95,6 +95,18 @@
return 0;
}
}
+ if (APType1 != L"001")
+ {
+ if (dw_base.GetItemString(1, L"APSource") == L"" ) {
+ alert(L"付款原因为空!");
+ return 0;
+ }
+ if (dw_base.GetItemString(1, L"InvoiceNo") == L"") {
+ alert(L"请外运编号为空!");
+ return 0;
+ }
+ }
+ x.Reset();
dw_base.AcceptText();
dw_base.DwUpdateAllTo(x);
xaserverarg arg;
@@ -185,6 +197,9 @@
if (t.selectSingleNode(L"ShortName"))dw_base.SetItemDisplayString(1, L"APSupplierID", t.selectSingleNode(L"ShortName").text());
if (t.selectSingleNode(L"ShortName"))dw_base.SetItemDisplayString(1, L"SupplierID", t.selectSingleNode(L"ShortName").text());
if (t.selectSingleNode(L"SONo"))dw_base.SetItemString(1, L"SONO", t.selectSingleNode(L"SONo").text());
+ if (t.selectSingleNode(L"SOShortName"))dw_base.SetItemDisplayString(1, L"CustomerID", t.selectSingleNode(L"SOShortName").text());
+ if (t.selectSingleNode(L"CustomerID"))dw_base.SetItemString(1, L"CustomerID", t.selectSingleNode(L"CustomerID").text());
+
if (t.selectSingleNode(L"POAmount"))dw_base.SetItemString(1, L"POAmount", t.selectSingleNode(L"POAmount").text());
}
@@ -251,6 +266,7 @@
SetArg();
APID = L"";
APType = L"";
+ xstring positionname = publiccode::GetUser().positionname;
if (GetWinParam())
{
xaserverarg arg=GetArg();
@@ -264,7 +280,7 @@
dw_base.SetRowSelectorWidth(0);
dw_base.SetHScrollState(false);
dw_base.SetVScrollState(false);
-
+
OnAttachEvent();
if (APID != L"")
@@ -275,7 +291,11 @@
{
xstring sdate = publiccode::GetCurrentDate();
dw_base.SetItemString(1, L"APDate", sdate);
- dw_base.SetItemString(1, L"PayedDate", sdate);
+ if (positionname.find(L"跟单") < 0)
+ {
+ dw_base.SetItemString(1, L"PayedDate", sdate);
+
+ }
dw_base.SetItemString(1, L"CreateDate", sdate);
xstring suserid = publiccode::GetUser().id;
xstring susername = publiccode::GetUser().name;
--
Gitblit v1.9.3