LiFan
10 天以前 63eebabbfee1bc84850b36967ecac5116a28b73f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#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) ShipcompanyList : public listwin
{
public:
 
    xdwgrid  dw_list;
public:
    ShipcompanyList(void* implPtr, HWND hWnd) :listwin(implPtr, hWnd) {}
public:
    static ShipcompanyList* CreateInstance(void* implPtr, void* hWnd)
    {
        ShipcompanyList* pWin = new ShipcompanyList(implPtr, (HWND)hWnd);
        return pWin;
    }
    int onload()
    {
        listwin::onload();
        SetAgent();
        return -1;
    }
 
    int onloaded()
    {
        return listwin::onloaded();
    }
 
    int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg   arg)
    {
        if (updateItem == L"del")
        {
            int DelRow = dw_list.GetRow();
            dw_list.DeleteRow(DelRow);
 
        }
 
        return 1;
    }
};