From 91f1a3b5e0319c5b77a8811217d8f218641b18fb Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期四, 11 七月 2024 18:51:17 +0800
Subject: [PATCH] update item

---
 jrj/project/business/ProductSample/OutstoreSample3Win.cpp |    0 
 jrj/project/business/Enquiry/Enquiry.maint.cpp            |   32 +++++----------
 jrj/project/business/VATNotify/list.vatnotify.cpp         |    6 +-
 jrj/project/business/Enquiry/Entity.Product.Select.cpp    |    4 +-
 jrj/ext-jrj/ext-jrj.vcxproj                               |   25 +++++++++---
 jrj/project/business/ProductSample/InstoreSample3Win.cpp  |    0 
 jrj/ext-jrj/ext-jrj.vcxproj.filters                       |    8 ++--
 jrj/project/business/ProductSample/SampleBarcodePrint.cpp |    0 
 8 files changed, 39 insertions(+), 36 deletions(-)

diff --git a/jrj/ext-jrj/ext-jrj.vcxproj b/jrj/ext-jrj/ext-jrj.vcxproj
index 5a281d9..7a31365 100644
--- a/jrj/ext-jrj/ext-jrj.vcxproj
+++ b/jrj/ext-jrj/ext-jrj.vcxproj
@@ -153,7 +153,7 @@
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <EnableUAC>false</EnableUAC>
       <AdditionalLibraryDirectories>D:\xclient64r\sdk\lib</AdditionalLibraryDirectories>
-      <AdditionalDependencies>xarch.shape.lib;xarch.base.lib;xarch.util.lib;xarch.network.lib;xarch.xframe.lib;xarch.xcontrol.lib;xoffice.xcell.lib;xoffice.xgrid.lib;xoffice.xreport.lib;shlwapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>xarch.shape.lib;xarch.base.lib;xarch.util.lib;xarch.network.lib;xarch.xframe.lib;xarch.xcontrol.lib;xoffice.xcell.lib;xoffice.xgrid.lib;xoffice.xreport.lib;xoffice.frame.lib;shlwapi.lib;xoffice.xflow.lib;comsuppw.lib;tsclib.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     <PostBuildEvent>
       <Command>copy $(OutDirFullPath)ext-jrj.dll D:\xclient64r\ext\ext-jrj.dll</Command>
@@ -300,30 +300,39 @@
     <ClCompile Include="..\project\business\EnquiryEx3.list.cpp" />
     <ClCompile Include="..\project\business\Enquiry\Enquiry.maint.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Enquiry\EnquiryEx.quote.vx.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Enquiry\Entity.Product.Select.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Enquiry\PriceList.PurcharItemSelect.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Enquiry\PriceList.PurcharItemSelectEx.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Enquiry\ProductSchema.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Enquiry\ProductSchemaSelect.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Enquiry\SKU.PictureView.Product3.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Enquiry\ViewPictures.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Expense\BasicFare.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
@@ -508,12 +517,14 @@
     </ClCompile>
     <ClCompile Include="..\project\business\ProductSample\CheckOut.instore.Sample.cpp" />
     <ClCompile Include="..\project\business\ProductSample\InstoreSample3Win.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\ProductSample\OutstoreSample3Win.cpp" />
     <ClCompile Include="..\project\business\ProductSample\SampleBarcodePrint.cpp" />
     <ClCompile Include="..\project\business\Public\GroupManagerList.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Public\memo.edit.new.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
@@ -546,9 +557,11 @@
     </ClCompile>
     <ClCompile Include="..\project\business\Public\UserGroupShare.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\Public\UserGroupShareEx.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\business\QuoteFile.cpp">
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
@@ -674,19 +687,19 @@
     <ClCompile Include="..\project\vindexformex.cpp" />
     <ClCompile Include="..\project\vindexmenu.cpp" />
     <ClCompile Include="..\project\workflow\workflow.actionlog.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\workflow\workflow.actionlog_vd.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\workflow\workflow.chkdlg.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\project\workflow\workflow.chkdlg_vd.cpp">
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
+      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
     </ClCompile>
     <ClCompile Include="..\xframe\src\nmemory.cpp" />
diff --git a/jrj/ext-jrj/ext-jrj.vcxproj.filters b/jrj/ext-jrj/ext-jrj.vcxproj.filters
index c3625f5..c78f55b 100644
--- a/jrj/ext-jrj/ext-jrj.vcxproj.filters
+++ b/jrj/ext-jrj/ext-jrj.vcxproj.filters
@@ -809,11 +809,11 @@
     <ClCompile Include="..\project\business\ProductSample\OutstoreSample3Win.cpp">
       <Filter>project\business\ProductSample</Filter>
     </ClCompile>
-    <ClCompile Include="..\project\business\ProductSample\CheckOut.instore.Sample.cpp">
-      <Filter>婧愭枃浠�</Filter>
-    </ClCompile>
     <ClCompile Include="..\project\business\ProductSample\SampleBarcodePrint.cpp">
-      <Filter>婧愭枃浠�</Filter>
+      <Filter>project\business\ProductSample</Filter>
+    </ClCompile>
+    <ClCompile Include="..\project\business\ProductSample\CheckOut.instore.Sample.cpp">
+      <Filter>project\business\ProductSample</Filter>
     </ClCompile>
   </ItemGroup>
 </Project>
\ No newline at end of file
diff --git a/jrj/project/business/Enquiry/Enquiry.maint.cpp b/jrj/project/business/Enquiry/Enquiry.maint.cpp
index 2162230..8bbc0a0 100644
--- a/jrj/project/business/Enquiry/Enquiry.maint.cpp
+++ b/jrj/project/business/Enquiry/Enquiry.maint.cpp
@@ -441,11 +441,9 @@
 
 					eleColumn = x.createElement(L"LineType");
 					eleColumn.setAttribute(L"update.modify", L"1"); //delete
-					eleColumn.text = L"1";
+					eleColumn.settext(L"1");
 					eleItem.appendChild(eleColumn);
 					ele.appendChild(eleItem);
-					eleColumn.release();
-					eleItem.release();
 					processed = true;
 				}
 				else if (itemModify == L"1")
@@ -461,17 +459,14 @@
 						eleColumn = x.createElement(L"RealEnquiryLineID");
 						eleColumn.setAttribute(L"update.modify", L"1");
 						guid = publiccode::GetGuid();
-						eleColumn.text = guid;
+						eleColumn.settext(guid);
 						eleItem.appendChild(eleColumn);
-						eleColumn.release();
 
 						eleColumn = x.createElement(L"LineType");
 						eleColumn.setAttribute(L"update.modify", L"1");
-						eleColumn.text = L"1"; //modify
+						eleColumn.settext(L"1"); //modify
 						eleItem.appendChild(eleColumn);
 						ele.appendChild(eleItem);
-						eleColumn.release();
-						eleItem.release();
 
 						//insert new row
 						eleItem = e.cloneNode(-1);
@@ -481,35 +476,30 @@
 
 						eleColumn = x.createElement(L"LineType");
 						eleColumn.setAttribute(L"update.modify", L"1");
-						eleColumn.text = L"0";  //normal
+						eleColumn.settext(L"0");  //normal
 						eleItem.appendChild(eleColumn);
-						eleColumn.release();
 
 						nodeColumn = e.selectSingleNode(L"ModifyDate");
 						if (!nodeColumn)
 							eleColumn = x.createElement(L"ModifyDate");
 						else
 							eleColumn = nodeColumn;
-						eleColumn.text = publiccode::GetCurrentDate();
+						eleColumn.settext(publiccode::GetCurrentDate());
 						eleItem.appendChild(eleColumn);
-						eleColumn.release();
 
 						ele.appendChild(eleItem);
-						eleItem.release();
 					}
 					else
 					{
 						guid = e.getAttribute(L"guid");
 						child = e.cloneNode(-1);
-						child.selectSingleNode(L"RealEnquiryLineID").text = guid;
-						child.selectSingleNode(L"RelEnquiryLineID").text = guid;
+						child.selectSingleNode(L"RealEnquiryLineID").settext(guid);
+						child.selectSingleNode(L"RelEnquiryLineID").settext(guid);
 						ele.appendChild(child);
 						//trace(child.xml);
-						child.release();
 					}
 				}
 				//}
-				e.release();
 			}
 			
 			xstring error = L"";
@@ -899,7 +889,7 @@
 
 		int OnPriceEval()
 		{
-			OpenWindow(L"dev:xpage[eval.Enquiry3.vx]", cast(dw_goods as int));
+			OpenWindow(L"dev:xpage[eval.Enquiry3.vx]", (LPARAM)&dw_goods);
 			return 1;
 		}
 
@@ -934,7 +924,7 @@
 			xaserverarg arg_pic;
 			
 			arg_pic.AddArg(L"SKUNoList", skunos);
-			arg_pic.AddArg(L"ParentWindow", GetHWND());
+			arg_pic.SetParam(L"ParentWindow", GetHWND());
 			arg_pic.AddArg(L"OpenFlag", L"1");
 			OpenWindow(L"dev:xpage[SKU.PictureView.Product3.vx]",arg_pic);
 
@@ -1088,7 +1078,7 @@
 				{
 					xaserverarg arg1;
 					arg1.setNativePointer(arg1.CreateInstance());
-					arg1.AddArg(L"HWND", GetHWND().toString());
+					arg1.SetParam(L"HWND", GetHWND());
 					arg1.AddArg(L"CustomerID", dw_base.GetItemString(1, L"CustomerID"));
 					OpenWindow(L"dev:xpage[Entity.Product.Select.vx]",arg1);
 					int row = dw_goods.GetRow();
@@ -1183,7 +1173,7 @@
 			}
 			else if (comdid.find(L"ImportXml:", 0) == 0)
 			{
-				xstring strImport = comdid.mid(L"ImportXml:".length(), 9999);
+				xstring strImport = comdid.mid(((xstring)L"ImportXml:").length(), 9999);
 				
 				ImportProductByText(strImport);
 				return 1;
diff --git a/jrj/project/business/Enquiry/Entity.Product.Select.cpp b/jrj/project/business/Enquiry/Entity.Product.Select.cpp
index 89250b3..621b8de 100644
--- a/jrj/project/business/Enquiry/Entity.Product.Select.cpp
+++ b/jrj/project/business/Enquiry/Entity.Product.Select.cpp
@@ -63,7 +63,7 @@
 			{
 				KXMLDOMElement e = nlist.item(i);
 				xstring name = e.getAttribute(L"name");
-				xcombobox::AddItem(xc.GetId(), name);
+				xcombobox::AddItem(xc.GetHWND(), name);
 			}
 			return 1;
 		}
@@ -100,7 +100,7 @@
 		KXMLDOMElement OnGetCarListRowElement(int row = 0)
 		{
 			if (row < 1) row = dwc_list.GetRow();
-			if (row < 1 || row > dwc_list.GetRowCount()) return 0;
+			if (row < 1 || row > dwc_list.GetRowCount()) return KXMLDOMElement();
 			KXMLDOMElement e = g_xdoc_shoppingcart.getRowElement(L"data/Item", row);
 			return e;
 		}
diff --git a/jrj/project/business/ProductSample/InstoreSample3Win.cpp b/jrj/project/business/ProductSample/InstoreSample3Win.cpp
index d359638..8ccc36a 100644
--- a/jrj/project/business/ProductSample/InstoreSample3Win.cpp
+++ b/jrj/project/business/ProductSample/InstoreSample3Win.cpp
Binary files differ
diff --git a/jrj/project/business/ProductSample/OutstoreSample3Win.cpp b/jrj/project/business/ProductSample/OutstoreSample3Win.cpp
index 81a83f0..db4ae6f 100644
--- a/jrj/project/business/ProductSample/OutstoreSample3Win.cpp
+++ b/jrj/project/business/ProductSample/OutstoreSample3Win.cpp
Binary files differ
diff --git a/jrj/project/business/ProductSample/SampleBarcodePrint.cpp b/jrj/project/business/ProductSample/SampleBarcodePrint.cpp
index a762b99..c5fa8f3 100644
--- a/jrj/project/business/ProductSample/SampleBarcodePrint.cpp
+++ b/jrj/project/business/ProductSample/SampleBarcodePrint.cpp
Binary files differ
diff --git a/jrj/project/business/VATNotify/list.vatnotify.cpp b/jrj/project/business/VATNotify/list.vatnotify.cpp
index 1b51054..bda9215 100644
--- a/jrj/project/business/VATNotify/list.vatnotify.cpp
+++ b/jrj/project/business/VATNotify/list.vatnotify.cpp
@@ -69,7 +69,7 @@
 			xaserverarg arg;
 			if (colname == L"SONo")
 			{
-				xstring SONo = dw_list.GetItemString(row, colname);
+				xstring SONo = dw_list.GetItemString(row, colname.c_str());
 				;
 				
 				arg.AddArg(L"EntityNo", SONo);
@@ -78,7 +78,7 @@
 			}
 			if (colname == L"InvoiceNo")
 			{
-				xstring InvoiceNo = dw_list.GetItemString(row, colname);
+				xstring InvoiceNo = dw_list.GetItemString(row, colname.c_str());
 				;
 				
 				arg.AddArg(L"EntityNo", InvoiceNo);
@@ -338,7 +338,7 @@
 			{
 				//trace(x.xml);
 				KXMLDOMElement ele = x.documentElement();
-				if (dw_pages.ptr_native_)
+				if (dw_pages.getNativePointer())
 				{
 					if (ele.selectSingleNode(L"@TotalPage"))
 					{

--
Gitblit v1.9.3