From ff36263c5340c2eab8ce54a23b73fd3f19c46200 Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期二, 11 二月 2025 16:10:32 +0800 Subject: [PATCH] update --- jrj/project/business/AR/ExchageInput3.cpp | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/jrj/project/business/AR/ExchageInput3.cpp b/jrj/project/business/AR/ExchageInput3.cpp index ab505d1..0c129bf 100644 --- a/jrj/project/business/AR/ExchageInput3.cpp +++ b/jrj/project/business/AR/ExchageInput3.cpp @@ -61,7 +61,7 @@ arg.AddArg(L"content", x.xml()); - //trace(x.xml()); + //alert(x.xml()); if (xurl::get(L"/sale/data/AR/update/item", arg.GetString(), x) != 1) { xstring error = x.text(); @@ -190,6 +190,16 @@ return 1; } + int OnSaveAs() + { + if (tabname == L"sign") return dw_list.SaveAs(L""); + if (tabname == L"signed") return dw_signed.SaveAs(L""); + if (tabname == L"exch") return dw_exch.SaveAs(L""); + if (tabname == L"unexch") return dw_unexch.SaveAs(L""); + if (tabname == L"adjust") return dw_adjust.SaveAs(L""); + return 1; + } + int RetrieveData() { if (tabname == L"sign") return OnRetrieve(L"/sale/data/AR/list", dw_list); @@ -219,6 +229,9 @@ { return OnDeleteRow(); } + else if (comdid == L"xmSaveAs") + return OnSaveAs(); + else if (comdid == L"xmDelete") { int MB_OKCANCEL = 1; @@ -453,7 +466,6 @@ dw_list = GetControl(L"dw_list"); dw_list.openUrl(L"/sale/view/AR/template/list"); - dw_signed = GetControl(L"dw_signed"); dw_signed.openUrl(L"/sale/view/AR/template/listFinish"); dw_exch = GetControl(L"dw_exch"); @@ -490,7 +502,6 @@ int onloaded() { SetAgent(); - return 1; } }; -- Gitblit v1.9.3