| | |
| | | |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class ViewEx111TotalWin : public xwin |
| | | class __declspec(dllexport) ViewExTotalWin : public xwin |
| | | { |
| | | public: |
| | | ViewEx111TotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | ViewExTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | public: |
| | | static ViewEx111TotalWin* CreateInstance(void* implPtr, void* hWnd) |
| | | static ViewExTotalWin* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | | ViewEx111TotalWin* pWin = new ViewEx111TotalWin(implPtr, (HWND)hWnd); |
| | | return pWin; |
| | | return new ViewExTotalWin(implPtr, (HWND)hWnd); |
| | | } |
| | | public: |
| | | xdwgrid dw_list; |
| | |
| | | HCURSOR hCursor = 0; |
| | | //if(UserNo !=L"00603") |
| | | //{ |
| | | if (comdid == L"xmOwner") return OnOwnerData(); |
| | | |
| | | if (comdid == L"xmAnalysis") |
| | | { |
| | | hCursor = xutil::SetCursorWait(); |
| | |
| | | xaserverarg arg ; |
| | | |
| | | arg.AddArg(L"html", str); |
| | | |
| | | arg.SetParam(L"obj", (LPARAM)&dw_list); |
| | | OpenWindow(L"dev:xpage[data.vanalysis.vx]", arg); |
| | | xutil::RestoreCursor(hCursor); |
| | | return 1; |
| | |
| | | Content = t.selectSingleNode(L"Content").text(); |
| | | } |
| | | |
| | | xaserverarg arg1 ; |
| | | xaserverarg arg1=GetArg() ; |
| | | |
| | | arg1.AddArg(L"value", Content); |
| | | OpenWindow(L"dev:xpage[memo.edit.new.vx]", arg1); |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int OnOwnerData() |
| | | { |
| | | int ret = MessageBox(GetHWND(), L"是否更新归属数据?\n更新过程预计需要些时间,如果中间弹出等待时间过长的提示,请点击中间重试按钮,或等待到一定时间再点击", L"提示", 0x4 /*yesno*/); |
| | | if (ret != 6 /*IDYES */) return 1; |
| | | |
| | | xml x; |
| | | HCURSOR hCursor = xutil::SetCursorWait(); |
| | | if (xurl::get(L"/sale/data/CustomerV3/owner/reload", L"", x) != 1) |
| | | { |
| | | xutil::RestoreCursor(hCursor); |
| | | return 1; |
| | | } |
| | | else |
| | | { |
| | | xutil::RestoreCursor(hCursor); |
| | | alert(x.text()); |
| | | return 1; |
| | | } |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | //命令处理事件 |
| | | int OnXCommand(TEvent* evt, int param) |
| | | { |
| | |
| | | int OnAttachEvent() |
| | | { |
| | | //绑定工具条点击事件 |
| | | AttachEvent(L"WM_XCOMMAND", (FEvent)&ViewEx111TotalWin::OnXCommand); |
| | | AttachEvent(L"WM_XCOMMAND", (FEvent)&ViewExTotalWin::OnXCommand); |
| | | //获取焦点事件,用于重置工具条 |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&ViewEx111TotalWin::OnSetFocus); |
| | | AttachEvent(L"cb_report", L"CBN_SELCHANGE", (FEvent)&ViewEx111TotalWin::OnCombboChanged); |
| | | AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewEx111TotalWin::OnDWClick); |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&ViewExTotalWin::OnSetFocus); |
| | | AttachEvent(L"cb_report", L"CBN_SELCHANGE", (FEvent)&ViewExTotalWin::OnCombboChanged); |
| | | AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewExTotalWin::OnDWClick); |
| | | return 1; |
| | | } |
| | | |
| | |
| | | { |
| | | KXMLDOMElement rpt = nlist.item(i); |
| | | xstring name = rpt.getAttribute(L"name"); |
| | | |
| | | xc.AddItem(name, rpt); |
| | | if (i == 0) xc.SetText(name); |
| | | if (i == 0) rptEle = rpt; |
| | | } |