From da2dab05bfc057f9a31599710cf52fc523092055 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期三, 26 六月 2024 15:21:37 +0800 Subject: [PATCH] update arg --- jrj/project/business/Customer3.maint.cpp | 65 +++++++++++++++++++++----------- 1 files changed, 43 insertions(+), 22 deletions(-) diff --git a/jrj/project/business/Customer3.maint.cpp b/jrj/project/business/Customer3.maint.cpp index 6a7b2c2..b18b5c3 100644 --- a/jrj/project/business/Customer3.maint.cpp +++ b/jrj/project/business/Customer3.maint.cpp @@ -970,18 +970,13 @@ if(value == L"人员") { - xaserverarg& arg2 =* new xaserverarg; - + xaserverarg arg = GetArg(); + OpenWindow(L"dev:xpage[UserGroupPersonSelect.vx]", arg); - xaserverarg& parg2 = *(xaserverarg*)GetParam(); - - OpenWindow(L"dev:xpage[UserGroupPersonSelect.vx]", (LPARAM)&arg2); - - if(arg2.GetArgString(L"comdid")==L"xmOk") + if(arg.GetArgString(L"comdid")==L"xmOk") { - xstring data = arg2.GetArgString(L"data"); + xstring data = arg.GetArgString(L"data"); xml x2; - x2.loadXML(data); KXMLDOMNodeList nodes = x2.selectNodes(L"/root/item"); trace(x2.xml()); @@ -1020,7 +1015,7 @@ xstring value = hdr->data; int row = hdr->row; //alert(value); - xaserverarg& arg=*new xaserverarg; + xaserverarg arg; if(value == L"附件上传") @@ -1033,20 +1028,18 @@ arg.AddArg(L"entityid",dw.GetGuid(dw.GetRow())); - OpenWindow(L"dev:xpage[maint.Document.Customer.v3.vx]",(LPARAM)&arg); + OpenWindow(L"dev:xpage[maint.Document.Customer.v3.vx]",arg); return 1; } if(value == L"人员") { - xaserverarg& arg2 = *new xaserverarg; + xaserverarg arg; + OpenWindow(L"dev:xpage[UserGroupPersonSelectEx.vx]", arg); - xaserverarg parg2 = *(xaserverarg*)GetParam(); - OpenWindow(L"dev:xpage[UserGroupPersonSelectEx.vx]", (LPARAM)&arg2); - - if(arg2.GetArgString(L"comdid")==L"xmOk") + if(arg.GetArgString(L"comdid")==L"xmOk") { - xstring data = arg2.GetArgString(L"data"); + xstring data = arg.GetArgString(L"data"); xml x2; x2.loadXML(data); @@ -1087,6 +1080,32 @@ return 1; } + int CustomerBase(xstring ID) + { + xml x; + xaserverarg arg; + arg.setNativePointer(arg.CreateInstance()); + arg.AddArg(L"EntityID", ID); + + if (getUrl(L"/sale/data/CustomerV3/entity/maint", arg.GetString(), x) != 1) + { + trace(x.text()); + return -1; + } + else + { + dw_detail.Retrieve(x); + dw_detail.Redraw(); + dw_Meetings.Retrieve(x); + dw_Meetings.Redraw(); + dw_MeetingsEx.Retrieve(x); + dw_MeetingsEx.Redraw(); + dw_visit.Retrieve(x); + dw_visit.Redraw(); + } + return 1; + } + int onload() { maint::onload(); @@ -1189,11 +1208,14 @@ } - if (GetParam()) + + if (GetWinParam()) { - int iArgs = GetParam(); - xaserverarg& args = *new xaserverarg; - + xaserverarg args = GetArg(); + if (args.GetArgString(L"PartyID") != L"") + { + CustomerBase(m_EntityID); + } //alert(args.GetString()); xstring CustomerGood = args.GetArgString(L"CustomerGood"); ApplyStatus= args.GetArgString(L"CustomerGood"); @@ -1214,7 +1236,6 @@ xsheet.SelectSheet(nIndex); //xsheet.SetSheetState(0, 0); } - ApplyStatus=dw_detail.GetItemString(1,L"ApplyStatus"); -- Gitblit v1.9.3