From fac3cdf472283912df0178ad7a07dd9fbba37707 Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期四, 18 七月 2024 09:56:55 +0800 Subject: [PATCH] update --- jrj/project/business/BasicCode/ExpressMaint.cpp | 22 +++++++++------------- 1 files changed, 9 insertions(+), 13 deletions(-) diff --git a/jrj/project/business/BasicCode/ExpressMaint.cpp b/jrj/project/business/BasicCode/ExpressMaint.cpp index ce669d1..59bc7d6 100644 --- a/jrj/project/business/BasicCode/ExpressMaint.cpp +++ b/jrj/project/business/BasicCode/ExpressMaint.cpp @@ -5,10 +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; @@ -17,26 +19,20 @@ xstring m_username; xstring ContactID; 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; @@ -340,7 +336,7 @@ maint::onload(); OnClear(); - + return 1; } }; \ No newline at end of file -- Gitblit v1.9.3