From 05e5a33b2102cd562e8503121bef4ad8bc29a1e6 Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期五, 16 八月 2024 17:01:52 +0800 Subject: [PATCH] update --- jrj/project/business/SystemSettings/LogList.cpp | 6 +- jrj/project/business/VATNotify/del.vatinvoice.cpp | 2 jrj/project/business/VATNotify/list.vatinvoice.cpp | 2 jrj/project/printview/Template.Print.Dialog.cpp | 2 jrj/project/business/SystemSettings/FlowTermSelect.cpp | 9 +-- jrj/project/printview/Template.Print.ViewEx.cpp | 1 jrj/project/business/SystemSettings/view.assignadjust.cpp | 18 ++--- jrj/project/business/VATNotify/simple.maint.vatnotify.cpp | 8 +- jrj/project/business/SystemSettings/Flow3.cpp | 8 -- jrj/project/business/VATNotify/import.vatnotify.cpp | 9 +- jrj/project/business/Expense/APNew.cpp | 0 jrj/project/business/SystemSettings/UserPassDlg.cpp | 5 - jrj/project/business/Expense/APOther.cpp | 0 jrj/project/business/Supplier/list.Owner.Supplier.cpp | 0 jrj/project/business/SystemSettings/FlowTermImport.cpp | 4 - jrj/project/total3/ProductNewList.cpp | 2 jrj/project/business/SystemSettings/level.Customer.v3.cpp | 30 ++++----- jrj/project/business/SystemSettings/ProcessManagement.cpp | 2 jrj/project/business/VATNotify/list.vatnotify.cpp | 10 +-- jrj/project/business/VATNotify/maint.papercard.vatnotify.cpp | 8 +- jrj/project/business/Supplier/maint.Document.Supplier.cpp | 0 jrj/ext-jrj/ext-jrj.vcxproj | 2 jrj/project/business/SystemSettings/UserImport.cpp | 2 jrj/project/business/Expense/VATInvoiceAdd.cpp | 0 24 files changed, 55 insertions(+), 75 deletions(-) diff --git a/jrj/ext-jrj/ext-jrj.vcxproj b/jrj/ext-jrj/ext-jrj.vcxproj index a5b384d..f84e3b5 100644 --- a/jrj/ext-jrj/ext-jrj.vcxproj +++ b/jrj/ext-jrj/ext-jrj.vcxproj @@ -1049,7 +1049,7 @@ <ClCompile Include="..\project\total3\FactoryPayment.cpp" /> <ClCompile Include="..\project\total3\GDNItem.GDN.cpp" /> <ClCompile Include="..\project\total3\ProductNewList.cpp"> - <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\project\total3\ProductNoOut.SO.cpp" /> diff --git a/jrj/project/business/Expense/APNew.cpp b/jrj/project/business/Expense/APNew.cpp index b703bed..94f285f 100644 --- a/jrj/project/business/Expense/APNew.cpp +++ b/jrj/project/business/Expense/APNew.cpp Binary files differ diff --git a/jrj/project/business/Expense/APOther.cpp b/jrj/project/business/Expense/APOther.cpp index 1a3356f..e759bec 100644 --- a/jrj/project/business/Expense/APOther.cpp +++ b/jrj/project/business/Expense/APOther.cpp Binary files differ diff --git a/jrj/project/business/Expense/VATInvoiceAdd.cpp b/jrj/project/business/Expense/VATInvoiceAdd.cpp index 90e7a21..09d3f9a 100644 --- a/jrj/project/business/Expense/VATInvoiceAdd.cpp +++ b/jrj/project/business/Expense/VATInvoiceAdd.cpp Binary files differ diff --git a/jrj/project/business/Supplier/list.Owner.Supplier.cpp b/jrj/project/business/Supplier/list.Owner.Supplier.cpp index 4d2f3a5..137f5d5 100644 --- a/jrj/project/business/Supplier/list.Owner.Supplier.cpp +++ b/jrj/project/business/Supplier/list.Owner.Supplier.cpp Binary files differ diff --git a/jrj/project/business/Supplier/maint.Document.Supplier.cpp b/jrj/project/business/Supplier/maint.Document.Supplier.cpp index 306a761..c672ef0 100644 --- a/jrj/project/business/Supplier/maint.Document.Supplier.cpp +++ b/jrj/project/business/Supplier/maint.Document.Supplier.cpp Binary files differ diff --git a/jrj/project/business/SystemSettings/Flow3.cpp b/jrj/project/business/SystemSettings/Flow3.cpp index d03622e..e4246a6 100644 --- a/jrj/project/business/SystemSettings/Flow3.cpp +++ b/jrj/project/business/SystemSettings/Flow3.cpp @@ -142,7 +142,6 @@ } xaserverarg arg ; - ; arg.AddArg(L"content",x.xml()); arg.AddArg(L"sdbmap",sdbmap); trace(x.xml()); @@ -206,7 +205,6 @@ //trace(colname); xaserverarg arg ; - ; xstring comdid =L""; xstring data=L""; @@ -285,7 +283,6 @@ xdwgrid dw_list = GetSheetDwgrid(i); xaserverarg arg ; - ; arg.SetArg(L"stype",GetSheetType(i),L"xstring"); arg.SetArg(L"sdata",L"ddd",L"xstring"); arg.SetArg(L"flowID",flowid,L"xstring"); @@ -300,10 +297,9 @@ { if(flowid==L"") return 1; - xml x ; + xml x; - xaserverarg arg ; - ; + xaserverarg arg; //int i = tab_1.GetSheetIndex(); for(int i=0;i<7;i++) diff --git a/jrj/project/business/SystemSettings/FlowTermImport.cpp b/jrj/project/business/SystemSettings/FlowTermImport.cpp index 38723d6..3fb8512 100644 --- a/jrj/project/business/SystemSettings/FlowTermImport.cpp +++ b/jrj/project/business/SystemSettings/FlowTermImport.cpp @@ -120,10 +120,8 @@ int OnRetrieve() { - xml x ; - + xml x; xaserverarg arg ; - ; arg.AddArg(L"stype",stype); arg.AddArg(L"sdata",sdata); diff --git a/jrj/project/business/SystemSettings/FlowTermSelect.cpp b/jrj/project/business/SystemSettings/FlowTermSelect.cpp index ce9d2bb..fc62b88 100644 --- a/jrj/project/business/SystemSettings/FlowTermSelect.cpp +++ b/jrj/project/business/SystemSettings/FlowTermSelect.cpp @@ -60,8 +60,7 @@ int OnOK(xstring comdid) { - xaserverarg arg ; - arg = GetArg(); + xaserverarg arg = GetArg(); arg.AddArg(L"comdid",comdid); @@ -119,10 +118,8 @@ int OnRetrieve() { - xml x ; - - xaserverarg arg ; - ; + xml x; + xaserverarg arg; arg.AddArg(L"stype",stype); arg.AddArg(L"sdata",sdata); diff --git a/jrj/project/business/SystemSettings/LogList.cpp b/jrj/project/business/SystemSettings/LogList.cpp index 21945f4..238e046 100644 --- a/jrj/project/business/SystemSettings/LogList.cpp +++ b/jrj/project/business/SystemSettings/LogList.cpp @@ -94,7 +94,7 @@ hCursor = xutil::SetCursorWait(); xstring str = dw_list.DataAnalysis(L""); xaserverarg arg; - ; + arg.AddArg(L"html", str); OpenWindow(L"dev:xpage[data.vanalysis.vx]", arg); @@ -108,7 +108,7 @@ int OnSearch() { xaserverarg arg; - ; + arg.AddArg(L"text", searchStr); OpenWindow(L"dev:xpage[search.dialog.vx]", arg); xstring str = arg.GetArgString(L"text"); @@ -176,7 +176,7 @@ xml x ; xaserverarg arg ; - ; + arg.AddArg(L"arg",argstr); //alert(argstr); diff --git a/jrj/project/business/SystemSettings/ProcessManagement.cpp b/jrj/project/business/SystemSettings/ProcessManagement.cpp index 1c95bc0..12ce011 100644 --- a/jrj/project/business/SystemSettings/ProcessManagement.cpp +++ b/jrj/project/business/SystemSettings/ProcessManagement.cpp @@ -177,8 +177,6 @@ { SetAgent(); - - return 1; } }; \ No newline at end of file diff --git a/jrj/project/business/SystemSettings/UserImport.cpp b/jrj/project/business/SystemSettings/UserImport.cpp index fb7b0a7..2180585 100644 --- a/jrj/project/business/SystemSettings/UserImport.cpp +++ b/jrj/project/business/SystemSettings/UserImport.cpp @@ -311,7 +311,7 @@ int OnInitial() { SetAgent(); - OnAttachEvent(); + OnAttachEvent(); return 1; } diff --git a/jrj/project/business/SystemSettings/UserPassDlg.cpp b/jrj/project/business/SystemSettings/UserPassDlg.cpp index 10d6ab1..8e27cd0 100644 --- a/jrj/project/business/SystemSettings/UserPassDlg.cpp +++ b/jrj/project/business/SystemSettings/UserPassDlg.cpp @@ -85,9 +85,8 @@ xstring newpass = xutil::MD5(str1); xml x; - - xaserverarg arg ; - ; + xaserverarg arg; + arg.AddArg(L"old_password",oldpass); arg.AddArg(L"new_password",newpass); diff --git a/jrj/project/business/SystemSettings/level.Customer.v3.cpp b/jrj/project/business/SystemSettings/level.Customer.v3.cpp index f7be604..a4b1a7e 100644 --- a/jrj/project/business/SystemSettings/level.Customer.v3.cpp +++ b/jrj/project/business/SystemSettings/level.Customer.v3.cpp @@ -35,10 +35,9 @@ } int OnPreRetrieve() { - xml x ; - - xaserverarg arg ; - ; + xml x; + xaserverarg arg; + arg.AddArg(L"pageindex", xstring(PIndex)); //第几页 arg.AddArg(L"pagenumber", xstring(m_pageNumber)); //每页数量 arg.AddArg(L"QueryTxt",m_QueryTxt ); @@ -132,10 +131,9 @@ while (tv_1.GetRootItem()) tv_1.DeleteItem(tv_1.GetRootItem()); - xml x ; - - xaserverarg arg ; - ; + xml x; + xaserverarg arg; + arg.AddArg(L"sType",sType); if(getUrl(L"/sale/data/"+GetEntityName(1)+L"/pref/list/tree",arg.GetString(),x)!=1) { @@ -195,10 +193,9 @@ int MB_YESNO = 0x00000004; int IDYES = 6; if(MessageBox(GetHWND(),L"确认要删除客户 "+sName+L" 的信息吗?",L"提示",MB_YESNO)!=IDYES) return 1; - xml x ; + xml x; + xaserverarg arg; - xaserverarg arg ; - ; arg.AddArg(L"guid",sguid); if (xurl::post(L"/sale/data/"+GetEntityName(1)+L"/entity/delete",arg.GetString(),x) != 1) { @@ -232,8 +229,8 @@ //设置层级弹出窗与保存 int OnLevelCustomer() { - xaserverarg arg ; - ; + xaserverarg arg; + OpenWindow(L"dev:xpage[maint.Level.Customer3.vx]", arg); xml ux ; @@ -243,7 +240,7 @@ if(arg.GetArgString(L"ok")==L"true") { - xml x ; + xml x; x.loadXML(arg.GetArgString(L"arg")); KXMLDOMElement uele = x.documentElement(); @@ -305,10 +302,9 @@ int row = hdr.row; KXMLDOMElement ele = listwin::dw_list.GetRowElement(row); xstring entity = ele.selectSingleNode(L"CustomerID").text(); - xml x ; + xml x; + xaserverarg arg; - xaserverarg arg ; - ; arg.AddArg(L"EntityID",entity); if (getUrl(L"/sale/data/CustomerV3/entity/customeritem",arg.GetString(),x)!=1) { diff --git a/jrj/project/business/SystemSettings/view.assignadjust.cpp b/jrj/project/business/SystemSettings/view.assignadjust.cpp index 8969135..20cd4e8 100644 --- a/jrj/project/business/SystemSettings/view.assignadjust.cpp +++ b/jrj/project/business/SystemSettings/view.assignadjust.cpp @@ -51,13 +51,11 @@ int OnSave() { - xml x ; + xml x; dw_list.AcceptText(); dw_list.DwUpdateAllToEx(x); - xaserverarg arg ; - - + xaserverarg arg; xml x0; x0.loadXML(L"<data/>"); KXMLDOMNodeList t = x.selectNodes(L"data/node()[(@update.new='1') or (@update.modify='1') or (@update.delete='1') ]"); @@ -113,7 +111,7 @@ int OnSearch() { xaserverarg arg; - ; + arg.AddArg(L"text", searchStr); OpenWindow(L"dev:xpage[search.dialog.vx]", arg); xstring str = arg.GetArgString(L"text"); @@ -217,13 +215,14 @@ return 1; } - int ShowRetrieveingTip() + int ShowRetrieveingTip() { dataretrieveing = true; xwin* pwin = OpenWindow(L"dev:xpage[TestRetrieveing.vx]"); hWndRetrieveTip = pwin->GetHWND(); return 1; } + int CloseRetrieveTip() { dataretrieveing = false; @@ -238,10 +237,9 @@ if(!rptEle) return 0; dw_list.Reset(); - xml x ; - - xaserverarg arg ; - ; + xml x; + xaserverarg arg; + arg.AddArg(L"arg",argstr); if (xurl::get(dataurl,arg.GetString(),x)!=1) { diff --git a/jrj/project/business/VATNotify/del.vatinvoice.cpp b/jrj/project/business/VATNotify/del.vatinvoice.cpp index 4fb524d..ee828d0 100644 --- a/jrj/project/business/VATNotify/del.vatinvoice.cpp +++ b/jrj/project/business/VATNotify/del.vatinvoice.cpp @@ -84,7 +84,7 @@ { int row = dw_list.GetRow(); xstring VATInvoiceID = dw_list.GetItemString(row,L"VATInvoiceID"); - alert(VATInvoiceID); + //alert(VATInvoiceID); int MB_OKCANCEL = 1; int IDOK = 1; int ret = MessageBox(GetHWND(),L"确认恢复?",L"提示",MB_OKCANCEL); diff --git a/jrj/project/business/VATNotify/import.vatnotify.cpp b/jrj/project/business/VATNotify/import.vatnotify.cpp index 963a6d1..2eb847b 100644 --- a/jrj/project/business/VATNotify/import.vatnotify.cpp +++ b/jrj/project/business/VATNotify/import.vatnotify.cpp @@ -77,9 +77,9 @@ int OnImport2() { xml x; - xaserverarg arg; - for(int row=1; row<= dw_list.GetRowCount();row++){ + for(int row=1; row<= dw_list.GetRowCount();row++) + { KXMLDOMElement ele = dw_list.GetRowElement(row); xstring invno = ele.selectSingleNode(L"InvoiceNo").text(); arg.AddArg(L"InvoiceNo",invno); @@ -95,9 +95,8 @@ } return 1; } - - - + + //命令发布函数 int OnCmdDispatch(xstring comdid) { diff --git a/jrj/project/business/VATNotify/list.vatinvoice.cpp b/jrj/project/business/VATNotify/list.vatinvoice.cpp index 676622e..7f299f7 100644 --- a/jrj/project/business/VATNotify/list.vatinvoice.cpp +++ b/jrj/project/business/VATNotify/list.vatinvoice.cpp @@ -283,7 +283,7 @@ xml x ; xaserverarg arg ; - arg.setNativePointer(arg.CreateInstance()); + arg.AddArg(L"QueryTxt",xcontrol(GetControl(L"sle_search")).GetText()); arg.AddArg(L"QueryArg",GetQueryArg()); arg.AddArg(L"DatePicker",DatePicker); diff --git a/jrj/project/business/VATNotify/list.vatnotify.cpp b/jrj/project/business/VATNotify/list.vatnotify.cpp index 82305aa..ec83227 100644 --- a/jrj/project/business/VATNotify/list.vatnotify.cpp +++ b/jrj/project/business/VATNotify/list.vatnotify.cpp @@ -70,7 +70,6 @@ if (colname == L"SONo") { xstring SONo = dw_list.GetItemString(row, colname.c_str()); - ; arg.AddArg(L"EntityNo", SONo); arg.AddArg(L"ReadOnly", L"true"); @@ -79,7 +78,6 @@ if (colname == L"InvoiceNo") { xstring InvoiceNo = dw_list.GetItemString(row, colname.c_str()); - ; arg.AddArg(L"EntityNo", InvoiceNo); arg.AddArg(L"ReadOnly", L"true"); @@ -90,7 +88,7 @@ int OnPrint() { - xaserverarg& arg = *new xaserverarg; + xaserverarg arg ; arg.AddArg(L"EntityName", L"VATNotify"); arg.AddArg(L"EntityID", L"", L""); @@ -110,13 +108,13 @@ arg.AddArg(L"VATNotifyID", L""); trace(InvoiceNo + L"==1" + NInvoiceNoEx + L"==2" + SupplierID + L"==3" + dw_list.GetGuid(dw_list.GetRow())); - openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); + openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg); return 1; } int OnPrintItem() { - xaserverarg& arg = *new xaserverarg; + xaserverarg arg; arg.AddArg(L"EntityName", L"VATNotify"); arg.AddArg(L"EntityID", L"", L""); @@ -136,7 +134,7 @@ arg.AddArg(L"VATNotifyID", dw_list.GetGuid(dw_list.GetRow())); trace(L"=====L" + InvoiceNo + L"=====L" + SupplierID + L"=====L" + dw_list.GetGuid(dw_list.GetRow())); - openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); + openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg); return 1; } diff --git a/jrj/project/business/VATNotify/maint.papercard.vatnotify.cpp b/jrj/project/business/VATNotify/maint.papercard.vatnotify.cpp index ca10bec..601fc00 100644 --- a/jrj/project/business/VATNotify/maint.papercard.vatnotify.cpp +++ b/jrj/project/business/VATNotify/maint.papercard.vatnotify.cpp @@ -56,25 +56,25 @@ int OnPrint() { - xaserverarg& arg = *new xaserverarg; + xaserverarg arg; arg.AddArg(L"EntityName", L"VATNotify", L""); arg.AddArg(L"EntityID", L"", L""); arg.AddArg(L"EntityNo", dw_item.GetItemString(1, L"InvoiceNo"), L""); - openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); + openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg); return 1; } int OnPrintItem() { - xaserverarg& arg = *new xaserverarg; + xaserverarg arg ; arg.AddArg(L"EntityName", L"VATNotify", L""); arg.AddArg(L"EntityID", L"", L""); arg.AddArg(L"EntityNo", dw_item.GetItemString(1, L"InvoiceNo"), L""); - openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); + openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg); return 1; } diff --git a/jrj/project/business/VATNotify/simple.maint.vatnotify.cpp b/jrj/project/business/VATNotify/simple.maint.vatnotify.cpp index cac6ab8..f11d770 100644 --- a/jrj/project/business/VATNotify/simple.maint.vatnotify.cpp +++ b/jrj/project/business/VATNotify/simple.maint.vatnotify.cpp @@ -63,7 +63,7 @@ int OnPrint() { - xaserverarg& arg = *new xaserverarg; + xaserverarg arg; arg.AddArg(L"EntityName", L"VATNotify"); arg.AddArg(L"EntityID", L"", L""); @@ -74,13 +74,13 @@ arg.AddArg(L"SupplierID", SupplierID); arg.AddArg(L"VATNotifyID", L""); - openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); + openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg); return 1; } int OnPrintItem() { - xaserverarg& arg = *new xaserverarg; + xaserverarg arg; arg.AddArg(L"EntityName", L"VATNotify", L""); arg.AddArg(L"EntityID", L"", L""); @@ -92,7 +92,7 @@ arg.AddArg(L"VATNotifyID", dw_item.GetGuid(dw_item.GetRow())); trace(InvoiceNo + L"====L" + dw_item.GetGuid(dw_item.GetRow())); - openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg); + openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg); return 1; } diff --git a/jrj/project/printview/Template.Print.Dialog.cpp b/jrj/project/printview/Template.Print.Dialog.cpp index 7b58fbd..51aa67d 100644 --- a/jrj/project/printview/Template.Print.Dialog.cpp +++ b/jrj/project/printview/Template.Print.Dialog.cpp @@ -375,7 +375,7 @@ xml x; xaserverarg arg; - arg.setNativePointer(arg.CreateInstance()); + arg.AddArg(L"EntityName", m_EntityName, L""); arg.AddArg(L"EntityID", m_EntityID, L""); arg.AddArg(L"susername", susername, L""); // diff --git a/jrj/project/printview/Template.Print.ViewEx.cpp b/jrj/project/printview/Template.Print.ViewEx.cpp index 2c1e1ab..f622ea1 100644 --- a/jrj/project/printview/Template.Print.ViewEx.cpp +++ b/jrj/project/printview/Template.Print.ViewEx.cpp @@ -419,7 +419,6 @@ xstring DownLoadPaperPic(xstring guid) { - xstring path = xutil::GetModuleTmpPath(); xstring ext = L"jpg"; xstring filename = guid + L"." + ext; diff --git a/jrj/project/total3/ProductNewList.cpp b/jrj/project/total3/ProductNewList.cpp index 2d6e937..9834f2e 100644 --- a/jrj/project/total3/ProductNewList.cpp +++ b/jrj/project/total3/ProductNewList.cpp @@ -88,6 +88,7 @@ dw_list.SetReadOnlyColumn(i); } dw_list.Redraw(); + return 1; } int OnRetrieveEx() @@ -121,6 +122,7 @@ dw_list.SetReadOnlyColumn(i); } dw_list.Redraw(); + return 1; } xml GetGoodsPropList(xstring guid) -- Gitblit v1.9.3