From 70622be7d8a308a33fd6d90ad780e5b2004e5bcc Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期四, 18 七月 2024 16:20:28 +0800 Subject: [PATCH] update Qoute --- jrj/ext-jrj/ext-jrj.vcxproj | 6 +++--- jrj/project/business/Quote/trade.document.selectdlg.cpp | 4 ++-- jrj/project/business/Quote/TOSelectDlg.cpp | 31 ++++++++++++++++--------------- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/jrj/ext-jrj/ext-jrj.vcxproj b/jrj/ext-jrj/ext-jrj.vcxproj index 2f6246c..77fe435 100644 --- a/jrj/ext-jrj/ext-jrj.vcxproj +++ b/jrj/ext-jrj/ext-jrj.vcxproj @@ -757,13 +757,13 @@ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\project\business\Quote\TOSelectDlg.cpp"> - <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\project\business\Quote\trade.document.saveas.cpp"> - <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\project\business\Quote\trade.document.selectdlg.cpp"> - <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\project\business\Quote\xmQuoteBillList.cpp"> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> diff --git a/jrj/project/business/Quote/TOSelectDlg.cpp b/jrj/project/business/Quote/TOSelectDlg.cpp index aa95f7a..08350f0 100644 --- a/jrj/project/business/Quote/TOSelectDlg.cpp +++ b/jrj/project/business/Quote/TOSelectDlg.cpp @@ -94,8 +94,9 @@ lvItem.iSubItem = 0; lvItem.mask = LVIF_PARAM ; - lv_view.GetItem(lv_item.GetId(), lvItem); - KXMLDOMElement ele = trust(lvItem.lParam as KXMLDOMElement); + lv_view.GetItem( lvItem); + + KXMLDOMElement ele = lvItem.lParam; return ele; } @@ -131,7 +132,7 @@ int LVNI_CUT = 0x0004; int LVNI_DROPHILITED = 0x0008; - int nItem =lv_view.GetNextItem(lv_view1.GetId(), -1, LVNI_FOCUSED); + int nItem =lv_view.GetNextItem(-1, LVNI_FOCUSED); if(nItem < 0) return 1; if(GetWinParam()) @@ -152,12 +153,12 @@ int SetListViewHeaderColumn(xstring Url,xlistview lv_item) { const int LVCFMT_LEFT = 0; - for(int i=0;i<3;i++) lv_item.DeleteColumn(lv_item.GetId(),1); + for(int i=0;i<3;i++) lv_item.DeleteColumn(1); //if(Url==L"") //{ - lv_item.InsertColumn(lv_item.GetId(),0,L"创建日期",LVCFMT_LEFT,80,0); - lv_item.InsertColumn(lv_item.GetId(),0,L"创建人员",LVCFMT_LEFT,80,0); - lv_item.InsertColumn(lv_item.GetId(),0,L"名称",0,120,0); + lv_item.InsertColumn(0,L"创建日期",LVCFMT_LEFT,80,0); + lv_item.InsertColumn(0,L"创建人员",LVCFMT_LEFT,80,0); + lv_item.InsertColumn(0,L"名称",0,120,0); columnCount = 3; //} return 1; @@ -166,16 +167,16 @@ int SetListViewHeaderColumnItem(xstring Url,xlistview lv_item) { const int LVCFMT_LEFT = 0; - for(int i=0;i<6;i++) lv_item.DeleteColumn(lv_item.GetId(),1); + for(int i=0;i<6;i++) lv_item.DeleteColumn(1); //if(Url==L"") //{ - lv_item.InsertColumn(lv_item.GetId(),0,L"最后修改日期",LVCFMT_LEFT,80,0); - lv_item.InsertColumn(lv_item.GetId(),0,L"创建日期",LVCFMT_LEFT,80,0); - lv_item.InsertColumn(lv_item.GetId(),0,L"创建人员",LVCFMT_LEFT,80,0); - lv_item.InsertColumn(lv_item.GetId(),0,L"状态",0,70,0); - lv_item.InsertColumn(lv_item.GetId(),0,L"主题",0,120,0); - lv_item.InsertColumn(lv_item.GetId(),0,L"编号",0,70,0); - lv_item.InsertColumn(lv_item.GetId(),0,L"事务",0,60,0); + lv_item.InsertColumn(0,L"最后修改日期",LVCFMT_LEFT,80,0); + lv_item.InsertColumn(0,L"创建日期",LVCFMT_LEFT,80,0); + lv_item.InsertColumn(0,L"创建人员",LVCFMT_LEFT,80,0); + lv_item.InsertColumn(0,L"状态",0,70,0); + lv_item.InsertColumn(0,L"主题",0,120,0); + lv_item.InsertColumn(0,L"编号",0,70,0); + lv_item.InsertColumn(0,L"事务",0,60,0); columnCount = 6; //} return 1; diff --git a/jrj/project/business/Quote/trade.document.selectdlg.cpp b/jrj/project/business/Quote/trade.document.selectdlg.cpp index 00ce57f..de49c8b 100644 --- a/jrj/project/business/Quote/trade.document.selectdlg.cpp +++ b/jrj/project/business/Quote/trade.document.selectdlg.cpp @@ -84,8 +84,8 @@ lvItem.mask = LVIF_PARAM ; lv_view.GetItem( lvItem); - KXMLDOMElement ele = trust(lvItem.lParam as KXMLDOMElement); + KXMLDOMElement ele = lvItem.lParam; xstring src = ele.getAttribute(L"url"); xstring name=ele.getAttribute(L"caption"); xstring file =L""; @@ -143,7 +143,7 @@ return -1; } //openRet = ShellExecute(0,L"open",L"C:/Temp/"+name,L"",L"",5); - openRet = ShellExecute(0,L"open",L"C:/Temp/"+sfile+ext,L"",L"",5); + openRet = ShellExecuteW(0,L"open",L"C:/Temp/"+sfile+ext,L"",L"",5); if(openRet < 32) { alert(L"文件打开失败2!"); -- Gitblit v1.9.3