|  |  | 
 |  |  |        | 
 |  |  |       xml x ; | 
 |  |  |  | 
 |  |  |       xaserverarg& arg = *new xaserverarg; | 
 |  |  |       arg.setNativePointer(arg.CreateInstance());	 | 
 |  |  |       xaserverarg arg; | 
 |  |  | 		 | 
 |  |  |       arg.AddArg(L"scene",scene,L"xs:xstring");  | 
 |  |  |       arg.AddArg(L"EntityID",EntityID,L"xs:xstring");  | 
 |  |  |       arg.AddArg(L"EntityName",GetEntityName(1),L"xs:xstring");  | 
 |  |  | 
 |  |  |       xml x ; | 
 |  |  |        | 
 |  |  |       xaserverarg arg ; | 
 |  |  |       arg.setNativePointer(arg.CreateInstance());	 | 
 |  |  | 		 | 
 |  |  |        | 
 |  |  |       dw_pricelistex.DwUpdateAllToEx(x); | 
 |  |  |       if(x.xml()!=L"") | 
 |  |  | 
 |  |  |          xml x0 ; | 
 |  |  |           | 
 |  |  |          dw_pricelist.DwUpdateAllToEx(x0); | 
 |  |  |          if(x0.xml() !=L"") | 
 |  |  |          if((xstring)x0.xml() !=L"") | 
 |  |  |          { | 
 |  |  |             xml x1; | 
 |  |  |             dw_priceitem.DwUpdateAllToEx(x1); | 
 |  |  | 
 |  |  |       return 1; | 
 |  |  |    } | 
 |  |  |           | 
 |  |  |    int ViewUpdate(int pr,xstring updateItem,xaserverarg  arg) | 
 |  |  |    int ViewUpdate(LPARAM  pr,xstring updateItem,xaserverarg  arg) | 
 |  |  |    { | 
 |  |  |       if(   updateItem==L"del") | 
 |  |  |       { | 
 |  |  | 
 |  |  |             { | 
 |  |  |                arg.AddArg(L"CustomerID",e.getAttribute(L"id")); | 
 |  |  |                xstring name = e.getAttribute(L"name"); | 
 |  |  |                if(name.find(L"(L")>=0) name = name.left(name.find(L"(L")); | 
 |  |  |                if(name.find(L"(")>=0) name = name.left(name.find(L"(")); | 
 |  |  |                arg.AddArg(L"CustomerName",name); | 
 |  |  |             } | 
 |  |  |          } |