| | |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\CompanyMaint.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrEmployee.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ClCompile Include="..\project\business\Company\HrEmployee.hpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrEmployeeAdd.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrEmployeex.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ClCompile Include="..\project\business\Company\HrEmployeex.hpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrJob.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrOrg.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrOrgChart.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrOrgMaint.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrOrgType.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HRPerson.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrPersonAdd.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrPersonMaint.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrPersonSel.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrPosition.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ClCompile Include="..\project\business\Company\HrPosition.hpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrPositionAdd.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HR_Address.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Customer3.list.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | |
| | | <ClCompile Include="..\project\business\Company\HR_Address.cpp"> |
| | | <Filter>project\business\Company</Filter> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrEmployee.cpp"> |
| | | <ClCompile Include="..\project\business\Company\HrEmployee.hpp"> |
| | | <Filter>project\business\Company</Filter> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrEmployeeAdd.cpp"> |
| | | <Filter>project\business\Company</Filter> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrEmployeex.cpp"> |
| | | <ClCompile Include="..\project\business\Company\HrEmployeex.hpp"> |
| | | <Filter>project\business\Company</Filter> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrJob.cpp"> |
| | |
| | | <ClCompile Include="..\project\business\Company\HrPersonSel.cpp"> |
| | | <Filter>project\business\Company</Filter> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrPosition.cpp"> |
| | | <ClCompile Include="..\project\business\Company\HrPosition.hpp"> |
| | | <Filter>project\business\Company</Filter> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Company\HrPositionAdd.cpp"> |
| | |
| | | #include <xcontrol/xdwgrid.hpp> |
| | | #include <wobject/xdouble.hpp> |
| | | #include <xcontrol/xlayersheet.hpp> |
| | | #include <xcontrol/xdwpages.hpp> |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | |
| | | class __declspec(dllexport) CompanyMaint : public xframe |
| | | { |
| | | public: |
| | | pagecontrol m_layer; |
| | | xlayersheet m_layer; |
| | | xdwtable dw_detail; |
| | | xdwtable dw_bank; |
| | | xstring m_operate; |
| | |
| | | xstring val, val2; |
| | | xml x; |
| | | |
| | | var xdoc = x; |
| | | auto xdoc = x; |
| | | dw_detail.DwUpdateAllTo(xdoc); |
| | | //val = xdoc.xml ; |
| | | dw_bank.DwUpdateAllTo(xdoc); |
| | | val = xdoc.xml; |
| | | val = xdoc.xml(); |
| | | trace(val); |
| | | xaserverarg args; |
| | | args.setNativePointer(args.CreateInstance()); |
| | |
| | | xutil::RestoreCursor(hIcon); |
| | | dw_detail.ResetUpdateStatus(); |
| | | dw_bank.ResetUpdateStatus(); |
| | | var xdoc2 = x; |
| | | dw_detail.DwUpdateAllTo(xdoc2); |
| | | val = xdoc.xml; |
| | | dw_detail.DwUpdateAllTo(x); |
| | | val = x.xml(); |
| | | trace(val); |
| | | return 1; |
| | | } |
| | |
| | | |
| | | int onload() |
| | | { |
| | | m_layer = new pagecontrol; |
| | | m_layer.setNativePointer(GetControl(L"cTab")); |
| | | m_layer = GetControl(L"cTab"); |
| | | |
| | | dw_detail = new xdwtable; |
| | | dw_detail.setNativePointer(GetControl(L"dw_detail")); |
| | | dw_detail = GetControl(L"dw_detail"); |
| | | dw_detail.openUrl(L"ç»ç»æ¶æ.vface/template/company/detail"); |
| | | dw_detail.SetColHeaderHeight(0); |
| | | dw_detail.SetRowSelectorWidth(0); |
| | | dw_bank = new xdwtable; |
| | | dw_bank.setNativePointer(GetControl(L"dw_bank")); |
| | | dw_bank = GetControl(L"dw_bank"); |
| | | dw_bank.openUrl(L"ç»ç»æ¶æ.vface/template/company/bank"); |
| | | |
| | | OnInitial(); |
| | |
| | | OnRetrieve(); |
| | | } |
| | | else { |
| | | xdwtable dw = new xdwtable; |
| | | dw.setNativePointer(dw_detail.FindDwTable(L"CompanyInfo", 0)); |
| | | xdwtable dw = dw_detail.FindDwTable(L"CompanyInfo", 0); |
| | | dw.SetItemString(1, L"Status", L"1"); |
| | | dw.SetItemString(1, L"InternalFlag", L"Y"); |
| | | dw.SetItemString(1, L"Type", L"0"); |
| | |
| | | dw.SetItemDisplayString(1,L"CreatorID",susername); |
| | | dw.SetItemString(1,L"CreateDate",sdate);*/ |
| | | |
| | | dw.setNativePointer(dw_detail.FindDwTable(L"address", 0)); |
| | | dw = dw_detail.FindDwTable(L"address", 0); |
| | | dw.SetItemString(1, L"IdentifyAddressFlag", L"Y"); |
| | | dw.SetItemString(1, L"Status", L"1"); |
| | | dw.setNativePointer(dw_detail.FindDwTable(L"Regist", 0)); |
| | | dw = dw_detail.FindDwTable(L"Regist", 0); |
| | | dw.SetItemString(1, L"IdentifyAddressFlag", L"N"); |
| | | dw.SetItemString(1, L"Status", L"1"); |
| | | |
| | | dw.setNativePointer(dw_bank.FindDwTable(L"item", 0)); |
| | | dw = dw_bank.FindDwTable(L"item", 0); |
| | | if (dw) { |
| | | //KXMLDOMElement ele = dw.GetElement(); |
| | | //trace(ele.xml); |
| | |
| | | |
| | | int OnSearch() |
| | | { |
| | | control xc = new control; |
| | | xc.setNativePointer(GetControl(L"QueryTxt")); |
| | | xcontrol xc = GetControl(L"QueryTxt"); |
| | | m_sTxt = xc.GetText(); |
| | | OnRetrieve(); |
| | | return 1; |
ÎļþÃû´Ó jrj/project/business/Company/HrEmployee.cpp ÐÞ¸Ä |
| | |
| | | #pragma once |
| | | |
| | | #include <wobject/xstring.hpp> |
| | | #include <xcontrol/xtreeview.hpp> |
| | | #include <xcontrol/xdwgrid.hpp> |
| | |
| | | dw_emp.ResetUpdateStatus(); |
| | | alert(L"ä¿åæå"); |
| | | } |
| | | trace(x.GetXml()); |
| | | trace(x.xml()); |
| | | xutil::RestoreCursor(hIcon); |
| | | return 1; |
| | | } |
| | |
| | | return -1; |
| | | } |
| | | //trace(x.GetXml()); |
| | | var list = x.selectNodes(L"//item"); |
| | | int i = 0, s = list.length; |
| | | auto list = x.selectNodes(L"//item"); |
| | | int i = 0, s = list.length(); |
| | | KXMLDOMElement xitem; |
| | | xstring sName; |
| | | xstring sguid; |
| | |
| | | } |
| | | } |
| | | |
| | | OpenWindow(L"dev:xpage[HrEmployeeAdd.vx]", this); |
| | | OpenWindow(L"dev:xpage[HrEmployeeAdd.vx]", (LPARAM)this); |
| | | //openUrl(L"ç»ç»æ¶æ.vface/xpage/Hr/HrEmployeeAdd", this); |
| | | return 1; |
| | | } |
| | |
| | | |
| | | int onload() |
| | | { |
| | | tv_org = new treeview; |
| | | tv_org.setNativePointer(GetControl(L"tv_org")); |
| | | tv_org = GetControl(L"tv_org"); |
| | | dw_emp = new xdwgrid; |
| | | dw_emp.setNativePointer(GetControl(L"dw_emp")); |
| | | dw_emp.openUrl(L"ç»ç»æ¶æ.vface/template/HrEmployee/list"); |
| | |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | #include "hremployee.hpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) HrEmployeeAdd : public xframe |
| | | { |
| | | public: |
| | | HrEmployee lw_obj; |
| | | HrEmployee* lw_obj; |
| | | xdwgrid dw_list; |
| | | |
| | | xnode m_agentNode; //Agent Condition |
| | |
| | | |
| | | int OnRetrieve() |
| | | { |
| | | control xc = new control; |
| | | xc.setNativePointer(GetControl(L"QueryTxt")); |
| | | xcontrol xc = GetControl(L"QueryTxt"); |
| | | m_sTxt = xc.GetText() + L""; |
| | | xml x ; |
| | | |
| | |
| | | |
| | | int OnOK() |
| | | { |
| | | if (GetParam()) |
| | | if (GetWinParam()) |
| | | { |
| | | lw_obj = new HrEmployee; |
| | | lw_obj.setNativePointer(GetParam()); |
| | | lw_obj = GetParam(); |
| | | lw_obj = (HrEmployee*)GetWinParam(); |
| | | } |
| | | else |
| | | return 0; |
| | |
| | | xstring sPositionID, sPositionName; |
| | | xstring sOrgID, sOrgName; |
| | | xstring sJobID, sJobName; |
| | | int wid = lw_obj.tv_org.GetId(); |
| | | int hitem = treeview::GetSelectedItem(wid); |
| | | KXMLDOMElement ele = treeview::GetItemData(wid, hitem); |
| | | KXMLDOMElement ele = lw_obj->tv_org.GetItemData(lw_obj->tv_org.GetSelectedItem()); |
| | | if (ele) |
| | | { |
| | | sPositionID = ele.selectSingleNode(L"id").text(); |
| | |
| | | while (row > 0) |
| | | { |
| | | KXMLDOMElement e = dw_list.GetRowElement(row); |
| | | xstring sEmployeeNo = e.selectSingleNode(L"EmployeeNo").text + L""; |
| | | xstring sPersonID = e.selectSingleNode(L"PersonID").text + L""; |
| | | xstring sPersonName = e.selectSingleNode(L"Name").text + L""; |
| | | xstring sEmployeeNo = e.selectSingleNode(L"EmployeeNo").text(); |
| | | xstring sPersonID = e.selectSingleNode(L"PersonID").text(); |
| | | xstring sPersonName = e.selectSingleNode(L"Name").text(); |
| | | |
| | | int nRow = lw_obj.dw_emp.InsertRow(0); |
| | | lw_obj.dw_emp.SetItemString(nRow, L"EmployeeNo", sEmployeeNo); |
| | | lw_obj.dw_emp.SetItemString(nRow, L"PersonID", sPersonID); |
| | | lw_obj.dw_emp.SetItemDisplayString(nRow, L"PersonID", sPersonName); |
| | | int nRow = lw_obj->dw_emp.InsertRow(0); |
| | | lw_obj->dw_emp.SetItemString(nRow, L"EmployeeNo", sEmployeeNo); |
| | | lw_obj->dw_emp.SetItemString(nRow, L"PersonID", sPersonID); |
| | | lw_obj->dw_emp.SetItemDisplayString(nRow, L"PersonID", sPersonName); |
| | | |
| | | lw_obj.dw_emp.SetItemString(nRow, L"PositionID", sPositionID); |
| | | lw_obj.dw_emp.SetItemDisplayString(nRow, L"PositionID", sPositionName); |
| | | lw_obj.dw_emp.SetItemString(nRow, L"OrgID", sOrgID); |
| | | lw_obj.dw_emp.SetItemDisplayString(nRow, L"OrgID", sOrgName); |
| | | lw_obj.dw_emp.SetItemString(nRow, L"JobID", sJobID); |
| | | lw_obj.dw_emp.SetItemDisplayString(nRow, L"JobID", sJobName); |
| | | lw_obj->dw_emp.SetItemString(nRow, L"PositionID", sPositionID); |
| | | lw_obj->dw_emp.SetItemDisplayString(nRow, L"PositionID", sPositionName); |
| | | lw_obj->dw_emp.SetItemString(nRow, L"OrgID", sOrgID); |
| | | lw_obj->dw_emp.SetItemDisplayString(nRow, L"OrgID", sOrgName); |
| | | lw_obj->dw_emp.SetItemString(nRow, L"JobID", sJobID); |
| | | lw_obj->dw_emp.SetItemDisplayString(nRow, L"JobID", sJobName); |
| | | |
| | | lw_obj.dw_emp.SetItemString(nRow, L"Status", L"Y"); |
| | | lw_obj.dw_emp.SetItemDisplayString(nRow, L"Status", L"ææ"); |
| | | xstring sdate = publiccode::GetCurDate() + L""; |
| | | lw_obj.dw_emp.SetItemString(nRow, L"StartDate", sdate + L""); |
| | | lw_obj.dw_emp.SetItemString(nRow, L"EndDate", L"2050-12-31"); |
| | | lw_obj->dw_emp.SetItemString(nRow, L"Status", L"Y"); |
| | | lw_obj->dw_emp.SetItemDisplayString(nRow, L"Status", L"ææ"); |
| | | xstring sdate = publiccode::GetCurrentDate(); |
| | | lw_obj->dw_emp.SetItemString(nRow, L"StartDate", sdate); |
| | | lw_obj->dw_emp.SetItemString(nRow, L"EndDate", L"2050-12-31"); |
| | | |
| | | row = dw_list.GetNextSelectRow(row + 1); |
| | | } |
| | |
| | | |
| | | return 1; |
| | | } |
| | | ] |
| | | |
| | | ] |
| | | ] |
| | | }; |
ÎļþÃû´Ó 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"); |
| | |
| | | return -1; |
| | | } |
| | | //trace(x.GetXml()); |
| | | var list = x.selectNodes(L"//Type"); |
| | | int i = 0, s = list.length; |
| | | auto list = x.selectNodes(L"//Type"); |
| | | int i = 0, s = list.length(); |
| | | KXMLDOMElement e; |
| | | xstring sname; |
| | | if (s > 0) |
| | |
| | | int onload() |
| | | { |
| | | m_type = L"all"; |
| | | tv_1 = new treeview; |
| | | tv_1.setNativePointer(GetControl(L"tv_1")); |
| | | tv_1 = GetControl(L"tv_1"); |
| | | dw_list = new xdwgrid; |
| | | dw_list.setNativePointer(GetControl(L"dw_list")); |
| | | dw_list.openUrl(L"ç»ç»æ¶æ.vface/template/HrJob/list"); |
| | |
| | | return -1; |
| | | } |
| | | //trace(x.GetXml()); |
| | | var list = x.selectNodes(L"//Org"); |
| | | int i = 0, s = list.length; |
| | | auto list = x.selectNodes(L"//Org"); |
| | | int i = 0, s = list.length(); |
| | | KXMLDOMElement xitem; |
| | | xstring sname; |
| | | xstring sguid; |
| | |
| | | xnode anode = new xnode; |
| | | anode.setNativePointer(GetAgentNode(xfNodeAgentArea)); |
| | | SetAgentNode(anode, str); |
| | | tv_org = new treeview; |
| | | tv_org.setNativePointer(GetControl(L"tv_org")); |
| | | tv_org = GetControl(L"tv_org"); |
| | | AttachEvent(L"tv_org", L"TVN_SELCHANGED", (FEvent)&HrOrg::OnTreeSelecded); |
| | | HTREEITEM root = tv_org.GetRootItem(); |
| | | if (root > 0) |
| | |
| | | |
| | | 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/HrOrg/list"); |
| | |
| | | xstring val; |
| | | xml x; |
| | | |
| | | var xdoc = x; |
| | | auto xdoc = x; |
| | | dw_detail.DwUpdateAllTo(xdoc); |
| | | val = xdoc.xml; |
| | | val = xdoc.xml(); |
| | | //trace(val); |
| | | //return 1; |
| | | xaserverarg args; |
| | |
| | | |
| | | xml x; |
| | | |
| | | var xdoc = x; |
| | | auto xdoc = x; |
| | | dw_list.AcceptText(); |
| | | dw_list.DwUpdateAllTo(xdoc);//dw_list.DwUpdateAllTo(xdoc); //dw_list.DwUpdateTo(xdoc); |
| | | |
| | | xstring val = xdoc.xml; |
| | | xstring val = xdoc.xml(); |
| | | xaserverarg args; |
| | | args.setNativePointer(args.CreateInstance()); |
| | | args.AddArg(L"content", val); |
| | |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | //#include "HrEmployee.cpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) HrPersonAdd : public xframe |
| | | { |
| | | public: |
| | | HrEmployee lw_obj; |
| | | //HrEmployee* lw_obj; |
| | | xdwgrid dw_list; |
| | | |
| | | xnode m_agentNode; //Agent Condition |
| | |
| | | |
| | | int OnRetrieve() |
| | | { |
| | | control xc = new control; |
| | | xc.setNativePointer(GetControl(L"QueryTxt")); |
| | | xcontrol xc = GetControl(L"QueryTxt"); |
| | | m_sTxt = xc.GetText() + L""; |
| | | xml x; |
| | | |
| | |
| | | xstring val; |
| | | xml x; |
| | | |
| | | var xdoc = x; |
| | | auto xdoc = x; |
| | | dw_1.AcceptText(); |
| | | dw_1.DwUpdateAllTo(xdoc); |
| | | val = xdoc.xml; |
| | | val = xdoc.xml(); |
| | | //trace(val); |
| | | xaserverarg args; |
| | | args.setNativePointer(args.CreateInstance()); |
| | |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | #include "HrEmployeex.hpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) HrPersonSel : public xframe |
| | | { |
| | | public: |
| | | HrEmployeex lw_obj; |
| | | HrEmployeex* lw_obj; |
| | | xdwgrid dw_list; |
| | | |
| | | xnode m_agentNode; //Agent Condition |
| | |
| | | |
| | | int OnRetrieve() |
| | | { |
| | | control xc = new control; |
| | | xc.setNativePointer(GetControl(L"QueryTxt")); |
| | | xcontrol xc = GetControl(L"QueryTxt"); |
| | | m_sTxt = xc.GetText() + L""; |
| | | xstring query = L"[MSSqlHrJob.xq]"; |
| | | xml x; |
ÎļþÃû´Ó jrj/project/business/Company/HrPosition.cpp ÐÞ¸Ä |
| | |
| | | #pragma once |
| | | |
| | | #include <wobject/xstring.hpp> |
| | | #include <xcontrol/xtreeview.hpp> |
| | | #include <xcontrol/xdwgrid.hpp> |
| | |
| | | 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; |
| | | } |
| | | |
| | |
| | | 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é颿¯å¦åå¨è¯¥å²ä½ |
| | |
| | | |
| | | 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"); |
| | |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | #include "HrPosition.hpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) HrPositionAdd : public xframe |
| | | { |
| | | public: |
| | | |
| | | HrPosition lw_obj; |
| | | HrPosition* lw_obj; |
| | | xdwgrid dw_list; |
| | | xtreeview tv_1; |
| | | xstring m_type; |
| | |
| | | return -1; |
| | | } |
| | | //trace(x.GetXml()); |
| | | var list = x.selectNodes(L"//Type"); |
| | | int i = 0, s = list.length; |
| | | auto list = x.selectNodes(L"//Type"); |
| | | int i = 0, s = list.length(); |
| | | KXMLDOMElement e; |
| | | xstring sname; |
| | | if (s > 0) |
| | |
| | | { |
| | | if (GetWinParam()) |
| | | { |
| | | lw_obj = new HrPosition; |
| | | lw_obj.setNativePointer(GetParam()); |
| | | lw_obj = GetParam(); |
| | | lw_obj = (HrPosition*)GetWinParam(); |
| | | } |
| | | else |
| | | return 0; |
| | |
| | | return 1; |
| | | } |
| | | //treeview tv_org = new treeview; |
| | | //tv_org.setNativePointer(lw_obj.tv_org); |
| | | HTREEITEM wid = lw_obj.tv_org.GetId(); |
| | | //tv_org.setNativePointer(lw_obj->tv_org); |
| | | HTREEITEM wid = lw_obj->tv_org.GetId(); |
| | | HTREEITEM hitem = tv_1.GetSelectedItem(); |
| | | KXMLDOMElement ele = tv_1.GetItemData( hitem); |
| | | xstring sOrgID = ele.selectSingleNode(L"@guid").text(); |
| | |
| | | xstring sJobID = e.selectSingleNode(L"@guid").text() + (xstring)L""; |
| | | xstring sJobName = e.selectSingleNode(L"JobName").text() + (xstring)L""; |
| | | |
| | | int nRow = lw_obj.dw_list.InsertRow(0); |
| | | lw_obj.dw_list.SetItemString(nRow, L"JobID", sJobID); |
| | | lw_obj.dw_list.SetItemDisplayString(nRow, L"JobID", sJobName); |
| | | lw_obj.dw_list.SetItemString(nRow, L"Status", L"Y"); |
| | | lw_obj.dw_list.SetItemDisplayString(nRow, L"Status", L"ææ"); |
| | | lw_obj.dw_list.SetItemString(nRow, L"OrgID", sOrgID); |
| | | lw_obj.dw_list.SetItemDisplayString(nRow, L"OrgID", sOrgName); |
| | | lw_obj.dw_list.SetItemString(nRow, L"PositionName", sOrgName + sJobName); |
| | | int nRow = lw_obj->dw_list.InsertRow(0); |
| | | lw_obj->dw_list.SetItemString(nRow, L"JobID", sJobID); |
| | | lw_obj->dw_list.SetItemDisplayString(nRow, L"JobID", sJobName); |
| | | lw_obj->dw_list.SetItemString(nRow, L"Status", L"Y"); |
| | | lw_obj->dw_list.SetItemDisplayString(nRow, L"Status", L"ææ"); |
| | | lw_obj->dw_list.SetItemString(nRow, L"OrgID", sOrgID); |
| | | lw_obj->dw_list.SetItemDisplayString(nRow, L"OrgID", sOrgName); |
| | | lw_obj->dw_list.SetItemString(nRow, L"PositionName", sOrgName + sJobName); |
| | | row = dw_list.GetNextSelectRow(row + 1); |
| | | } |
| | | CloseWindow(); |
| | |
| | | { |
| | | SetArg(); |
| | | m_type = L"all"; |
| | | tv_1 = new treeview; |
| | | tv_1.setNativePointer(GetControl(L"tv_1")); |
| | | tv_1 = GetControl(L"tv_1"); |
| | | dw_list = new xdwgrid; |
| | | dw_list.setNativePointer(GetControl(L"dw_list")); |
| | | dw_list.openUrl(L"ç»ç»æ¶æ.vface/template/HrJob/list"); |
| | |
| | | return -1; |
| | | } |
| | | |
| | | int openUrl(xstring aurl, LPARAM para) |
| | | { |
| | | KXMLDOMDocument x; |
| | | |
| | | xurl::get(GetServerUrl(), aurl, L"", x); |
| | | KXMLDOMNode n = x.selectSingleNode(L"//resource/@src"); |
| | | if (n) |
| | | { |
| | | string xq = n.text(); |
| | | OpenWindow(xq, (LPARAM)para); |
| | | return 1; |
| | | } |
| | | else |
| | | { |
| | | n = x.selectSingleNode(L"//resource[@vface!='' and @view!='']"); |
| | | if (n) |
| | | { |
| | | xstring vface = n.selectSingleNode(L"@vface").text(); |
| | | xstring view = n.selectSingleNode(L"@view").text(); |
| | | xstring config = n.selectSingleNode(L"@config").text(); |
| | | |
| | | if (vface == L"." || vface == L"") |
| | | { |
| | | string v = n.selectSingleNode(L"@url").text(); |
| | | xstring burl = xstring(aurl).mid(0, xstring(aurl).find(v, 0)); |
| | | return openUrl(burl + view, para); |
| | | } |
| | | else |
| | | return openUrl(vface + L"/" + view, para); |
| | | } |
| | | } |
| | | return -1; |
| | | } |
| | | |
| | | |
| | | int CloseWindow() |
| | | { |
| | | return getKWin()->CloseWindow(); |