| | |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\BasicCode\CartermList.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\BasicCode\ColorCardNew.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\BasicCode\CustomerMarketList.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\BasicCode\CustomerMarketMaint.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\BasicCode\ExchangeRate.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\BasicCode\ExpressList.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\BasicCode\ExpressMaint.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | #include "adt/xarray.hpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) CartermList : public listwin |
| | |
| | | dw_list.SetItemString(rows, L"PStatus", L"1"); |
| | | dw_list.SetItemString(rows, L"PCStatus", L"1"); |
| | | dw_list.SetItemString(rows, L"Type", L"7"); |
| | | return 1; |
| | | } |
| | | int OnInsertRow() |
| | | { |
| | |
| | | dw_list.SetItemString(row, L"PStatus", L"1"); |
| | | dw_list.SetItemString(row, L"PCStatus", L"1"); |
| | | dw_list.SetItemString(row, L"Type", L"7"); |
| | | return 1; |
| | | } |
| | | |
| | | int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) |
| | |
| | | int OnDeleteRow() |
| | | { |
| | | int rows = dw_list.GetRowCount(); |
| | | |
| | | int row2 = dw_list.GetPrevSelectRow(rows); |
| | | while (row2 > 0) { |
| | | dw_list.DeleteRow(row2); |
| | | row2 = dw_list.GetPrevSelectRow(row2 - 1); |
| | | } |
| | | |
| | | dw_list.SelectRow(0, false); |
| | | return 1; |
| | | } |
| | | |
| | | int OnSave() |
| | |
| | | #include "viewobject/view.base.hpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) CustomerMarketList : public xwin |
| | | class __declspec(dllexport) CustomerMarketList : public listwin |
| | | { |
| | | public: |
| | | xdwgrid dw_list; |
| | | public: |
| | | CustomerMarketList(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | CustomerMarketList(void* implPtr, HWND hWnd) :listwin(implPtr, hWnd) {} |
| | | public: |
| | | static CustomerMarketList* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | |
| | | return pWin; |
| | | } |
| | | |
| | | int ViewUpdate(param pr, xstring updateItem, xaserverarg arg) |
| | | int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) |
| | | { |
| | | if (updateItem == L"del") { |
| | | int DelRow = dw_list.GetRow(); |
| | |
| | | } |
| | | int onload() |
| | | { |
| | | list::onload(); |
| | | listwin::onload(); |
| | | return -1; |
| | | } |
| | | |
| | |
| | | #include <xcontrol/xlayersheet.hpp> |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "vbusiness/vframe/maint.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | #include <xcontrol/xcell.hpp>> |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) CustomerMarketMaint : public xframe |
| | | class __declspec(dllexport) CustomerMarketMaint : public maint |
| | | { |
| | | public: |
| | | KXMLDOMDocument m_configDoc; |
| | |
| | | xcell dw_cell; |
| | | xstring m_EntityID = L""; |
| | | public: |
| | | CustomerMarketMaint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} |
| | | CustomerMarketMaint(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {} |
| | | public: |
| | | static CustomerMarketMaint* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | | CustomerMarketMaint* pWin = new CustomerMarketMaint(implPtr, (HWND)hWnd); |
| | | return pWin; |
| | | } |
| | | int alert(xstring str) |
| | | { |
| | | //win::MessageBox(GetHWND(),str,L"提示22:",0); |
| | | TApp::alert(this, str); |
| | | return 0; |
| | | } |
| | | int ViewUpdate(param pr, xstring updateItem, xaserverarg arg) |
| | | |
| | | int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) |
| | | { |
| | | if (updateItem == L"update") |
| | | { |
| | |
| | | return 1; |
| | | } |
| | | } |
| | | xstring GetEntityData(param pr) |
| | | xstring GetEntityData(LPARAM pr) |
| | | { |
| | | xml x; |
| | | |
| | |
| | | if (xaserver::ExecXQuery(L"", L"[OrgInfo.xq]", arg.GetString(), x) != 1) |
| | | { |
| | | trace(x.xml()); |
| | | return nil; |
| | | return 0; |
| | | } |
| | | //alert(x.xml()); |
| | | KXMLDOMElement e = x.documentElement(); |
| | |
| | | #include "viewobject/view.base.hpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) ExpressList : public xwin |
| | | class __declspec(dllexport) ExpressList : public listwin |
| | | { |
| | | public: |
| | | xdwgrid dw_list; |
| | | public: |
| | | ExpressList(void* implPtr, HWND hWnd) :xwin(implPtr, hWnd) {} |
| | | ExpressList(void* implPtr, HWND hWnd) : listwin(implPtr, hWnd) {} |
| | | public: |
| | | static ExpressList* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | |
| | | } |
| | | int onload() |
| | | { |
| | | list::onload(); |
| | | listwin::onload(); |
| | | return -1; |
| | | } |
| | | |
| | | int ViewUpdate(param pr, xstring updateItem, xaserverarg arg) |
| | | int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) |
| | | { |
| | | |
| | | if (updateItem == L"del") |
| | |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | #include "xcontrol/xcell.hpp" |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) ExpressMaint : public xframe |
| | |
| | | int SelectRow_(int nRow, bool bSelect = true) ;//选中单行 |
| | | int SelectRow_(int sRow, int eRow, bool bSelect = true) ;//选中多行 |
| | | int GetNextSelectRow_(int nStartRow) ; //得到下拉修改行 |
| | | int GetPrevSelectRow(int nStartRow); |
| | | bool IsRowSelected_(int nRow) ; //判断行是否被选种 |
| | | int SetSelectBkColor_(COLORREF color) ; //设置选择的背景颜色 |
| | | int SetSelectionMode_(int nMode) ; //设置选择的模式//0 unselection 1 singleSelection 2 multiselection 3 multiselectionex |
| | |
| | | void AddRepeats(wchar_t* colName); |
| | | public: |
| | | void ShowEditor(); |
| | | |
| | | }; |
| | | }} |
| | | }} |
| | |
| | | int SelectRow(int nRow, bool bSelect = true) { return getKReport()->SelectRow_(nRow, bSelect); } |
| | | int SelectRow(int sRow, int eRow, bool bSelect = true) { return getKReport()->SelectRow_(sRow, eRow, bSelect); } |
| | | int GetNextSelectRow(int nStartRow) { return getKReport()->GetNextSelectRow_(nStartRow); } |
| | | int GetPrevSelectRow(int nStartRow) { return getKReport()->GetPrevSelectRow(nStartRow); } |
| | | bool IsRowSelected(int nRow) { return getKReport()->IsRowSelected_(nRow); } |
| | | //int SetSelectBkColor(COLORREF color){return getKReport()->SetSelectBkColor_(color);} |
| | | int SetSelectionMode(int nMode) { return getKReport()->SetSelectionMode_(nMode); } //0 unselection 1 singleSelection 2 multiselection 3 multiselectionex |