From f22bb7edb66856f3d1b6e44d6f6b170848a48dd7 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期二, 16 七月 2024 08:37:26 +0800 Subject: [PATCH] updte --- jrj/project/business/Company/HrPosition.hpp | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/jrj/project/business/Company/HrPosition.cpp b/jrj/project/business/Company/HrPosition.hpp similarity index 97% rename from jrj/project/business/Company/HrPosition.cpp rename to jrj/project/business/Company/HrPosition.hpp index de946c5..88e854d 100644 --- a/jrj/project/business/Company/HrPosition.cpp +++ b/jrj/project/business/Company/HrPosition.hpp @@ -1,3 +1,5 @@ +#pragma once + #include <wobject/xstring.hpp> #include <xcontrol/xtreeview.hpp> #include <xcontrol/xdwgrid.hpp> @@ -131,7 +133,7 @@ return 0; } //openUrl(L"组织架构.vface/xpage/Hr/HrPositionAdd", this); - OpenWindow(L"dev:xpage[HrPositionAdd.vx]", this); + OpenWindow(L"dev:xpage[HrPositionAdd.vx]", (LPARAM)this); return 1; } @@ -165,7 +167,7 @@ trace(x.xml()); return 0; } - var doc = x; + auto doc = x; xstring cnt = doc.text(); int ll_cnt = cnt.toInt(); if (ll_cnt == 0) //判断HrEmploee里面是否存在该岗位 @@ -256,8 +258,7 @@ int onload() { - tv_org = new treeview; - tv_org.setNativePointer(GetControl(L"tv_org")); + tv_org = GetControl(L"tv_org"); dw_list = new xdwgrid; dw_list.setNativePointer(GetControl(L"dw_list")); dw_list.openUrl(L"组织架构.vface/template/HrPosition/list"); -- Gitblit v1.9.3