From e3f724c9fd36995c207a6ed173849c20aaa2e3d7 Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期二, 17 十二月 2024 13:06:22 +0800 Subject: [PATCH] update --- jrj/project/business/AR/ExchageInput3.cpp | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/jrj/project/business/AR/ExchageInput3.cpp b/jrj/project/business/AR/ExchageInput3.cpp index 02f0db0..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; @@ -360,7 +373,7 @@ int h = xcombobox::GetCurSel(evt->command.hCtrl); if (h > -1) { - tabname = xcombobox::GetItemData(evt->command.hCtrl, h); + tabname = (string)xcombobox::GetItemData(evt->command.hCtrl, h); SwitchLayer(L"sheet" + xstring(h + 1), L"frame"); RetrieveData(); SetAgent(); @@ -426,8 +439,6 @@ xml x; xaserverarg arg ; - - arg.setNativePointer(arg.CreateInstance()); arg.AddArg(L"QueryTxt", xcontrol(GetControl(L"sle_search")).GetText()); arg.AddArg(L"QueryArg", GetQueryArg()); //trace(L"QueryArg======L"+GetQueryArg()); @@ -454,7 +465,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"); @@ -492,7 +502,6 @@ int onloaded() { SetAgent(); - return 1; } }; -- Gitblit v1.9.3