| | |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\PO\Habit.PO.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\PO\InsertPO.PO.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\PO\maint.Document.PO.v3 .cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\PO\Maint.PaperCard.PO.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\PO\MakeAllPOEx.PO.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\PO\paperImage.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\PO\PO.BatchPrecess.polist.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\PO\PO.maint.base.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Product.list.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
| | | <LocalDebuggerCommand>d:\xclient64\xexplorer.exe</LocalDebuggerCommand> |
| | | <LocalDebuggerCommand>d:\xclient64\xexplorer64.exe</LocalDebuggerCommand> |
| | | <LocalDebuggerWorkingDirectory>d:\xclient64</LocalDebuggerWorkingDirectory> |
| | | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> |
| | | <LocalDebuggerCommandArguments>-noupdate</LocalDebuggerCommandArguments> |
| | | </PropertyGroup> |
| | | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| | | <LocalDebuggerCommand>d:\xclient64r\xexplorer.exe</LocalDebuggerCommand> |
| | | <LocalDebuggerCommand>d:\xclient64r\xexplorer64.exe</LocalDebuggerCommand> |
| | | <LocalDebuggerWorkingDirectory>d:\xclient64r</LocalDebuggerWorkingDirectory> |
| | | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> |
| | | <LocalDebuggerCommandArguments>-noupdate</LocalDebuggerCommandArguments> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | #include <wobject/xstring.hpp> |
| | | #include <xcontrol/xtreeview.hpp> |
| | | #include <xcontrol/xlistview.hpp> |
| | | #include <xcontrol/xdwgrid.hpp> |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | |
| | | int LVNI_CUT = 0x0004; |
| | | int LVNI_DROPHILITED = 0x0008; |
| | | |
| | | int nItem = xlistview::GetNextItem(lv_view.GetId(), -1, LVNI_FOCUSED); |
| | | int nItem = lv_view.GetNextItem( -1, LVNI_FOCUSED); |
| | | if (nItem < 0) return 1; |
| | | |
| | | int LVIF_PARAM = 0x0004; |
| | |
| | | lvItem.iSubItem = 0; |
| | | lvItem.mask = LVIF_PARAM; |
| | | |
| | | xlistview::GetItem(lv_view.GetId(), lvItem); |
| | | KXMLDOMElement ele = trust(lvItem.lParam as KXMLDOMElement); |
| | | lv_view.GetItem( lvItem); |
| | | KXMLDOMElement ele = lvItem.lParam; |
| | | |
| | | xstring src = ele.getAttribute(L"url"); |
| | | xstring name = ele.getAttribute(L"caption"); |
| | |
| | | int LVNI_CUT = 0x0004; |
| | | int LVNI_DROPHILITED = 0x0008; |
| | | |
| | | int nItem = xlistview::GetNextItem(lv_view.GetId(), -1, LVNI_FOCUSED); |
| | | int nItem = lv_view.GetNextItem( -1, LVNI_FOCUSED); |
| | | if (nItem < 0) return 1; |
| | | |
| | | int LVIF_PARAM = 0x0004; |
| | |
| | | lvItem.iSubItem = 0; |
| | | lvItem.mask = LVIF_PARAM; |
| | | |
| | | xlistview::GetItem(lv_view.GetId(), lvItem); |
| | | KXMLDOMElement ele = trust(lvItem.lParam as KXMLDOMElement); |
| | | lv_view.GetItem( lvItem); |
| | | KXMLDOMElement ele = lvItem.lParam; |
| | | |
| | | xstring src = ele.getAttribute(L"url"); |
| | | xstring file = L""; |
| | |
| | | int LVNI_CUT = 0x0004; |
| | | int LVNI_DROPHILITED = 0x0008; |
| | | |
| | | int nItem = xlistview::GetNextItem(lv_view.GetId(), -1, LVNI_FOCUSED); |
| | | int nItem = lv_view.GetNextItem( -1, LVNI_FOCUSED); |
| | | if (nItem < 0) return 1; |
| | | |
| | | int LVIF_PARAM = 0x0004; |
| | |
| | | lvItem.iSubItem = 0; |
| | | lvItem.mask = LVIF_PARAM; |
| | | |
| | | xlistview::GetItem(lv_view.GetId(), lvItem); |
| | | KXMLDOMElement ele = trust(lvItem.lParam as KXMLDOMElement); |
| | | lv_view.GetItem( lvItem); |
| | | KXMLDOMElement ele = lvItem.lParam; |
| | | |
| | | xstring src = ele.getAttribute(L"url"); |
| | | xstring file = L""; |
| | |
| | | else |
| | | { |
| | | //alert(x.GetXmlDoc().text); |
| | | xlistview::DeleteItem(lv_view.GetId(), nItem); |
| | | lv_view.DeleteItem( nItem); |
| | | } |
| | | |
| | | return 1; |
| | |
| | | xstring GetPayType() |
| | | { |
| | | xcombobox cbx_type = GetControl(L"cbx_type"); |
| | | int h = xcombobox::GetCurSel(cbx_type.GetId()); |
| | | int h = cbx_type.GetCurSel(); |
| | | if (h < 0) return L""; |
| | | return xcombobox::GetLBText(cbx_type.GetId(), h); |
| | | return cbx_type.GetLBText( h); |
| | | } |
| | | |
| | | //命令发布函数 |
| | |
| | | int SetListViewHeaderColumn(xstring Url) |
| | | { |
| | | const int LVCFMT_LEFT = 0; |
| | | for (int i = 0; i < 3; i++) lv_view.DeleteColumn(lv_view.GetId(), 1); |
| | | lv_view.InsertColumn(lv_view.GetId(), 0, L"类型", 0, 80, 0); |
| | | lv_view.InsertColumn(lv_view.GetId(), 0, L"创建日期", LVCFMT_LEFT, 80, 0); |
| | | lv_view.InsertColumn(lv_view.GetId(), 0, L"创建人员", LVCFMT_LEFT, 80, 0); |
| | | lv_view.InsertColumn(lv_view.GetId(), 0, L"名称", 0, 120, 0); |
| | | for (int i = 0; i < 3; i++) lv_view.DeleteColumn( 1); |
| | | lv_view.InsertColumn( 0, L"类型", 0, 80, 0); |
| | | lv_view.InsertColumn( 0, L"创建日期", LVCFMT_LEFT, 80, 0); |
| | | lv_view.InsertColumn( 0, L"创建人员", LVCFMT_LEFT, 80, 0); |
| | | lv_view.InsertColumn( 0, L"名称", 0, 120, 0); |
| | | |
| | | columnCount = 3; |
| | | return 1; |
| | |
| | | |
| | | int Retrieve(xstring entityid) |
| | | { |
| | | lv_view.DeleteItemAll(lv_view.GetId()); |
| | | lv_view.DeleteItemAll(); |
| | | xstring src = L"object/Forwarder"; |
| | | xml x = ViewObject::RetrieveData(L"/sale/data/TDocument3/folder/listex", L"src", src, L"entityid", entityid); |
| | | if (x) |
| | |
| | | KXMLDOMElement e = nlist.item(i); |
| | | xstring name = e.getAttribute(L"caption"); |
| | | |
| | | int nItem = xlistview::InsertItemEx(lv_view.GetId(), 0, name, 23, cast(e as int)); |
| | | xlistview::SetItemText(lv_view.GetId(), nItem, 1, e.getAttribute(L"Creator")); |
| | | xlistview::SetItemText(lv_view.GetId(), nItem, 2, e.getAttribute(L"CreateDate")); |
| | | xlistview::SetItemText(lv_view.GetId(), nItem, 3, e.getAttribute(L"Type")); |
| | | int nItem = lv_view.InsertItemEx( 0, name, 23,e); |
| | | lv_view.SetItemText( nItem, 1, e.getAttribute(L"Creator")); |
| | | lv_view.SetItemText( nItem, 2, e.getAttribute(L"CreateDate")); |
| | | lv_view.SetItemText( nItem, 3, e.getAttribute(L"Type")); |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | class xlistbox : public xcontrol |
| | | { |
| | | public: |
| | | xlistbox() :xcontrol(nullptr) {} |
| | | xlistbox(void* implptr) :xcontrol(implptr) {} |
| | | |
| | | static int GetCount(HWND hWnd)//返回列表项总项数 |
| | | { |
| | | int LB_GETCOUNT = 0x018B; |
| | |
| | | |
| | | class xlistview : public xcontrol |
| | | { |
| | | public: |
| | | xlistview() :xcontrol(nullptr) {} |
| | | xlistview(void* implptr) :xcontrol(implptr) {} |
| | | public: |
| | | static int SetdwStyle(HWND hWnd, int dwStyle)//设置风格 |
| | | { |
| | | int GWL_STYLE_ = -16; |
| | |
| | | return SendMessage(hWnd, LVM_INSERTITEM_, 0, (LPARAM) & lvi); |
| | | } |
| | | |
| | | static int InsertItemEx(HWND hWnd, int xIndex, string label, int pictureindex = 0, int data = 0)//only the label and picture index need to be specified |
| | | static int InsertItemEx(HWND hWnd, int xIndex, string label, int pictureindex = 0, LPARAM data = 0)//only the label and picture index need to be specified |
| | | { |
| | | int LVM_FIRST_ = 0x1000;// ListView messages |
| | | int LVM_INSERTITEM_ = LVM_FIRST_ + 77; |
| | |
| | | { |
| | | }*/ |
| | | |
| | | int SetdwStyle(int dwStyle)//设置风格 |
| | | { |
| | | return SetdwStyle(GetHWND(), dwStyle); |
| | | } |
| | | int SetReportStyle() |
| | | { |
| | | return SetReportStyle(GetHWND()); |
| | | } |
| | | |
| | | int GetImageList(int iImageList)//ImageList |
| | | { |
| | | return GetImageList(GetHWND(),iImageList); |
| | | } |
| | | int SetImageList(int iImageList, int himl)//设置ImageList |
| | | { |
| | | return SetImageList(GetHWND(), iImageList, himl); |
| | | } |
| | | |
| | | int InsertColumn(int nCol, string label, int nFormat, int nWidth, int nSubItem)//增加列,加入列头 |
| | | { |
| | | return InsertColumn(GetHWND(), nCol, label, nFormat, nWidth, nSubItem); |
| | | } |
| | | |
| | | int InsertItem(int xIndex, string label, int pictureindex = 0)//only the label and picture index need to be specified |
| | | { |
| | | return InsertItem(GetHWND(),xIndex, label, pictureindex); |
| | | } |
| | | |
| | | int InsertItemEx(int xIndex, string label, int pictureindex = 0,LPARAM data)//only the label and picture index need to be specified |
| | | { |
| | | return InsertItemEx(GetHWND(), xIndex, label, pictureindex , data); |
| | | } |
| | | |
| | | int SetItemText(int nItem, int nSubItem, string label) |
| | | { |
| | | return SetItemText(GetHWND(), nItem,nSubItem, label); |
| | | } |
| | | |
| | | int DeleteItemAll()//删除所有 |
| | | { |
| | | return DeleteItemAll(GetHWND()); |
| | | } |
| | | |
| | | int DeleteColumn(int nCol)//删除列 |
| | | { |
| | | return DeleteColumn(GetHWND(), nCol); |
| | | } |
| | | |
| | | int DeleteItem(int nIndex)//删除行 |
| | | { |
| | | return DeleteItem(GetHWND(),nIndex); |
| | | } |
| | | |
| | | int EditLabel(int nIndex)//nIndex= -1表示取消编辑 |
| | | { |
| | | return EditLabel(GetHWND(), nIndex); |
| | | } |
| | | |
| | | int FindItem(int iStart, string label, bool partial, bool wrap) |
| | | { |
| | | return FindItem(GetHWND(), iStart, label,partial, wrap); |
| | | } |
| | | |
| | | int GetColumn(int iCol, lvcolumn lvc) |
| | | { |
| | | return GetColumn(GetHWND(), iCol, lvc); |
| | | } |
| | | |
| | | int GetItem(lvitem& lvi) |
| | | { |
| | | return GetItem(GetHWND(), lvi); |
| | | } |
| | | |
| | | int GetItemCount() |
| | | { |
| | | return GetItemCount(GetHWND()); |
| | | } |
| | | |
| | | int GetItemText(int nIndex, lvitem lvi) |
| | | { |
| | | return GetItemText(GetHWND(), nIndex, lvi); |
| | | } |
| | | |
| | | int GetNextItem(int nIndex, int flags)//nIndex=-1时从第一个开始 |
| | | { |
| | | return GetNextItem(GetHWND(), nIndex, flags); |
| | | } |
| | | |
| | | int GetSelectColumn() |
| | | { |
| | | return GetSelectColumn(GetHWND() ); |
| | | } |
| | | |
| | | int GetSelectCount() |
| | | { |
| | | return GetSelectCount(GetHWND()); |
| | | } |
| | | |
| | | int SetColumn(int iCol, lvcolumn lvc) |
| | | { |
| | | return SetColumn(GetHWND(),iCol, lvc); |
| | | } |
| | | |
| | | int SetItem(lvitem lvi) |
| | | { |
| | | return SetItem(GetHWND(), lvi); |
| | | } |
| | | |
| | | int SetItemText(int nIndex, lvitem &lvi) |
| | | { |
| | | return SetItemText(GetHWND(), nIndex, lvi); |
| | | } |
| | | |
| | | int InsertColumn(int nCol, int nFormat, int nWidth, string label, int nSubItem)//增加列 |
| | | { |
| | | return InsertColumn(GetHWND(), nCol, nFormat, nWidth, label, nSubItem); |
| | | |
| | | } |
| | | int InsertItem(int nItem, int nSubItem, string label, int pictureindex)//增加行 |
| | | { |
| | | return InsertItem(GetHWND(), nItem, nSubItem, label, pictureindex); |
| | | } |
| | | |
| | | string GetItemText(int nIndex) |
| | | { |
| | | return GetItemText(GetHWND(), nIndex); |
| | | } |
| | | }; |