| | |
| | | #include "viewobject/view.base.hpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) FCL : public xframe |
| | | class __declspec(dllexport) FCL : public listwin |
| | | { |
| | | public: |
| | | xcombobox ddlb_1; |
| | |
| | | xstring m_config; |
| | | xstring m_spec; |
| | | public: |
| | | FCL(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} |
| | | FCL(void* implPtr, HWND hWnd) :listwin(implPtr, hWnd) {} |
| | | public: |
| | | static FCL* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | |
| | | } |
| | | int SetCellEdit(int row, xstring name, xstring value, xstring display) |
| | | { |
| | | dw_base.SetItemString(row, name, value); |
| | | dw_base.SetItemString(row, name.c_str(), value); |
| | | dw_base.Redraw(); |
| | | if (display != L"") |
| | | { |
| | | dw_base.SetItemDisplayString(row, name, display); |
| | | dw_base.SetItemDisplayString(row, name.c_str(), display); |
| | | } |
| | | dw_base.AcceptText(); |
| | | dw_base.ResetUpdateStatus(); |
| | |
| | | dw_base.AcceptText(); |
| | | SetPriceBaseEmpty(); |
| | | KXMLDOMElement e = dw_list.GetRowElement(row); |
| | | var list = e.selectNodes(L"*"); |
| | | auto list = e.selectNodes(L"*"); |
| | | if (list) |
| | | { |
| | | int s = list.length; |
| | | int s = list.length(); |
| | | int i; |
| | | for (i = 0; i < s; i++) |
| | | { |
| | |
| | | |
| | | dw_list.DwUpdateAllToEx(x); |
| | | trace(x.xml()); |
| | | return 1; |
| | | } |
| | | int OnDeleteRow() |
| | | { |
| | | int row = dw_list.GetRow(); |
| | | if (row<1 || row>dw_list.GetRowCount()) |
| | | { |
| | | return -1; |
| | | } |
| | | dw_list.DeleteRow(row); |
| | | |
| | | } |
| | | int OnAddrow() |
| | | { |
| | | int row = dw_list.InsertRow(0); |
| | |
| | | SetPriceBaseEmpty(); |
| | | return 1; |
| | | } |
| | | |
| | | int OnDeleteRow() |
| | | { |
| | | int row = dw_list.GetRow(); |
| | |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | int OnCmdDispatch(xstring comdid) |
| | | { |
| | | if (comdid.find(L"add", 0) >= 0) |