From 92041f16c37d6be17d8757d59343d3ce4a799292 Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期三, 26 六月 2024 11:47:13 +0800
Subject: [PATCH] 提交代码
---
jrj/project/business/GDN3.list.cpp | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/jrj/project/business/GDN3.list.cpp b/jrj/project/business/GDN3.list.cpp
index 51cf513..6488691 100644
--- a/jrj/project/business/GDN3.list.cpp
+++ b/jrj/project/business/GDN3.list.cpp
@@ -80,10 +80,14 @@
int ExpandFolderItem(HTREEITEM hItem, xstring no)
{
//xml x = ViewObject::RetrieveData(urlTree,L"no",no);
- xml x = xml::Make();
+ /*xml x = xml::Make();
xaserverarg arg = xaserverarg::Make();
arg.AddArg(L"no", no);
xaserver::ExecXQuery(GetServerUrl(), L"[customerfolder.gdn.sql.xq]", arg.GetString(), x);
+ */
+
+
+ KXMLDOMDocument x = ViewObject::RetrieveData(GetServerUrl(), L"[customerfolder.gdn.sql.xq]", L"id", no);
if (!x) return 0;
@@ -212,6 +216,7 @@
arg.AddArg(L"no", no);
arg.AddArg(L"QueryTxt", m_QueryTxt);
arg.AddArg(L"rows", rows);
+
trace(no + L"***" + m_QueryTxt + L"***" + rows);
/*if(DeptName==L"跟单部"){
dw_list.DwRetrieve(GetServerUrl(),L"[list.creator.gdn.sql.xq]",arg.GetString());
@@ -556,9 +561,8 @@
int OnSelectDdlb(TEvent* evt, LPARAM p)
{
changeddlb = 1;
- int wid = ddlb_1.GetId();
int CB_GETCURSEL = 0x0147;
- int nIndex = SendMessageW(wid, CB_GETCURSEL, 0, 0);
+ int nIndex = win32::SendMessage(wid, CB_GETCURSEL, 0, 0);
KXMLDOMElement e = ddlb_1.GetElement();
KXMLDOMElement e2 = e.selectSingleNode(L"item[" + xstring(nIndex + 1) + L"]");
xstring no = e2.selectSingleNode(L"@element").text();
@@ -575,9 +579,8 @@
int OnSelectDataShowDdlb(TEvent* evt, LPARAM p)
{
- int wid = cbx_datashow.GetId();
int CB_GETCURSEL = 0x0147;
- int nIndex = SendMessageW(wid, CB_GETCURSEL, 0, 0);
+ int nIndex = win32::SendMessage(wid, CB_GETCURSEL, 0, 0);
KXMLDOMElement e = cbx_datashow.GetElement();
KXMLDOMElement e2 = e.selectSingleNode(L"item[" + xstring(nIndex + 1) + L"]");
rows = e2.selectSingleNode(L"@rows").text();
@@ -587,7 +590,7 @@
}
- int AttachEvent()
+ int PostOnAttachEvent()
{
AttachEvent(L"tv_folder", L"TVN_SELCHANGED", (FEvent)&GDN3list::OnTreeSelChanged); //树选择
//AttachEvent(L"tv_folder", L"TVN_ITEMEXPANDING",(FEvent)&GDN3list::OnTreeExpanding); //树展开
@@ -679,7 +682,7 @@
//attach my control event
- AttachEvent();
+ PostOnAttachEvent();
readed = false;
--
Gitblit v1.9.3