From f00d6dd994895e2a9c4955976f8166a628503b06 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期四, 05 九月 2024 15:50:58 +0800 Subject: [PATCH] update --- jrj/project/business/SO/Apply.SOItem.cpp | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/jrj/project/business/SO/Apply.SOItem.cpp b/jrj/project/business/SO/Apply.SOItem.cpp index f813db0..925ca2d 100644 --- a/jrj/project/business/SO/Apply.SOItem.cpp +++ b/jrj/project/business/SO/Apply.SOItem.cpp @@ -58,12 +58,12 @@ return 1; } - xstring GetEntityName(int pr) + xstring GetEntityName(LPARAM pr) { return L"SaleItem3"; } - xstring GetEntityID(int pr) + xstring GetEntityID(LPARAM pr) { int row = dw_list.GetRow(); xstring id = dw_list.GetGuid(row); @@ -119,7 +119,7 @@ { xaserverarg arg = new xaserverarg; arg.setNativePointer(arg.CreateInstance()); - xml x = new xml; + xml x ; x.setNativePointer(x.CreateInstance()); arg.AddArg(L"FlowID",L"1A83D53D-DD12-4FDB-A274-FA8D5982AB53"); @@ -243,8 +243,8 @@ int OnRetrieve() { xml x; - - xaserverarg arg; + xaserverarg arg=GetArg(); + arg.AddArg(L"id", arg.GetArgString(L"EntityNo")); if (getUrl(L"/sale/data/SaleOrder/maint/item", arg.GetString(), x) != 1) { @@ -264,6 +264,8 @@ int onload() { + + dw_list = GetControl(L"dw_list"); dw_list.openUrl(L"/sale/view/SaleOrder/template/item"); dw_list.SetReadOnly(true); @@ -279,6 +281,8 @@ dw_list.SetColumnState(L"Submitter", false); dw_list.SetColumnState(L"ScheduleShipDate", false); OnAttachEvent(); + + SetArg(); OnRetrieve(); return 1; -- Gitblit v1.9.3