| | |
| | | <ClCompile Include="..\project\start.vframe.vbusiness.cpp" /> |
| | | <ClCompile Include="..\project\total3\FactoryPayment.cpp" /> |
| | | <ClCompile Include="..\project\total3\GDNItem.GDN.cpp" /> |
| | | <ClCompile Include="..\project\total3\ProductNewList.cpp" /> |
| | | <ClCompile Include="..\project\total3\ProductNewList.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\total3\ProductNoOut.SO.cpp" /> |
| | | <ClCompile Include="..\project\total3\viewex.total.cpp" /> |
| | | <ClCompile Include="..\project\total3\viewex.total1.cpp" /> |
| | | <ClCompile Include="..\project\total3\viewex.total2.cpp" /> |
| | | <ClCompile Include="..\project\total3\ViewTotalArgWin.cpp" /> |
| | | <ClCompile Include="..\project\total3\ViewExTotalWin.cpp" /> |
| | | <ClCompile Include="..\project\total3\ViewTotalWin.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\tradedocument\DocFileSaveDlg.cpp" /> |
| | | <ClCompile Include="..\project\tradedocument\DocSelectDlg.cpp" /> |
| | | <ClCompile Include="..\project\tradedocument\HelpDocWin.cpp" /> |
| | |
| | | class __declspec(dllexport) DataVanalysisWin : public xwin |
| | | { |
| | | public: |
| | | DataVanalysisWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | DataVanalysisWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd),dw_data(0){} |
| | | static DataVanalysisWin* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | | return new DataVanalysisWin(implPtr, (HWND)hWnd); |
| | | } |
| | | public: |
| | | xhtml ole_html; |
| | | xdwgrid dw_data; |
| | | xdwgrid* dw_data; |
| | | xnode m_agentNode; //Agent Condition |
| | | xstring htmlStr; |
| | | xexcel excel; |
| | |
| | | HCURSOR hCursor = xutil::SetCursorWait(); |
| | | if (comdid == L"xmConfig") |
| | | { |
| | | xstring str = dw_data.DataAnalysis(L""); |
| | | xstring str = dw_data->DataAnalysis(L""); |
| | | if (str != L"") |
| | | { |
| | | ole_html.LoadHtml(str); |
| | |
| | | int onload() |
| | | { |
| | | htmlStr = L""; |
| | | ole_html = GetControl(L"ole_html"); |
| | | ole_html = GetControl(L"ole_1"); |
| | | if (!GetWinParam()) return 1; |
| | | SetArg(); |
| | | xaserverarg arg = GetArg(); |
| | |
| | | htmlStr = str; |
| | | ole_html.LoadHtml(str); |
| | | } |
| | | dw_data = *(xdwgrid*)arg.GetParam(L"obj"); |
| | | dw_data = (xdwgrid*)arg.GetParam(L"obj"); |
| | | |
| | | OnAttachEvent(); |
| | | |
| | |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&FactoryPayment::OnSetFocus); |
| | | AttachEvent(L"cb_report", L"CBN_SELCHANGE", (FEvent)&FactoryPayment::OnCombboChanged); |
| | | AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&FactoryPayment::OnDWClick); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | int OnRetrieve(xstring dataurl, xstring argstr) |
| | |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&ViewGDNItemTotalWin::OnSetFocus); |
| | | AttachEvent(L"cb_report", L"CBN_SELCHANGE", (FEvent)&ViewGDNItemTotalWin::OnCombboChanged); |
| | | AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewGDNItemTotalWin::OnDWClick); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | int OnRetrieve(xstring dataurl, xstring argstr) |
| | |
| | | } |
| | | |
| | | |
| | | int SwitchReport(KXMLDOMElement ele) |
| | | { |
| | | return 1; |
| | | } |
| | | |
| | | int OnCombboChanged(TEvent* evt, int lParam) |
| | | { |
ÎļþÃû´Ó jrj/project/total3/ViewExTotalWin.cpp ÐÞ¸Ä |
| | |
| | | |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) ViewExTotalWin : public xwin |
| | | class __declspec(dllexport) ViewTotalWin : public xwin |
| | | { |
| | | public: |
| | | ViewExTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | ViewTotalWin(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | public: |
| | | static ViewExTotalWin* CreateInstance(void* implPtr, void* hWnd) |
| | | static ViewTotalWin* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | | return new ViewExTotalWin(implPtr, (HWND)hWnd); |
| | | return new ViewTotalWin(implPtr, (HWND)hWnd); |
| | | } |
| | | public: |
| | | xdwgrid dw_list; |
| | |
| | | int OnAttachEvent() |
| | | { |
| | | //ç»å®å·¥å
·æ¡ç¹å»äºä»¶ |
| | | AttachEvent(L"WM_XCOMMAND", (FEvent)&ViewExTotalWin::OnXCommand); |
| | | AttachEvent(L"WM_XCOMMAND", (FEvent)&ViewTotalWin::OnXCommand); |
| | | //è·åç¦ç¹äºä»¶ï¼ç¨äºé置工å
·æ¡ |
| | | 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); |
| | | AttachEvent(L"dw_report", L"DWV_ROWFOCUSCHANGED", (FEvent)&ViewExTotalWin::OnRowChanged);//ç»å®è¡æ´æ¹è§¦åäºä»¶OnRowChanged |
| | | AttachEvent(L"dw_report", xstring(0x400 + 81), (FEvent)&ViewExTotalWin::OnRetrieveFinished); |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&ViewTotalWin::OnSetFocus); |
| | | AttachEvent(L"cb_report", L"CBN_SELCHANGE", (FEvent)&ViewTotalWin::OnCombboChanged); |
| | | AttachEvent(L"dw_report", L"DWV_CLICKED", (FEvent)&ViewTotalWin::OnDWClick); |
| | | AttachEvent(L"dw_report", L"DWV_ROWFOCUSCHANGED", (FEvent)&ViewTotalWin::OnRowChanged);//ç»å®è¡æ´æ¹è§¦åäºä»¶OnRowChanged |
| | | AttachEvent(L"dw_report", xstring(0x400 + 81), (FEvent)&ViewTotalWin::OnRetrieveFinished); |
| | | |
| | | return 1; |
| | | } |
| | |
| | | { |
| | | if (!rptEle) return 0; |
| | | if (dataretrieveing) return -1; |
| | | //dw_list.Reset(); |
| | | dw_list.Reset(); |
| | | |
| | | xml x ; |
| | | xaserverarg arg ; |
| | |
| | | |
| | | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | | } |
| | |
| | | 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; |
| | |
| | | { |
| | | 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; |
| | | } |
| | |
| | | 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; |
| | |
| | | |
| | | int AddItem(string str, KXMLDOMElement ele) |
| | | { |
| | | AddItem(str, ele.ptr()); |
| | | return AddItem(str, ele.ptr()); |
| | | } |
| | | int AddItem(string str, LPARAM p) |
| | | { |
| | |
| | | return SendMessage(hWnd, CB_GETITEMDATA_, nIndex, 0); |
| | | } |
| | | |
| | | static int AddItem(HWND hWnd,string str, int p) |
| | | static int AddItem(HWND hWnd,string str, LPARAM p) |
| | | { |
| | | int CB_ADDSTRING_ = 0x0143; |
| | | int h = SendMessage(hWnd, CB_ADDSTRING_, 0, (LPARAM)str); |