文件名从 jrj/project/business/Company/HrEmployeex.cpp 修改 |
| | |
| | | #pragma once |
| | | |
| | | #include <wobject/xstring.hpp> |
| | | #include <xcontrol/xtreeview.hpp> |
| | | #include <xcontrol/xdwgrid.hpp> |
| | |
| | | |
| | | xstring val; |
| | | xml x; |
| | | |
| | | var xdoc = x; |
| | | dw_1.AcceptText(); |
| | | dw_1.DwUpdateAllTo(xdoc); |
| | | val = xdoc.xml; |
| | | //trace(val); |
| | | //return 1; |
| | | dw_1.DwUpdateAllTo(x); |
| | | xaserverarg args; |
| | | |
| | | args.AddArg(L"content", val); |
| | | xml x1; |
| | | |
| | | if (xurl::post(L"OrganizationStruct/update.Employee", args.GetString(), x1) != 1) |
| | | args.AddArg(L"content", x.xml()); |
| | | if (xurl::post(L"OrganizationStruct/update.Employee", args.GetString(), x) != 1) |
| | | { |
| | | xstring error = x1.text(); |
| | | xstring error = x.text(); |
| | | trace(error); |
| | | } |
| | | else |
| | |
| | | |
| | | int OnImportData() |
| | | { |
| | | openUrl(L"缁勭粐鏋舵瀯.vface/xpage/Hr/HrPersonSel", this); |
| | | openUrl(L"缁勭粐鏋舵瀯.vface/xpage/Hr/HrPersonSel", (LPARAM)this); |
| | | return 1; |
| | | } |
| | | //鍛戒护鍙戝竷鍑芥暟 |
| | |
| | | |
| | | int onload() |
| | | { |
| | | tv_org = new treeview; |
| | | tv_org.setNativePointer(GetControl(L"tv_org")); |
| | | tv_org = GetControl(L"tv_org"); |
| | | dw_1 = new xdwtable; |
| | | dw_1.setNativePointer(GetControl(L"dw_1")); |
| | | dw_1.openUrl(L"缁勭粐鏋舵瀯.vface/template/HrEmployee/detail"); |