From 4a28ba8373899bbd0ef0f1acf8bb9749e2b8963d Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期五, 10 一月 2025 16:12:58 +0800 Subject: [PATCH] update --- jrj/project/business/BasicCode/ForwarderList.cpp | 1 jrj/project/business/BasicCode/CartermList.cpp | 1 jrj/project/business/BasicCode/ShipcompanyMaint.cpp | 8 +++ jrj/project/business/BasicCode/ExpressMaint.cpp | 8 +++ jrj/project/business/BasicCode/CustomerMarketList.cpp | 7 +++ jrj/project/business/BasicCode/ShipcompanyList.cpp | 6 +++ jrj/project/business/BasicCode/BrandInforList.cpp | 7 +++ jrj/project/business/BasicCode/BrandInforMaint.cpp | 6 +++ jrj/project/business/BasicCode/QuickCode_Tree.cpp | 3 + jrj/project/business/BasicCode/ForwarderMaint.cpp | 7 +++ jrj/project/business/BasicCode/ExpressList.cpp | 6 +++ jrj/project/business/BasicCode/QuickCode.cpp | 5 ++ jrj/project/business/BasicCode/CustomerMarketMaint.cpp | 6 +++ jrj/project/business/BasicCode/PaymentTerm.list.cpp | 2 jrj/project/business/BasicCode/TestingCompanyList.cpp | 1 15 files changed, 68 insertions(+), 6 deletions(-) diff --git a/jrj/project/business/BasicCode/BrandInforList.cpp b/jrj/project/business/BasicCode/BrandInforList.cpp index d444b26..1ca38a2 100644 --- a/jrj/project/business/BasicCode/BrandInforList.cpp +++ b/jrj/project/business/BasicCode/BrandInforList.cpp @@ -31,9 +31,14 @@ return 1; } int onload() - { + { + SetAgent(); listwin::onload(); return -1; } + int onloaded() + { + return listwin::onloaded(); + } }; \ No newline at end of file diff --git a/jrj/project/business/BasicCode/BrandInforMaint.cpp b/jrj/project/business/BasicCode/BrandInforMaint.cpp index 7c6eb39..4dbc18d 100644 --- a/jrj/project/business/BasicCode/BrandInforMaint.cpp +++ b/jrj/project/business/BasicCode/BrandInforMaint.cpp @@ -48,6 +48,7 @@ } int onload() { + SetArg(); maint::onload(); dw_base = GetControl(L"dw_base"); @@ -93,4 +94,9 @@ } }*/ } + + int onloaded() + { + return maint::onloaded(); + } }; \ No newline at end of file diff --git a/jrj/project/business/BasicCode/CartermList.cpp b/jrj/project/business/BasicCode/CartermList.cpp index fb3281c..c59a607 100644 --- a/jrj/project/business/BasicCode/CartermList.cpp +++ b/jrj/project/business/BasicCode/CartermList.cpp @@ -162,6 +162,7 @@ int onload() { + SetAgent(); OnAttachEvent(); listwin::onload(); dw_list.SetReadOnly(false); diff --git a/jrj/project/business/BasicCode/CustomerMarketList.cpp b/jrj/project/business/BasicCode/CustomerMarketList.cpp index 37d391c..f0ebd9d 100644 --- a/jrj/project/business/BasicCode/CustomerMarketList.cpp +++ b/jrj/project/business/BasicCode/CustomerMarketList.cpp @@ -31,8 +31,15 @@ } int onload() { + SetAgent(); listwin::onload(); + return -1; } + int onloaded() + { + return listwin::onloaded(); + } + }; \ No newline at end of file diff --git a/jrj/project/business/BasicCode/CustomerMarketMaint.cpp b/jrj/project/business/BasicCode/CustomerMarketMaint.cpp index 5a078b0..94a8f74 100644 --- a/jrj/project/business/BasicCode/CustomerMarketMaint.cpp +++ b/jrj/project/business/BasicCode/CustomerMarketMaint.cpp @@ -49,6 +49,7 @@ } int onload() { + SetArg(); maint::onload(); dw_base = GetControl(L"dw_base"); if (!maint::m_EntityID) @@ -86,4 +87,9 @@ } } } + + int onloaded() + { + return maint::onloaded(); + } }; \ No newline at end of file diff --git a/jrj/project/business/BasicCode/ExpressList.cpp b/jrj/project/business/BasicCode/ExpressList.cpp index f525706..3c4eae4 100644 --- a/jrj/project/business/BasicCode/ExpressList.cpp +++ b/jrj/project/business/BasicCode/ExpressList.cpp @@ -23,9 +23,15 @@ int onload() { listwin::onload(); + SetAgent(); return -1; } + int onloaded() + { + return listwin::onloaded(); + } + int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) { diff --git a/jrj/project/business/BasicCode/ExpressMaint.cpp b/jrj/project/business/BasicCode/ExpressMaint.cpp index 3e2dbd6..941bf54 100644 --- a/jrj/project/business/BasicCode/ExpressMaint.cpp +++ b/jrj/project/business/BasicCode/ExpressMaint.cpp @@ -3,11 +3,11 @@ #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" -#include "xcontrol/xcell.hpp" using xml = KXMLDOMDocument; class __declspec(dllexport) ExpressMaint : public maint @@ -316,6 +316,7 @@ int onload() { + SetArg(); dw_base = GetControl(L"dw_base"); OnAttachEvent(); @@ -326,4 +327,9 @@ return 1; } + int onloaded() + { + return maint::onloaded(); + } + }; \ No newline at end of file diff --git a/jrj/project/business/BasicCode/ForwarderList.cpp b/jrj/project/business/BasicCode/ForwarderList.cpp index 1f259df..abe97b0 100644 --- a/jrj/project/business/BasicCode/ForwarderList.cpp +++ b/jrj/project/business/BasicCode/ForwarderList.cpp @@ -114,6 +114,7 @@ int onload() { + SetAgent(); listwin::m_QueryTxt = L""; m_pageIndex = 1; m_pageNumber = 30; diff --git a/jrj/project/business/BasicCode/ForwarderMaint.cpp b/jrj/project/business/BasicCode/ForwarderMaint.cpp index 87c47c0..df7b8fc 100644 --- a/jrj/project/business/BasicCode/ForwarderMaint.cpp +++ b/jrj/project/business/BasicCode/ForwarderMaint.cpp @@ -433,6 +433,8 @@ } int onload() { + + SetArg(); dw_base = GetControl(L"dw_base"); OnAttachEvent(); @@ -444,4 +446,9 @@ return 1; } + int onloaded() + { + return maint::onloaded(); + } + }; \ No newline at end of file diff --git a/jrj/project/business/BasicCode/PaymentTerm.list.cpp b/jrj/project/business/BasicCode/PaymentTerm.list.cpp index df4c011..2350c60 100644 --- a/jrj/project/business/BasicCode/PaymentTerm.list.cpp +++ b/jrj/project/business/BasicCode/PaymentTerm.list.cpp @@ -127,7 +127,7 @@ } int onload() { - + SetAgent(); listwin::onload(); OnAttachEvent(); return 1; diff --git a/jrj/project/business/BasicCode/QuickCode.cpp b/jrj/project/business/BasicCode/QuickCode.cpp index ac65947..1f8a5e1 100644 --- a/jrj/project/business/BasicCode/QuickCode.cpp +++ b/jrj/project/business/BasicCode/QuickCode.cpp @@ -42,7 +42,8 @@ else { KXMLDOMElement xframeElement = GetElement(); - KXMLDOMElement agent = xframeElement.selectSingleNode(L"agent/" + xfNodeAgentArea + L"[1]/*"); + //alert(m_configDoc.xml()); + KXMLDOMElement agent = m_configDoc.selectSingleNode(L"Config/" + xfNodeAgentArea + L"[1]/*"); if (agent) { xstring s = agent.xml(); @@ -439,6 +440,7 @@ } int loaded() { + getURLParam(); KXMLDOMDocument ee = m_configDoc; xstring id = m_id; @@ -584,6 +586,7 @@ } int onload() { + SetArg(); m_config = L"QuickCode.config"; m_agent = L""; diff --git a/jrj/project/business/BasicCode/QuickCode_Tree.cpp b/jrj/project/business/BasicCode/QuickCode_Tree.cpp index c893a99..ff264df 100644 --- a/jrj/project/business/BasicCode/QuickCode_Tree.cpp +++ b/jrj/project/business/BasicCode/QuickCode_Tree.cpp @@ -44,7 +44,8 @@ else { KXMLDOMElement xframeElement = GetElement(); - KXMLDOMElement agent = xframeElement.selectSingleNode(L"agent/" + xfNodeAgentArea + L"[1]/*"); + //KXMLDOMElement agent = xframeElement.selectSingleNode(L"agent/" + xfNodeAgentArea + L"[1]/*"); + KXMLDOMElement agent = m_configDoc.selectSingleNode(L"Config/" + xfNodeAgentArea + L"[1]/*"); if (agent) { xstring s = agent.xml(); diff --git a/jrj/project/business/BasicCode/ShipcompanyList.cpp b/jrj/project/business/BasicCode/ShipcompanyList.cpp index 84edb6b..a663127 100644 --- a/jrj/project/business/BasicCode/ShipcompanyList.cpp +++ b/jrj/project/business/BasicCode/ShipcompanyList.cpp @@ -24,9 +24,15 @@ int onload() { listwin::onload(); + SetAgent(); return -1; } + int onloaded() + { + return listwin::onloaded(); + } + int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) { if (updateItem == L"del") diff --git a/jrj/project/business/BasicCode/ShipcompanyMaint.cpp b/jrj/project/business/BasicCode/ShipcompanyMaint.cpp index 8763d38..719c0a4 100644 --- a/jrj/project/business/BasicCode/ShipcompanyMaint.cpp +++ b/jrj/project/business/BasicCode/ShipcompanyMaint.cpp @@ -306,7 +306,7 @@ int onload() { - + SetArg(); OnAttachEvent(); //if(!m_configDoc) return -1; @@ -315,4 +315,10 @@ OnClear(); return 1; } + + int onloaded() + { + return maint::onloaded(); + } + }; \ No newline at end of file diff --git a/jrj/project/business/BasicCode/TestingCompanyList.cpp b/jrj/project/business/BasicCode/TestingCompanyList.cpp index 7b677ea..7329c3e 100644 --- a/jrj/project/business/BasicCode/TestingCompanyList.cpp +++ b/jrj/project/business/BasicCode/TestingCompanyList.cpp @@ -24,6 +24,7 @@ int onload() { listwin::onload(); + SetAgent(); return -1; } -- Gitblit v1.9.3