From fa2de0461cb79df0ba5e736b4aea8bff1056688a Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期五, 13 九月 2024 10:07:40 +0800 Subject: [PATCH] update --- jrj/project/start.vframe.vbusiness.cpp | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/jrj/project/start.vframe.vbusiness.cpp b/jrj/project/start.vframe.vbusiness.cpp index f43f0a7..3f2c1eb 100644 --- a/jrj/project/start.vframe.vbusiness.cpp +++ b/jrj/project/start.vframe.vbusiness.cpp @@ -53,8 +53,8 @@ int nRow = dw_list.GetRow(); if (nRow < 0) return L""; KXMLDOMElement ele = dw_list.GetRowElement(nRow); - xstring x = ele.getAttribute(L"category"); - return x; + if (!ele) return L""; + return ele.getAttribute(L"category"); } xstring GetEntityID(LPARAM pr) @@ -123,8 +123,7 @@ { //return frame::GetReason(pr); arg.AddArg(L"EntityID", GetEntityID(2)); - arg.AddArg(L"_ModuelPage", L"dev:xpage[workflow.chkdlg.vx]"); - OpenWindow(L"dev:xpage[vindexforold.vx]", arg); + OpenWindow(L"dev:xpage[workflow.chkdlg.vx]", arg); //openUrl(L"/sale/view/workflow.view/xpage/chkdlg", arg); xstring comdid2 = arg.GetArgString(L"comdid"); if (comdid2 == L"xmOK") @@ -957,7 +956,7 @@ { //alert(L"xxxxxxxxxxx"); //SetAgent(); - AttachEvent(L"WM_SETFOCUS", (FEvent)&startvframevbusiness::OnSetFocus); + //AttachEvent(L"WM_SETFOCUS", (FEvent)&startvframevbusiness::OnSetFocus); //绑定工具条点击事件 AttachEvent(L"WM_XCOMMAND", (FEvent)&startvframevbusiness::OnXCommand); //AttachEvent(L"WM_TIMER",OnTimer); -- Gitblit v1.9.3