From 1740c5de8324b8214829429c138e619df1fb9d02 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期四, 18 七月 2024 13:17:14 +0800
Subject: [PATCH] update basecode
---
jrj/project/business/BasicCode/ExpressMaint.cpp | 32 ++++++++++++++------------------
1 files changed, 14 insertions(+), 18 deletions(-)
diff --git a/jrj/project/business/BasicCode/ExpressMaint.cpp b/jrj/project/business/BasicCode/ExpressMaint.cpp
index a58ca65..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;
@@ -44,13 +40,13 @@
xstring GetGuid() {
- return TApp::GetGuid();
+ return publiccode::GetGuid();
}
int OnClear() {
if (m_EntityID == L"") {
- trace(1);
- m_userid = TApp::GetUserInfo().id;
- m_username = TApp::GetUserInfo().name;
+ //trace(1);
+ m_userid = publiccode::GetUser().id;
+ m_username = publiccode::GetUser().name;
dw_base = new xdwtable;
dw_base.setNativePointer(GetControl(L"dw_base"));
dw_base.SetItemString(1, L"PartyID", GetGuid());
@@ -64,7 +60,7 @@
dw_base.SetItemString(1, L"Type", L"8");
dw_base.SetItemString(1, L"EnterName", m_userid);
dw_base.SetItemDisplayString(1, L"EnterName", m_username);
- dw_base.SetItemString(1, L"CreateDate", TApp::GetCurDate());
+ dw_base.SetItemString(1, L"CreateDate", publiccode::GetCurrentDate());
dw_base.SetItemString(1, L"PBAStatus", L"Y");
@@ -340,7 +336,7 @@
maint::onload();
OnClear();
-
+ return 1;
}
};
\ No newline at end of file
--
Gitblit v1.9.3