From 67555dae703a5786a4bfdc9cc6a062abe3fbfcec Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期五, 19 七月 2024 17:22:04 +0800 Subject: [PATCH] updae --- jrj/project/business/AP/list.RefundGDNLine.Entity.xarch.cpp | 12 ++---------- jrj/project/business/AP/list.RefundSourcingLine.Entity.xarch.cpp | 12 +++--------- 2 files changed, 5 insertions(+), 19 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..90965b8 100644 --- a/jrj/project/business/AP/list.RefundGDNLine.Entity.xarch.cpp +++ b/jrj/project/business/AP/list.RefundGDNLine.Entity.xarch.cpp @@ -54,7 +54,7 @@ xstring GetEntityID(int 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,7 +64,7 @@ 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); + xstring id=dw_list.GetItemString(ll_row,m_entityid.c_str()); if(EntityIDList == L"") EntityIDList = id; else EntityIDList += L",L" + id; ll_row = dw_list.GetNextSelectRow(ll_row + 1); } @@ -210,14 +210,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() diff --git a/jrj/project/business/AP/list.RefundSourcingLine.Entity.xarch.cpp b/jrj/project/business/AP/list.RefundSourcingLine.Entity.xarch.cpp index 8df82ff..dfc36ed 100644 --- a/jrj/project/business/AP/list.RefundSourcingLine.Entity.xarch.cpp +++ b/jrj/project/business/AP/list.RefundSourcingLine.Entity.xarch.cpp @@ -91,7 +91,7 @@ xstring GetEntityID(int 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,7 +101,7 @@ 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); + xstring id=dw_list.GetItemString(ll_row,m_entityid.c_str()); if(EntityIDList == L"") EntityIDList = id; else EntityIDList += L",L" + id; ll_row = dw_list.GetNextSelectRow(ll_row + 1); } @@ -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