From 055c029d503847f970f691d0219cfd0165898743 Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期四, 11 六月 2026 17:46:12 +0800
Subject: [PATCH] update

---
 jrj/project/business/AP/list.RefundGDNLine.Entity.xarch.cpp |   34 ++++++++++++++++------------------
 1 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/jrj/project/business/AP/list.RefundGDNLine.Entity.xarch.cpp b/jrj/project/business/AP/list.RefundGDNLine.Entity.xarch.cpp
index 666c2a6..945d3c9 100644
--- a/jrj/project/business/AP/list.RefundGDNLine.Entity.xarch.cpp
+++ b/jrj/project/business/AP/list.RefundGDNLine.Entity.xarch.cpp
@@ -46,15 +46,15 @@
 			return 1;
 		}
 
-		xstring GetEntityName(int pr)
+		xstring GetEntityName(LPARAM pr)
 		{
 			return L"RefundGDNLine";
 		}
 				
-		xstring GetEntityID(int pr)
+		xstring GetEntityID(LPARAM pr)
 		{
 			int row = dw_list.GetRow();
-			xstring id = dw_list.GetItemString(row,m_entityid);
+			xstring id = dw_list.GetItemString(row,m_entityid.c_str());
 			return id;
 		}
 				
@@ -64,8 +64,8 @@
 			int ll_row = dw_list.GetNextSelectRow(1);
 			while(ll_row > 0 && ll_row <= dw_list.GetRowCount())
 			{
-				xstring id=dw_list.GetItemString(ll_row,m_entityid);
-				if(EntityIDList == L"") EntityIDList = id; else EntityIDList  += L",L" + id;
+				xstring id=dw_list.GetItemString(ll_row,m_entityid.c_str());
+				if(EntityIDList == L"") EntityIDList = id; else EntityIDList  += L"," + id;
 				ll_row =  dw_list.GetNextSelectRow(ll_row + 1);
 			}
 			if(EntityIDList != L"") arg.AddArg(L"EntityID",EntityIDList);
@@ -117,11 +117,19 @@
 		{
 			dw_list.AcceptText();
 			
+			for (int row = 1; row <= dw_list.GetRowCount(); ++row)
+			{
+				if (dw_list.GetItemString(row, L"序号") == L"" || dw_list.GetItemString(row, L"序号") == L" ") dw_list.DeleteRow(row);
+			}
+
 			if(dw_list.GetRowCount()>0)
 			{
-				if(dw_list.GetItemString(dw_list.GetRowCount(),L"序号")==L"") dw_list.DeleteRow(dw_list.GetRowCount());
+				if(dw_list.GetItemString(dw_list.GetRowCount(),L"序号")==L"" || dw_list.GetItemString(dw_list.GetRowCount(), L"序号") == L" ") dw_list.DeleteRow(dw_list.GetRowCount());
 					
 			}
+			
+
+
 			xml x ;
 			
 			KXMLDOMDocument xdoc = x;
@@ -196,7 +204,7 @@
 			return 0;
 		}
 		
-		int ViewUpdate(int pr,xstring updateItem,xaserverarg  arg)
+		int ViewUpdate(LPARAM  pr,xstring updateItem,xaserverarg  arg)
 		{
 			if(	updateItem==L"setstate")
 			{			
@@ -210,14 +218,6 @@
 		int OnXCommand(TEvent* evt, LPARAM param)
 		{
 			return OnCmdDispatch(evt->xcommand.pStrID);
-		}
-		
-		int OnRowChanged(TEvent* evt, LPARAM p)
-		{
-			DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh;
-			int row = hdr.row;
-			//SetAgent(L"list",dw_list.GetItemString(row,GetEntityID(1)));
-			return 1;
 		}
 		
 		int OnAttachEvent()
@@ -244,9 +244,7 @@
 		int  OnRetrieve(xstring query)
 		{
 			xml x ;
-			
-			xaserverarg arg ;
-				
+			xaserverarg arg;
 			arg.AddArg(L"query",query);
 			arg.AddArg(L"QueryArg",L"");
 			if (getUrl(str_url,arg.GetString(),x)!=1)

--
Gitblit v1.9.3