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/TestingCompanyMaint.cpp | 29 ++++++++++++++--------------- 1 files changed, 14 insertions(+), 15 deletions(-) diff --git a/jrj/project/business/BasicCode/TestingCompanyMaint.cpp b/jrj/project/business/BasicCode/TestingCompanyMaint.cpp index 596dc4b..7beecd4 100644 --- a/jrj/project/business/BasicCode/TestingCompanyMaint.cpp +++ b/jrj/project/business/BasicCode/TestingCompanyMaint.cpp @@ -3,12 +3,14 @@ #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) TestingCompanyMaint : public xframe +class __declspec(dllexport) TestingCompanyMaint : public maint { public: KXMLDOMDocument m_configDoc; @@ -17,20 +19,16 @@ xstring ContactID; xdwtable dw_base; xcell dw_cell; + xstring m_EntityID = L""; public: - TestingCompanyMaint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} + TestingCompanyMaint(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {} public: static TestingCompanyMaint* CreateInstance(void* implPtr, void* hWnd) { TestingCompanyMaint* pWin = new TestingCompanyMaint(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; @@ -46,13 +44,14 @@ SetAgent(L"maint"); return 1; } - xstring GetGuid() { - return TApp::GetGuid(); + xstring GetGuid() + { + return publiccode::GetGuid(); } int OnClear() { if (m_EntityID == L"") { - m_userid = TApp::GetUserInfo().id; - m_username = TApp::GetUserInfo().name; + 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()); @@ -66,7 +65,7 @@ dw_base.SetItemString(1, L"PrimaryFlag", L"Y"); 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()); } else { @@ -286,7 +285,7 @@ args.AddArg(L"CSpec", cspec); args.AddArg(L"SpecRule", SpecRule); - xml x = new xml; + xml x; getUrl(L"/sale/data/LogisticsCode/pref/forwarderno/check", args.GetString(), x); if (x.selectSingleNode(L"root/spec")) @@ -315,6 +314,6 @@ maint::onload(); OnClear(); - + return 1; } }; \ No newline at end of file -- Gitblit v1.9.3