xj qian
2024-07-16 7a91c3a1ed37b0332d4ff0ebeae60bd6da3665c0
jrj/project/business/BasicCode/TestingCompanyList.cpp
对比新文件
@@ -0,0 +1,42 @@
#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) TestingCompanyList : public xwin
{
public:
   xdwgrid  dw_list;
public:
   TestingCompanyList(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {}
public:
   static TestingCompanyList* CreateInstance(void* implPtr, void* hWnd)
   {
      TestingCompanyList* pWin = new TestingCompanyList(implPtr, (HWND)hWnd);
      return pWin;
   }
   int onload()
   {
      list::onload();
      return -1;
   }
   int ViewUpdate(param pr, xstring updateItem, xaserverarg   arg)
   {
      if (updateItem == L"del")
      {
         int DelRow = dw_list.GetRow();
         dw_list.DeleteRow(DelRow);
      }
      return 1;
   }
};