LiFan
2024-07-16 6a4764ee747fff45d89ef48f98873d6409e4f85e
jrj/project/business/BasicCode/BrandInforList.cpp
@@ -1,20 +1,31 @@
use "system.vl"
use "win.vl"
use "list.vl"
unit vbusiness.entity
[
   BrandInforList is extend list;
   about BrandInforList
   [
#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"
      
      method:
      [
         int ViewUpdate(param pr,string updateItem,xaserverarg__  arg)
using xml = KXMLDOMDocument;
class __declspec(dllexport) BrandInforList : public xwin
         {
            if(   updateItem=="del"){
               int DelRow = this.dw_list.GetRow();
               this.dw_list.DeleteRow(DelRow);
public:
   BrandInforList(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {}
public:
   static BrandInforList* CreateInstance(void* implPtr, void* hWnd)
   {
      BrandInforList* pWin = new BrandInforList(implPtr, (HWND)hWnd);
      return pWin;
   }
   int ViewUpdate(param pr, xstring updateItem, xaserverarg  arg)
   {
      if (updateItem == L"del") {
         int DelRow = dw_list.GetRow();
         dw_list.DeleteRow(DelRow);
            }
            return 1;
         }      
@@ -24,6 +35,4 @@
            return -1;
         }
               
      ]
   ]
]
};