|  |  | 
 |  |  |          while(ll_row > 0 && ll_row <= dw_list.GetRowCount()) | 
 |  |  |          { | 
 |  |  |             xstring id=dw_list.GetItemString(ll_row,m_entityid.c_str()); | 
 |  |  |             if(EntityIDList == L"") EntityIDList = id; else EntityIDList  += L",L" + id; | 
 |  |  |             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); | 
 |  |  | 
 |  |  |          return 0; | 
 |  |  |       } | 
 |  |  |        | 
 |  |  |       int ViewUpdate(int pr,xstring updateItem,xaserverarg  arg) | 
 |  |  |       int ViewUpdate(LPARAM  pr,xstring updateItem,xaserverarg  arg) | 
 |  |  |       { | 
 |  |  |          if(   updateItem==L"setstate") | 
 |  |  |          {          | 
 |  |  | 
 |  |  |       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) |