xj qian
2024-10-29 bb4dc0fab56e542e784311f95ae6d7e7dd785a8f
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());