From 3a3137b405af9728f9a7e4d7ee725498d0e8ecb7 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期四, 18 七月 2024 09:25:10 +0800 Subject: [PATCH] system module --- jrj/project/business/BasicCode/ForwarderMaint.cpp | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/jrj/project/business/BasicCode/ForwarderMaint.cpp b/jrj/project/business/BasicCode/ForwarderMaint.cpp index cf41bc5..53e1d61 100644 --- a/jrj/project/business/BasicCode/ForwarderMaint.cpp +++ b/jrj/project/business/BasicCode/ForwarderMaint.cpp @@ -3,12 +3,14 @@ #include <xcontrol/xdwgrid.hpp> #include <wobject/xdouble.hpp> #include <xcontrol/xlayersheet.hpp> +#include <xcontrol/xcell.hpp> #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" +#include "vbusiness/vframe/maint.vframe.vbusiness.hpp" #include "viewobject/view.base.hpp" using xml = KXMLDOMDocument; -class __declspec(dllexport) ForwarderMaint : public xframe +class __declspec(dllexport) ForwarderMaint : public maint { public: KXMLDOMDocument m_configDoc; @@ -20,19 +22,14 @@ xcell dw_cell; xstring m_EntityID = L""; public: - ForwarderMaint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} + ForwarderMaint(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {} public: static ForwarderMaint* CreateInstance(void* implPtr, void* hWnd) { ForwarderMaint* pWin = new ForwarderMaint(implPtr, (HWND)hWnd); return pWin; } - int alert(xstring str) - { - //win::MessageBox(GetHWND(),str,L"提示22:",0); - TApp::alert(this, str); - return 0; - } + int setCellReadOnly() { dw_base = new xdwtable; @@ -49,7 +46,6 @@ } int OnClear() { if (m_EntityID == L"") { - trace(1); m_userid = publiccode::GetUser().id; m_username = publiccode::GetUser().name; dw_base = new xdwtable; @@ -300,8 +296,8 @@ //主联系人 xstring spGuid; KXMLDOMElement e; - var list = x.selectNodes(L"//item"); - int nlen = list.length; + auto list = x.selectNodes(L"//item"); + int nlen = list.length(); int i; for (i = 0; i < nlen; i++) { @@ -462,6 +458,7 @@ maint::onload(); OnClear(); + return 1; } }; \ No newline at end of file -- Gitblit v1.9.3