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/ExpressMaint.cpp | 20 +++++++------------- 1 files changed, 7 insertions(+), 13 deletions(-) diff --git a/jrj/project/business/BasicCode/ExpressMaint.cpp b/jrj/project/business/BasicCode/ExpressMaint.cpp index ade086e..59bc7d6 100644 --- a/jrj/project/business/BasicCode/ExpressMaint.cpp +++ b/jrj/project/business/BasicCode/ExpressMaint.cpp @@ -5,11 +5,12 @@ #include <xcontrol/xlayersheet.hpp> #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" +#include "vbusiness/vframe/maint.vframe.vbusiness.hpp" #include "viewobject/view.base.hpp" #include "xcontrol/xcell.hpp" using xml = KXMLDOMDocument; -class __declspec(dllexport) ExpressMaint : public xframe +class __declspec(dllexport) ExpressMaint : public maint { public: KXMLDOMDocument m_configDoc; @@ -20,25 +21,18 @@ xcell dw_cell; xstring m_EntityID = L""; public: - ExpressMaint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} + ExpressMaint(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {} public: static ExpressMaint* CreateInstance(void* implPtr, void* hWnd) { ExpressMaint* pWin = new ExpressMaint(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; - dw_base.setNativePointer(GetControl(L"dw_base")); - dw_cell = new xcell; - dw_cell.setNativePointer(dw_base.QueryItem(L"ixcell")); + dw_base = GetControl(L"dw_base"); + dw_cell = dw_base.QueryItem(L"ixcell"); xstring strnew = L"<cellprop celltype='' cellformatex='' cellformat='' cellprotectex='' cellprotect='保护' cellvisibleex='' cellvisible='' cellvalid='' cellinitial=''/>"; dw_cell.SetCellProps(2, 2, strnew); return 0; @@ -342,7 +336,7 @@ maint::onload(); OnClear(); - + return 1; } }; \ No newline at end of file -- Gitblit v1.9.3