From 0b8444d0eef50d1ee4e0d0b51e174fa5b447d802 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期三, 17 七月 2024 17:50:35 +0800 Subject: [PATCH] base code --- jrj/project/business/BasicCode/ShipcompanyMaint.cpp | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/jrj/project/business/BasicCode/ShipcompanyMaint.cpp b/jrj/project/business/BasicCode/ShipcompanyMaint.cpp index 5d399ae..bf9d254 100644 --- a/jrj/project/business/BasicCode/ShipcompanyMaint.cpp +++ b/jrj/project/business/BasicCode/ShipcompanyMaint.cpp @@ -16,6 +16,7 @@ xstring m_username; xstring ContactID; xdwtable dw_base; + xstring m_EntityID = L""; xcell dw_cell; public: ShipcompanyMaint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} @@ -46,13 +47,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 +68,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 { -- Gitblit v1.9.3