From cf8dba7748cc9826d744069b5063a14e3fcd2fa8 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期四, 13 三月 2025 10:48:17 +0800 Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/mis-prj --- jrj/project/business/AP/list.RefundSourcingLine.Entity.xarch.cpp | 20 +++++++------------- 1 files changed, 7 insertions(+), 13 deletions(-) diff --git a/jrj/project/business/AP/list.RefundSourcingLine.Entity.xarch.cpp b/jrj/project/business/AP/list.RefundSourcingLine.Entity.xarch.cpp index 8df82ff..b69ce3d 100644 --- a/jrj/project/business/AP/list.RefundSourcingLine.Entity.xarch.cpp +++ b/jrj/project/business/AP/list.RefundSourcingLine.Entity.xarch.cpp @@ -83,15 +83,15 @@ return 1; } - xstring GetEntityName(int pr) + xstring GetEntityName(LPARAM pr) { return L"RefundSourcingLine"; } - 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; } @@ -101,8 +101,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); @@ -195,7 +195,7 @@ return 0; } - int ViewUpdate(int pr,xstring updateItem,xaserverarg arg) + int ViewUpdate(LPARAM pr,xstring updateItem,xaserverarg arg) { if( updateItem==L"setstate") { @@ -211,13 +211,7 @@ 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() { -- Gitblit v1.9.3