From 703d27d52ba0ac373b62aedb93f9cfe9f8857ed2 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期三, 25 九月 2024 17:19:56 +0800 Subject: [PATCH] update --- jrj/project/business/SO/Product.FetchNo.cpp | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/jrj/project/business/SO/Product.FetchNo.cpp b/jrj/project/business/SO/Product.FetchNo.cpp index 4b837d9..ba181f4 100644 --- a/jrj/project/business/SO/Product.FetchNo.cpp +++ b/jrj/project/business/SO/Product.FetchNo.cpp @@ -6,6 +6,7 @@ #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" #include "viewobject/view.base.hpp" +#include "viewobject/productlibrary.view.hpp" using xml = KXMLDOMDocument; class __declspec(dllexport) ProductFetchNoWin : public xframe @@ -72,16 +73,15 @@ int SendNotice() { xaserverarg arg; - if (dw_list.GetRowCount() < 1) return 1; xstring Subject = L"编号:" + dw_list.GetItemString(dw_list.GetRow(), L"SKUNo") + L" 品名:" + dw_list.GetItemString(dw_list.GetRow(), L"CName") + L",申请货号"; xstring EntityID = dw_list.GetItemString(dw_list.GetRow(), L"SKUID"); xstring EntityNo = dw_list.GetItemString(dw_list.GetRow(), L"SKUNo"); xstring Category = L"货号申请"; - xstring Reciever = L"00908"; + xstring Reciever = L"00914"; xstring Content = L""; //alert(L"EntityID:"+EntityID); - xml x = ViewObject::AddMessage(Category, Reciever, EntityNo, EntityID, Subject, Content); + ViewObject::AddMessage( GetServerUrl(),Category, Reciever, EntityNo, EntityID, Subject, Content); return 1; } @@ -94,7 +94,6 @@ dw_list.DwUpdateAllToEx(x); xstring error = L""; xaserverarg arg; - arg.AddArg(L"content", x.xml()); if (xurl::get(L"/sale/data/ProductLibrary3/update/product/askgoodsno", arg.GetString(), x) != 1) { @@ -274,6 +273,7 @@ AttachEvent(L"WM_XCOMMAND", (FEvent)&ProductFetchNoWin::OnXCommand); //获取焦点事件,用于重置工具条 AttachEvent(L"WM_SETFOCUS", (FEvent)&ProductFetchNoWin::OnSetFocus); + return 1; } /* @@ -299,8 +299,9 @@ int onload() { + SetArg(); dw_list = GetControl(L"dw_list"); - dw_list.SetDataObject(ProductLibraryView::GetMaintListForm3(L"").GetXmlDoc()); + dw_list.SetDataObject(ProductLibraryView::GetMaintListForm3(L"").xml()); dw_list.SetColumnState(L"SKUID", false); dw_list.SetColumnState(L"category1", false); dw_list.SetColumnState(L"Submitter1", false); -- Gitblit v1.9.3