#include <wobject/xstring.hpp> 
 | 
#include <xcontrol/xtreeview.hpp> 
 | 
#include <xcontrol/xdwgrid.hpp> 
 | 
#include <wobject/xdouble.hpp> 
 | 
#include <xcontrol/xlayersheet.hpp> 
 | 
  
 | 
#include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" 
 | 
#include "viewobject/view.base.hpp" 
 | 
  
 | 
using xml = KXMLDOMDocument; 
 | 
class __declspec(dllexport) BrandInforList : public listwin 
 | 
{ 
 | 
public: 
 | 
    xdwgrid    dw_list; 
 | 
public: 
 | 
    BrandInforList(void* implPtr, HWND hWnd) :listwin(implPtr, hWnd) {} 
 | 
public: 
 | 
    static BrandInforList* CreateInstance(void* implPtr, void* hWnd) 
 | 
    { 
 | 
        BrandInforList* pWin = new BrandInforList(implPtr, (HWND)hWnd); 
 | 
        return pWin; 
 | 
    } 
 | 
  
 | 
  
 | 
    int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg  arg) 
 | 
    { 
 | 
        if (updateItem == L"del") { 
 | 
            int DelRow = dw_list.GetRow(); 
 | 
            dw_list.DeleteRow(DelRow); 
 | 
        } 
 | 
        return 1; 
 | 
    } 
 | 
    int onload() 
 | 
    {     
 | 
        SetAgent(); 
 | 
        listwin::onload(); 
 | 
        return -1; 
 | 
    } 
 | 
    int onloaded() 
 | 
    { 
 | 
        return listwin::onloaded(); 
 | 
    } 
 | 
  
 | 
}; 
 |