| | |
| | | #pragma once |
| | | #include <wobject/xstring.hpp> |
| | | #include <xcontrol/xtreeview.hpp> |
| | | #include <xcontrol/xdwgrid.hpp> |
| | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | #include "xcontrol/xshtml.hpp" |
| | | |
| | | |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | |
| | |
| | | dw_Recovery.Redraw(); |
| | | dw_Recovery.SetReadOnly(true); |
| | | } |
| | | else if (selectname == L"流程状况") |
| | | { |
| | | xml doc; |
| | | if (getUrl(L"/sale/data/vpage/vstart/workflow/state", L"", doc) != 1) |
| | | { |
| | | trace((xstring)L"error->:" + doc.xml()); |
| | | return 0; |
| | | } |
| | | if (doc.xml() == L"") |
| | | return -1; |
| | | //trace(doc.xml()); |
| | | xshtml ht = GetControl(L"taskinfo"); |
| | | ht.SetContent(doc.xml()); |
| | | ht.Redraw(); |
| | | } |
| | | AdjustTip(); |
| | | return 1; |
| | | } |
| | |
| | | int ret = 0; |
| | | if(comdid.find(L"action:",0)>=0) |
| | | { |
| | | ret =SendMessage(sheet.GetHWND(),0x401,(LPARAM)comdid,0); |
| | | ret =SendMessage(sheet.GetHWND(),0x401,(LPARAM)comdid.c_str(), 0); |
| | | } |
| | | if(comdid==L"xmRefreshTask") |
| | | { |
| | | trace(L"\r\n----refresh task--------"); |
| | | SendMessage(sheet.GetHWND(),0x401,(LPARAM)comdid,0); |
| | | SendMessage(sheet.GetHWND(),0x401,(LPARAM)comdid.c_str(), 0); |
| | | return 1; |
| | | } |
| | | if(comdid==L"xmRefresh") |
| | | { |
| | | trace(L"\r\n----refresh--------"); |
| | | ret =SendMessage(sheet.GetHWND(),0x401, (LPARAM)comdid,0); |
| | | ret =SendMessage(sheet.GetHWND(),0x401, (LPARAM)comdid.c_str(), 0); |
| | | } |
| | | if(comdid == L"xmRertieve") |
| | | { |
| | |
| | | RetrieveData(); |
| | | ResetAgent(L"business5"); |
| | | } |
| | | else if (selectname == L"当前节点") |
| | | { |
| | | SwitchLayer(L"sheet2", L"frame"); |
| | | sheet = GetChildWin(L"sheet2"); |
| | | ResetAgent(L"business1"); |
| | | } |
| | | else if (selectname == L"流程状况") |
| | | { |
| | | SwitchLayer(L"sheet7", L"frame"); |
| | | RetrieveData(); |
| | | ResetAgent(L"business6"); |
| | | } |
| | | return 1; |
| | | } |
| | | int OnRowChanged(TEvent* evt, int p) |