From a4d2315ee4ca3f6177b4fb2526bed2feff3d89be Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期三, 22 十月 2025 16:52:58 +0800
Subject: [PATCH] update
---
jrj/project/business/Company/HrJob.cpp | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/jrj/project/business/Company/HrJob.cpp b/jrj/project/business/Company/HrJob.cpp
index bdb4723..ba496db 100644
--- a/jrj/project/business/Company/HrJob.cpp
+++ b/jrj/project/business/Company/HrJob.cpp
@@ -59,9 +59,7 @@
{
xstring query = L"[MSSqlHrJob.xq]";
xml x;
-
xaserverarg arg;
-
arg.AddArg(L"type", m_type);
//if (xaserver::ExecXQuery(GetServerUrl(),query,arg.GetString(),x)!=1)
if (xurl::post(L"OrganizationStruct/list.Job", arg.GetString(), x) != 1)
@@ -81,12 +79,12 @@
int OnTreeSelChanged(TEvent* evt, int p)
{
NMTREEVIEW& nmtv = *(NMTREEVIEW*)evt->notify.pnmh;
- HTREEITEM hItem = nmtv.itemNew.hItem;
+ //HTREEITEM hItem = nmtv.itemNew.hItem;
//int wid = tv_1.GetId();
HTREEITEM hItem = tv_1.GetSelectedItem();
HTREEITEM rootItem = tv_1.GetRootItem();
- if (hItem <= 0 || hItem == rootItem)
+ if (!hItem || hItem == rootItem)
{
m_type = L"all";
}
@@ -108,6 +106,9 @@
KXMLDOMElement ele = x.selectSingleNode(L"Type");
HTREEITEM hItem = tv_1.InsertChildItemEx(0, L"工种类型", ele, 15, 4);
+ KXMLDOMElement e1 = tv_1.GetItemData(hItem);
+ string str = e1.xml();
+
if (xurl::post(L"/sale/data/OrganizationStruct/type.Job", L"", x) != 1)
{
trace(x.xml());
--
Gitblit v1.9.3