From 3ae6fded83ac8ef5cec50b402ec046268329027f Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期三, 17 七月 2024 20:56:30 +0800
Subject: [PATCH] update code
---
jrj/project/business/BasicCode/BrandInforMaint.cpp | 25 +++++++++++--------------
1 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/jrj/project/business/BasicCode/BrandInforMaint.cpp b/jrj/project/business/BasicCode/BrandInforMaint.cpp
index 148525a..85bd9f6 100644
--- a/jrj/project/business/BasicCode/BrandInforMaint.cpp
+++ b/jrj/project/business/BasicCode/BrandInforMaint.cpp
@@ -3,12 +3,13 @@
#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) BrandInforMaint : public xframe
+class __declspec(dllexport) BrandInforMaint : public maint
{
public:
@@ -19,20 +20,15 @@
xdwtable dw_base;
xcell dw_cell;
public:
- BrandInforMaint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {}
+ BrandInforMaint(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {}
public:
static BrandInforMaint* CreateInstance(void* implPtr, void* hWnd)
{
BrandInforMaint* pWin = new BrandInforMaint(implPtr, (HWND)hWnd);
return pWin;
}
- int alert(xstring str)
- {
- //win::MessageBox(GetHWND(),str,L"提示22:",0);
- TApp::alert(this, str);
- return 0;
- }
- int ViewUpdate(param pr, xstring updateItem, xaserverarg arg)
+
+ int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg)
{
if (updateItem == L"update")
{
@@ -41,7 +37,7 @@
return 1;
}
}
- xstring GetEntityData(param pr)
+ xstring GetEntityData(LPARAM pr)
{
xml x;
@@ -61,13 +57,14 @@
dw_base.SetScrollState(false);
+ return 1;
/*if (!maint::m_EntityID)
{
- //xstring suserid = TApp::GetUserInfo().id;
+ //xstring suserid = publiccode::GetUser().id;
xstring suserid = xaserver::GetUserId();
- xstring susername = TApp::GetUserInfo().name;
- xstring sdate = TApp::GetCurDate();
+ xstring susername = publiccode::GetUser().name;
+ xstring sdate = publiccode::GetCurrentDate();
dw_base.SetItemString(dw_base.GetRow(),L"CreatorID",suserid);//Party
dw_base.SetItemDisplayString(dw_base.GetRow(),L"CreatorID",susername);
dw_base.SetItemString(dw_base.GetRow(),L"CreateDate",sdate);
--
Gitblit v1.9.3