| | |
| | | #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; |
| | |
| | | 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; |
| | |
| | | |
| | | maint::onload(); |
| | | OnClear(); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | }; |