From 54d5a94a0c3efd80f803482aaa1db91e5e9f53dc Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期三, 17 七月 2024 16:04:16 +0800 Subject: [PATCH] hremployee --- jrj/project/business/Company/HrEmployee.hpp | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/jrj/project/business/Company/HrEmployee.hpp b/jrj/project/business/Company/HrEmployee.hpp index 40e74f4..a1d58b1 100644 --- a/jrj/project/business/Company/HrEmployee.hpp +++ b/jrj/project/business/Company/HrEmployee.hpp @@ -110,9 +110,9 @@ int OnSubTree(xstring id, HTREEITEM parentitem) { //int wid = tv_org.GetId(); - if (!tv_org.GetChildItem(parentitem)) return 1; + if (tv_org.GetChildItem(parentitem)) return 1; + xml x; - xaserverarg arg; arg.AddArg(L"sguid", id); @@ -160,12 +160,12 @@ //int wid = tv_org.GetId(); xml x; - x.loadXML(L"<item><id>" + id + L"</id><no/><name>宁波家尔佳</name><typ>Org</typ></item>"); + x.loadXML(L"<item><id>" + id + L"</id><no/><name>任职管理</name><typ>Org</typ></item>"); //KXMLDOMDocument root = x; //KXMLDOMElement RDoc = x.documentElement; //KXMLDOMElement ele = RDoc.selectSingleNode(L"//Org"); KXMLDOMElement ele = x.selectSingleNode(L"//item"); - HTREEITEM hItem = tv_org.InsertChildItemEx(0, L"宁波家尔佳", ele, 15, 4); + HTREEITEM hItem = tv_org.InsertChildItemEx(0, L"任职管理", ele, 15, 4); tv_org.SetItemChild1(hItem, 1); return 1; @@ -298,7 +298,6 @@ xml x; xaserverarg args; - args.setNativePointer(args.CreateInstance()); args.AddArg(L"guid", empid); //if(xaserver::ExecXAction(GetServerUrl(),L"[MSSqlHrEmployeeDel.xq]",args.GetString(),x) !=1) if (xurl::post(L"OrganizationStruct/delete.Employee", args.GetString(), x) != 1) @@ -372,7 +371,6 @@ int OnInitial() { - m_agentNode = new xnode; SetAgent(); OnAttachEvent(); @@ -382,8 +380,7 @@ int onload() { tv_org = GetControl(L"tv_org"); - dw_emp = new xdwgrid; - dw_emp.setNativePointer(GetControl(L"dw_emp")); + dw_emp = GetControl(L"dw_emp"); dw_emp.openUrl(L"组织架构.vface/template/HrEmployee/list"); //dw_emp.SetReadOnly(true); //dw_emp.SetSelectionMode(1); -- Gitblit v1.9.3